core/aggregation/aggregation.service.ts
Properties |
|
Methods |
determineAggregationValue | ||||||||
determineAggregationValue(interval: Interval)
|
||||||||
Determines the aggregation value based on the provided interval.
Parameters :
Returns :
AggregationOption
The corresponding aggregation value. |
determineFirstNewAvailableAggregationValue | ||||||||||||
determineFirstNewAvailableAggregationValue(currentValue: AggregationOption, disabledOptions: AggregationOptionStatus)
|
||||||||||||
Determines the new aggregation value based on the current value and disabled options. Goal is to switch to the next available aggregation option if the current one is disabled.
Parameters :
Returns :
AggregationOption
The new aggregation option. |
getDisabledAggregationOptions | ||||||||||||
getDisabledAggregationOptions(dateFrom: Date | string, dateTo: Date | string)
|
||||||||||||
Determines which aggregation options should be disabled based on the time range between two dates. It calculates the time difference and checks against predefined time spans to decide if daily, hourly, or minutely aggregations should be disabled.
Parameters :
Returns :
AggregationOptionStatus
An |
Readonly AGGREGATION_MAP |
Type : object
|
Default value : {
[INTERVAL_VALUES.minutes]: AGGREGATION_VALUES.none,
[INTERVAL_VALUES.hours]: AGGREGATION_VALUES.minutely,
[INTERVAL_VALUES.days]: AGGREGATION_VALUES.hourly
}
|