evalink talos
Search
⌃K

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:
{
"companyId": "<companyId>",
"deviceId": "<deviceId>",
"alarmCode": "BA",
"alarmValue": true,
"timestamp": 1629981339172,
"alarmZone": "1",
"alarmZoneName": "Garage",
"partition": "5",
"partitionName": "Office Building",
"source": "virtual-dc09-receiver",
"headers": [
{
"name": "latitude",
"value": "38.8951"
},
{
"name": "longitude",
"value": "-77.0364"
},
{
"name": "message",
"value": "Some message that is shown in the alarm list"
},
{
"name": "attachment.url",
"value": "https://some-url-to-show-the-operator"
},
{
"name": "attachment.image",
"value": "https://url-to-some-image"
},
{
"name": "attachment.widget",
"value": "src=https://url-to-a-widget-website;height=300px"
},
{
"name": "attachment.talos.video",
"value": "/api/storage-service/uploads/{file-id}"
},
{
"name": "attachment.talos.image",
"value": "/api/storage-service/uploads/{file-id}"
},
{
"name": "attachment.talos.file",
"value": "/api/storage-service/uploads/{file-id}"
}
]
}