File

widgets/implementations/datapoints-table/datapoints-table-view/adjust-aggregated-time-range.pipe.ts

Description

A pipe that adjusts the aggregated time range based on the aggregation type.

Example :
'9:00' | adjustAggregatedTimeRange: config.aggregation (e.g.:HOURLY)

The output will be '9:00-10:00'.

Metadata

Methods

transform
transform(inputTime: string, aggregationType?: AggregationOption)

Transforms the input time based on the aggregation type.

Parameters :
Name Type Optional Description
inputTime string No

The input time string.

aggregationType AggregationOption Yes

The type of aggregation (optional).

Returns : string

The transformed time string.

results matching ""

    No results matching ""