GetArchiveValueBySingleTime
Retrieve a single recorded value based on the passed time and the following modes:
Mode | Description |
|---|---|
Auto | Automatically determine the best retrieval mode. |
AtOrBefore | Return a recorded value at the passed time. If no value exists at that time, return the previous recorded value. |
Before | Return the first recorded value before the passed time. |
AtOrAfter | Return a recorded value at the passed time. If no value exists at that time, return the next recorded value. |
After | Return the first recorded value after the passed time. |
Exact | Return a recorded value at the passed time. If no value exists at that time, return an error. |
Input Parameter
Item | Description |
|---|---|
Request | GET |
URL Parameter |
|
Request Header | Authentication : String (required). Bearer Token string returned from the Login action. |
Request Body | None |
Status Code |
|
Sample
Request Header
"Authorization": "eyJhbGciOiJIUzI1N…"
Request URL Parameter
request={"ServerName":"HisSrvName","PointNames":["TestPoint1"],"Time":"2024-03-21T10:18:23"}
Response Body
{ "Result": { "TestPoint1": [{ "Mode": "Before", "Vqt": { "Value": "Pt Created", "Quality": "Bad", "Timestamp": "2024-03-20T08:36:57Z" } }, { "Mode": "At or Before", "Vqt": { "Value": "Pt Created", "Quality": "Bad", "Timestamp": "2024-03-20T08:36:57Z" } }, { "Mode": "Auto", "Vqt": { "Value": "Pt Created", "Quality": "Bad", "Timestamp": "2024-03-21T02:18:23Z" } }, { "Mode": "Exact", "Vqt": { "Value": "No Data", "Quality": "Bad", "Timestamp": "2024-03-21T02:18:23Z" } }, { "Mode": "At or After", "Vqt": { "Value": "500", "Quality": "Good", "Timestamp": "2024-03-21T02:18:23.4118499Z" } }, { "Mode": "After", "Vqt": { "Value": "500", "Quality": "Good", "Timestamp": "2024-03-21T02:18:23.4118499Z" } }, { "Mode": "Interpolated", "Vqt": { "Value": "Pt Created", "Quality": "Bad", "Timestamp": "2024-03-21T02:18:23Z" } }, { "Mode": "Current Value", "Vqt": { "Value": "500", "Quality": "Good", "Timestamp": "2024-03-21T02:18:23.4118499Z" } }, { "Mode": "End Of Stream", "Vqt": { "Value": "500", "Quality": "Good", "Timestamp": "2024-03-21T02:18:23.4118499Z" } } ] }, "Success": true, "ErrorMessage": "" }
TIP:
Time supports fuzzy matching.
Provide Feedback