{
"data": {
"auto_resolve": true,
"auto_resolve_waiting_for_seconds": 0,
"category": "string",
"critical_threshold": 0,
"enabled": true,
"error_renotify_interval_seconds": 0,
"error_threshold": 0,
"eval_interval_seconds": 15,
"group_notify": false,
"metric": "sddc:node:cpu_util",
"muted": false,
"name": "string",
"operator": "string",
"resource_filter": {
"key": "string",
"op": "string",
"value": "string"
},
"resource_type": "Node",
"waiting_for_seconds": 0,
"warning_renotify_interval_seconds": 0,
"warning_threshold": 0
}
}curl --location --request POST 'http://10.16.11.91:6012/sddc/v1/alert-rules/' \
--header 'x-sddc-token: 78ce2df0c80e4b10a28c7779af4dc10f' \
--header 'Content-Type: application/json' \
--data-raw '{
"data": {
"auto_resolve": true,
"auto_resolve_waiting_for_seconds": 0,
"category": "string",
"critical_threshold": 0,
"enabled": true,
"error_renotify_interval_seconds": 0,
"error_threshold": 0,
"eval_interval_seconds": 15,
"group_notify": false,
"metric": "sddc:node:cpu_util",
"muted": false,
"name": "string",
"operator": "string",
"resource_filter": {
"key": "string",
"op": "string",
"value": "string"
},
"resource_type": "Node",
"waiting_for_seconds": 0,
"warning_renotify_interval_seconds": 0,
"warning_threshold": 0
}
}'{
"trigger_value_desc": "string",
"resource_type_desc": "string",
"group": "string",
"description": "string",
"weight": 0,
"has_resource_blacklist": true,
"create": "2019-08-24T14:15:22Z",
"basic_type": "string",
"enabled": true,
"group_desc": "string",
"trigger_mode": "string",
"update": "2019-08-24T14:15:22Z",
"alarm_id": "string",
"source": "string",
"trigger_period": 0,
"level": "string",
"type": "string",
"id": 0,
"resource_type": "string",
"trigger_value": "string"
}