5.4.3.31 DurationGood

The DurationGood Aggregate defined in Table 79 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 79 – DurationGood Aggregate summary
DurationGood Aggregate Characteristics
TypeCalculated
Data TypeDuration
Use BoundsUses status of bounding value
TimestampStartTime
StatusCode Calculations
Calculation Method

Custom

StatusCode is always Good, Calculated

Partial

Set Sometimes

If an interval is not a complete interval

CalculatedSet Always
InterpolatedNot Set
RawNot Set
Multi ValueNot Set
StatusCode Common Special Cases
Before Start of DataBad_NoData
After End of DataBad_NoData
No Start BoundNo special handing required
No End BoundNo special handing required
Bound Bad No special handing required
Bound UncertainNo special handing required