Conduit Alert provides a full set of alert/alarm information. Best used to register alarms and update alarms in other systems.
SECURITY NOTE: Conduit Alert uses GET method so request data forms part of the URL. This means your security token could potentially be Stored in browser history or in web server logs.
HTTP Method
GET Request
Default URL:
https://api.alphax.cloud/conduitAlert?token=xxxxxxxxxxxxxxxxxxxx
Important Note: When utilizing the default URL above, the API will fetch All alerts assigned to the entity associated with the token.
Parameters
|
Parameter |
Description |
Input |
Required |
|---|---|---|---|
|
token |
The unique security token for each user. This is available from the User window in AlphaX. |
String |
Required |
|
id |
The alert ID If not defined, you will get all alerts assigned to the entity associated with the token. |
String |
Optional |
|
siteid |
The id of Entity(Heirarchy). You will get information of all alerts that assigned to the site and its sub sites. If not defined, you will get all alerts assigned to the entity associated with the token. |
String |
Optiona |
Output
[
...,
{
"type": "alert",
"name": "Min Alert Test 001",
"alertId": "66a874ab9c14170adf0421b2",
"siteid": "6644803e41b6e774bc01a1c2",
"siteName": "TEST",
"conditionalStatus": {
"status": "auto",
"timeRange": "16-19",
"weekdays": {
"monday": true,
"tuesday": true,
"wednesday": true,
"thursday": true,
"friday": true,
"saturday": false,
"sunday": false
},
"months": {
"jan": true,
"feb": false,
"mar": false,
"apr": false,
"may": false,
"jun": false,
"jul": false,
"aug": false,
"sep": false,
"oct": false,
"nov": false,
"dec": false
}
},
"alertStatus": "inactive",
"conditions": [
{
"label": "<10",
"limit": 10,
"condition": "below"
},
{
"label": "Offline",
"limit": null,
"condition": "offline"
}
],
"sensors": [
{
"netid": "66a874ac9c14170adf0421b4",
"chid": "1",
"lastTriggered": 1722317100,
"status": false,
"alertedConds": []
},
{
"netid": "Mozart-Test-001",
"chid": "1",
"lastTriggered": 1722317461,
"status": false,
"alertedConds": []
},
{
"netid": "Mozart-Test-001",
"chid": "2",
"lastTriggered": 1722830028,
"status": true,
"alertedConds": [
{
"label": "<10",
"limit": 10,
"condition": "below"
}
]
},
{
"netid": "Mozart-Test-001",
"chid": "3",
"lastTriggered": 1722317163,
"status": false,
"alertedConds": []
}
]
},
...
]Definition:
-
Historical: Each record saved in database individually. Can not be manually changed in AlphaX platform.
-
Live: The data from current record. All of them were from one same record in database. Can be changed by editing fields in AlphaX platform.
|
Output Key |
Description |
Data Type |
|---|---|---|
|
|
Type of the record |
Historical |
|
|
Name of this Alert |
Live |
|
|
ID of this Alert |
Historical |
|
|
Site ID of this Alert |
Live |
|
|
Site Name of this Alert |
Live |
|
|
Active Condition of this Alert. See Detail below. |
Live |
|
|
Active Condition of this Alert. See Detail below. |
Live |
|
|
Alarm Conditions of this Alert. See Detail below. |
Live |
|
|
Sensors associated with this Alert. See Detail below. |
Live |
Output Key: conditionalStatus & alertStatus
-
If
conditionalStatus.statusisauto, the alert will be actived/enabled duringconditionalStatus.weekdays,conditionalStatus.monthsandconditionalStatus.timeRange. In the example above, the alert is actived/enabled in January weekdays from 16:00 to 19:00. -
If
conditionalStatus.statusismanual, the alert will be actived/enabled if thealertStatusisactive.
Output Key: conditions
|
Output Key |
Description |
Data Type |
|---|---|---|
|
|
Label of this Condition |
Live |
|
|
Limit/value of this Condition |
Live |
|
|
Condition |
Live |
-
Values of condition
|
Value |
Alert will be Triggered when: |
|---|---|
|
|
The sensor value below |
|
|
The sensor value equal |
|
|
The sensor value above |
|
|
The sensor is offline |
|
|
The sensor is online |
|
|
The sensor receives error code |
Output Key: sensors
|
Output Key |
Description |
Data Type |
|---|---|---|
|
|
Network ID of this Sensor |
Live |
|
|
Channel ID of this Sensor |
Live |
|
|
Date of this Sensor last triggered within this Alert in number. 10 Digits |
Historical |
|
|
Alarm status of this Sensor within this Alert If If |
Historical |
|
|
Last triggered condition |
Historical |
Examples
Get Information of All Alerts
https://api.alphax.cloud/conduitAlert?token=xxxxxxxxxxxxxxxxxxxxxxReturns information of all alerts assigned to the entity associated with the token.
Get Information of An Alert
https://api.alphax.cloud/conduitAlert?token=xxxxxxxxxxxxxxxxxxxxxx&id=66xxxc14xxxb2Returns information of the Alert: 66xxxc14xxxb2