Create Alert

Create Alert
Request
URI
POST
https://{api_host}//api/alerts
COPY
Request Body
alertsCreateAlertRequest of type(s) application/json
Required
{
    "alertDefId": "string",
    "deviceId": "string",
    "triggers": [
        {
            "userName": "string",
            "valueInt64": "string",
            "timeMs": "string",
            "metric": "string",
            "state": "string",
            "valueBoolean": false,
            "valueString": "string",
            "valueDouble": "number"
        }
    ]
}
string
alertDefId
Optional

alertDefId

string
deviceId
Optional

deviceId

triggers
Optional

triggers

Responses
200
Returns alertsAlertId of type(s) */*
{
    "alertId": "string"
}
string
alertId
Optional

alertId


404

Not Found

Operation doesn't return any data structure