GetPlotValues
Retrieve interpolated values over the specified time range at the specified sampling interval.
Input Parameter
Item | Description |
|---|---|
Request | GET |
URL Parameter |
|
Request Header | Authentication : String (required). Bearer Token string returned from the Login action.Response-Format (optional): OPTIMIZE. |
Request Body | None |
Status Code |
|
Sample 1
Request Header
"Authorization": "eyJhbGciOiJIUzI1N…"
Request URL Parameter
request={"ServerName":"HisSrvName","PointNames":["TestPoint1"],"StartTime":"-8h","EndTime":"*","Intervals":1}
Response Body
{ "Result": [{ "Name": "TestPoint1", "Vqts": [{ "Value": "200", "Quality": "Good", "Timestamp": "2024-04-09T19:11:00.7367401Z" }, { "Value": "No Data", "Quality": "Bad", "Timestamp": "2024-04-10T03:11:01Z" } ] }], "Success": true, "ErrorMessage": "" }
Sample 2
If the request header contains the response format of OPTIMIZE, the sample should be:
Request Header
"Authorization": "eyJhbGciOiJIUzI1N…"
"response-format": "optimize"
Request URL Parameter
request={"ServerName":"HisSrvName","PointNames":["TestPoint1","TestPoint2"],"StartTime":"2025-04-20T18:37:40.2606048Z","EndTime":"*","Intervals":1}
Response Body
{ "Result": { "Names": [ "TestPoint1", "TestPoint2" ], "MaxCount": { "Name": "TestPoint2", "Count": 1 }, "Data": { "2025-04-20T18:37:40.2606048Z": [ [ "4096", "4096" ] ] } }, "Success": true, "ErrorMessage": "" }
TIP:
If names lack values at the time of retrieval, their values are displayed as empty.
Provide Feedback