Generate a Metrics Report

get

/monitoring/monitoring/{idDomainName}/.customer/api/v1/metricReports

Generates a metrics report based on specific query criteria.

Request

Path Parameters
Query Parameters
Header Parameters
  • Basic Authentication credentials. The user must be located in the identity domain name specified by the header X-ID-TENANT-NAME.
  • Set to the identity domain ID where the user specified in the Authorization header resides.
Back to Top

Response

Supported Media Types

200 Response

successful operation
Body ()
Root Schema : MetricReports
Type: object
Show Source
Nested Schema : items
Type: array
Show Source
Nested Schema : MetricReport
Type: object
Show Source
Nested Schema : data
Type: array
Show Source
Nested Schema : MetricTarget
Type: object
Show Source
Nested Schema : MetricReportElement
Type: object
Show Source
Nested Schema : MetricSeries
Type: object
Show Source
Nested Schema : MetricType
Type: object
Show Source
Nested Schema : MetricSubject
Type: object
Show Source
Nested Schema : MetricSubjectType
Type: object
Show Source
Nested Schema : MetricUnit
Type: object
Show Source
Nested Schema : properties
Type: array
Properties of the subject.
Show Source
Nested Schema : MetricProperty
Type: object
Show Source
Back to Top

Examples

The following example shows how to generate a metrics report based on specific query criteria by submitting a GET request on the REST resource using cURL. See Use cURL.

curl -X GET -H "Authorization: Basic d2VibG9naWM6V2VsY29tZTE=" -H "X-ID-TENANT-NAME:mydomain" https://monitoring.us.oraclecloud.com/monitoring/mydomain/.customer/api/v1/metricReports?sinceDuration=PT5M&seriesIds=2b0af13a-e497-6bec-e053-caa0f90a8a24

Example of Response Header

The following shows an example of the response header.

HTTP/1.1 200 OK
Date: Fri, 29 Apr 2016 08:40:06 GMT
Content-Type: application/json

Example of Response Body

The following example shows the contents of the response body in JSON format:

{
  "items": [
    {
      "target": {
        "series": {
          "id": "2b0af13a-e497-6bec-e053-caa0f90a8a24",
          "metricType": {
            "id": "compute.CPU.PERCENT",
            "canonicalLink": "/monitoring/mydomain/.customer/api/v1/metricTypes/compute.CPU.PERCENT"
          },
          "subject": {
            "id": "2b0af13a-e496-6bec-e053-caa0f90a8a24",
            "canonicalLink": "/monitoring/mydomain/.customer/api/v1/metricSubjects/2b0af13a-e496-6bec-e053-caa0f90a8a24"
          },
          "canonicalLink": "/monitoring/mydomain/.customer/api/v1/metricSeries/2b0af13a-e497-6bec-e053-caa0f90a8a24"
        }
      },
      "data": [
        {
          "start": "2016-04-29T08:35:00.000Z",
          "end": "2016-04-29T08:36:00.000Z",
          "avg": 4,
          "min": 5,
          "max": 4,
          "sum": 4,
          "count": 1
        },
        {
          "start": "2016-04-29T08:36:00.000Z",
          "end": "2016-04-29T08:37:00.000Z",
          "avg": 0,
          "min": 0,
          "max": 0,
          "sum": 0,
          "count": 1
        },
        {
          "start": "2016-04-29T08:37:00.000Z",
          "end": "2016-04-29T08:38:00.000Z",
          "avg": 1,
          "min": 1,
          "max": 1,
          "sum": 1,
          "count": 1
        },
        {
          "start": "2016-04-29T08:38:00.000Z",
          "end": "2016-04-29T08:39:00.000Z",
          "avg": 22,
          "min": 22,
          "max": 22,
          "sum": 22,
          "count": 1
        },
        {
          "start": "2016-04-29T08:39:00.000Z",
          "end": "2016-04-29T08:40:00.000Z",
          "avg": 0,
          "min": 0,
          "max": 0,
          "sum": 0,
          "count": 1
        },
        {
          "start": "2016-04-29T08:40:00.000Z",
          "end": "2016-04-29T08:41:00.000Z",
          "avg": 0,
          "min": 0,
          "max": 0,
          "sum": 0,
          "count": 1
        }
      ]
    }
  ],
  "canonicalLink": "/monitoring/mydomain/.customer/api/v1/metricReports"
}
Back to Top