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
{
"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"
}
remediation rule name
either manual or automated
either remediation or escalation
optional either enable or disable
JSON list of dicts containing class, name and type fields.
JSON list of dicts containing propName, operation and propValue fields.
JSON list of dicts containing paths, levels and action names. The paths.levels.duration and paths.condition are mandatory for escalation policy.
rule creation timestamp
rule last update timestamp
in case of escalation it is the time value in minutes, upon expiry the level's action will be triggered.
optional field to specify escalation stop criteria. Either clear or ack, default value is clear