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')

Request
URI
POST
https://{api_host}/napp/api/v1/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"

400

Invalid Input

Operation doesn't return any data structure

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