The DurationGood Aggregate defined in Table 42 divides the interval into regions of Good and non-Good data. Each region starts with a data point in the interval. If that data point is Good the region is Good. The Aggregate is the sum of the duration of all Good regions expressed in milliseconds.
The status of the first region is determined by finding the first data point at or before the start of the interval. If no value exists, the first region is Bad.
Each Aggregate is returned with timestamp of the start of the interval. StatusCodes are Good, Calculated.
Table 42 – DurationGood Aggregate summary
DurationGood Aggregate Characteristics |
||
Type |
Calculated |
|
Data Type |
Duration |
|
Use Bounds |
Uses status of bounding value |
|
Timestamp |
StartTime |
|
|
||
StatusCode Calculations |
||
Calculation Method |
Custom StatusCode is always Good, Calculated |
|
Partial |
Set Sometimes If an interval is not a complete interval |
|
Calculated |
Set Always |
|
Interpolated |
Not Set |
|
Raw |
Not Set |
|
Multi Value |
Not Set |
|
|
||
StatusCode Common Special Cases |
||
Before Start of Data |
Bad_NoData |
|
After End of Data |
Bad_NoData |
|
No Start Bound |
No special handing required |
|
No End Bound |
No special handing required |
|
Bound Bad |
No special handing required |
|
Bound Uncertain |
No special handing required |