About EnOS Alert Engine APIs¶
Through the Alert Engine, you can define the alert content, type, severity level, and trigger conditions for the assets in the organization, and receive asset alert reporting and processing to achieve real-time status monitoring and fault analysis of the assets. For details on Alert Engine, see Alert Engine Overview.
The APIs in the Alert Engine are some of the APIs EnOS provides that cover the core business processes of the system. For more information on EnOS APIs and the different APIs that EnOS provides, see About EnOS API.
For more information on how to invoke EnOS APIs, see Get Started with EnOS API.
Refer to the table below for the list of Alert Service APIs, and whether they can be used by 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¶
The APIs here can be used for both the old and new alert versions in the EnOS Management Console.
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 |
√ |
√ |
API Editions¶
The following table lists the API services included in Alert Engine Enterprise and Lightweight editions.
Category |
Enterprise |
Lightweight |
---|---|---|
√ |
√ |
|
√ |
√ |
|
√ |
√ |
|
√ |
√ |
|
√ |
√ |
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 |