@grafana/plugin-types 0.0.7 → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,10 +1,61 @@
|
|
|
1
1
|
// Generated by dts-bundle-generator v9.5.1
|
|
2
2
|
|
|
3
|
+
import * as React$1 from 'react';
|
|
4
|
+
|
|
5
|
+
export interface DateTimeBuiltinFormat {
|
|
6
|
+
__momentBuiltinFormatBrand: any;
|
|
7
|
+
}
|
|
8
|
+
export type DateTimeInput = Date | string | number | Array<string | number> | DateTime | null;
|
|
9
|
+
export type FormatInput = string | DateTimeBuiltinFormat | undefined;
|
|
10
|
+
export type DurationUnit = "year" | "years" | "y" | "month" | "months" | "M" | "week" | "weeks" | "isoWeek" | "w" | "day" | "days" | "d" | "hour" | "hours" | "h" | "minute" | "minutes" | "m" | "second" | "seconds" | "s" | "millisecond" | "milliseconds" | "ms" | "quarter" | "quarters" | "Q";
|
|
11
|
+
export interface DateTime extends Object {
|
|
12
|
+
add: (amount?: DateTimeInput, unit?: DurationUnit) => DateTime;
|
|
13
|
+
set: (unit: DurationUnit | "date", amount: DateTimeInput) => void;
|
|
14
|
+
diff: (amount: DateTimeInput, unit?: DurationUnit, truncate?: boolean) => number;
|
|
15
|
+
endOf: (unitOfTime: DurationUnit) => DateTime;
|
|
16
|
+
format: (formatInput?: FormatInput) => string;
|
|
17
|
+
fromNow: (withoutSuffix?: boolean) => string;
|
|
18
|
+
from: (formaInput: DateTimeInput) => string;
|
|
19
|
+
isSame: (input?: DateTimeInput, granularity?: DurationUnit) => boolean;
|
|
20
|
+
isBefore: (input?: DateTimeInput) => boolean;
|
|
21
|
+
isValid: () => boolean;
|
|
22
|
+
local: () => DateTime;
|
|
23
|
+
locale: (locale: string) => DateTime;
|
|
24
|
+
startOf: (unitOfTime: DurationUnit) => DateTime;
|
|
25
|
+
subtract: (amount?: DateTimeInput, unit?: DurationUnit) => DateTime;
|
|
26
|
+
toDate: () => Date;
|
|
27
|
+
toISOString: (keepOffset?: boolean) => string;
|
|
28
|
+
isoWeekday: (day?: number | string) => number | string;
|
|
29
|
+
valueOf: () => number;
|
|
30
|
+
unix: () => number;
|
|
31
|
+
utc: () => DateTime;
|
|
32
|
+
utcOffset: () => number;
|
|
33
|
+
hour?: () => number;
|
|
34
|
+
minute?: () => number;
|
|
35
|
+
}
|
|
36
|
+
export interface RawTimeRange {
|
|
37
|
+
from: DateTime | string;
|
|
38
|
+
to: DateTime | string;
|
|
39
|
+
}
|
|
40
|
+
export interface TimeRange {
|
|
41
|
+
from: DateTime;
|
|
42
|
+
to: DateTime;
|
|
43
|
+
raw: RawTimeRange;
|
|
44
|
+
}
|
|
45
|
+
export interface AdHocVariableFilter {
|
|
46
|
+
key: string;
|
|
47
|
+
operator: string;
|
|
48
|
+
value: string;
|
|
49
|
+
values?: string[];
|
|
50
|
+
/** @deprecated */
|
|
51
|
+
condition?: string;
|
|
52
|
+
}
|
|
3
53
|
export type TempoMatcher = {
|
|
4
54
|
name: string;
|
|
5
55
|
value: string;
|
|
6
56
|
operator: "=" | "!=" | ">" | "<" | "=~" | "!~";
|
|
7
57
|
};
|
|
58
|
+
export type ActionViewType = "traceList" | "breakdown" | "structure" | "comparison";
|
|
8
59
|
export interface OpenInExploreTracesButtonProps {
|
|
9
60
|
datasourceUid?: string;
|
|
10
61
|
matchers: TempoMatcher[];
|
|
@@ -13,5 +64,19 @@ export interface OpenInExploreTracesButtonProps {
|
|
|
13
64
|
returnToPreviousSource?: string;
|
|
14
65
|
renderButton?: (props: {
|
|
15
66
|
href: string;
|
|
16
|
-
}) => React.ReactElement<any>;
|
|
67
|
+
}) => React$1.ReactElement<any>;
|
|
68
|
+
}
|
|
69
|
+
export interface EmbeddedTraceExplorationState extends SharedExplorationState {
|
|
70
|
+
initialTimeRange: TimeRange;
|
|
71
|
+
onTimeRangeChange?: (timeRange: TimeRange) => void;
|
|
72
|
+
}
|
|
73
|
+
export interface SharedExplorationState {
|
|
74
|
+
embedded?: boolean;
|
|
75
|
+
embedderName?: string;
|
|
76
|
+
returnToPreviousSource?: string;
|
|
77
|
+
initialDS?: string;
|
|
78
|
+
initialFilters?: AdHocVariableFilter[];
|
|
79
|
+
initialGroupBy?: string;
|
|
80
|
+
initialActionView?: ActionViewType;
|
|
81
|
+
allowedActionViews?: ActionViewType[];
|
|
17
82
|
}
|