1 | import { S as ServerClient } from './ServerClient-deb7c412';
|
2 | import { C as Component } from './Component-022555dd';
|
3 | import { C as ChartDataOptions } from './ChartDataOptions-47f83fdc';
|
4 | import { Selection, BaseType } from 'd3';
|
5 | import { P as PlaybackControls } from './PlaybackControls-d1740918';
|
6 |
|
7 | declare class TsqExpression extends ChartDataOptions {
|
8 | private instanceObject;
|
9 | private variableObject;
|
10 | constructor(instanceObject: any, variableObject: any, searchSpan: any, colorOrOptionsObject: any, alias?: string, contextMenu?: Array<any>);
|
11 | toTsq(roundFromTo?: boolean, getEvents?: boolean, getSeries?: boolean): {
|
12 | getEvents: {};
|
13 | getSeries?: undefined;
|
14 | aggregateSeries?: undefined;
|
15 | } | {
|
16 | getSeries: {};
|
17 | getEvents?: undefined;
|
18 | aggregateSeries?: undefined;
|
19 | } | {
|
20 | aggregateSeries: {};
|
21 | getEvents?: undefined;
|
22 | getSeries?: undefined;
|
23 | };
|
24 | toStatsTsq(fromMillis: any, toMillis: any): {
|
25 | getEvents: {};
|
26 | getSeries?: undefined;
|
27 | aggregateSeries?: undefined;
|
28 | } | {
|
29 | getSeries: {};
|
30 | getEvents?: undefined;
|
31 | aggregateSeries?: undefined;
|
32 | } | {
|
33 | aggregateSeries: {};
|
34 | getEvents?: undefined;
|
35 | getSeries?: undefined;
|
36 | };
|
37 | }
|
38 |
|
39 | declare class TsqRange {
|
40 | from: Date;
|
41 | to: Date;
|
42 | private bucketSizeMs;
|
43 | static NeatIntervals: string[];
|
44 | static NeatIntervalsMs: number[];
|
45 | constructor(from: Date, to: Date);
|
46 | setNeatBucketSizeByNumerOfBuckets(targetNumberOfBuckets: number): void;
|
47 | setNeatBucketSizeByRoughBucketSize(roughBucketSizeMillis: number): void;
|
48 | alignWithServerEpoch(): void;
|
49 | get fromMillis(): number;
|
50 | get toMillis(): number;
|
51 | get bucketSizeMillis(): number;
|
52 | get bucketSizeStr(): string;
|
53 | static millisToLargestUnit(interval: number): {
|
54 | value: number;
|
55 | unit: string;
|
56 | };
|
57 | }
|
58 |
|
59 | declare type d3Selection = Selection<BaseType, unknown, null, undefined>;
|
60 | interface GraphicInfo {
|
61 | graphic: any;
|
62 | width: number;
|
63 | height: number;
|
64 | }
|
65 | declare abstract class HistoryPlayback extends Component {
|
66 | protected targetElement: d3Selection;
|
67 | protected tsqExpressions: Array<TsqExpression>;
|
68 | protected componentContainer: d3Selection;
|
69 | protected component: d3Selection;
|
70 | protected playbackControlsContainer: d3Selection;
|
71 | protected playbackControls: PlaybackControls;
|
72 | protected graphicOriginalWidth: number;
|
73 | protected graphicOriginalHeight: number;
|
74 | protected serverClient: ServerClient;
|
75 | protected currentCancelTrigger: Function;
|
76 | protected availabilityInterval: number;
|
77 | protected environmentFqdn: string;
|
78 | protected availability: TsqRange;
|
79 | protected getAuthToken: () => Promise<string>;
|
80 | protected playbackRate: number;
|
81 | protected graphic: any;
|
82 | readonly numberOfBuckets = 1000;
|
83 | readonly defaultPlaybackRate = 3000;
|
84 | readonly fetchAvailabilityFrequency = 30000;
|
85 | readonly playbackSliderHeight = 88;
|
86 | readonly previewApiFlag = "?api-version=2018-11-01-preview";
|
87 | constructor(renderTarget: Element);
|
88 | protected abstract loadResources(): Promise<any>;
|
89 | protected abstract draw(): any;
|
90 | protected abstract updateDataMarkers(data: Array<any>): void;
|
91 | protected abstract getDataPoints(data: Array<any>): void;
|
92 | protected onGraphicLoaded(): void;
|
93 | protected renderBase(environmentFqdn: string, getToken: () => Promise<string>, data: Array<TsqExpression>, chartOptions: any): void;
|
94 | pauseAvailabilityUpdates(): void;
|
95 | private pollAvailability;
|
96 | private onSelecTimestamp;
|
97 | private calcQueryWindow;
|
98 | protected drawBase(): void;
|
99 | private updateAvailability;
|
100 | private parseAvailabilityResponse;
|
101 | }
|
102 |
|
103 | export { GraphicInfo as G, HistoryPlayback as H, TsqExpression as T };
|