Return instance of alarm rules
Security
apiKey
- Mock serverhttps://develop-api.esper.io/_mock/openapi/v1/enterprise/{enterprise_id}/alarmrules/{alarm_id}/
- https://develop-api.esper.cloud/apihttps://develop-api.esper.cloud/api/v1/enterprise/{enterprise_id}/alarmrules/{alarm_id}/
curl -i -X PUT \
'https://develop-api.esper.io/_mock/openapi/v1/enterprise/{enterprise_id}/alarmrules/{alarm_id}/' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"enterprise": "796caaf9-a7de-4817-9ffa-39d04bf83de9",
"devices": [
null
],
"groups": [
"string"
],
"name": "string",
"description": "string",
"metric": "string",
"conditions": {
"value": 0.1,
"unit": "string",
"comparator": "string",
"toggle_state": true
},
"action_emails": [
"user@example.com"
],
"actions": [
"string"
],
"alert_channels": [
"string"
],
"created_on": "2019-08-24T14:15:22Z",
"updated_on": "2019-08-24T14:15:22Z",
"is_active": true,
"realert_interval": 0,
"repeat_times": 0,
"trigger_count": 0,
"daily_trigger_count": 0
}'successful operation
Response
{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "enterprise": "796caaf9-a7de-4817-9ffa-39d04bf83de9", "devices": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "device_name": "string", "alias_name": "string" }, "groups": [ "string" ], "name": "string", "description": "string", "metric": "string", "conditions": { "value": 0.1, "unit": "string", "comparator": "string", "toggle_state": true }, "action_emails": [ "user@example.com" ], "actions": [ "string" ], "alert_channels": [ "string" ], "created_on": "2019-08-24T14:15:22Z", "updated_on": "2019-08-24T14:15:22Z", "is_active": true, "realert_interval": 0, "repeat_times": 0, "trigger_count": 0, "daily_trigger_count": 0 }