Get Point In Time Data

Get Point In Time Data

Gives last reported metric data for a given resource_type and resource_id. This can be raw value or life-time counter value. (use /key-info API to check which keys have 'is_point_in_time' as 'true'). A distinct metric is defined by combination of resource_type + site_id + node_id + resource_id + obj_id + metric_key.

Request
URI
POST
https://{api_host}/metrics/point-in-time/data
COPY
Request Body

Request for raw data

PointInTimeMetricsQuery of type(s) application/json
Required
This request body class requires all of the following: InlinePointInTimeMetricsQuery0
{
    "resource_ids": [
        "string"
    ],
    "resource_types": [
        "string"
    ],
    "keys": [
        "string"
    ],
    "sort_by": "string",
    "sort_ascending": false,
    "page_number": 0,
    "page_size": 0,
    "filters": [
        {
            "filter_field": "string",
            "filter_operation": "string",
            "value": "string"
        }
    ],
    "aggregation": {
        "aggregation_dimension": "string",
        "aggregation_function": "string"
    }
}
Authentication
This operation uses the following authentication methods.
Responses
200

OK

Returns PointInTimeMetricsResponse of type(s) application/json
This response body class contains all of the following: InlinePointInTimeMetricsResponse0 , InlinePointInTimeMetricsResponse1
"PointInTimeMetricsResponse Object"

default

Error Response

Returns Error of type(s) application/json
"Error Object"
integer
error_code
Required

HTTP Status or Application error code

string
module_name
Optional

Module where the error happened

string
error_message
Required

Message describing the error


Code Samples
COPY
                    curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{"keys":["string"],"resource_ids":["string"],"resource_types":["string"]}' https://{api_host}/metrics/point-in-time/data