curl --location --request POST 'https://api.flashcat.cloud/monit/rule/export?app_key=<api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
"ids": [
0
]
}'{
"error": {
"code": "string",
"message": "string"
},
"data": [
{
"name": "string",
"labels": {
"property1": "string",
"property2": "string"
},
"ds_type": "string",
"ds_list": [
"string"
],
"ds_ids": [
0
],
"enabled": true,
"debug_log_enabled": true,
"rule_configs": {
"relate_queries": [
{
"name": "string",
"expr": "string",
"args": {
"property1": "string",
"property2": "string"
}
}
],
"queries": [
{
"name": "string",
"expr": "string",
"label_fields": [
"string"
],
"value_fields": [
"string"
],
"args": {
"property1": "string",
"property2": "string"
}
}
],
"check_threshold": {
"enabled": true,
"alerting_check_times": 0,
"recovery_check_times": 0,
"push_recovery_event": true,
"critical": "string",
"warning": "string",
"info": "string",
"recovery": {
"mode": "invert",
"condition": "string",
"value_fields": [
"string"
],
"args": {
"property1": "string",
"property2": "string"
}
}
},
"check_anydata": {
"enabled": true,
"alerting_check_times": 0,
"recovery_check_times": 0,
"push_recovery_event": true,
"severity": "Critical",
"recovery": {
"mode": "",
"condition": "string",
"args": {
"property1": "string",
"property2": "string"
}
}
},
"check_nodata": {
"enabled": true,
"alerting_check_times": 0,
"recovery_check_times": 0,
"push_recovery_event": true,
"severity": "Critical",
"resolve_timeout": 0
}
},
"cron_pattern": "string",
"delay_seconds": 0,
"enabled_times": [
{
"days": [
0
],
"stime": "string",
"etime": "string"
}
],
"annotations": {
"property1": "string",
"property2": "string"
},
"description_type": "markdown",
"description": "string",
"repeat_interval": 0,
"repeat_total": 0
}
]
}