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}参数
| 名称 | 说明 |
|---|---|
| accessToken | Access token with permissions to read endpoint information. See this page for more information. The 访问令牌 can also be sent as part of the query string, 使用 "accessToken" parameter. |
| endpointID | Mandatory identifier indicating the endpoint from which data should be extracted. |
| dateFrom | Date from which endpoint data should be retrieved. |
| dateTo | Date until which endpoint data should be retrieved. |
| maxCount | Optional 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 optional. |
|---|
Response
The response contains the list of matching 端点Data, 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
}
]