You must specify either measurepointId or deviceStatus as the trigger of the alert.
Name
Mandatory/Optional
Data Type
Description
ruleId
Mandatory
String
The alert rule ID.
ruleDesc
Mandatory
StringI18n
Specify the alert rule’s description in its respective locale’s language. For more details on the structure and locales supported, see Internationalized name struct.
The measurement point ID. You must specify either measurepointId or deviceStatus as the trigger of the alert. How to get pointId>>
deviceStatus
Optional
String
The device status, such as “offline”. You must specify either measurepointId or deviceStatus as the trigger of the alert. For more details, see Setting State-based Alerts.
condition
Mandatory
String
The query expression. For example, “${temperature} = 19” indicates that the value of the measurement point “temperature” is 19. A slash “/” is used to express the hierarchical relationship, for which only one downward layer is supported for now. For example, “${pointA/att1} = 18” indicates the “att1” attribute value of the measurement point “A” is 18. How to use expression>>
severityId
Mandatory
String
The alert severity ID.
contentId
Mandatory
String
The alert content ID.
tags
Optional
Map
The user-defined tags. (The Key and Value are of String type.) For details, see How to use tags.
isEnabled
Optional
Boolean
true (default) = enables the alert rule
false = does not enable the alert rule
isRoot
Optional
Boolean
true = a root alert
false (default) = not a root alert
scope
Mandatory
Array of AssetNode Structs
Uses the AssetNode struct to indicate the scope of the asset to which the alert applies to. For details, see AssetNode Struct.
triggeringDelayTimer
Optional
Integer
The amount of time to delay triggering the alert. The unit is seconds with a range between [60 - 10800]. The alert will only be triggered when an anomaly that matches the alert rule occurs and does not return to normal within the set time. To trigger the alert immediately, set the time to 0. For more information, see Tutorial: Setting Alert Triggering Delay Timer.