curl --location --request PUT 'https://example.com:30888/commonalerts/'
For
and the query violates the configured thresholdOK
to Pending
. Going from OK
to Pending
will not send anyFor
duration, it willAlerting
and send alert notifications.{
"commonalert": {
"alert_duration": 0,
"alert_type": "string",
"can_delete": true,
"can_update": true,
"channel": [
"string"
],
"common_alert_metric_details": [
{
"FieldDescription": {
"display_name": "string",
"id": "string",
"name": "string",
"unit": "string"
},
"comparator": "string",
"condition_type": "string",
"db": "string",
"field": "string",
"field_opt": "string",
"filters": [
{
"condition": "string",
"key": "string",
"operator": "string",
"value": "string"
}
],
"get_point_str": true,
"groupby": "string",
"measurement": "string",
"measurement_display_name": "string",
"operator": "string",
"reduce": "string",
"res_type": "string",
"threshold": 0,
"threshold_str": "string",
"within_range": [
0
]
}
],
"created_at": "2019-08-24T14:15:22Z",
"customize_config": {},
"delete_fail_reason": {
"class": "string",
"code": 0,
"details": "string"
},
"deleted": true,
"deleted_at": "2019-08-24T14:15:22Z",
"description": "string",
"domain_id": "string",
"enabled": true,
"eval_data": {},
"execution_error": "string",
"execution_error_state": "string",
"for": 0,
"frequency": 0,
"id": "string",
"is_emulated": true,
"last_state_change": "2019-08-24T14:15:22Z",
"level": "string",
"message": "string",
"metadata": {
"property1": "string",
"property2": "string"
},
"name": "string",
"no_data_state": "string",
"notifier_id": "string",
"period": "string",
"progress": 0,
"project": "string",
"project_domain": "string",
"project_id": "string",
"project_metadata": {
"property1": "string",
"property2": "string"
},
"recipients": [
"string"
],
"res_type": "string",
"robot_ids": [
"string"
],
"role_ids": [
"string"
],
"scope": "string",
"settings": {
"conditions": [
{
"evaluator": {
"operators": [
"string"
],
"params": [
0
],
"type": "string"
},
"operator": "string",
"query": {
"from": "string",
"model": {
"alias": "string",
"database": "string",
"group_by": [
{
"params": [
"string"
],
"type": "string"
}
],
"interval": "string",
"measurement": "string",
"policy": "string",
"result_format": "string",
"select": [
[
{
"params": [
"string"
],
"type": "string"
}
]
],
"tags": [
{
"condition": "string",
"key": "string",
"operator": "string",
"value": "string"
}
],
"tz": "string"
},
"result_reducer": {
"operators": [
"string"
],
"params": [
0
],
"type": "string"
},
"result_reducer_order": "string",
"to": "string"
},
"reducer": {
"operators": [
"string"
],
"params": [
0
],
"type": "string"
},
"reducer_order": "string",
"type": "string"
}
]
},
"silent_period": "string",
"state": "string",
"state_changes": 0,
"status": "string",
"tenant": "string",
"tenant_id": "string",
"update_fail_reason": {
"class": "string",
"code": 0,
"details": "string"
},
"update_version": 0,
"updated_at": "2019-08-24T14:15:22Z",
"used_by": "string"
}
}