Retrieve Historical Tracking Metrics

get

/ic/api/integration/v1/monitoring/history

This API fetches historical tracking metrics. These are the metrics collected since the environment was created.

Request

Query Parameters
  • Time frequency by which the metrics are to be grouped by. Valid values: hourly and daily.

    Example:

    Retrieves hourly metrics for past 24 hours.

    /history?frequency=hourly

    Retrieves daily metrics for past 30 days.

    /history?frequency=daily
  • This is the name of the service instance. You can get this value from the About page where it is specified in the Service instance field.
  • Filter parameter.

    • timewindow: 1h, 6h, 1d, 2d, 3d, RETENTIONPERIOD.
    • startdate: Custom time range start date/time in UTC format for filtering metrics. If the start date is not mentioned and end date is specified, then it considers 30 days before the end date as the start date.
    • enddate: Custom time range end date/time in UTC format for filtering metrics. If the end date is not mentioned and start date is specified, then it considers current date as the end date.

There's no request body for this operation.

Back to Top

Response

Supported Media Types

200 Response

Successful operation
Body ()
Root Schema : HistoryItemsRs
Type: object
Show Source
Nested Schema : records
Type: array
List of History Items
Show Source
Nested Schema : HistoryItemRs
Type: object
Show Source

400 Response

Malformed parameters

500 Response

Server error
Back to Top

Examples

The following example shows how to retrieve historical tracking metrics by submitting a GET request on the REST resource using cURL. For more information about cURL, see Use cURL. For more information about endpoint URL structure, see Send Requests.

Example: Retrieve Historical Tracking Metrics

Request:

curl -X GET -H 'Authorization: Bearer access_token' -H "Content-Type:application/json" https://design.integration.region.ocp.oraclecloud.com/ic/api/integration/v1/monitoring/history?frequency=hourly?integrationInstance=service-instance
Back to Top