Skip to main content

Configure a new action in Actions Menu

This topic explains how to create incident or alert actions in Actions Menu.

Create a new action

To create new action, do the following:

  1. Within Moogsoft Cloud, navigate to Correlate & Automate > Actions Menu.

    You can also navigate to the Actions Menu from the Incidents view or the Alerts view by doing the following:

    1. From the Incidents or Alerts view, select an incident or an alert.

    2. Click the Actions button in the top left:

      1. If you are viewing incidents, select Incident Actions > Configure Actions.

      2. If you are viewing alerts, select Alert Actions > Configure Actions.

  2. Select Incident Actions or Alert Actions.

  3. Click Add Incident Action or Add Alert Action.

  4. Provide a unique name for the action. Optionally, provide a description.

  5. Select URL Action or Set Tags Action. Follow the instructions in the following sections according to the type of action you selected.

Create a URL Action

To create a URL Action, fill out the sections as follows:

  1. Under Actions, make sure URL Action is selected.

  2. Fill out the Endpoint section:

    1. For Request Type, select either "POST" or "GET" depending on your business needs.

    2. For Response Display, select "Popup" to display the results of the request in the UI. Select "None" if you don't want to display anything.

    3. For URL, enter the URL against which the request will be made. Make sure the URL begins with http:// or https://.

    4. (Optional) For Base URL, click Add Base URL. Specify a URL to bypass Cross Origin Resource Sharing (CORS) restrictions, which occurs when a server cannot serve a request from another domain. Make sure the URL begins with http:// or https://.

    5. For Headers, click Add Header to include key value pairs of data that you wish to send in your HTTP request.

  3. Fill out the Payload Body section:

    1. If you have specified a request type of "POST" in the previous Endpoint section, enter the payload body that you wish to POST to your external system. For example:

      {
        "description": "${description}",
        "moogsoft_id": 11,
        "updateType": "create",
        "severity": "${severity}",
        "priority": "P3"
      }
      
  4. Configure Prompt Variables:

    1. Provide details of any prompt variables that you wish to utilize. Select a prompt variable from the list to edit the following properties:

      • Display Name: The name of the variable that the user will be prompted to enter a value for.

      • Variable Type: Select "String," "Number," or "Selection List."

        Selecting "String" or "Number" will enable you to specify the following additional parameters:

        • Default Value: A default value to be utilized in the event that the user prompt receives no input.

        • Minimum and Maximum Length or Value: A minimum and maximum length of string input in the case of “String” variable type and a minimum and maximum value in the case of “Number” variable type.

        Selecting "Selection List" will allow you to to add predefined values for the user to select from. To add new values, click Add List Item and specify the following parameters:

        • List Item Type: The type of the list item. Select either "STRING" or "NUMBER."

        • List Item Value: The predefined value that you wish to offer to the user. Make sure that the value matches the corresponding "List Item Type."

    2. Click Save at the top of the page to save your action.

Create a Set Tags Action

To create a Set Tags Action, fill out the sections as follows:

  1. Under Actions, make sure Set Tags Action is selected.

  2. Add tags in the Set Tags section:

    1. Under Tag Name and Tag Value, enter the name of the tag that you wish to create or update, and the corresponding value you wish to assign to that tag.

    2. Click Add Tags to add new tags as necessary.

  3. Configure Prompt Variables:

    1. Provide details of any prompt variables that you wish to utilize. Select a Prompt Variable from the list to edit the following properties:

      • Display Name: The name of the variable that the user will be prompted to enter a value for.

      • Variable Type: Select "String," "Number," or "Selection List."

        Selecting "String" or "Number" will enable you to specify the following additional parameters:

        • Default Value: A default value to be utilized in the event that the user prompt receives no input.

        • Minimum and Maximum Length or Value: A minimum and maximum length of string input in the case of “String” variable type and a minimum and maximum value in the case of “Number” variable type.

        Selecting "Selection List" will enable you to to add predefined values for the user to select from. To add new values, click Add List Item and specify the following parameters:

        • List Item Type: The type of the list item. Select either "STRING" or "NUMBER."

        • List Item Value: The predefined value that you wish to offer to the user. Make sure that the value matches the corresponding "List Item Type."

    2. Click Save at the top of the page to save your action.