Get details of the alert
/serviceapi/eventServices/alerts/{alertId}
Retrieves the details of the alert identified by id.
Request
- application/json
-
alertId: string
The id of the alert
Response
- application/json
200 Response
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.
-
alertId:
string
The id of the alertExample:
62965132339213727047162539738389170623
-
canonicalLink(optional):
string
The link to get this alert summaryExample:
/serviceapi/eventServices/alerts/62965132339213727047162539738389170623
-
clearLink(optional):
string
The link to clear this alert. It is populated when isAutoClose property is false for the alertExample:
/serviceapi/eventServices/alerts/62965132339213727047162539738389170623
-
creationTime:
string
The creation time (in UTC) of this alertExample:
2020-09-02T19:41:53.281Z
-
entityId(optional):
string
The id of the associated entityExample:
FCF117D21649E34D141B0A160F28C494
-
entityName(optional):
string
The display name of the associated entityExample:
myhost.mydomain.com
-
entityType(optional):
string
The entity type of the associated entityExample:
omc_host_linux
-
entityTypeDisplayName(optional):
string
The entity type display name of the associated entityExample:
Host (Linux)
-
eventName(optional):
string
The name of the event associated with this alertExample:
HOST_Memory:logicalMemoryUtilizationPercent
-
eventType:
string
The event type of the alertExample:
omc_metric_alert
-
eventTypeDisplayName(optional):
string
The display name of the event type for the alertExample:
Fixed Threshold
-
firstEventTime:
string
The time (in UTC) of the first event associated with this alertExample:
2020-09-02T19:41:47.000Z
-
hasTicket(optional):
boolean
True if the alert is associated with a ticketExample:
true
-
imported(optional):
boolean
False if the alert was detected by Oracle Management Cloud. True if was uploaded from an external system, such as Oracle Enterprise Manager.Example:
false
-
isAutoClose:
boolean
True if the system can detect and update clearing of the alertExample:
true
-
lastUpdatedTime:
string
The last time (in UTC) this alert was updatedExample:
2020-09-02T19:51:56.032Z
-
latestEventTime:
string
The time (in UTC) of the latest event associated with this alertExample:
2020-09-02T19:41:47.000Z
-
message:
string
The alert messageExample:
Logical Memory Utilization for myhost.mydomain.com is 92.78 %; it is greater than expected value of 80 % for 10 minutes
-
open(optional):
boolean
True if the alert's is still open. False if the alert's severity is CLEARExample:
/serviceapi/eventServices/alerts/62965132339213727047162539738389170623
-
severity:
string
Allowed Values:
[ "FATAL", "CRITICAL", "WARNING", "CLEAR" ]
The severity of the alertExample:CRITICAL
400 Response
object
When invalid alert API request is received, alert system returns this response.
-
errorCode:
string
The alert system's internal error code
-
errorMessage:
string
The alert system's internal error message
-
httpMessage:
string
The http error message
-
httpStatusCode:
string
Default Value:
400
The http status code
500 Response
object
When alert system runs into unhandled exception, it returns this response.
-
errorCode:
string
Default Value:
general_error
The alert system's error code for unhandled exception -
errorMessage:
string
Default Value:
Internal Server Error
The alert system's error message for unhandled exception -
httpMessage:
string
Default Value:
Internal Server Error
The http error message -
httpStatusCode:
string
Default Value:
500
The http status code
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