Zum Hauptinhalt springen
CloudStudio

Endpunkt-Daten mittels ID und Parametern abrufen

Diese API ermöglicht das Abrufen von Endpunkt-Daten mittels ID und Parametern.

Anfrage

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

Parameter

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.

Antwort

Die Antwort enthält die Liste der übereinstimmenden EndpointData, wie in diesem Beispiel gezeigt:

[
	{
        "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
    }
]

Zuletzt aktualisiert am

Auf dieser Seite