About EnOS Alert Engine APIs¶
The EnOS Alert Service provides Alert Engine capabilities for O&M teams to detect anomalies early and respond to failures quickly by defining, receiving, and processing alerts for organization assets, satisfying business needs such as real-time monitoring and asset fault analysis.
Through the Alarm Engine API, application developers can create, delete, search, and update alarm levels, alarm types, and alarm rules, as well as manage and retrieve alarm content. It also supports the creation, querying, and closing of historical alarm records, along with updating alarm tags. For the complete lists of interfaces and functional descriptions of the Alert Engine API, see API List.
Prerequisites¶
For more information on how to invoke EnOS APIs, see Get Started with EnOS API.
API List
¶
The following table describes the operations you can perform by calling the Alert Engine API, including the corresponding URLs for each operation and their applicability to EnOS Cloud and EnOS Edge.
Alert Severity¶
Operation Name |
Description |
URL |
EnOS Cloud |
EnOS Edge |
---|---|---|---|---|
Create a new alert severity |
/event-service/v2.1/alert-severities?action=create |
√ |
× |
|
Delete an alert severity |
/event-service/v2.1/alert-severities?action=delete |
√ |
× |
|
Search for alert severity based on the search criteria |
/event-service/v2.1/alert-severities?action=search |
√ |
√ |
|
Update an alert severity |
/event-service/v2.1/alert-severities?action=update |
√ |
× |
Alert Type¶
Operation Name |
Description |
URL |
EnOS Cloud |
EnOS Edge |
---|---|---|---|---|
Create a new alert type |
/event-service/v2.1/alert-types?action=create |
√ |
× |
|
Delete an alert type |
/event-service/v2.1/alert-types?action=delete |
√ |
× |
|
Search for alert types based on the search criteria |
/event-service/v2.1/alert-types?action=search |
√ |
√ |
|
Update an alert type |
/event-service/v2.1/alert-types?action=update |
√ |
× |
Alert Content¶
Operation Name |
Description |
URL |
EnOS Cloud |
EnOS Edge |
---|---|---|---|---|
Create a new alert content |
/event-service/v2.1/alert-contents?action=create |
√ |
× |
|
Delete an alert content |
/event-service/v2.1/alert-contents?action=delete |
√ |
× |
|
Get an alert content based on |
/event-service/v2.1/alert-contents?action=get |
√ |
√ |
|
Search for alert content based on the search criteria |
/event-service/v2.1/alert-contents?action=search |
√ |
√ |
|
Update an alert content |
/event-service/v2.1/alert-contents?action=update |
√ |
× |
Alert Rule¶
Operation Name |
Description |
URL |
EnOS Cloud |
EnOS Edge |
---|---|---|---|---|
Create an alert rule |
/event-service/v2.1/alert-rules?action=create |
√ |
× |
|
Delete an alert rule |
/event-service/v2.1/alert-rules?action=delete |
√ |
× |
|
Search for alert rules based on the search criteria |
/event-service/v2.1/alert-rules?action=search |
√ |
√ |
|
Update an alert rule |
/event-service/v2.1/alert-rules?action=update |
√ |
× |
Alert Records¶
History & Active Alert Records¶
Operation Name |
Description |
URL |
EnOS Cloud |
EnOS Edge |
---|---|---|---|---|
Create an alert |
/alert-service/v2.1/alerts?action=create |
√ |
√ |
|
Batch create alerts |
/alert-service/v2.1/alerts?action=batchCreate |
√ |
√ |
|
Query active and historical alerts, where the pages of the returned results do not have to be in order |
/alert-service/v2.1/alerts?action=search |
√ |
√ |
|
Query active and historical alerts |
/alert-service/v2.1/alerts?action=scroll |
√ |
√ |
|
Closes the active alert and stores as a history alert |
/alert-service/v2.1/alerts?action=close |
√ |
√ |
Common Error Codes¶
Code |
Message |
Description |
---|---|---|
400 |
Wrong arguments |
Passed in incorrect parameters |
601 |
Duplicate |
Data duplication |
602 |
Business restriction |
Business restrictions |
500 |
Internal error |
Internal service exception |