Summarizes and returns metrics data filtered using the provided query expression and compartmentId.
POST {{baseUrlIngestion}}/metrics/actions/summarizeMetricsData?compartmentId={{compartment_ocid}}&compartmentIdInSubtree=true
Returns aggregated data that match the criteria specified in the request. Compartment OCID required. For information on metric queries, see Building Metric Queries. For important limits information, see Limits on Monitoring.
Transactions Per Second (TPS) per-tenancy limit for this operation: 10.
Request Params
| Key | Datatype | Required | Description |
|---|---|---|---|
compartmentId | string | (Required) The OCID of the compartment containing the | |
| resources monitored by the metric that you are searching for. Use tenancyId to search in | |||
| the root compartment. |
Example: ocid1.compartment.oc1..exampleuniqueID
|
| compartmentIdInSubtree | boolean | | When true, returns resources from all compartments and subcompartments. The parameter can
only be set to true when compartmentId is the tenancy OCID (the tenancy is the root compartment).
A true value requires the user to have tenancy-level permissions. If this requirement is not met,
then the call is rejected. When false, returns resources from only the compartment specified in
compartmentId. Default is false.
|
Request Body
{"namespace"=>"ipsum velit", "query"=>"enim sint cupidatat", "endTime"=>"1970-02-17T08:36:22.342Z", "resolution"=>"ad culpa officia", "resourceGroup"=>"exercitat", "startTime"=>"1960-03-31T20:00:02.377Z"}
HEADERS
| Key | Datatype | Required | Description |
|---|---|---|---|
opc-request-id | string | Customer part of the request identifier token. If you need to contact Oracle about a particular | |
| request, please provide the complete request ID. | |||
Content-Type | string | ||
Date | string | (Required) Current Date | |
Authorization | string | (Required) Signature Authentication on Authorization header | |
x-content-sha256 | string | (Required) Content sha256 for POST, PUT and PATCH operations |
RESPONSES
status: OK
[{"aggregatedDatapoints":[{"timestamp":"1985-06-19T12:01:12.090Z","value":-32623933.259507656}],"compartmentId":"ocid1.compartment.oc1..exampleuniqueID","dimensions":{},"name":"et","namespace":"ea deserunt Duis","metadata":{},"resolution":"veniam proident ullamco esse qui","resourceGroup":"elit Duis"},{"aggregatedDatapoints":[{"timestamp":"2003-08-02T12:17:20.221Z","value":54399970.60984036}],"compartmentId":"ocid1.compartment.oc1..exampleuniqueID","dimensions":{},"name":"adipisicing fugiat","namespace":"proident sunt veniam","metadata":{},"resolution":"fugiat ullamco Lorem laborum est","resourceGroup":"ut adipisicing exercitation magna Ut"}]