Ir para o conteúdo principal
CloudStudio

Get endpoint data using its ID and parameters

This API allows retrieving endpoint data using its ID and parameters.

Request

GET /api/v2/endpointData/?endpointID={endpointID}&dateFrom={dateFrom}&dateTo={dateTo}&maxCount={maxCount} HTTP/1.1
Host: gear.cloud.studio
Authorization: Bearer {accessToken}

Parameters

NameDescription
accessTokenAccess token with permissions to read endpoint information. See this page for more information. The access token can also be sent as part of the query string, using the "accessToken" parameter.
endpointIDMandatory identifier indicating the endpoint from which data should be extracted.
dateFromDate from which endpoint data should be retrieved.
dateToDate until which endpoint data should be retrieved.
maxCountOptional parameter indicating the maximum number of records to include in the result. Values greater than 500 are limited to 500 regardless of the value sent in the request.
The "endpointID" parameter is mandatory: without it the API returns an error.

Response

The response contains the list of matching EndpointData, as shown in this example:

[
	{
        "EndpointID": 113653,
        "Timestamp_UTC": "2021-10-15T22:51:19",
        "Value": 18.91,
        "SequenceNumber": 6683839
    },
	{
        "EndpointID": 113653,
        "Timestamp_UTC": "2021-10-15T23:01:25",
        "Value": 16.93,
        "SequenceNumber": 6683852
    },
	{
        "EndpointID": 113653,
        "Timestamp_UTC": "2021-10-15T23:11:28",
        "Value": 16.97,
        "SequenceNumber": 6683864
    },
	{
        "EndpointID": 113653,
        "Timestamp_UTC": "2021-10-15T23:41:36",
        "Value": 16.93,
        "SequenceNumber": 6683874
    }
]

Última atualização em

Nesta página