GetSummaries
Retrieve the statistical summaries of the Historian points within a specified time range.
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"],"StartTime":"*-8h","EndTime":"*","Weighting":"Time"}
Response Body
{ "Result": { "TestPoint1": [{ "TimeStamp": "2024-04-09T21:06:39.820991Z", "Value": "100", "Statistic": "Percent Good" }, { "TimeStamp": "2024-04-09T21:06:39.820991Z", "Value": "50", "Statistic": "Average" }, { "TimeStamp": "2024-04-09T21:06:39.8209991Z", "Value": "10", "Statistic": "Minimum" }, { "TimeStamp": "2024-04-09T21:06:39.8209991Z", "Value": "100", "Statistic": "Maximum" }, { "TimeStamp": "2024-04-09T21:06:39.820991Z", "Value": "0", "Statistic": "Range" }, { "TimeStamp": "2024-04-09T21:06:39.820991Z", "Value": "0", "Statistic": "Standard Deviation" }, { "TimeStamp": "2024-04-09T21:06:39.820991Z", "Value": "0", "Statistic": "Population Standard Deviation" }, { "TimeStamp": "2024-04-09T21:06:39.820991Z", "Value": "28800", "Statistic": "Count" } ] }, "Success": true, "ErrorMessage": "" }
TIP:
The weighting types include:
- Time: The default type. It is time-weighted, which weighs each event value by the length of its applied time.
- TimeContinuous: It is time-weighted, which does all interpolations between values as if values represent continuous data.
- TimeDiscrete: It is time-weighted, which does all interpolations between values as if values represent discrete and unrelated data.
- Event: It is event-weighted, which weighs each event equally. This type requires at least one event in a time range. Events at the boundary of the calculation are handled as follows:
- If there is only one calculation interval, use events at both boundaries.
- If there are multiple intervals and the intervals are in ascending time order, include events at the start time.
- If there are multiple intervals and the intervals are in descending time order, include events at the end time.
- EventExStart: It is event-weighted, which excludes the earliest event generated at the start time during an interval.
- EventExEnd: It is event-weighted, which excludes the most recent event generated at the end time during an interval.
- EventInEnds: It is event-weighted, which includes the event generated at the start and end times during an interval.
Provide Feedback