Create Alert Definition
Request
URI
POST
https://{api_host}//api/alert-definitions
COPY
Request Body
alertsCreateAlertDefinitionRequest of type(s) application/json
Required
{
"cancelCount": 0,
"properties": [
"string"
],
"deviceTemplateIds": [
"string"
],
"name": "string",
"lambda": "string",
"triggerCount": 0,
"alertSeverity": "string",
"isRealTime": false,
"metrics": [
"string"
],
"notificationId": "string",
"deviceId": "string",
"recommendation": "string",
"duration": 0,
"alertTemplate": "string",
"deviceTemplateId": "string",
"notificationDefinitionId": "string",
"description": "string"
}
integer As int32 As int32
cancelCount
Optional
cancelCount
array of string
properties
Optional
properties
array of string
deviceTemplateIds
Optional
deviceTemplateIds
string
name
Optional
name
string
lambda
Optional
lambda
integer As int32 As int32
triggerCount
Optional
triggerCount
boolean As boolean As boolean
isRealTime
Optional
isRealTime
array of string
metrics
Optional
metrics
string
notificationId
Optional
notificationId
string
deviceId
Optional
deviceId
string
recommendation
Optional
recommendation
integer As int32 As int32
duration
Optional
duration
string
deviceTemplateId
Optional
deviceTemplateId
string
notificationDefinitionId
Optional
notificationDefinitionId
string
description
Optional
description
Responses
200
Returns alertsAlertDefinitionId of type(s) */*
{
"alertDefId": "string"
}
string
alertDefId
Optional
alertDefId
404
Not Found
Operation doesn't return any data structure
Alert Definition Service Operations
POST
Create Alert Definition
DELETE
Delete Alert Definition
GET
Get Alert Definition
GET
List Alert Definitions
PUT
Update Alert Definition