This section provides steps to create an action.

You can see default and user-defined actions. For manual Remediation Rule, you can select a default action from the action wizard in the Remediation Rule page. For example, jira_action.

Procedure

  1. Go to https://Telcocloud serviceassurance-ui-IP.
    A typical URL for logging in to the user interface from the same system on which VMware Telco Cloud Service Assurance is installed is, https://10.x.x.x.
  2. Enter the username and password.
  3. Click Next.
  4. Navigate to Administration > Alarms Management > Actions.
  5. Under Actions, click Add.
    The Add Action page appears.
  6. Update the following parameters:
    • Name: Provide a name for the action. Only letters, numbers, hyphens, and underscores are allowed.
    • Description: Provide the description details to an action.
    • Format: Select a format for an action. The supported values are YAML and Python.
    • Category: The Category field helps you to categorize tickets based on your need. Select the category type from the drop-down list. You can also create a custom category.
    • Under Code Preview, click Upload and upload the Python action.

      For example, the jira_action action uses the Python file as shown in the following screenshot.

  7. Click Save.
    Default Action
    For automated Remediation Rule, you must create an user-defined action Python code that does the following tasks:
    1. Connect to the mitigation service.
    2. GET the relevant data from the mitigation service endpoint.
    3. Examine the GET data and modify it as required.
    4. Update PUT/PATCH mitigation service endpoint with the new data that fixes the issue.

What to do next

After you create an action, you can see configured actions under Select Actions widget on the Add Remediation Rule page. Select an action from the Select Actions widget and create the Remediation Rule.