@intentius/chant-lexicon-grafana 0.96.0
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.
- package/README.md +50 -0
- package/dist/build.d.ts +116 -0
- package/dist/build.d.ts.map +1 -0
- package/dist/catalog.d.ts +26 -0
- package/dist/catalog.d.ts.map +1 -0
- package/dist/codegen/docs-cli.d.ts +3 -0
- package/dist/codegen/docs-cli.d.ts.map +1 -0
- package/dist/codegen/docs.d.ts +8 -0
- package/dist/codegen/docs.d.ts.map +1 -0
- package/dist/codegen/generate-cli.d.ts +3 -0
- package/dist/codegen/generate-cli.d.ts.map +1 -0
- package/dist/codegen/generate.d.ts +21 -0
- package/dist/codegen/generate.d.ts.map +1 -0
- package/dist/codegen/package.d.ts +7 -0
- package/dist/codegen/package.d.ts.map +1 -0
- package/dist/codegen/schema-types.d.ts +41 -0
- package/dist/codegen/schema-types.d.ts.map +1 -0
- package/dist/composites/agent-dashboard.d.ts +70 -0
- package/dist/composites/agent-dashboard.d.ts.map +1 -0
- package/dist/composites/catalog.d.ts +3 -0
- package/dist/composites/catalog.d.ts.map +1 -0
- package/dist/composites/index.d.ts +12 -0
- package/dist/composites/index.d.ts.map +1 -0
- package/dist/composites/red-dashboard.d.ts +58 -0
- package/dist/composites/red-dashboard.d.ts.map +1 -0
- package/dist/composites/shared.d.ts +68 -0
- package/dist/composites/shared.d.ts.map +1 -0
- package/dist/composites/slo-dashboard.d.ts +62 -0
- package/dist/composites/slo-dashboard.d.ts.map +1 -0
- package/dist/dashboard.d.ts +84 -0
- package/dist/dashboard.d.ts.map +1 -0
- package/dist/datasource.d.ts +67 -0
- package/dist/datasource.d.ts.map +1 -0
- package/dist/detect.d.ts +20 -0
- package/dist/detect.d.ts.map +1 -0
- package/dist/index.d.ts +17 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/integrity.json +22 -0
- package/dist/lint/audit-catalog.d.ts +13 -0
- package/dist/lint/audit-catalog.d.ts.map +1 -0
- package/dist/lint/post-synth/graf101.d.ts +8 -0
- package/dist/lint/post-synth/graf101.d.ts.map +1 -0
- package/dist/lint/post-synth/graf102.d.ts +8 -0
- package/dist/lint/post-synth/graf102.d.ts.map +1 -0
- package/dist/lint/post-synth/graf103.d.ts +8 -0
- package/dist/lint/post-synth/graf103.d.ts.map +1 -0
- package/dist/lint/post-synth/graf104.d.ts +8 -0
- package/dist/lint/post-synth/graf104.d.ts.map +1 -0
- package/dist/lint/post-synth/graf105.d.ts +8 -0
- package/dist/lint/post-synth/graf105.d.ts.map +1 -0
- package/dist/lint/post-synth/graf106.d.ts +8 -0
- package/dist/lint/post-synth/graf106.d.ts.map +1 -0
- package/dist/lint/post-synth/graf107.d.ts +8 -0
- package/dist/lint/post-synth/graf107.d.ts.map +1 -0
- package/dist/lint/post-synth/grafana-helpers.d.ts +16 -0
- package/dist/lint/post-synth/grafana-helpers.d.ts.map +1 -0
- package/dist/lint/post-synth/index.d.ts +3 -0
- package/dist/lint/post-synth/index.d.ts.map +1 -0
- package/dist/lint/rules/grafana-ast.d.ts +21 -0
- package/dist/lint/rules/grafana-ast.d.ts.map +1 -0
- package/dist/lint/rules/index.d.ts +6 -0
- package/dist/lint/rules/index.d.ts.map +1 -0
- package/dist/lint/rules/literal-secret.d.ts +12 -0
- package/dist/lint/rules/literal-secret.d.ts.map +1 -0
- package/dist/lint/rules/uid-syntax.d.ts +12 -0
- package/dist/lint/rules/uid-syntax.d.ts.map +1 -0
- package/dist/lsp/completions.d.ts +4 -0
- package/dist/lsp/completions.d.ts.map +1 -0
- package/dist/lsp/hover.d.ts +4 -0
- package/dist/lsp/hover.d.ts.map +1 -0
- package/dist/manifest.json +8 -0
- package/dist/meta.json +107 -0
- package/dist/okf/index.md +39 -0
- package/dist/okf/rules/GRAF001.md +16 -0
- package/dist/okf/rules/GRAF002.md +15 -0
- package/dist/okf/rules/GRAF101.md +15 -0
- package/dist/okf/rules/GRAF102.md +15 -0
- package/dist/okf/rules/GRAF103.md +11 -0
- package/dist/okf/rules/GRAF104.md +15 -0
- package/dist/okf/rules/GRAF105.md +11 -0
- package/dist/okf/rules/GRAF106.md +11 -0
- package/dist/okf/rules/GRAF107.md +11 -0
- package/dist/okf/types/ConstantVariable.md +9 -0
- package/dist/okf/types/CustomVariable.md +9 -0
- package/dist/okf/types/Dashboard.md +14 -0
- package/dist/okf/types/DashboardProvider.md +9 -0
- package/dist/okf/types/Datasource.md +16 -0
- package/dist/okf/types/DatasourceVariable.md +9 -0
- package/dist/okf/types/GaugePanel.md +9 -0
- package/dist/okf/types/HeatmapPanel.md +9 -0
- package/dist/okf/types/IntervalVariable.md +9 -0
- package/dist/okf/types/LogsPanel.md +9 -0
- package/dist/okf/types/LokiQuery.md +9 -0
- package/dist/okf/types/PromQuery.md +9 -0
- package/dist/okf/types/QueryVariable.md +9 -0
- package/dist/okf/types/Row.md +9 -0
- package/dist/okf/types/StatPanel.md +9 -0
- package/dist/okf/types/TablePanel.md +9 -0
- package/dist/okf/types/TempoQuery.md +9 -0
- package/dist/okf/types/TextPanel.md +9 -0
- package/dist/okf/types/TextboxVariable.md +9 -0
- package/dist/okf/types/TimeSeriesPanel.md +9 -0
- package/dist/okf/types/TracesPanel.md +9 -0
- package/dist/package-cli.d.ts +3 -0
- package/dist/package-cli.d.ts.map +1 -0
- package/dist/panels.d.ts +138 -0
- package/dist/panels.d.ts.map +1 -0
- package/dist/pin.d.ts +32 -0
- package/dist/pin.d.ts.map +1 -0
- package/dist/plugin.d.ts +12 -0
- package/dist/plugin.d.ts.map +1 -0
- package/dist/query.d.ts +81 -0
- package/dist/query.d.ts.map +1 -0
- package/dist/rules/graf101.ts +17 -0
- package/dist/rules/graf102.ts +17 -0
- package/dist/rules/graf103.ts +17 -0
- package/dist/rules/graf104.ts +17 -0
- package/dist/rules/graf105.ts +17 -0
- package/dist/rules/graf106.ts +17 -0
- package/dist/rules/graf107.ts +17 -0
- package/dist/rules/grafana-ast.ts +70 -0
- package/dist/rules/grafana-helpers.ts +68 -0
- package/dist/rules/literal-secret.ts +48 -0
- package/dist/rules/uid-syntax.ts +56 -0
- package/dist/schema/dashboard.gen.d.ts +1231 -0
- package/dist/schema/dashboard.gen.d.ts.map +1 -0
- package/dist/schema/gauge.gen.d.ts +57 -0
- package/dist/schema/gauge.gen.d.ts.map +1 -0
- package/dist/schema/heatmap.gen.d.ts +295 -0
- package/dist/schema/heatmap.gen.d.ts.map +1 -0
- package/dist/schema/index.d.ts +18 -0
- package/dist/schema/index.d.ts.map +1 -0
- package/dist/schema/logs.gen.d.ts +29 -0
- package/dist/schema/logs.gen.d.ts.map +1 -0
- package/dist/schema/loki.gen.d.ts +69 -0
- package/dist/schema/loki.gen.d.ts.map +1 -0
- package/dist/schema/prometheus.gen.d.ts +169 -0
- package/dist/schema/prometheus.gen.d.ts.map +1 -0
- package/dist/schema/stat.gen.d.ts +75 -0
- package/dist/schema/stat.gen.d.ts.map +1 -0
- package/dist/schema/table.gen.d.ts +295 -0
- package/dist/schema/table.gen.d.ts.map +1 -0
- package/dist/schema/tempo.gen.d.ts +136 -0
- package/dist/schema/tempo.gen.d.ts.map +1 -0
- package/dist/schema/text.gen.d.ts +16 -0
- package/dist/schema/text.gen.d.ts.map +1 -0
- package/dist/schema/timeseries.gen.d.ts +179 -0
- package/dist/schema/timeseries.gen.d.ts.map +1 -0
- package/dist/schema-validate.d.ts +20 -0
- package/dist/schema-validate.d.ts.map +1 -0
- package/dist/serializer.d.ts +22 -0
- package/dist/serializer.d.ts.map +1 -0
- package/dist/skill-defs.d.ts +3 -0
- package/dist/skill-defs.d.ts.map +1 -0
- package/dist/skills/chant-grafana-provisioning.md +42 -0
- package/dist/skills/chant-grafana.md +93 -0
- package/dist/spec/fetch-cli.d.ts +3 -0
- package/dist/spec/fetch-cli.d.ts.map +1 -0
- package/dist/spec/schemas.d.ts +25 -0
- package/dist/spec/schemas.d.ts.map +1 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/util.d.ts +17 -0
- package/dist/util.d.ts.map +1 -0
- package/dist/validate-cli.d.ts +3 -0
- package/dist/validate-cli.d.ts.map +1 -0
- package/dist/validate-output.d.ts +42 -0
- package/dist/validate-output.d.ts.map +1 -0
- package/dist/validate.d.ts +12 -0
- package/dist/validate.d.ts.map +1 -0
- package/dist/variables.d.ts +100 -0
- package/dist/variables.d.ts.map +1 -0
- package/package.json +79 -0
- package/src/build.test.ts +210 -0
- package/src/build.ts +573 -0
- package/src/catalog.ts +116 -0
- package/src/codegen/docs-cli.ts +4 -0
- package/src/codegen/docs.ts +97 -0
- package/src/codegen/generate-cli.ts +8 -0
- package/src/codegen/generate.ts +83 -0
- package/src/codegen/package.ts +41 -0
- package/src/codegen/schema-types.ts +173 -0
- package/src/composites/agent-dashboard.ts +235 -0
- package/src/composites/catalog.test.ts +37 -0
- package/src/composites/catalog.ts +223 -0
- package/src/composites/composites.test.ts +314 -0
- package/src/composites/index.ts +12 -0
- package/src/composites/red-dashboard.ts +159 -0
- package/src/composites/shared.ts +94 -0
- package/src/composites/slo-dashboard.ts +177 -0
- package/src/dashboard.ts +123 -0
- package/src/datasource.ts +93 -0
- package/src/detect.ts +30 -0
- package/src/generated/lexicon-grafana.json +107 -0
- package/src/import.e2e.test.ts +147 -0
- package/src/import.test.ts +45 -0
- package/src/index.ts +178 -0
- package/src/lint/audit-catalog.ts +87 -0
- package/src/lint/post-synth/graf101.ts +17 -0
- package/src/lint/post-synth/graf102.ts +17 -0
- package/src/lint/post-synth/graf103.ts +17 -0
- package/src/lint/post-synth/graf104.ts +17 -0
- package/src/lint/post-synth/graf105.ts +17 -0
- package/src/lint/post-synth/graf106.ts +17 -0
- package/src/lint/post-synth/graf107.ts +17 -0
- package/src/lint/post-synth/grafana-helpers.ts +68 -0
- package/src/lint/post-synth/index.ts +19 -0
- package/src/lint/post-synth/post-synth.test.ts +231 -0
- package/src/lint/rules/grafana-ast.ts +70 -0
- package/src/lint/rules/index.ts +9 -0
- package/src/lint/rules/literal-secret.ts +48 -0
- package/src/lint/rules/rules.test.ts +70 -0
- package/src/lint/rules/uid-syntax.ts +56 -0
- package/src/lsp/completions.test.ts +31 -0
- package/src/lsp/completions.ts +15 -0
- package/src/lsp/hover.test.ts +25 -0
- package/src/lsp/hover.ts +28 -0
- package/src/package-cli.ts +17 -0
- package/src/panels.ts +275 -0
- package/src/pin.ts +68 -0
- package/src/plugin.test.ts +50 -0
- package/src/plugin.ts +116 -0
- package/src/query.ts +160 -0
- package/src/schema/dashboard.gen.ts +1289 -0
- package/src/schema/gauge.gen.ts +64 -0
- package/src/schema/heatmap.gen.ts +321 -0
- package/src/schema/index.ts +17 -0
- package/src/schema/logs.gen.ts +34 -0
- package/src/schema/loki.gen.ts +77 -0
- package/src/schema/prometheus.gen.ts +181 -0
- package/src/schema/stat.gen.ts +86 -0
- package/src/schema/table.gen.ts +334 -0
- package/src/schema/tempo.gen.ts +146 -0
- package/src/schema/text.gen.ts +22 -0
- package/src/schema/timeseries.gen.ts +208 -0
- package/src/schema-validate.ts +143 -0
- package/src/schema.test.ts +76 -0
- package/src/serializer.test.ts +170 -0
- package/src/serializer.ts +37 -0
- package/src/skill-defs.ts +31 -0
- package/src/skills/chant-grafana-provisioning.md +42 -0
- package/src/skills/chant-grafana.md +93 -0
- package/src/spec/fetch-cli.ts +27 -0
- package/src/spec/schemas/dashboard.jsonschema.json +1901 -0
- package/src/spec/schemas/gauge.jsonschema.json +114 -0
- package/src/spec/schemas/heatmap.jsonschema.json +480 -0
- package/src/spec/schemas/logs.jsonschema.json +94 -0
- package/src/spec/schemas/loki.jsonschema.json +118 -0
- package/src/spec/schemas/prometheus.jsonschema.json +276 -0
- package/src/spec/schemas/stat.jsonschema.json +163 -0
- package/src/spec/schemas/table.jsonschema.json +751 -0
- package/src/spec/schemas/tempo.jsonschema.json +225 -0
- package/src/spec/schemas/text.jsonschema.json +72 -0
- package/src/spec/schemas/timeseries.jsonschema.json +471 -0
- package/src/spec/schemas.ts +56 -0
- package/src/util.ts +43 -0
- package/src/validate-cli.ts +7 -0
- package/src/validate-output.ts +380 -0
- package/src/validate.ts +108 -0
- package/src/variables.ts +161 -0
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
export interface AdhocFilters {
|
|
2
|
+
key: string;
|
|
3
|
+
operator: string;
|
|
4
|
+
value: string;
|
|
5
|
+
values?: string[];
|
|
6
|
+
}
|
|
7
|
+
export interface ResultAssertions {
|
|
8
|
+
/**
|
|
9
|
+
* Maximum frame count
|
|
10
|
+
*/
|
|
11
|
+
maxFrames?: number;
|
|
12
|
+
/**
|
|
13
|
+
* Type asserts that the frame matches a known type structure.
|
|
14
|
+
* Possible enum values:
|
|
15
|
+
* - `""`
|
|
16
|
+
* - `"timeseries-wide"`
|
|
17
|
+
* - `"timeseries-long"`
|
|
18
|
+
* - `"timeseries-many"`
|
|
19
|
+
* - `"timeseries-multi"`
|
|
20
|
+
* - `"directory-listing"`
|
|
21
|
+
* - `"table"`
|
|
22
|
+
* - `"numeric-wide"`
|
|
23
|
+
* - `"numeric-multi"`
|
|
24
|
+
* - `"numeric-long"`
|
|
25
|
+
* - `"log-lines"`
|
|
26
|
+
*/
|
|
27
|
+
type?: ResultAssertionsType;
|
|
28
|
+
/**
|
|
29
|
+
* TypeVersion is the version of the Type property. Versions greater than 0.0 correspond to the dataplane
|
|
30
|
+
* contract documentation https://grafana.github.io/dataplane/contract/.
|
|
31
|
+
*/
|
|
32
|
+
typeVersion: number[];
|
|
33
|
+
}
|
|
34
|
+
export interface ScopesFilters {
|
|
35
|
+
key: string;
|
|
36
|
+
operator: string;
|
|
37
|
+
value: string;
|
|
38
|
+
values?: string[];
|
|
39
|
+
}
|
|
40
|
+
export interface Scopes {
|
|
41
|
+
defaultPath?: string[];
|
|
42
|
+
filters?: ScopesFilters[];
|
|
43
|
+
title: string;
|
|
44
|
+
}
|
|
45
|
+
export interface TimeRange {
|
|
46
|
+
/**
|
|
47
|
+
* From is the start time of the query.
|
|
48
|
+
*/
|
|
49
|
+
from: string;
|
|
50
|
+
/**
|
|
51
|
+
* To is the end time of the query.
|
|
52
|
+
*/
|
|
53
|
+
to: string;
|
|
54
|
+
}
|
|
55
|
+
export interface Dataquery {
|
|
56
|
+
/**
|
|
57
|
+
* Additional Ad-hoc filters that take precedence over Scope on conflict.
|
|
58
|
+
*/
|
|
59
|
+
adhocFilters?: AdhocFilters[];
|
|
60
|
+
/**
|
|
61
|
+
* The datasource
|
|
62
|
+
*/
|
|
63
|
+
datasource?: DataSourceRef;
|
|
64
|
+
/**
|
|
65
|
+
* what we should show in the editor
|
|
66
|
+
* Possible enum values:
|
|
67
|
+
* - `"builder"`
|
|
68
|
+
* - `"code"`
|
|
69
|
+
*/
|
|
70
|
+
editorMode?: QueryEditorMode;
|
|
71
|
+
/**
|
|
72
|
+
* Execute an additional query to identify interesting raw samples relevant for the given expr
|
|
73
|
+
*/
|
|
74
|
+
exemplar?: boolean;
|
|
75
|
+
/**
|
|
76
|
+
* The actual expression/query that will be evaluated by Prometheus
|
|
77
|
+
*/
|
|
78
|
+
expr: string;
|
|
79
|
+
/**
|
|
80
|
+
* The response format
|
|
81
|
+
* Possible enum values:
|
|
82
|
+
* - `"time_series"`
|
|
83
|
+
* - `"table"`
|
|
84
|
+
* - `"heatmap"`
|
|
85
|
+
*/
|
|
86
|
+
format?: PromQueryFormat;
|
|
87
|
+
/**
|
|
88
|
+
* Group By parameters to apply to aggregate expressions in the query
|
|
89
|
+
*/
|
|
90
|
+
groupByKeys?: string[];
|
|
91
|
+
/**
|
|
92
|
+
* true if query is disabled (ie should not be returned to the dashboard)
|
|
93
|
+
* NOTE: this does not always imply that the query should not be executed since
|
|
94
|
+
* the results from a hidden query may be used as the input to other queries (SSE etc)
|
|
95
|
+
*/
|
|
96
|
+
hide?: boolean;
|
|
97
|
+
/**
|
|
98
|
+
* Returns only the latest value that Prometheus has scraped for the requested time series
|
|
99
|
+
*/
|
|
100
|
+
instant?: boolean;
|
|
101
|
+
/**
|
|
102
|
+
* Used to specify how many times to divide max data points by. We use max data points under query options
|
|
103
|
+
* See https://github.com/grafana/grafana/issues/48081
|
|
104
|
+
* Deprecated: use interval
|
|
105
|
+
*/
|
|
106
|
+
intervalFactor?: number;
|
|
107
|
+
/**
|
|
108
|
+
* Interval is the suggested duration between time points in a time series query.
|
|
109
|
+
* NOTE: the values for intervalMs is not saved in the query model. It is typically calculated
|
|
110
|
+
* from the interval required to fill a pixels in the visualization
|
|
111
|
+
*/
|
|
112
|
+
intervalMs?: number;
|
|
113
|
+
/**
|
|
114
|
+
* Series name override or template. Ex. {{hostname}} will be replaced with label value for hostname
|
|
115
|
+
*/
|
|
116
|
+
legendFormat?: string;
|
|
117
|
+
/**
|
|
118
|
+
* MaxDataPoints is the maximum number of data points that should be returned from a time series query.
|
|
119
|
+
* NOTE: the values for maxDataPoints is not saved in the query model. It is typically calculated
|
|
120
|
+
* from the number of pixels visible in a visualization
|
|
121
|
+
*/
|
|
122
|
+
maxDataPoints?: number;
|
|
123
|
+
/**
|
|
124
|
+
* QueryType is an optional identifier for the type of query.
|
|
125
|
+
* It can be used to distinguish different types of queries.
|
|
126
|
+
*/
|
|
127
|
+
queryType?: string;
|
|
128
|
+
/**
|
|
129
|
+
* Returns a Range vector, comprised of a set of time series containing a range of data points over time for each time series
|
|
130
|
+
*/
|
|
131
|
+
range?: boolean;
|
|
132
|
+
/**
|
|
133
|
+
* RefID is the unique identifier of the query, set by the frontend call.
|
|
134
|
+
*/
|
|
135
|
+
refId?: string | null;
|
|
136
|
+
/**
|
|
137
|
+
* Optionally define expected query result behavior
|
|
138
|
+
*/
|
|
139
|
+
resultAssertions?: ResultAssertions;
|
|
140
|
+
/**
|
|
141
|
+
* A set of filters applied to apply to the query
|
|
142
|
+
*/
|
|
143
|
+
scopes?: Scopes[];
|
|
144
|
+
/**
|
|
145
|
+
* TimeRange represents the query range
|
|
146
|
+
* NOTE: unlike generic /ds/query, we can now send explicit time values in each query
|
|
147
|
+
* NOTE: the values for timeRange are not saved in a dashboard, they are constructed on the fly
|
|
148
|
+
*/
|
|
149
|
+
timeRange?: TimeRange;
|
|
150
|
+
/**
|
|
151
|
+
* An additional lower limit for the step parameter of the Prometheus query and for the
|
|
152
|
+
* `$__interval` and `$__rate_interval` variables.
|
|
153
|
+
*/
|
|
154
|
+
interval?: string;
|
|
155
|
+
}
|
|
156
|
+
export type ResultAssertionsType = "" | "timeseries-wide" | "timeseries-long" | "timeseries-many" | "timeseries-multi" | "directory-listing" | "table" | "numeric-wide" | "numeric-multi" | "numeric-long" | "log-lines";
|
|
157
|
+
export type QueryEditorMode = "builder" | "code";
|
|
158
|
+
export type PromQueryFormat = "time_series" | "table" | "heatmap";
|
|
159
|
+
export interface DataSourceRef {
|
|
160
|
+
/**
|
|
161
|
+
* The plugin type-id
|
|
162
|
+
*/
|
|
163
|
+
type?: string;
|
|
164
|
+
/**
|
|
165
|
+
* Specific datasource instance
|
|
166
|
+
*/
|
|
167
|
+
uid?: string;
|
|
168
|
+
}
|
|
169
|
+
//# sourceMappingURL=prometheus.gen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prometheus.gen.d.ts","sourceRoot":"","sources":["../../src/schema/prometheus.gen.ts"],"names":[],"mappings":"AAIA,MAAM,WAAW,YAAY;IAC3B,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;CACnB;AAED,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;;;;;;;;;;;OAcG;IACH,IAAI,CAAC,EAAE,oBAAoB,CAAC;IAC5B;;;OAGG;IACH,WAAW,EAAE,MAAM,EAAE,CAAC;CACvB;AAED,MAAM,WAAW,aAAa;IAC5B,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,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G;IACH,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,MAAM,oBAAoB,GAAG,EAAE,GAAG,iBAAiB,GAAG,iBAAiB,GAAG,iBAAiB,GAAG,kBAAkB,GAAG,mBAAmB,GAAG,OAAO,GAAG,cAAc,GAAG,eAAe,GAAG,cAAc,GAAG,WAAW,CAAC;AAEzN,MAAM,MAAM,eAAe,GAAG,SAAS,GAAG,MAAM,CAAC;AAEjD,MAAM,MAAM,eAAe,GAAG,aAAa,GAAG,OAAO,GAAG,SAAS,CAAC;AAElE,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;CACd"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
export interface Options {
|
|
2
|
+
graphMode: BigValueGraphMode;
|
|
3
|
+
colorMode: BigValueColorMode;
|
|
4
|
+
justifyMode: BigValueJustifyMode;
|
|
5
|
+
textMode: BigValueTextMode;
|
|
6
|
+
wideLayout: boolean;
|
|
7
|
+
showPercentChange: boolean;
|
|
8
|
+
reduceOptions: ReduceDataOptions;
|
|
9
|
+
text?: VizTextDisplayOptions;
|
|
10
|
+
percentChangeColorMode: PercentChangeColorMode;
|
|
11
|
+
orientation: VizOrientation;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* TODO docs
|
|
15
|
+
*/
|
|
16
|
+
export type BigValueGraphMode = "none" | "line" | "area";
|
|
17
|
+
/**
|
|
18
|
+
* TODO docs
|
|
19
|
+
*/
|
|
20
|
+
export type BigValueColorMode = "value" | "background" | "background_solid" | "none";
|
|
21
|
+
/**
|
|
22
|
+
* TODO docs
|
|
23
|
+
*/
|
|
24
|
+
export type BigValueJustifyMode = "auto" | "center";
|
|
25
|
+
/**
|
|
26
|
+
* TODO docs
|
|
27
|
+
*/
|
|
28
|
+
export type BigValueTextMode = "auto" | "value" | "value_and_name" | "name" | "none";
|
|
29
|
+
/**
|
|
30
|
+
* TODO docs
|
|
31
|
+
*/
|
|
32
|
+
export interface ReduceDataOptions {
|
|
33
|
+
/**
|
|
34
|
+
* If true show each row value
|
|
35
|
+
*/
|
|
36
|
+
values?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* if showing all values limit
|
|
39
|
+
*/
|
|
40
|
+
limit?: number;
|
|
41
|
+
/**
|
|
42
|
+
* When !values, pick one value for the whole field
|
|
43
|
+
*/
|
|
44
|
+
calcs: string[];
|
|
45
|
+
/**
|
|
46
|
+
* Which fields to show. By default this is only numeric fields
|
|
47
|
+
*/
|
|
48
|
+
fields?: string;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* TODO docs
|
|
52
|
+
*/
|
|
53
|
+
export interface VizTextDisplayOptions {
|
|
54
|
+
/**
|
|
55
|
+
* Explicit title text size
|
|
56
|
+
*/
|
|
57
|
+
titleSize?: number;
|
|
58
|
+
/**
|
|
59
|
+
* Explicit value text size
|
|
60
|
+
*/
|
|
61
|
+
valueSize?: number;
|
|
62
|
+
/**
|
|
63
|
+
* Explicit percent text size
|
|
64
|
+
*/
|
|
65
|
+
percentSize?: number;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* TODO docs
|
|
69
|
+
*/
|
|
70
|
+
export type PercentChangeColorMode = "standard" | "inverted" | "same_as_value";
|
|
71
|
+
/**
|
|
72
|
+
* TODO docs
|
|
73
|
+
*/
|
|
74
|
+
export type VizOrientation = "auto" | "vertical" | "horizontal";
|
|
75
|
+
//# sourceMappingURL=stat.gen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stat.gen.d.ts","sourceRoot":"","sources":["../../src/schema/stat.gen.ts"],"names":[],"mappings":"AAIA,MAAM,WAAW,OAAO;IACtB,SAAS,EAAE,iBAAiB,CAAC;IAC7B,SAAS,EAAE,iBAAiB,CAAC;IAC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 @@
|
|
|
1
|
+
export interface Options {
|
|
2
|
+
/**
|
|
3
|
+
* Represents the index of the selected frame
|
|
4
|
+
*/
|
|
5
|
+
frameIndex: number;
|
|
6
|
+
/**
|
|
7
|
+
* Controls whether the panel should show the header
|
|
8
|
+
*/
|
|
9
|
+
showHeader: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* Controls whether the header should show icons for the column types
|
|
12
|
+
*/
|
|
13
|
+
showTypeIcons?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Used to control row sorting
|
|
16
|
+
*/
|
|
17
|
+
sortBy?: TableSortByFieldState[];
|
|
18
|
+
/**
|
|
19
|
+
* Controls footer options
|
|
20
|
+
*/
|
|
21
|
+
footer?: TableFooterOptions;
|
|
22
|
+
/**
|
|
23
|
+
* Controls the height of the rows
|
|
24
|
+
*/
|
|
25
|
+
cellHeight?: TableCellHeight;
|
|
26
|
+
}
|
|
27
|
+
export type FieldConfig = TableFieldOptions;
|
|
28
|
+
/**
|
|
29
|
+
* Sort by field state
|
|
30
|
+
*/
|
|
31
|
+
export interface TableSortByFieldState {
|
|
32
|
+
/**
|
|
33
|
+
* Sets the display name of the field to sort by
|
|
34
|
+
*/
|
|
35
|
+
displayName: string;
|
|
36
|
+
/**
|
|
37
|
+
* Flag used to indicate descending sort order
|
|
38
|
+
*/
|
|
39
|
+
desc?: boolean;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Footer options
|
|
43
|
+
*/
|
|
44
|
+
export interface TableFooterOptions {
|
|
45
|
+
show: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* actually 1 value
|
|
48
|
+
*/
|
|
49
|
+
reducer: string[];
|
|
50
|
+
fields?: string[];
|
|
51
|
+
enablePagination?: boolean;
|
|
52
|
+
countRows?: boolean;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Height of a table cell
|
|
56
|
+
*/
|
|
57
|
+
export type TableCellHeight = "sm" | "md" | "lg" | "auto";
|
|
58
|
+
/**
|
|
59
|
+
* Field options for each field within a table (e.g 10, "The String", 64.20, etc.)
|
|
60
|
+
* Generally defines alignment, filtering capabilties, display options, etc.
|
|
61
|
+
*/
|
|
62
|
+
export interface TableFieldOptions {
|
|
63
|
+
width?: number;
|
|
64
|
+
minWidth?: number;
|
|
65
|
+
align: FieldTextAlignment;
|
|
66
|
+
/**
|
|
67
|
+
* This field is deprecated in favor of using cellOptions
|
|
68
|
+
*/
|
|
69
|
+
displayMode?: TableCellDisplayMode;
|
|
70
|
+
cellOptions?: TableCellOptions | null;
|
|
71
|
+
/**
|
|
72
|
+
* ?? default is missing or false ??
|
|
73
|
+
*/
|
|
74
|
+
hidden?: boolean;
|
|
75
|
+
inspect: boolean;
|
|
76
|
+
filterable?: boolean;
|
|
77
|
+
/**
|
|
78
|
+
* Hides any header for a column, useful for columns that show some static content or buttons.
|
|
79
|
+
*/
|
|
80
|
+
hideHeader?: boolean;
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* TODO -- should not be table specific!
|
|
84
|
+
* TODO docs
|
|
85
|
+
*/
|
|
86
|
+
export type FieldTextAlignment = "auto" | "left" | "right" | "center";
|
|
87
|
+
/**
|
|
88
|
+
* Internally, this is the "type" of cell that's being displayed
|
|
89
|
+
* in the table such as colored text, JSON, gauge, etc.
|
|
90
|
+
* The color-background-solid, gradient-gauge, and lcd-gauge
|
|
91
|
+
* modes are deprecated in favor of new cell subOptions
|
|
92
|
+
*/
|
|
93
|
+
export type TableCellDisplayMode = "auto" | "color-text" | "color-background" | "color-background-solid" | "gradient-gauge" | "lcd-gauge" | "json-view" | "basic" | "image" | "gauge" | "sparkline" | "data-links" | "custom" | "actions";
|
|
94
|
+
/**
|
|
95
|
+
* Table cell options. Each cell has a display mode
|
|
96
|
+
* and other potential options for that display.
|
|
97
|
+
*/
|
|
98
|
+
export type TableCellOptions = TableAutoCellOptions | TableSparklineCellOptions | TableBarGaugeCellOptions | TableColoredBackgroundCellOptions | TableColorTextCellOptions | TableImageCellOptions | TableDataLinksCellOptions | TableActionsCellOptions | TableJsonViewCellOptions;
|
|
99
|
+
/**
|
|
100
|
+
* Auto mode table cell options
|
|
101
|
+
*/
|
|
102
|
+
export interface TableAutoCellOptions {
|
|
103
|
+
type: TableCellDisplayMode;
|
|
104
|
+
wrapText?: boolean;
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* Sparkline cell options
|
|
108
|
+
*/
|
|
109
|
+
export interface TableSparklineCellOptions {
|
|
110
|
+
type: TableCellDisplayMode;
|
|
111
|
+
drawStyle?: GraphDrawStyle;
|
|
112
|
+
gradientMode?: GraphGradientMode;
|
|
113
|
+
thresholdsStyle?: GraphThresholdsStyleConfig;
|
|
114
|
+
transform?: GraphTransform;
|
|
115
|
+
lineColor?: string;
|
|
116
|
+
lineWidth?: number;
|
|
117
|
+
lineInterpolation?: LineInterpolation;
|
|
118
|
+
lineStyle?: LineStyle;
|
|
119
|
+
fillColor?: string;
|
|
120
|
+
fillOpacity?: number;
|
|
121
|
+
showPoints?: VisibilityMode;
|
|
122
|
+
pointSize?: number;
|
|
123
|
+
pointColor?: string;
|
|
124
|
+
axisPlacement?: AxisPlacement;
|
|
125
|
+
axisColorMode?: AxisColorMode;
|
|
126
|
+
axisLabel?: string;
|
|
127
|
+
axisWidth?: number;
|
|
128
|
+
axisSoftMin?: number;
|
|
129
|
+
axisSoftMax?: number;
|
|
130
|
+
axisGridShow?: boolean;
|
|
131
|
+
scaleDistribution?: ScaleDistributionConfig;
|
|
132
|
+
axisCenteredZero?: boolean;
|
|
133
|
+
barAlignment?: BarAlignment;
|
|
134
|
+
barWidthFactor?: number;
|
|
135
|
+
stacking?: StackingConfig;
|
|
136
|
+
hideFrom?: HideSeriesConfig;
|
|
137
|
+
hideValue?: boolean;
|
|
138
|
+
insertNulls?: boolean | number;
|
|
139
|
+
/**
|
|
140
|
+
* Indicate if null values should be treated as gaps or connected.
|
|
141
|
+
* When the value is a number, it represents the maximum delta in the
|
|
142
|
+
* X axis that should be considered connected. For timeseries, this is milliseconds
|
|
143
|
+
*/
|
|
144
|
+
spanNulls?: boolean | number;
|
|
145
|
+
fillBelowTo?: string;
|
|
146
|
+
pointSymbol?: string;
|
|
147
|
+
axisBorderShow?: boolean;
|
|
148
|
+
barMaxWidth?: number;
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* Gauge cell options
|
|
152
|
+
*/
|
|
153
|
+
export interface TableBarGaugeCellOptions {
|
|
154
|
+
type: TableCellDisplayMode;
|
|
155
|
+
mode?: BarGaugeDisplayMode;
|
|
156
|
+
valueDisplayMode?: BarGaugeValueMode;
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* Colored background cell options
|
|
160
|
+
*/
|
|
161
|
+
export interface TableColoredBackgroundCellOptions {
|
|
162
|
+
type: TableCellDisplayMode;
|
|
163
|
+
mode?: TableCellBackgroundDisplayMode;
|
|
164
|
+
applyToRow?: boolean;
|
|
165
|
+
wrapText?: boolean;
|
|
166
|
+
}
|
|
167
|
+
/**
|
|
168
|
+
* Colored text cell options
|
|
169
|
+
*/
|
|
170
|
+
export interface TableColorTextCellOptions {
|
|
171
|
+
type: TableCellDisplayMode;
|
|
172
|
+
wrapText?: boolean;
|
|
173
|
+
}
|
|
174
|
+
/**
|
|
175
|
+
* Json view cell options
|
|
176
|
+
*/
|
|
177
|
+
export interface TableImageCellOptions {
|
|
178
|
+
type: TableCellDisplayMode;
|
|
179
|
+
alt?: string;
|
|
180
|
+
title?: string;
|
|
181
|
+
}
|
|
182
|
+
/**
|
|
183
|
+
* Show data links in the cell
|
|
184
|
+
*/
|
|
185
|
+
export interface TableDataLinksCellOptions {
|
|
186
|
+
type: TableCellDisplayMode;
|
|
187
|
+
}
|
|
188
|
+
/**
|
|
189
|
+
* Show actions in the cell
|
|
190
|
+
*/
|
|
191
|
+
export interface TableActionsCellOptions {
|
|
192
|
+
type: TableCellDisplayMode;
|
|
193
|
+
}
|
|
194
|
+
/**
|
|
195
|
+
* Json view cell options
|
|
196
|
+
*/
|
|
197
|
+
export interface TableJsonViewCellOptions {
|
|
198
|
+
type: TableCellDisplayMode;
|
|
199
|
+
}
|
|
200
|
+
/**
|
|
201
|
+
* TODO docs
|
|
202
|
+
*/
|
|
203
|
+
export type GraphDrawStyle = "line" | "bars" | "points";
|
|
204
|
+
/**
|
|
205
|
+
* TODO docs
|
|
206
|
+
*/
|
|
207
|
+
export type GraphGradientMode = "none" | "opacity" | "hue" | "scheme";
|
|
208
|
+
/**
|
|
209
|
+
* TODO docs
|
|
210
|
+
*/
|
|
211
|
+
export interface GraphThresholdsStyleConfig {
|
|
212
|
+
mode: GraphThresholdsStyleMode;
|
|
213
|
+
}
|
|
214
|
+
/**
|
|
215
|
+
* TODO docs
|
|
216
|
+
*/
|
|
217
|
+
export type GraphTransform = "constant" | "negative-Y";
|
|
218
|
+
/**
|
|
219
|
+
* TODO docs
|
|
220
|
+
*/
|
|
221
|
+
export type LineInterpolation = "linear" | "smooth" | "stepBefore" | "stepAfter";
|
|
222
|
+
/**
|
|
223
|
+
* TODO docs
|
|
224
|
+
*/
|
|
225
|
+
export interface LineStyle {
|
|
226
|
+
fill?: "solid" | "dash" | "dot" | "square";
|
|
227
|
+
dash?: number[];
|
|
228
|
+
}
|
|
229
|
+
/**
|
|
230
|
+
* TODO docs
|
|
231
|
+
*/
|
|
232
|
+
export type VisibilityMode = "auto" | "never" | "always";
|
|
233
|
+
/**
|
|
234
|
+
* TODO docs
|
|
235
|
+
*/
|
|
236
|
+
export type AxisPlacement = "auto" | "top" | "right" | "bottom" | "left" | "hidden";
|
|
237
|
+
/**
|
|
238
|
+
* TODO docs
|
|
239
|
+
*/
|
|
240
|
+
export type AxisColorMode = "text" | "series";
|
|
241
|
+
/**
|
|
242
|
+
* TODO docs
|
|
243
|
+
*/
|
|
244
|
+
export interface ScaleDistributionConfig {
|
|
245
|
+
type: ScaleDistribution;
|
|
246
|
+
log?: number;
|
|
247
|
+
linearThreshold?: number;
|
|
248
|
+
}
|
|
249
|
+
/**
|
|
250
|
+
* TODO docs
|
|
251
|
+
*/
|
|
252
|
+
export type BarAlignment = -1 | 0 | 1;
|
|
253
|
+
/**
|
|
254
|
+
* TODO docs
|
|
255
|
+
*/
|
|
256
|
+
export interface StackingConfig {
|
|
257
|
+
mode?: StackingMode;
|
|
258
|
+
group?: string;
|
|
259
|
+
}
|
|
260
|
+
/**
|
|
261
|
+
* TODO docs
|
|
262
|
+
*/
|
|
263
|
+
export interface HideSeriesConfig {
|
|
264
|
+
tooltip: boolean;
|
|
265
|
+
legend: boolean;
|
|
266
|
+
viz: boolean;
|
|
267
|
+
}
|
|
268
|
+
/**
|
|
269
|
+
* Enum expressing the possible display modes
|
|
270
|
+
* for the bar gauge component of Grafana UI
|
|
271
|
+
*/
|
|
272
|
+
export type BarGaugeDisplayMode = "basic" | "lcd" | "gradient";
|
|
273
|
+
/**
|
|
274
|
+
* Allows for the table cell gauge display type to set the gauge mode.
|
|
275
|
+
*/
|
|
276
|
+
export type BarGaugeValueMode = "color" | "text" | "hidden";
|
|
277
|
+
/**
|
|
278
|
+
* Display mode to the "Colored Background" display
|
|
279
|
+
* mode for table cells. Either displays a solid color (basic mode)
|
|
280
|
+
* or a gradient.
|
|
281
|
+
*/
|
|
282
|
+
export type TableCellBackgroundDisplayMode = "basic" | "gradient";
|
|
283
|
+
/**
|
|
284
|
+
* TODO docs
|
|
285
|
+
*/
|
|
286
|
+
export type GraphThresholdsStyleMode = "off" | "line" | "dashed" | "area" | "line+area" | "dashed+area" | "series";
|
|
287
|
+
/**
|
|
288
|
+
* TODO docs
|
|
289
|
+
*/
|
|
290
|
+
export type ScaleDistribution = "linear" | "log" | "ordinal" | "symlog";
|
|
291
|
+
/**
|
|
292
|
+
* TODO docs
|
|
293
|
+
*/
|
|
294
|
+
export type StackingMode = "none" | "normal" | "percent";
|
|
295
|
+
//# sourceMappingURL=table.gen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"table.gen.d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;AAE9C;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,iBAAiB,CAAC;IACxB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AAEtC;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,OAAO,CAAC;IAChB,GAAG,EAAE,OAAO,CAAC;CACd;AAED;;;GAGG;AACH,MAAM,MAAM,mBAAmB,GAAG,OAAO,GAAG,KAAK,GAAG,UAAU,CAAC;AAE/D;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,OAAO,GAAG,MAAM,GAAG,QAAQ,CAAC;AAE5D;;;;GAIG;AACH,MAAM,MAAM,8BAA8B,GAAG,OAAO,GAAG,UAAU,CAAC;AAElE;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG,KAAK,GAAG,MAAM,GAAG,QAAQ,GAAG,MAAM,GAAG,WAAW,GAAG,aAAa,GAAG,QAAQ,CAAC;AAEnH;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,QAAQ,GAAG,KAAK,GAAG,SAAS,GAAG,QAAQ,CAAC;AAExE;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,QAAQ,GAAG,SAAS,CAAC"}
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
export interface Dataquery {
|
|
2
|
+
/**
|
|
3
|
+
* A unique identifier for the query within the list of targets.
|
|
4
|
+
* In server side expressions, the refId is used as a variable name to identify results.
|
|
5
|
+
* By default, the UI will assign A->Z; however setting meaningful names may be useful.
|
|
6
|
+
*/
|
|
7
|
+
refId?: string | null;
|
|
8
|
+
/**
|
|
9
|
+
* If hide is set to true, Grafana will filter out the response(s) associated with this query before returning it to the panel.
|
|
10
|
+
*/
|
|
11
|
+
hide?: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Specify the query flavor
|
|
14
|
+
* TODO make this required and give it a default
|
|
15
|
+
*/
|
|
16
|
+
queryType?: string;
|
|
17
|
+
/**
|
|
18
|
+
* TraceQL query or trace ID
|
|
19
|
+
*/
|
|
20
|
+
query?: string;
|
|
21
|
+
/**
|
|
22
|
+
* @deprecated Logfmt query to filter traces by their tags. Example: http.status_code=200 error=true
|
|
23
|
+
*/
|
|
24
|
+
search?: string;
|
|
25
|
+
/**
|
|
26
|
+
* @deprecated Query traces by service name
|
|
27
|
+
*/
|
|
28
|
+
serviceName?: string;
|
|
29
|
+
/**
|
|
30
|
+
* @deprecated Query traces by span name
|
|
31
|
+
*/
|
|
32
|
+
spanName?: string;
|
|
33
|
+
/**
|
|
34
|
+
* @deprecated Define the minimum duration to select traces. Use duration format, for example: 1.2s, 100ms
|
|
35
|
+
*/
|
|
36
|
+
minDuration?: string;
|
|
37
|
+
/**
|
|
38
|
+
* @deprecated Define the maximum duration to select traces. Use duration format, for example: 1.2s, 100ms
|
|
39
|
+
*/
|
|
40
|
+
maxDuration?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Filters to be included in a PromQL query to select data for the service graph. Example: {client="app",service="app"}. Providing multiple values will produce union of results for each filter, using PromQL OR operator internally.
|
|
43
|
+
*/
|
|
44
|
+
serviceMapQuery?: string | string[];
|
|
45
|
+
/**
|
|
46
|
+
* Use service.namespace in addition to service.name to uniquely identify a service.
|
|
47
|
+
*/
|
|
48
|
+
serviceMapIncludeNamespace?: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Defines the maximum number of traces that are returned from Tempo
|
|
51
|
+
*/
|
|
52
|
+
limit?: number;
|
|
53
|
+
/**
|
|
54
|
+
* Defines the maximum number of spans per spanset that are returned from Tempo
|
|
55
|
+
*/
|
|
56
|
+
spss?: number;
|
|
57
|
+
filters: TraceqlFilter[];
|
|
58
|
+
/**
|
|
59
|
+
* Filters that are used to query the metrics summary
|
|
60
|
+
*/
|
|
61
|
+
groupBy?: TraceqlFilter[];
|
|
62
|
+
/**
|
|
63
|
+
* The type of the table that is used to display the search results
|
|
64
|
+
*/
|
|
65
|
+
tableType?: SearchTableType;
|
|
66
|
+
/**
|
|
67
|
+
* For metric queries, the step size to use
|
|
68
|
+
*/
|
|
69
|
+
step?: string;
|
|
70
|
+
/**
|
|
71
|
+
* For metric queries, how many exemplars to request, 0 means no exemplars
|
|
72
|
+
*/
|
|
73
|
+
exemplars?: number;
|
|
74
|
+
/**
|
|
75
|
+
* For mixed data sources the selected datasource is on the query level.
|
|
76
|
+
* For non mixed scenarios this is undefined.
|
|
77
|
+
* TODO find a better way to do this ^ that's friendly to schema
|
|
78
|
+
* TODO this shouldn't be unknown but DataSourceRef | null
|
|
79
|
+
*/
|
|
80
|
+
datasource?: DataSourceRef;
|
|
81
|
+
/**
|
|
82
|
+
* For metric queries, whether to run instant or range queries
|
|
83
|
+
*/
|
|
84
|
+
metricsQueryType?: MetricsQueryType;
|
|
85
|
+
}
|
|
86
|
+
export interface TraceqlFilter {
|
|
87
|
+
/**
|
|
88
|
+
* Uniquely identify the filter, will not be used in the query generation
|
|
89
|
+
*/
|
|
90
|
+
id: string;
|
|
91
|
+
/**
|
|
92
|
+
* The tag for the search filter, for example: .http.status_code, .service.name, status
|
|
93
|
+
*/
|
|
94
|
+
tag?: string;
|
|
95
|
+
/**
|
|
96
|
+
* The operator that connects the tag to the value, for example: =, >, !=, =~
|
|
97
|
+
*/
|
|
98
|
+
operator?: string;
|
|
99
|
+
/**
|
|
100
|
+
* The value for the search filter
|
|
101
|
+
*/
|
|
102
|
+
value?: string | string[];
|
|
103
|
+
/**
|
|
104
|
+
* The type of the value, used for example to check whether we need to wrap the value in quotes when generating the query
|
|
105
|
+
*/
|
|
106
|
+
valueType?: string;
|
|
107
|
+
/**
|
|
108
|
+
* The scope of the filter, can either be unscoped/all scopes, resource or span
|
|
109
|
+
*/
|
|
110
|
+
scope?: TraceqlSearchScope;
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* static fields are pre-set in the UI, dynamic fields are added by the user
|
|
114
|
+
*/
|
|
115
|
+
export type TraceqlSearchScope = "intrinsic" | "unscoped" | "event" | "instrumentation" | "link" | "resource" | "span";
|
|
116
|
+
/**
|
|
117
|
+
* The type of the table that is used to display the search results
|
|
118
|
+
*/
|
|
119
|
+
export type SearchTableType = "traces" | "spans" | "raw";
|
|
120
|
+
export type MetricsQueryType = "range" | "instant";
|
|
121
|
+
export type TempoQueryType = "traceql" | "traceqlSearch" | "serviceMap" | "upload" | "nativeSearch" | "traceId" | "clear";
|
|
122
|
+
/**
|
|
123
|
+
* The state of the TraceQL streaming search query
|
|
124
|
+
*/
|
|
125
|
+
export type SearchStreamingState = "pending" | "streaming" | "done" | "error";
|
|
126
|
+
export interface DataSourceRef {
|
|
127
|
+
/**
|
|
128
|
+
* The plugin type-id
|
|
129
|
+
*/
|
|
130
|
+
type?: string;
|
|
131
|
+
/**
|
|
132
|
+
* Specific datasource instance
|
|
133
|
+
*/
|
|
134
|
+
uid?: string;
|
|
135
|
+
}
|
|
136
|
+
//# sourceMappingURL=tempo.gen.d.ts.map
|