Last Updated on : 2023-06-15 06:02:31
Add the alert configurations of a specified monitored object.
POST: /v1.0/iot-03/si/alarm-config
Description of body
| Parameter name | Type | IN | Required | Description |
|---|---|---|---|---|
| monitor_type | String | true | The type of a specified metric. Valid values:
|
|
| monitor_object_id | String | true | The ID of a specified monitored object. | |
| alarm_rules | List |
false | The collection of alert rules. | |
| id | Long | false | The ID of the primary key. | |
| gmt_modified | Long | false | The time when it is modified. |
Description of alarm_rules
| Parameter name | Type | IN | Required | Description |
|---|---|---|---|---|
| attr_code | String | true | The code of a specified attribute. | |
| range_rule | String | true | The interval rules. Valid values:
|
|
| range_value | String | true | The interval value. Value range: -999999.99 to 999999.99. |
|
| alarm_config_id | Long | false | The ID of a specified alert configuration. | |
| alarm_level | Integer | true | The level of a specified alert. Valid values:
|
|
| id | Long | false | The ID of the primary key. | |
| gmt_modified | Long | false | The time when it is modified. |
| Parameter name | Type | Description |
|---|---|---|
| result | Boolean | The returned result. |
POST: /v1.0/iot-03/si/alarm-config
{
"result": true,
"t": 1638239987342,
"success": true
}
For more information, see error code.
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback