-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathalarms.http
20 lines (16 loc) · 1.08 KB
/
alarms.http
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
### [Alarms] List alarms (read-only)
GET {{api-server}}/v2/alarms?expansions=Alarm.assetInfo,Alarm.ruleInfo,Alarm.acknowledgeUserInfo HTTP/1.1
X-Api-Key: {{read-only-token}}
### [Alarms] List alarm history (read-only)
GET {{api-server}}/v2/alarms-history?fromDate=2025-03-19T09:00:00.000Z&toDate=2025-03-19T23:00:00.000Z&expansions=Alarm.assetInfo,Alarm.ruleInfo,Alarm.acknowledgeUserInfo HTTP/1.1
X-Api-Key: {{read-only-token}}
### [Alarms] List alarms with tag filter and date filters (read-only)
GET {{api-server}}/v2/alarms?projectId=99&fromDate=2025-01-01T09:00:00.000Z&toDate=2025-12-31T23:00:00.000Z&tags=critical,warning&expansions=Alarm.assetInfo HTTP/1.1
X-Api-Key: {{read-only-token}}
### [Alarms] Acknowledge an alarm (using PATCH) with additional parameters (read–write)
PATCH {{api-server}}/v2/alarms/4618?acknowledged=true&acknowledgeText=Operator%20has%20checked%20the%20issue HTTP/1.1
X-Api-Key: {{read-write-token}}
Content-Type: application/json
### [Alarms] Mark an alarm as gone (DELETE) (read–write)
DELETE {{api-server}}/v2/alarms/4618 HTTP/1.1
X-Api-Key: {{read-write-token}}