Enums
AggregationTypes
This enum defines the different aggregation types available for queries.
| ID | Values | Descriptions |
|---|---|---|
| 0 | Count | Counts the number of items |
| 1 | Minimum | Finds the minimum value |
| 2 | Maximum | Finds the maximum value |
| 3 | Average | Calculates the average value |
| 4 | Sum | Calculates the sum of values |
| 5 | TimeWeightedAverage | Time-weighted average with last-observation-carried-forward interval weighting, for event-based archives. Yields the duty cycle on 0/100 or boolean-like signals. Resolvable against rollup archives that materialise a TimeWeightedAvg aggregation.. |
| 6 | StateDuration | Absolute time (milliseconds) an event-based signal held the column's ComparisonValue within the query window, with last-observation-carried-forward semantics. Requires AggregationQueryColumn.ComparisonValue. Supported over raw event archives and rollup archives that materialise a StateDuration aggregation.. |
| 7 | Integral | Step integral of a numeric event-based signal over the half-open query window [from, to), in value unit x hours (kW gives kWh, W gives Wh). Last observation carried forward - each value holds until the next row of the same entity or the window end, and the last row before the window opens it (looked up at most 35 days back; an older row is not carried, so a window without rows then yields null). Several entities in scope are summed; an empty window, or one whose rows all carry no value, yields null; from and to are required. Served over raw event archives at query time (rollup archives with a TimeWeightedAvg aggregation follow).. |
EnvironmentModes
This enum defines the different modes a tenant can operate in.
| ID | Values | Descriptions |
|---|---|---|
| 0 | Development | The tenant is in development mode, used for development and testing |
| 1 | Testing | The tenant is in testing mode, used for quality assurance |
| 2 | Staging | The tenant is in staging mode, used for pre-production testing |
| 3 | Production | The tenant is in production mode, used for live operations |
FieldFilterOperator
The operator to use for filtering fields.
| ID | Values | Descriptions |
|---|---|---|
| 0 | Equals | Compares the specified field to the specified value. |
| 1 | NotEquals | Compares the specified field to the specified value and returns true if the values are not equal. |
| 2 | LessThan | Compares the specified field to the specified value and returns true if the field value is less than the specified value. |
| 3 | LessEqualThan | Compares the specified field to the specified value and returns true if the field value is less than or equal to the specified value. |
| 4 | GreaterThan | Compares the specified field to the specified value and returns true if the field value is greater than the specified value. |
| 5 | GreaterEqualThan | Compares the specified field to the specified value and returns true if the field value is greater than or equal to the specified value. |
| 6 | In | Compares a field to be equal any value in the specified array. |
| 7 | NotIn | Compares a field to be not equal any value in the specified array. |
| 8 | Like | Compares a field to the specified value using a pattern matching comparison. Use * as a wildcard character. |
| 9 | MatchRegEx | Matches a field containing a value that matches the specified regular expression. |
| 10 | AnyEq | Compares an array field with at least one element that matches the specified value. |
| 11 | AnyLike | Compares an array field with at least one element that matches the specified value using a pattern matching comparison. Use * as a wildcard character. |
| 12 | Match | Matches an array field with at least one element that matches all the specified query criteria. |
MaintenanceLevels
This enum defines the maintenance level of a tenant.
| ID | Values | Descriptions |
|---|---|---|
| 0 | Off | The maintenance mode is off, the tenant is fully operational |
| 1 | UserApps | The user apps are in maintenance mode, the tenant is operational but user apps are not available |
| 2 | FullSystem | The full system is in maintenance mode, the tenant is not operational |
NavigationFilterModes
Controls how navigation properties affect the result set.
| ID | Values | Descriptions |
|---|---|---|
| 0 | Filter | Entities without matching associations are filtered out (pre-pagination). |
| 1 | Include | Entities without matching associations are kept with null values (post-pagination). |
QueryTypes
The type of query
| ID | Values | Descriptions |
|---|---|---|
| 0 | Flat | A flat query |
| 1 | Tree | A tree query that returns results from a tree |
SortOrders
The sort order of a field.
| ID | Values | Descriptions |
|---|---|---|
| 0 | Default | Default sorting based on data source type |
| 1 | Ascending | Ascending order |
| 2 | Descending | Descending order |