RemediationPolicy

RemediationPolicy
RemediationPolicy

Task resource for remediation rule or policy. Skippable properties: These are properties not required to create the clearAlarms object: created_on, conditions, last_updated

JSON Example
{
    "conditions": [],
    "events": [
        {
            "name": "Down",
            "class": "WirelessAccessPoint",
            "type": "problem",
            "condition": null
        }
    ],
    "description": "example rule",
    "policy_name": "examplerule",
    "path_type": "remediation",
    "policy_type": "automated",
    "stop_criteria": "clear",
    "paths": [
        {
            "condition": {
                "property": "",
                "expression": "match",
                "value": ""
            },
            "path_name": "Path0",
            "path_description": "",
            "levels": [
                {
                    "level_name": "level0",
                    "duration": 1,
                    "action": "slack_action",
                    "level_description": "",
                    "parameters": [
                        {
                            "slack_message": "TCSA slack"
                        },
                        {
                            "slack_channel": "#tcsa-notifs"
                        }
                    ],
                    "connections": [
                        {
                            "task_post_slack_conn_id": "slack_connection"
                        }
                    ]
                }
            ]
        }
    ],
    "state": "enable"
}
string
policy_name
Required

remediation rule name

string
policy_type
Required

either manual or automated

string
path_type
Required

either remediation or escalation

string
state
Optional

optional either enable or disable

array of object
events
Required

JSON list of dicts containing class, name and type fields.

array of object
conditions
Optional

JSON list of dicts containing propName, operation and propValue fields.

array of object
paths
Required

JSON list of dicts containing paths, levels and action names. The paths.levels.duration and paths.condition are mandatory for escalation policy.

string
created_on
Optional

rule creation timestamp

string
last_updated
Optional

rule last update timestamp

integer
duration
Optional

in case of escalation it is the time value in minutes, upon expiry the level's action will be triggered.

string
stop_criteria
Optional

optional field to specify escalation stop criteria. Either clear or ack, default value is clear