Alarm API
Jan 1 2022 at 12:00 AM
Alarm API
Alarm API is responsible for creating and maintaining a list of “live” alarms. It also provides live, historical, and statistical data relating to said alarms.
Alarms are added when an alarm entity is raised via a raise action on a trigger entity. Alarms are removed when an alarm entity is deactivated via a deactivate action on a trigger entity.
Prerequisites
To use this service you will first need to create a user in portal, create an alarm entity and link it to a relevant trigger entity.
API calls within Alarm API
Alarm
API Calls
GetList
POST
Permission
alarm:get
Accessible
Tenant Account Only Refer to the response and accessiblity information for more information.
URL
https://{tenantDomain}/{accountPath}/_apis/dapi/v1/Alarm/GetList
https://iotnxtinternal.commander.io/default/_apis/dapi/v1/Alarm/GetList
URL Params
None
Data Params
{
"clientId":"string"
}
Success Response
Refer to the response and accessiblity information for more information.
Error Response
Refer to the response and accessiblity information for more information.
Notes
None
Raise
POST
Permission
alarm:raise
Accessible
Tenant Account Only Refer to the response and accessiblity information for more information.
URL
https://{tenantDomain}/{accountPath}/_apis/dapi/v1/Alarm/Raise
https://iotnxtinternal.commander.io/default/_apis/dapi/v1/Alarm/Raise
URL Params
None
Data Params
{
"alarmId": "string",
"collectionKey": "string",
"customDescription": "string",
"alarmDate": DateTime,
"triggerId": "string"
}
Success Response
Refer to the response and accessiblity information for more information.
Error Response
Refer to the response and accessiblity information for more information.
Notes
None
Acknowledge
Acknowledge an alarm. If it is not an active alarm it will also be removed from the alarm list.
POST
Permission
alarm:acknowledge
Accessible
Tenant Account Only Refer to the response and accessiblity information for more information.
URL
https://{tenantDomain}/{accountPath}/_apis/dapi/v1/Alarm/Acknowledge
https://iotnxtinternal.commander.io/default/_apis/dapi/v1/Alarm/Acknowledge
URL Params
None
Data Params
{
"clientId":"string"
}
Success Response
Refer to the response and accessiblity information for more information.
Error Response
Refer to the response and accessiblity information for more information.
Notes
None
BatchAcknowledge
Acknowledge numerous alarms based on filter criteria that is sent to it. If it is not an active alarm it will also be removed from the alarm list.
POST
Permission
alarm:get alarm:acknowledge
Accessible
Tenant Account Only Refer to the response and accessiblity information for more information.
URL
https://{tenantDomain}/{accountPath}/_apis/dapi/v1/Alarm/BatchAcknowledge
https://iotnxtinternal.commander.io/default/_apis/dapi/v1/Alarm/BatchAcknowledge
URL Params
None
Data Params
{
"clientId":"string"
}
Success Response
Refer to the response and accessiblity information for more information.
Error Response
Refer to the response and accessiblity information for more information.
Notes
None
GetAuditLog
GET
Permission
alarm.audit_log:get
Accessible
Tenant Account Only Refer to the response and accessiblity information for more information.
URL
https://{tenantDomain}/{accountPath}/_apis/dapi/v1/Alarm/GetAuditLog
https://iotnxtinternal.commander.io/default/_apis/dapi/v1/Alarm/GetAuditLog
URL Params
None
Data Params
{
"clientId":"string"
}
Success Response
Refer to the response and accessiblity information for more information.
Error Response
Refer to the response and accessiblity information for more information.
Notes
None
GetNext
GET
Permission
alarm:get
Accessible
Tenant Account Only Refer to the response and accessiblity information for more information.
URL
https://{tenantDomain}/{accountPath}/_apis/dapi/v1/Alarm/GetNext
https://iotnxtinternal.commander.io/default/_apis/dapi/v1/Alarm/GetNext
URL Params
None
Data Params
{
"filterByAlarmType": "string",
"filterBySiteEntityId": "string",
"filterByObjectEntityId": "string",
"filterVisible": "boolean",
"batchSize": "int",
"thresholdDate": "DateTime"
}
Success Response
Refer to the response and accessiblity information for more information.
Error Response
Refer to the response and accessiblity information for more information.
Notes
None
GetGroupCount
GET
Permission
alarm:get
Accessible
Tenant Account Only Refer to the response and accessiblity information for more information.
URL
https://{tenantDomain}/{accountPath}/_apis/dapi/v1/Alarm/GetGroupCount
https://iotnxtinternal.commander.io/default/_apis/dapi/v1/Alarm/GetGroupCount
URL Params
None
Data Params
{
"filterByAlarmType": "string",
"filterBySiteEntityId": "string",
"filterByObjectEntityId": "string",
"filterByVisibility": "boolean",
"filterByPriority": ["High", "Medium", "Low"],
"groupBy": "GroupBy",
"filterByState": "State"
}
Success Response
Refer to the response and accessiblity information for more information.
Error Response
Refer to the response and accessiblity information for more information.
Notes
None
GetGroupedListNext
GET
Permission
alarm:get
Accessible
Tenant Account Only Refer to the response and accessiblity information for more information.
URL
https://{tenantDomain}/{accountPath}/_apis/dapi/v1/Alarm/GetGroupedListNext
https://iotnxtinternal.commander.io/default/_apis/dapi/v1/Alarm/GetGroupedListNext
URL Params
None
Data Params
{
"filterByAlarmType": "string",
"filterBySiteEntityId": "string",
"filterByObjectEntityId": "string",
"filterByVisibility": "boolean",
"filterByPriority": ["High", "Medium", "Low"],
"groupBy": "GroupBy",
"activeGroupList": "string",
"pageSize": "int",
"requestedPage": "int",
"filterByState": "State"
}
Success Response
Refer to the response and accessiblity information for more information.
Error Response
Refer to the response and accessiblity information for more information.
Notes
None
Subscribe
SIGNAL R
Permission
alarm:get
Accessible
Tenant Account Only Refer to the response and accessiblity information for more information.
URL
https://{tenantDomain}/{accountPath}/_apis/dapi/v1/Alarm/Subscribe
https://iotnxtinternal.commander.io/default/_apis/dapi/v1/Alarm/Subscribe
URL Params
None
Data Params
{
"filterByAlarmType": "string",
"filterBySiteEntityId": "string",
"filterByObjectEntityId": "string"
}
Success Response
Refer to the response and accessiblity information for more information.
Error Response
Refer to the response and accessiblity information for more information.
Notes
None
Unsubscribe
SIGNAL R
Permission
alarm:get
Accessible
Tenant Account Only Refer to the response and accessiblity information for more information.
URL
https://{tenantDomain}/{accountPath}/_apis/dapi/v1/Alarm/Unsubscribe
https://iotnxtinternal.commander.io/default/_apis/dapi/v1/Alarm/Unsubscribe
URL Params
None
Data Params
{
"filterByAlarmType": "string",
"filterBySiteEntityId": "string",
"filterByObjectEntityId": "string"
}
Success Response
Refer to the response and accessiblity information for more information.
Error Response
Refer to the response and accessiblity information for more information.
Notes
None
Deactivate
POST
Permission
alarm:deactivate
Accessible
Tenant Account Only Refer to the response and accessiblity information for more information.
URL
https://{tenantDomain}/{accountPath}/_apis/dapi/v1/Alarm/Deactivate
https://iotnxtinternal.commander.io/default/_apis/dapi/v1/Alarm/Deactivate
URL Params
None
Data Params
{
"alarmId": "string",
"collectionKey": "string"
}
Success Response
Refer to the response and accessiblity information for more information.
Error Response
Refer to the response and accessiblity information for more information.
Notes
None
GetAlarmStatistics
GET
Permission
alarm.statistics:get
Accessible
Tenant Account Only Refer to the response and accessiblity information for more information.
URL
https://{tenantDomain}/{accountPath}/_apis/dapi/v1/Alarm/GetAlarmStatistics
https://iotnxtinternal.commander.io/default/_apis/dapi/v1/Alarm/GetAlarmStatistics
URL Params
None
Data Params
{
"filterObjectIdPathStartsWith": "string",
"filterVisible": "boolean"
}
Success Response
Refer to the response and accessiblity information for more information.
Error Response
Refer to the response and accessiblity information for more information.
Notes
None
GetHistoricalAlarmData
GET
Permission
alarm.historical_alarm_data:get
Accessible
Tenant Account Only Refer to the response and accessiblity information for more information.
URL
https://{tenantDomain}/{accountPath}/_apis/dapi/v1/Alarm/GetHistoricalAlarmData
https://iotnxtinternal.commander.io/default/_apis/dapi/v1/Alarm/GetHistoricalAlarmData
URL Params
None
Data Params
{
"startDate": "DateTime",
"endDate": "DateTime",
"desc": "string",
"type": "string",
"priorities": ["High", "Medium", "Low"],
"rowLimit": "int",
"entityId": "string",
"aggregate": "boolean",
"offset": "TimeSpan",
"export": "boolean"
}
Success Response
Refer to the response and accessiblity information for more information.
Error Response
Refer to the response and accessiblity information for more information.
Notes
None
Versioning
The version below may not be the same version deployed to your tenant, therefore a version mismatch can occur.
You can access your specific Open API documentation by going to:
https://{your-tenant-domain}/{your-account-path}/_apis/alarm-api/swagger/index.html
Example: https://iotnxtinternal.commander.io/default/_apis/alarm-api/swagger/index.html