Get details of the alert

get

/serviceapi/eventServices/alerts/{alertId}

Retrieves the details of the alert identified by id.

Request

Supported Media Types
Path Parameters
Back to Top

Response

Supported Media Types

200 Response

query was successful
Body ()
Root Schema : AlertDetails
Type: object

The alert details has various properties about an alert managed in Oracle Management Cloud. An alert represents a series of events that occur over time. An alert is uniquely identified by its id. The alert is initially created when an event with a non CLEAR severity is first detected over some aspect of the associated entity. The alert's severity changes over time based on newer events. The alert is finally cleared based on an event with CLEAR severity.

Show Source

400 Response

The alert id is invalid
Body ()
Root Schema : InvalidRequest
Type: object

When invalid alert API request is received, alert system returns this response.

Show Source

500 Response

encountered unhandled exception
Body ()
Root Schema : UnhandledException
Type: object

When alert system runs into unhandled exception, it returns this response.

Show Source
Back to Top

Examples

Get details of the alert

curl -u ${OMC_USERNAME}:${PASSWORD} -X GET "https://serverurl/serviceapi/eventServices/alerts/62965132339213727047162539738389170623"

The response might look like the following:

       {
          "alertId": "62965132339213727047162539738389170623",
          "entityId": "87B65F77DE4F200AE5374A2D38B5E31F",
          "entityName": "myhost.mydomain.com",
          "entityDisplayName": "my host",
          "entityType": "omc_host_linux",
          "entityTypeDisplayName": "Host (Linux)",
          "eventType": "omc_metric_alert",
          "eventTypeDisplayName": "Fixed Threshold",
          "message": "Logical Memory Utilization for myhost.mydomain.com is 92.78 %; it is greater than expected value of 80 % for 10 minutes",
          "severity": "WARNING",
          "canonicalLink": "serviceapi/eventServices/alerts/62965132339213727047162539738389170623",
          "serviceType": "Monitoring",
          "open": true,
          "isAutoClose": true,
          "eventName": "HOST_Memory:logicalMemoryUtilizationPercent",
          "imported": false,
          "hasTicket": false,
          "creationTime": "2020-09-01T08:40:02.946Z",
          "lastUpdatedTime": "2020-09-09T17:13:08.463Z",
          "firstEventTime": "2020-09-01T08:38:55.472Z",
          "latestEventTime": "2020-09-01T08:38:55.472Z"
       }
Back to Top