AggregationFunction
Namespace: Meshmakers.Octo.Runtime.Contracts.Repositories.Query
Aggregation functions supported by the runtime query contracts layer.
Mirrors the five values of the CK-generated System AggregationTypes enum and the
transport-level AggregationTypesDto. Defined here to keep Runtime.Contracts
self-contained (no dependency on generated System CK model types).
public enum AggregationFunction
Inheritance Object → ValueType → Enum → AggregationFunction
Implements IComparable, ISpanFormattable, IFormattable, IConvertible
Fields
| Name | Value | Description |
|---|---|---|
| Count | 0 | Count of non-null values. |
| Minimum | 1 | Minimum value. |
| Maximum | 2 | Maximum value. |
| Average | 3 | Arithmetic mean. |
| Sum | 4 | Sum of values. |
| TimeWeightedAverage | 5 | Time-weighted average (LOCF interval weighting) for event-based archives. Resolvable against rollup archives that materialise a TimeWeightedAvg aggregation (integral/duration pair). AB#4336. |
| StateDuration | 6 | Absolute time (milliseconds) an event-based signal held the column's AggregationColumn.ComparisonValue within the window, with LOCF semantics. Supported over raw event archives (query-time LOCF) and rollup archives that materialise a StateDuration aggregation. AB#4336 / AB#4341. |