evalink talos
Search…
Send alarms using REST
How to submit alarms to evalink talos programmatically.
To send an alarm via a REST API method, you need to submit the following request:
post
https://talos.evalink.io
/api/alarm-service/alarms
create a simple alarm via the API
Example Request:
1
{
2
"companyId": "<companyId>",
3
"deviceId": "<deviceId>",
4
"alarmCode": "BA",
5
"alarmValue": true,
6
"timestamp": 1629981339172,
7
"alarmZone": "1",
8
"alarmZoneName": "Garage",
9
"partition": "5",
10
"partitionName": "Office Building",
11
"source": "virtual-dc09-receiver",
12
"headers": [
13
{
14
"name": "latitude",
15
"value": "38.8951"
16
},
17
{
18
"name": "longitude",
19
"value": "-77.0364"
20
},
21
{
22
"name": "message",
23
"value": "Some message that is shown in the alarm list"
24
},
25
{
26
"name": "attachment.url",
27
"value": "https://some-url-to-show-the-operator"
28
},
29
{
30
"name": "attachment.image",
31
"value": "https://url-to-some-image"
32
},
33
{
34
"name": "attachment.widget",
35
"value": "src=https://url-to-a-widget-website;height=300px"
36
},
37
{
38
"name": "attachment.talos.video",
39
"value": "/api/storage-service/uploads/{file-id}"
40
},
41
{
42
"name": "attachment.talos.image",
43
"value": "/api/storage-service/uploads/{file-id}"
44
},
45
{
46
"name": "attachment.talos.file",
47
"value": "/api/storage-service/uploads/{file-id}"
48
}
49
]
50
}
Copied!