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
{
    "action_name": "slack_action",
    "action_params": "",
    "conditions": [
        {
            "operation": "equals",
            "propName": "Active",
            "propValue": "true"
        }
    ],
    "created_on": "21 Nov, 2022, 00:42:45 UTC",
    "description": "check servertools filterset",
    "events": [
        {
            "class": "KubernetesPod",
            "name": "Failed",
            "type": "event"
        }
    ],
    "last_updated": "21 Nov, 2022, 00:42:45 UTC",
    "policy_name": "CheckManualFilterPolicy1",
    "policy_type": "manual"
}
string
policy_name
Required

remediation rule name

string
policy_type
Required

either manual or automated

string
action_name
Required

Name of the remediation action

string
action_params
Optional

optional field for multi event rules

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.

string
created_on
Optional

rule creation timestamp

string
last_updated
Optional

rule last update timestamp