File

core/common/aggregation/aggregation.service.ts

Index

Methods

Methods

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 :
Name Type Optional Description
dateFrom Date | string No
  • The start date of the time range, as a Date object or an ISO date string.
dateTo Date | string No
  • The end date of the time range, as a Date object or an ISO date string.

An AggregationOptionStatus object indicating the disabled state of each aggregation option.

results matching ""

    No results matching ""