Lists the number of optimizer statistics collection operations per hour, grouped by task or object status for the specified Managed Database.
GET {{baseUrl}}/managedDatabases/:managedDatabaseId/optimizerStatisticsCollectionAggregations?startTimeGreaterThanOrEqualTo=<string>&endTimeLessThanOrEqualTo=<string>&taskType=ALL&groupType=TASK_STATUS&limit=10&page=<string>
Gets a list of the optimizer statistics collection operations per hour, grouped by task or object status for the specified Managed Database. You must specify a value for GroupByQueryParam to determine whether the data should be grouped by task status or task object status. Optionally, you can specify a date-time range (of seven days) to obtain collection aggregations within the specified time range. If the date-time range is not specified, then the operations in the last seven days are listed. You can further filter the results by providing the optional type of TaskTypeQueryParam. If the task type not provided, then both Auto and Manual tasks are considered for aggregation.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
startTimeGreaterThanOrEqualTo | string | The start time of the time range to retrieve the optimizer statistics of a Managed Database | |
in UTC in ISO-8601 format, which is "yyyy-MM-dd'T'hh:mm:ss.sss'Z'". | |||
endTimeLessThanOrEqualTo | string | The end time of the time range to retrieve the optimizer statistics of a Managed Database | |
in UTC in ISO-8601 format, which is "yyyy-MM-dd'T'hh:mm:ss.sss'Z'". | |||
taskType | string | The filter types of the optimizer statistics tasks. | |
groupType | string | (Required) The optimizer statistics tasks grouped by type. | |
limit | number | The maximum number of records returned in the paginated response. | |
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. | |||
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
{"items":[{"timeStart":"\u003cdateTime\u003e","completed":"\u003cinteger\u003e","failed":"\u003cinteger\u003e","groupBy":"TASK_STATUS","inProgress":"\u003cinteger\u003e","pending":"\u003cinteger\u003e","skipped":"\u003cinteger\u003e","timeEnd":"\u003cdateTime\u003e","timedOut":"\u003cinteger\u003e","total":"\u003cinteger\u003e","unknown":"\u003cinteger\u003e"},{"timeStart":"\u003cdateTime\u003e","completed":"\u003cinteger\u003e","failed":"\u003cinteger\u003e","groupBy":"TASK_OBJECTS_STATUS","inProgress":"\u003cinteger\u003e","pending":"\u003cinteger\u003e","skipped":"\u003cinteger\u003e","timeEnd":"\u003cdateTime\u003e","timedOut":"\u003cinteger\u003e","total":"\u003cinteger\u003e","unknown":"\u003cinteger\u003e"}]}