export = TimeSeries; /** * A TimeSeries is used to transport a set of states together with their timestamp. * It is usually used for persisting historic state or forecasts in a persistence service. * * @memberof items */ declare class TimeSeries { /** * Creates a new TimeSeries. * * The TimeSeries policy defines how the TimeSeries is persisted in a persistence service: * ADD adds the content to the persistence, * REPLACE first removes all persisted elements in the timespan given by {@link begin} and {@link end}. * * @param {string} policy TimeSeries policy ADD or REPLACE */ constructor(policy: string); /** * The persistence policy of this TimeSeries * * @type {string} */ get policy(): string; /** * Timestamp of the first element in the TimeSeries * @type {time.Instant} */ get begin(): time.Instant; /** * Timestamp of the last element in the TimeSeries * @type {time.Instant} */ get end(): time.Instant; /** * Number of elements in the TimeSeries * @type {number} */ get size(): number; /** * States of the TimeSeries together with their timestamp and sorted by their timestamps * * Be aware that this method returns a reference to the internal state array, so changes to the array will affect the TimeSeries. * * @type {Array} */ get states(): any[]; /** * Add a new element to the TimeSeries. * * Elements can be added in an arbitrary order and are sorted chronologically. * * @param {(time.Instant|time.ZonedDateTime|string|Date)} timestamp a timestamp for the given state * @param {string|number|Quantity|HostState} state the state at the given timestamp * @returns {TimeSeries} this TimeSeries instance */ add(timestamp: (time.Instant | time.ZonedDateTime | string | Date), state: string | number | Quantity | HostState): TimeSeries; toString(): string; #private; } import time = require("../time"); //# sourceMappingURL=time-series.d.ts.map