List Alert Logs
GET {{baseUrl}}/managedDatabases/:managedDatabaseId/alertLogs?timeGreaterThanOrEqualTo=<dateTime>&timeLessThanOrEqualTo=<dateTime>&levelFilter=ALL&typeFilter=ALL&logSearchText=<string>&isRegularExpression=false&sortBy=TIMESTAMP&sortOrder=ASC&page=<string>&limit=10
Lists the alert logs for the specified Managed Database.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
timeGreaterThanOrEqualTo | string | The optional greater than or equal to timestamp to filter the logs. | |
timeLessThanOrEqualTo | string | The optional less than or equal to timestamp to filter the logs. | |
levelFilter | string | The optional parameter to filter the alert logs by log level. | |
typeFilter | string | The optional parameter to filter the attention or alert logs by type. | |
logSearchText | string | The optional query parameter to filter the attention or alert logs by search text. | |
isRegularExpression | boolean | The flag to indicate whether the search text is regular expression or not. | |
sortBy | string | The possible sortBy values of attention logs. | |
sortOrder | string | The option to sort information in ascending (‘ASC’) or descending (‘DESC’) order. Ascending order is the default order. | |
page | string | The page token representing the page from where the next set of paginated results | |
are retrieved. This is usually retrieved from a previous list call. | |||
limit | number | The maximum number of records returned in the paginated response. |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
opc-request-id | string | The client request ID for tracing. | |
opc-named-credential-id | string | The OCID of the Named Credential. | |
Accept | string |
RESPONSES
status: OK
{"managedDatabaseId":"\u003cstring\u003e","items":[{"messageLevel":"NORMAL","messageType":"INCIDENT_ERROR","fileLocation":"\u003cstring\u003e","messageContent":"\u003cstring\u003e","supplementalDetail":"\u003cstring\u003e","timestamp":"\u003cdateTime\u003e"},{"messageLevel":"NORMAL","messageType":"WARNING","fileLocation":"\u003cstring\u003e","messageContent":"\u003cstring\u003e","supplementalDetail":"\u003cstring\u003e","timestamp":"\u003cdateTime\u003e"}]}