UNPKG

ravendb

Version:
22 lines 793 B
import { TimeValue } from "../../../Primitives/TimeValue.js"; import { TimeSeriesPolicyRaw } from "./RawTimeSeriesTypes.js"; export declare class TimeSeriesPolicy { /** * Name of the time series policy, must be unique. */ name: string; /** * How long the data of this policy will be retained */ retentionTime: TimeValue; /** * Define the aggregation of this policy */ aggregationTime: TimeValue; getTimeSeriesName(rawName: string): string; constructor(name: string, aggregationTime: TimeValue); constructor(name: string, aggregationTime: TimeValue, retentionTime: TimeValue); serialize(): TimeSeriesPolicyRaw; static parse(policy: TimeSeriesPolicyRaw): TimeSeriesPolicy; } //# sourceMappingURL=TimeSeriesPolicy.d.ts.map