forked from elastic/kibana
-
Notifications
You must be signed in to change notification settings - Fork 0
/
types.ts
59 lines (51 loc) · 1.31 KB
/
types.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0; you may not use this file except in compliance with the Elastic License
* 2.0.
*/
export interface HistogramItem {
key: number;
doc_count: number;
}
export interface ResponseHitSource {
[s: string]: unknown;
}
export interface ResponseHit {
_source: ResponseHitSource;
}
export interface SearchServiceParams {
environment?: string;
kuery?: string;
serviceName?: string;
transactionName?: string;
transactionType?: string;
start?: string;
end?: string;
percentileThreshold?: number;
percentileThresholdValue?: number;
}
export interface SearchServiceFetchParams extends SearchServiceParams {
index: string;
includeFrozen?: boolean;
}
export interface SearchServiceValue {
histogram: HistogramItem[];
value: string;
field: string;
correlation: number;
ksTest: number;
duplicatedFields?: string[];
}
export interface AsyncSearchProviderProgress {
started: number;
loadedHistogramStepsize: number;
loadedOverallHistogram: number;
loadedFieldCanditates: number;
loadedFieldValuePairs: number;
loadedHistograms: number;
}
export interface SelectedSignificantTerm {
fieldName: string;
fieldValue: string;
}