This API returns a detailed summary of optimizer statistics collection operations.

GET {{baseUrl}}/managedDatabases/:managedDatabaseId/optimizerStatisticsCollectionOperations?startTimeGreaterThanOrEqualTo=<string>&endTimeLessThanOrEqualTo=<string>&taskType=ALL&limit=10&page=<string>&filterBy=<string>&sortBy=START_TIME&sortOrder=ASC

Lists the Optimizer Statistics Collection (Auto and Manual) task operation summary for the specified Managed Database. The summary includes the details of each operation and the number of tasks grouped by status: Completed, In Progress, Failed, and so on. Optionally, you can specify a date-time range (of seven days) to obtain the list of operations that fall within the specified time range. If the date-time range is not specified, then the operations in the last seven days are listed. This API also enables the pagination of results and the opc-next-page response header indicates whether there is a next page. If you use the same header value in a consecutive request, the next page records are returned. To obtain the required results, you can apply the different types of filters supported by this API.

Request Params

KeyDatatypeRequiredDescription
startTimeGreaterThanOrEqualTostringThe 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'".
endTimeLessThanOrEqualTostringThe 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'".
taskTypestringThe filter types of the optimizer statistics tasks.
limitnumberThe maximum number of records returned in the paginated response.
pagestringThe page token representing the page from where the next set of paginated results
are retrieved. This is usually retrieved from a previous list call.
filterBystringThe parameter used to filter the optimizer statistics operations.
Any property of the OptimizerStatisticsCollectionOperationSummary can be used to define the filter condition.
The allowed conditional operators are AND or OR, and the allowed binary operators are are >, < and =. Any other operator is regarded invalid.
Example: jobName=<replace with job name> AND status=<replace with status>
sortBystringSorts the list of optimizer statistics operations based on a specific attribute.
sortOrderstringThe option to sort information in ascending (‘ASC’) or descending (‘DESC’) order. Ascending order is the default order.

HEADERS

KeyDatatypeRequiredDescription
opc-request-idstringThe client request ID for tracing.
opc-named-credential-idstringThe OCID of the Named Credential.
Acceptstring

RESPONSES

status: OK

{&quot;items&quot;:[{&quot;id&quot;:&quot;\u003cinteger\u003e&quot;,&quot;operationName&quot;:&quot;\u003cstring\u003e&quot;,&quot;target&quot;:&quot;\u003cstring\u003e&quot;,&quot;jobName&quot;:&quot;\u003cstring\u003e&quot;,&quot;status&quot;:&quot;COMPLETED&quot;,&quot;startTime&quot;:&quot;\u003cstring\u003e&quot;,&quot;endTime&quot;:&quot;\u003cstring\u003e&quot;,&quot;durationInSeconds&quot;:&quot;\u003cnumber\u003e&quot;,&quot;completedCount&quot;:&quot;\u003cinteger\u003e&quot;,&quot;failedCount&quot;:&quot;\u003cinteger\u003e&quot;,&quot;inProgressCount&quot;:&quot;\u003cinteger\u003e&quot;,&quot;timedOutCount&quot;:&quot;\u003cinteger\u003e&quot;,&quot;totalObjectsCount&quot;:&quot;\u003cinteger\u003e&quot;},{&quot;id&quot;:&quot;\u003cinteger\u003e&quot;,&quot;operationName&quot;:&quot;\u003cstring\u003e&quot;,&quot;target&quot;:&quot;\u003cstring\u003e&quot;,&quot;jobName&quot;:&quot;\u003cstring\u003e&quot;,&quot;status&quot;:&quot;FAILED&quot;,&quot;startTime&quot;:&quot;\u003cstring\u003e&quot;,&quot;endTime&quot;:&quot;\u003cstring\u003e&quot;,&quot;durationInSeconds&quot;:&quot;\u003cnumber\u003e&quot;,&quot;completedCount&quot;:&quot;\u003cinteger\u003e&quot;,&quot;failedCount&quot;:&quot;\u003cinteger\u003e&quot;,&quot;inProgressCount&quot;:&quot;\u003cinteger\u003e&quot;,&quot;timedOutCount&quot;:&quot;\u003cinteger\u003e&quot;,&quot;totalObjectsCount&quot;:&quot;\u003cinteger\u003e&quot;}]}