curl --location --request GET 'https://api.flashcat.cloud/api/n9e/notify-rule/' \
--header 'X-User-Token: <api-key>'
{
"dat": {
"id": 12345,
"name": "High CPU Alert",
"description": "Alert when CPU usage exceeds 80%",
"enable": true,
"user_group_ids": [
101,
102
],
"notify_configs": [
{
"channel_id": 3,
"template_id": 2,
"params": {
"threshold": 80
},
"severities": [
1,
2
],
"time_ranges": [
{
"start": "08:00",
"end": "18:00",
"week": [
3,
4
]
}
],
"label_keys": [
{
"key": "env",
"op": "==",
"value": "production"
}
]
}
]
},
"err": ""
}