Alarms
- Get all alarms
- Get all alarms from a specified ID
- Get alarms for a node
- Get alarms for a node from a specified ID
- Get alarms for a node family
- Get alarms for a node family from a specified ID
- Get all alarm sources
- Get alarm sources for a node
- Get alarm sources for a node family
- Send acknowledge for an alarm
- Send unacknowledge for an alarm
- Send clear for an alarm
- Send comment for an alarm
Get all alarms
Section titled “Get all alarms”Retrieve the 20 most recent alarms.
Definition
Section titled “Definition”GET /api/alarm?source=SOURCE&limit=LIMIT&tags=LISTOFTAGSExample request
Section titled “Example request”curl -X GET "http://127.0.0.1:8080/api/alarm?tags=dev,op" -u admin:PASSWORDExample response
Section titled “Example response”{ "alarms": [ { "alarmId": "top_processes_queue_minor", "alarmType": null, "src": { "nodeId": "df637024-3eca-49ea-b524-2d8e5e83c928", "nodeName": "test@127.0.0.1", "displayName": "test@127.0.0.1", "custom": "alarm", "elarmServer": "wombat" }, "eventTime": 1657795591000, "eventId": "{{1657,795591,885181},-576460752303420510}", "severity": "minor", "probableCause": "An upper boundary of the message queue length of processeshas been reached. Long message queues are often a symptom of a bottleneck and result in the degradation of throughput, with the system eventually running out of memory.", "proposedRepairAction": "If it occurs frequently, you should improve your code to remove the bottleneck. Pro tip: Use Wombat's ETOP like process listing to identify the processes with the largest message queue.", "description": "", "additionalInformation": "\"Top Processes holding messages in their queues \\n <0.84.0>: 2093 msgs. \\n \\t\\t IF: {erlang,apply,2}, CF: {shell,eval_loop,3} \\n\"", "correlatedEvents": "[]", "comments": [], "trend": null, "threshold": null, "state": "new", "ackInfo": null, "rawSrc": "{wo_alarm_source,\"df637024-3eca-49ea-b524-2d8e5e83c928\",'test@127.0.0.1',\n alarm,wombat}" }, {...}, {...} ]}Arguments
Section titled “Arguments”| Argument | Description |
|---|---|
| source | Optional. The src.custom field used for filtering alarms. |
| limit | Optional. Specifies the maximum number of alarms in the response. By default, it is 20. |
| tags | Optional. A comma separated list of tags that overrides the tags set for the user. |
Returns
Section titled “Returns”An array of alarm objects that are tagged with any of the active tags. The value of eventId can be used to retrieve details of specific alarms.
Get all alarms from a specified ID
Section titled “Get all alarms from a specified ID”Retrieve the 20 most recent alarms for a specified event.
Definition
Section titled “Definition”GET /api/alarm/previous/all?eid=EVENT_ID&source=SOURCE&limit=LIMIT&tags=LISTOFTAGSExample request
Section titled “Example request”curl -X GET "http://127.0.0.1:8080/api/alarm/previous/all?eid=%7B1406,873289,745642%7D"Example response
Section titled “Example response”See “Get all alarms”, above.
Arguments
Section titled “Arguments”| Argument | Description |
|---|---|
| eid | Required. The event’s identifier (including curly brackets). |
| source | Optional. The src.custom field used for filtering alarms. |
| limit | Optional. Specifies the maximum number of alarms in the response. By default, it is 20. |
| tags | Optional. A comma separated list of tags that overrides the tags set for the user. |
Returns
Section titled “Returns”See “Get all alarms”, above.
Get alarms for a node
Section titled “Get alarms for a node”Retrieve the 20 most recent alarms for a specified node.
Definition
Section titled “Definition”GET /api/alarm/node/NODE_ID?source=SOURCE&limit=LIMIT&tags=LISTOFTAGSExample request
Section titled “Example request”curl -X GET "http://127.0.0.1:8080/api/alarm/node/3fa56f92-3195-401b-93a8-7bc43e54d66f" \ -u admin:PASSWORDExample response
Section titled “Example response”See “Get all alarms”, above.
Arguments
Section titled “Arguments”| Argument | Description |
|---|---|
| node id | Required. The node’s identifier |
| source | Optional. The src.custom field used for filtering alarms. |
| limit | Optional. Specifies the maximum number of alarms in the response. By default, it is 20. |
| tags | Optional. A comma separated list of tags that overrides the tags set for the user. |
Returns
Section titled “Returns”See “Get all alarms”, above.
Get alarms for a node from a specified ID
Section titled “Get alarms for a node from a specified ID”Retrieve the 20 most recent alarms for a specified event on a node.
Definition
Section titled “Definition”GET /api/alarm/previous/node/NODE_ID?eid=EVENT_ID&source=SOURCE&limit=LIMIT&tags=LISTOFTAGSExample request
Section titled “Example request”curl -X GET "http://127.0.0.1:8080/api/alarm/previous/node/5b16ec55-56a3-4430-b174-c996897ccd14?eid=%7B1406,873289,745642%7D"Example response
Section titled “Example response”See “Get all alarms”, above.
Arguments
Section titled “Arguments”| Argument | Description |
|---|---|
| node id | Required. The node’s identifier |
| eid | Required. The event’s identifier (including curly brackets). |
| source | Optional. The src.custom field used for filtering alarms. |
| limit | Optional. Specifies the maximum number of alarms in the response. By default, it is 20. |
| tags | Optional. A comma separated list of tags that overrides the tags set for the user. |
Returns
Section titled “Returns”See “Get all alarms”, above.
Get alarms for a node family
Section titled “Get alarms for a node family”Retrieve the 20 most recent alarms for all the nodes in a specified node family.
Definition
Section titled “Definition”GET /api/alarm/node-family/NODE_FAMILY_ID?source=SOURCE&limit=LIMIT&tags=LISTOFTAGSExample request
Section titled “Example request”curl -X GET "http://127.0.0.1:8080/api/alarm/node-family/93be4f01-dae6-49b0-9608-4552f841a720" \ -u admin:PASSWORDExample response
Section titled “Example response”See “Get all alarms”, above.
Arguments
Section titled “Arguments”| Argument | Description |
|---|---|
| node family id | Required. The node family’s identifier |
| source | Optional. The src.custom field used for filtering alarms. |
| limit | Optional. Specifies the maximum number of alarms in the response. By default, it is 20. |
| tags | Optional. A comma separated list of tags that overrides the tags set for the user. |
Returns
Section titled “Returns”See “Get all alarms”, above.
Get alarms for a node family from a specified ID
Section titled “Get alarms for a node family from a specified ID”Retrieve the 20 most recent alarms for a specified event on the nodes in a node family.
Definition
Section titled “Definition”GET /api/alarm/previous/node-family/NODE_FAMILY_ID?eid=EVENT_ID&source=SOURCE&limit=LIMIT&tags=LISTOFTAGSExample request
Section titled “Example request”curl -X GET "http://127.0.0.1:8080/api/alarm/previous/node-family/93be4f01-dae6-49b0-9608-4552f841a720?eid=%7B1406,873289,745642%7D"Example response
Section titled “Example response”See “Get all alarms”, above.
Arguments
Section titled “Arguments”| Argument | Description |
|---|---|
| node family id | Required. The node family’s identifier |
| eid | Required. The event’s identifier (including curly brackets). |
| source | Optional. The src.custom field used for filtering alarms. |
| limit | Optional. Specifies the maximum number of alarms in the response. By default, it is 20. |
| tags | Optional. A comma separated list of tags that overrides the tags set for the user. |
Returns
Section titled “Returns”See “Get all alarms”, above.
Get all alarm sources
Section titled “Get all alarm sources”Retrieve all alarm sources that can be used for filtering alarms.
Definition
Section titled “Definition”GET /api/alarm/sourceExample request
Section titled “Example request”curl -X GET "http://127.0.0.1:8080/api/alarm/source" -u admin:PASSWORDExample response
Section titled “Example response”{ "sources" : [ "node_level" ]}Arguments
Section titled “Arguments”None.
Returns
Section titled “Returns”An array of alarm sources. These are the same values that may turn up
in the src.custom field of alarm objects.
Limitations
Section titled “Limitations”Except for the default "node_level" source in the current version of
WombatOAM alarm sources are not returned if they don’t have any active
alarms.
Get alarm sources for a node
Section titled “Get alarm sources for a node”Retrieve alarm sources for a node that can be used for filtering alarms.
Definition
Section titled “Definition”GET /api/alarm/source/node/NODE_IDExample request
Section titled “Example request”curl -X GET "http://127.0.0.1:8080/api/alarm/source/node/5b16ec55-56a3-4430-b174-c996897ccd14" \ -u admin:PASSWORDExample response
Section titled “Example response”See “Get all alarm sources” above.
Arguments
Section titled “Arguments”| Argument | Description |
|---|---|
| node id | Required. The node’s identifier |
Returns
Section titled “Returns”See “Get all alarm sources” above.
Limitations
Section titled “Limitations”See “Get all alarm sources” above.
Get alarm sources for a node family
Section titled “Get alarm sources for a node family”Retrieve alarm sources for a node family that can be used for filtering alarms.
Definition
Section titled “Definition”GET /api/alarm/source/node-family/NODE_FAMILY_IDExample request
Section titled “Example request”curl -X GET "http://127.0.0.1:8080/api/alarm/source/node-family/93be4f01-dae6-49b0-9608-4552f841a720" \ -u admin:PASSWORDExample response
Section titled “Example response”See “Get all alarm sources” above.
Arguments
Section titled “Arguments”| Argument | Description |
|---|---|
| node family id | Required. The node family’s identifier |
Returns
Section titled “Returns”See “Get all alarm sources” above.
Limitations
Section titled “Limitations”See “Get all alarm sources” above.
Send acknowledge for an alarm
Section titled “Send acknowledge for an alarm”Provide acknowledgement of an alarm.
Definition
Section titled “Definition”POST /api/alarm/acknowledge{ "userId": "USER_ID", "alarmId": "ALARM_ID", "alarmSrc": "RAW_SRC"}Example request
Section titled “Example request”curl -X POST "http://127.0.0.1:8080/api/alarm/acknowledge" \ -H "Content-Type: application/json" \ -d "{\"userId\":\"administrator\", \"alarmId\":\"system_memory_high_watermark\", \"alarmSrc\":\"{wo_alarm_source,\\\"5b16ec55-56a3-4430-b174-c996897ccd14\\\",'wo_test_2@127.0.0.1',\\n node_level,wombat}\"}" \ -u admin:PASSWORDExample response
Section titled “Example response”{}Arguments
Section titled “Arguments”| Argument | Description |
|---|---|
| userId | Required. The identifier of the user sending the acknowledgement |
| alarmId | Required. The value of alarmId in the alarm object. |
| alarmSrc | Required. The value of rawSrc in the alarm object. |
Returns
Section titled “Returns”An empty object. If successful, the HTTP response is 200 OK. In the alarm object, state changes to “acknowledged”, and ackInfo is updated with user and time.
Send unacknowledge for an alarm
Section titled “Send unacknowledge for an alarm”Remove the acknowledgement for an alarm, so that it is shown as new.
Definition
Section titled “Definition”POST /api/alarm/unacknowledge{ "userId": "USER_ID", "alarmId": "ALARM_ID", "alarmSrc": "RAW_SRC"}Example request
Section titled “Example request”curl -X POST "http://127.0.0.1:8080/api/alarm/unacknowledge" \ -H "Content-Type: application/json" \ -d "{\"userId\":\"administrator1\",\"alarmId\":\"system_memory_high_watermark\",\"alarmSrc\":\"{wo_alarm_source,\\\"5b16ec55-56a3-4430-b174-c996897ccd14\\\",'wo_test_2@127.0.0.1',\\n node_level,wombat \ -u admin:PASSWORDExample response
Section titled “Example response”{}Arguments
Section titled “Arguments”| Argument | Description |
|---|---|
| userId | Required. The identifier of the user sending the acknowledgement |
| alarmId | Required. The value of alarmId in the alarm object. |
| alarmSrc | Required. The value of rawSrc in the alarm object. |
Returns
Section titled “Returns”An empty object. If successful, the HTTP response is 200 OK. In the alarm object, state changes to “new”.
Send clear for an alarm
Section titled “Send clear for an alarm”Clear an alarm, removing it from the list of alarms.
Definition
Section titled “Definition”POST /api/alarm/clear{ "userId": "USER_ID", "alarmId": "ALARM_ID", "alarmSrc": "RAW_SRC"}Example request
Section titled “Example request”curl -X POST "http://127.0.0.1:8080/api/alarm/clear" \ -H "Content-Type: application/json" \ -d "{\"userId\":\"administrator1\",\"alarmId\":\"system_memory_high_watermark\",\"alarmSrc\":\"{wo_alarm_source,\\\"5b16ec55-56a3-4430-b174-c996897ccd14\\\",'wo_test_2@127.0.0.1',\\n node_level,wombat}\"}" \ -u admin:PASSWORDExample response
Section titled “Example response”{}Arguments
Section titled “Arguments”| Argument | Description |
|---|---|
| userId | Required. The identifier of the user sending the acknowledgement |
| alarmId | Required. The value of alarmId in the alarm object. |
| alarmSrc | Required. The value of rawSrc in the alarm object. |
Returns
Section titled “Returns”An empty object. If successful, the HTTP response is 200 OK.
Send comment for an alarm
Section titled “Send comment for an alarm”Add a comment to the details of a specified alarm.
Definition
Section titled “Definition”POST /api/alarm/comment{ "userId": "USER_ID", "alarmId": "ALARM_ID", "alarmSrc": "RAW_SRC", "comment": "MESSAGE"}Example request
Section titled “Example request”curl -X POST "http://127.0.0.1:8080/api/alarm/comment" \ -H "Content-Type: application/json" \ -d "{\"userId\": \"administrator\", \"alarmId\": \"system_memory_high_watermark\", \"alarmSrc\": \"{wo_alarm_source,\\\"298548c9-f5f8-464d-9a2c-07d494c3ecd4\\\",'wombat@127.0.0.1',\\n node_level,wombat}\", \"comment\": \"Support has been notified.\"}" \ -u admin:PASSWORDExample response
Section titled “Example response”{}Arguments
Section titled “Arguments”| Argument | Description |
|---|---|
| userId | Required. The identifier of the user sending the acknowledgement |
| alarmId | Required. The value of alarmId in the alarm object. |
| alarmSrc | Required. The value of rawSrc in the alarm object. |
| comment | Required. The text that will be included as a comment. |
Returns
Section titled “Returns”An empty object. In the alarm object, an item is added to comments, with the properties user, time, and text.
