Skip to main content

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 ObjectValueTypeEnumAggregationFunction
Implements IComparable, ISpanFormattable, IFormattable, IConvertible

Fields

NameValueDescription
Count0Count of non-null values.
Minimum1Minimum value.
Maximum2Maximum value.
Average3Arithmetic mean.
Sum4Sum of values.
TimeWeightedAverage5Time-weighted average (LOCF interval weighting) for event-based archives. Resolvable against rollup archives that materialise a TimeWeightedAvg aggregation (integral/duration pair). AB#4336.
StateDuration6Absolute 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.