@intentius/chant-lexicon-grafana 0.99.0 → 0.100.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.
Files changed (224) hide show
  1. package/README.md +12 -6
  2. package/dist/annotations.d.ts +61 -0
  3. package/dist/annotations.d.ts.map +1 -0
  4. package/dist/api/apply.d.ts +8 -4
  5. package/dist/api/apply.d.ts.map +1 -1
  6. package/dist/api/fake-grafana.d.ts +2 -0
  7. package/dist/api/fake-grafana.d.ts.map +1 -1
  8. package/dist/api/folders.d.ts +53 -17
  9. package/dist/api/folders.d.ts.map +1 -1
  10. package/dist/build.d.ts +26 -5
  11. package/dist/build.d.ts.map +1 -1
  12. package/dist/catalog.d.ts +1 -1
  13. package/dist/catalog.d.ts.map +1 -1
  14. package/dist/codegen/docs.d.ts.map +1 -1
  15. package/dist/codegen/generate.d.ts +7 -1
  16. package/dist/codegen/generate.d.ts.map +1 -1
  17. package/dist/composites/shared.d.ts +4 -3
  18. package/dist/composites/shared.d.ts.map +1 -1
  19. package/dist/dashboard.d.ts +42 -14
  20. package/dist/dashboard.d.ts.map +1 -1
  21. package/dist/datasource-refs.d.ts +9 -5
  22. package/dist/datasource-refs.d.ts.map +1 -1
  23. package/dist/datasource-settings.d.ts +834 -0
  24. package/dist/datasource-settings.d.ts.map +1 -0
  25. package/dist/datasource.d.ts +53 -11
  26. package/dist/datasource.d.ts.map +1 -1
  27. package/dist/deep-observe-hooks.d.ts +1 -1
  28. package/dist/deep-observe-hooks.d.ts.map +1 -1
  29. package/dist/deep-observe.d.ts +9 -4
  30. package/dist/deep-observe.d.ts.map +1 -1
  31. package/dist/describe-resources.d.ts +1 -0
  32. package/dist/describe-resources.d.ts.map +1 -1
  33. package/dist/detect.d.ts +4 -2
  34. package/dist/detect.d.ts.map +1 -1
  35. package/dist/folder.d.ts +68 -0
  36. package/dist/folder.d.ts.map +1 -0
  37. package/dist/import/generator.d.ts.map +1 -1
  38. package/dist/import/mappings.d.ts +12 -6
  39. package/dist/import/mappings.d.ts.map +1 -1
  40. package/dist/import/model.d.ts +7 -0
  41. package/dist/import/model.d.ts.map +1 -1
  42. package/dist/import/normalize.d.ts.map +1 -1
  43. package/dist/import/parser.d.ts +16 -1
  44. package/dist/import/parser.d.ts.map +1 -1
  45. package/dist/import/testdata/fixtures.d.ts +6 -0
  46. package/dist/import/testdata/fixtures.d.ts.map +1 -1
  47. package/dist/import/v2.d.ts +4 -3
  48. package/dist/import/v2.d.ts.map +1 -1
  49. package/dist/index.d.ts +11 -9
  50. package/dist/index.d.ts.map +1 -1
  51. package/dist/init-templates.d.ts +27 -0
  52. package/dist/init-templates.d.ts.map +1 -0
  53. package/dist/integrity.json +11 -9
  54. package/dist/lint/audit-catalog.d.ts +1 -1
  55. package/dist/lint/audit-catalog.d.ts.map +1 -1
  56. package/dist/lint/post-synth/graf101.d.ts +1 -1
  57. package/dist/lint/post-synth/graf104.d.ts +2 -2
  58. package/dist/lint/post-synth/graf106.d.ts +2 -2
  59. package/dist/lint/post-synth/graf110.d.ts +8 -0
  60. package/dist/lint/post-synth/graf110.d.ts.map +1 -0
  61. package/dist/lint/post-synth/grafana-helpers.d.ts.map +1 -1
  62. package/dist/lint/post-synth/index.d.ts.map +1 -1
  63. package/dist/manifest.json +1 -1
  64. package/dist/meta.json +70 -0
  65. package/dist/okf/index.md +18 -3
  66. package/dist/okf/rules/GRAF101.md +2 -2
  67. package/dist/okf/rules/GRAF104.md +2 -2
  68. package/dist/okf/rules/GRAF106.md +2 -2
  69. package/dist/okf/rules/GRAF110.md +11 -0
  70. package/dist/okf/types/AdhocVariable.md +9 -0
  71. package/dist/okf/types/AzureMonitorQuery.md +9 -0
  72. package/dist/okf/types/BigQueryQuery.md +9 -0
  73. package/dist/okf/types/CloudMonitoringQuery.md +9 -0
  74. package/dist/okf/types/CloudWatchQuery.md +9 -0
  75. package/dist/okf/types/Dashboard.md +1 -1
  76. package/dist/okf/types/Datasource.md +1 -1
  77. package/dist/okf/types/DatasourceProvisioning.md +9 -0
  78. package/dist/okf/types/ElasticsearchQuery.md +9 -0
  79. package/dist/okf/types/ExternalDatasource.md +1 -1
  80. package/dist/okf/types/Folder.md +9 -0
  81. package/dist/okf/types/GroupByVariable.md +9 -0
  82. package/dist/okf/types/MSSQLQuery.md +9 -0
  83. package/dist/okf/types/MySQLQuery.md +9 -0
  84. package/dist/okf/types/PostgresQuery.md +9 -0
  85. package/dist/okf/types/PyroscopeQuery.md +9 -0
  86. package/dist/okf/types/SwitchVariable.md +9 -0
  87. package/dist/op/activities/grafana-apply.d.ts +11 -0
  88. package/dist/op/activities/grafana-apply.d.ts.map +1 -1
  89. package/dist/op/activities/index.d.ts +1 -1
  90. package/dist/op/activities/index.d.ts.map +1 -1
  91. package/dist/ownership.d.ts +11 -0
  92. package/dist/ownership.d.ts.map +1 -1
  93. package/dist/pin.d.ts +1 -1
  94. package/dist/pin.d.ts.map +1 -1
  95. package/dist/plugin.d.ts.map +1 -1
  96. package/dist/promql-check.d.ts.map +1 -1
  97. package/dist/query-models.d.ts +95 -0
  98. package/dist/query-models.d.ts.map +1 -0
  99. package/dist/query.d.ts +107 -10
  100. package/dist/query.d.ts.map +1 -1
  101. package/dist/rules/graf101.ts +2 -2
  102. package/dist/rules/graf104.ts +3 -3
  103. package/dist/rules/graf106.ts +3 -3
  104. package/dist/rules/graf110.ts +17 -0
  105. package/dist/rules/grafana-helpers.ts +13 -3
  106. package/dist/schema/azuremonitor.gen.d.ts +354 -0
  107. package/dist/schema/azuremonitor.gen.d.ts.map +1 -0
  108. package/dist/schema/bigquery.gen.d.ts +93 -0
  109. package/dist/schema/bigquery.gen.d.ts.map +1 -0
  110. package/dist/schema/cloudwatch.gen.d.ts +394 -0
  111. package/dist/schema/cloudwatch.gen.d.ts.map +1 -0
  112. package/dist/schema/elasticsearch.gen.d.ts +444 -0
  113. package/dist/schema/elasticsearch.gen.d.ts.map +1 -0
  114. package/dist/schema/googlecloudmonitoring.gen.d.ts +312 -0
  115. package/dist/schema/googlecloudmonitoring.gen.d.ts.map +1 -0
  116. package/dist/schema/grafanapyroscope.gen.d.ts +60 -0
  117. package/dist/schema/grafanapyroscope.gen.d.ts.map +1 -0
  118. package/dist/schema/index.d.ts +6 -0
  119. package/dist/schema/index.d.ts.map +1 -1
  120. package/dist/schema/table.gen.d.ts +13 -0
  121. package/dist/schema/table.gen.d.ts.map +1 -1
  122. package/dist/schema-validate.d.ts +9 -0
  123. package/dist/schema-validate.d.ts.map +1 -1
  124. package/dist/skill-defs.d.ts.map +1 -1
  125. package/dist/skills/chant-grafana-operations.md +108 -0
  126. package/dist/skills/chant-grafana.md +5 -4
  127. package/dist/spec/schemas.d.ts +9 -7
  128. package/dist/spec/schemas.d.ts.map +1 -1
  129. package/dist/spec/schemas.gen.d.ts +3 -0
  130. package/dist/spec/schemas.gen.d.ts.map +1 -0
  131. package/dist/validate-alerting.d.ts.map +1 -1
  132. package/dist/validate-output.d.ts +15 -2
  133. package/dist/validate-output.d.ts.map +1 -1
  134. package/dist/validate.d.ts.map +1 -1
  135. package/dist/validation.d.ts +14 -0
  136. package/dist/validation.d.ts.map +1 -0
  137. package/dist/variables.d.ts +102 -5
  138. package/dist/variables.d.ts.map +1 -1
  139. package/package.json +2 -2
  140. package/src/annotations.ts +84 -0
  141. package/src/api/apply.test.ts +19 -1
  142. package/src/api/apply.ts +18 -8
  143. package/src/api/fake-grafana.ts +6 -2
  144. package/src/api/folders.ts +106 -32
  145. package/src/build.test.ts +142 -6
  146. package/src/build.ts +126 -24
  147. package/src/catalog.ts +20 -2
  148. package/src/codegen/docs.ts +13 -6
  149. package/src/codegen/generate.ts +27 -1
  150. package/src/composites/shared.ts +3 -2
  151. package/src/dashboard.ts +59 -14
  152. package/src/datasource-refs.ts +30 -6
  153. package/src/datasource-settings.test.ts +106 -0
  154. package/src/datasource-settings.ts +941 -0
  155. package/src/datasource.ts +71 -11
  156. package/src/deep-observe-hooks.ts +16 -1
  157. package/src/deep-observe.test.ts +47 -1
  158. package/src/deep-observe.ts +36 -13
  159. package/src/describe-resources.test.ts +16 -0
  160. package/src/describe-resources.ts +36 -1
  161. package/src/detect.ts +3 -3
  162. package/src/folder.ts +118 -0
  163. package/src/generated/lexicon-grafana.json +70 -0
  164. package/src/import/generated-types.e2e.test.ts +15 -3
  165. package/src/import/generator.ts +2 -1
  166. package/src/import/mappings.ts +98 -26
  167. package/src/import/model.ts +7 -0
  168. package/src/import/normalize.ts +32 -3
  169. package/src/import/parser.test.ts +97 -21
  170. package/src/import/parser.ts +169 -18
  171. package/src/import/roundtrip.test.ts +104 -9
  172. package/src/import/testdata/fixtures.ts +8 -0
  173. package/src/import/v2.ts +4 -3
  174. package/src/index.ts +122 -13
  175. package/src/init-templates.test.ts +74 -0
  176. package/src/init-templates.ts +349 -0
  177. package/src/lint/audit-catalog.ts +9 -1
  178. package/src/lint/post-synth/graf101.ts +2 -2
  179. package/src/lint/post-synth/graf104.ts +3 -3
  180. package/src/lint/post-synth/graf106.ts +3 -3
  181. package/src/lint/post-synth/graf110.ts +17 -0
  182. package/src/lint/post-synth/grafana-helpers.ts +13 -3
  183. package/src/lint/post-synth/index.ts +2 -0
  184. package/src/lint/post-synth/post-synth.test.ts +99 -2
  185. package/src/load-cost.test.ts +35 -0
  186. package/src/op/activities/grafana-apply.e2e.test.ts +14 -5
  187. package/src/op/activities/grafana-apply.test.ts +16 -2
  188. package/src/op/activities/grafana-apply.ts +29 -3
  189. package/src/op/activities/index.ts +1 -1
  190. package/src/ownership.ts +19 -0
  191. package/src/panels.test.ts +3 -1
  192. package/src/pin.ts +12 -0
  193. package/src/plugin.test.ts +9 -2
  194. package/src/plugin.ts +9 -0
  195. package/src/promql-check.ts +5 -1
  196. package/src/query-models.ts +94 -0
  197. package/src/query.test.ts +166 -0
  198. package/src/query.ts +177 -12
  199. package/src/schema/azuremonitor.gen.ts +381 -0
  200. package/src/schema/bigquery.gen.ts +110 -0
  201. package/src/schema/cloudwatch.gen.ts +423 -0
  202. package/src/schema/elasticsearch.gen.ts +508 -0
  203. package/src/schema/googlecloudmonitoring.gen.ts +330 -0
  204. package/src/schema/grafanapyroscope.gen.ts +66 -0
  205. package/src/schema/index.ts +6 -0
  206. package/src/schema/table.gen.ts +14 -0
  207. package/src/schema-validate.ts +58 -7
  208. package/src/skill-defs.ts +17 -0
  209. package/src/skills/chant-grafana-operations.md +108 -0
  210. package/src/skills/chant-grafana.md +5 -4
  211. package/src/spec/overlay/table.overlay.json +19 -0
  212. package/src/spec/schemas/azuremonitor.jsonschema.json +679 -0
  213. package/src/spec/schemas/bigquery.jsonschema.json +290 -0
  214. package/src/spec/schemas/cloudwatch.jsonschema.json +721 -0
  215. package/src/spec/schemas/elasticsearch.jsonschema.json +1695 -0
  216. package/src/spec/schemas/googlecloudmonitoring.jsonschema.json +488 -0
  217. package/src/spec/schemas/grafanapyroscope.jsonschema.json +93 -0
  218. package/src/spec/schemas.gen.ts +40 -0
  219. package/src/spec/schemas.ts +9 -7
  220. package/src/validate-alerting.ts +4 -2
  221. package/src/validate-output.ts +96 -4
  222. package/src/validate.ts +14 -0
  223. package/src/validation.ts +27 -0
  224. package/src/variables.ts +113 -6
@@ -0,0 +1,1695 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$ref": "#/definitions/dataquery",
4
+ "definitions": {
5
+ "BucketAggregation": {
6
+ "oneOf": [
7
+ {
8
+ "$ref": "#/definitions/DateHistogram"
9
+ },
10
+ {
11
+ "$ref": "#/definitions/Histogram"
12
+ },
13
+ {
14
+ "$ref": "#/definitions/Terms"
15
+ },
16
+ {
17
+ "$ref": "#/definitions/Filters"
18
+ },
19
+ {
20
+ "$ref": "#/definitions/GeoHashGrid"
21
+ },
22
+ {
23
+ "$ref": "#/definitions/Nested"
24
+ }
25
+ ]
26
+ },
27
+ "DateHistogram": {
28
+ "type": "object",
29
+ "additionalProperties": false,
30
+ "required": [
31
+ "id",
32
+ "type"
33
+ ],
34
+ "properties": {
35
+ "field": {
36
+ "type": "string"
37
+ },
38
+ "id": {
39
+ "type": "string"
40
+ },
41
+ "type": {
42
+ "allOf": [
43
+ {
44
+ "$ref": "#/definitions/BucketAggregationType"
45
+ }
46
+ ],
47
+ "default": "date_histogram"
48
+ },
49
+ "settings": {
50
+ "type": "object",
51
+ "additionalProperties": false,
52
+ "properties": {
53
+ "interval": {
54
+ "type": "string"
55
+ },
56
+ "min_doc_count": {
57
+ "type": "string"
58
+ },
59
+ "trimEdges": {
60
+ "type": "string"
61
+ },
62
+ "offset": {
63
+ "type": "string"
64
+ },
65
+ "timeZone": {
66
+ "type": "string"
67
+ }
68
+ }
69
+ }
70
+ }
71
+ },
72
+ "BucketAggregationType": {
73
+ "enum": [
74
+ "terms",
75
+ "filters",
76
+ "geohash_grid",
77
+ "date_histogram",
78
+ "histogram",
79
+ "nested"
80
+ ],
81
+ "type": "string"
82
+ },
83
+ "Histogram": {
84
+ "type": "object",
85
+ "additionalProperties": false,
86
+ "required": [
87
+ "id",
88
+ "type"
89
+ ],
90
+ "properties": {
91
+ "field": {
92
+ "type": "string"
93
+ },
94
+ "id": {
95
+ "type": "string"
96
+ },
97
+ "type": {
98
+ "allOf": [
99
+ {
100
+ "$ref": "#/definitions/BucketAggregationType"
101
+ }
102
+ ],
103
+ "default": "histogram"
104
+ },
105
+ "settings": {
106
+ "type": "object",
107
+ "additionalProperties": false,
108
+ "properties": {
109
+ "interval": {
110
+ "type": "string"
111
+ },
112
+ "min_doc_count": {
113
+ "type": "string"
114
+ }
115
+ }
116
+ }
117
+ }
118
+ },
119
+ "Terms": {
120
+ "type": "object",
121
+ "additionalProperties": false,
122
+ "required": [
123
+ "id",
124
+ "type"
125
+ ],
126
+ "properties": {
127
+ "field": {
128
+ "type": "string"
129
+ },
130
+ "id": {
131
+ "type": "string"
132
+ },
133
+ "type": {
134
+ "allOf": [
135
+ {
136
+ "$ref": "#/definitions/BucketAggregationType"
137
+ }
138
+ ],
139
+ "default": "terms"
140
+ },
141
+ "settings": {
142
+ "type": "object",
143
+ "additionalProperties": false,
144
+ "properties": {
145
+ "order": {
146
+ "$ref": "#/definitions/TermsOrder"
147
+ },
148
+ "size": {
149
+ "type": "string"
150
+ },
151
+ "min_doc_count": {
152
+ "type": "string"
153
+ },
154
+ "orderBy": {
155
+ "type": "string"
156
+ },
157
+ "missing": {
158
+ "type": "string"
159
+ }
160
+ }
161
+ }
162
+ }
163
+ },
164
+ "TermsOrder": {
165
+ "enum": [
166
+ "desc",
167
+ "asc"
168
+ ],
169
+ "type": "string"
170
+ },
171
+ "Filters": {
172
+ "type": "object",
173
+ "additionalProperties": false,
174
+ "required": [
175
+ "id",
176
+ "type"
177
+ ],
178
+ "properties": {
179
+ "id": {
180
+ "type": "string"
181
+ },
182
+ "type": {
183
+ "allOf": [
184
+ {
185
+ "$ref": "#/definitions/BucketAggregationType"
186
+ }
187
+ ],
188
+ "default": "filters"
189
+ },
190
+ "settings": {
191
+ "type": "object",
192
+ "additionalProperties": false,
193
+ "properties": {
194
+ "filters": {
195
+ "type": "array",
196
+ "items": {
197
+ "$ref": "#/definitions/Filter"
198
+ }
199
+ }
200
+ }
201
+ }
202
+ }
203
+ },
204
+ "Filter": {
205
+ "type": "object",
206
+ "additionalProperties": false,
207
+ "required": [
208
+ "query",
209
+ "label"
210
+ ],
211
+ "properties": {
212
+ "query": {
213
+ "type": "string"
214
+ },
215
+ "label": {
216
+ "type": "string"
217
+ }
218
+ }
219
+ },
220
+ "GeoHashGrid": {
221
+ "type": "object",
222
+ "additionalProperties": false,
223
+ "required": [
224
+ "id",
225
+ "type"
226
+ ],
227
+ "properties": {
228
+ "field": {
229
+ "type": "string"
230
+ },
231
+ "id": {
232
+ "type": "string"
233
+ },
234
+ "type": {
235
+ "allOf": [
236
+ {
237
+ "$ref": "#/definitions/BucketAggregationType"
238
+ }
239
+ ],
240
+ "default": "geohash_grid"
241
+ },
242
+ "settings": {
243
+ "type": "object",
244
+ "additionalProperties": false,
245
+ "properties": {
246
+ "precision": {
247
+ "type": "string"
248
+ }
249
+ }
250
+ }
251
+ }
252
+ },
253
+ "Nested": {
254
+ "type": "object",
255
+ "additionalProperties": false,
256
+ "required": [
257
+ "id",
258
+ "type"
259
+ ],
260
+ "properties": {
261
+ "field": {
262
+ "type": "string"
263
+ },
264
+ "id": {
265
+ "type": "string"
266
+ },
267
+ "type": {
268
+ "allOf": [
269
+ {
270
+ "$ref": "#/definitions/BucketAggregationType"
271
+ }
272
+ ],
273
+ "default": "nested"
274
+ },
275
+ "settings": {
276
+ "type": "object",
277
+ "additionalProperties": {}
278
+ }
279
+ }
280
+ },
281
+ "MetricAggregation": {
282
+ "oneOf": [
283
+ {
284
+ "$ref": "#/definitions/Count"
285
+ },
286
+ {
287
+ "$ref": "#/definitions/PipelineMetricAggregation"
288
+ },
289
+ {
290
+ "$ref": "#/definitions/MetricAggregationWithSettings"
291
+ }
292
+ ]
293
+ },
294
+ "Count": {
295
+ "type": "object",
296
+ "additionalProperties": false,
297
+ "required": [
298
+ "type",
299
+ "id"
300
+ ],
301
+ "properties": {
302
+ "type": {
303
+ "$ref": "#/definitions/MetricAggregationType"
304
+ },
305
+ "id": {
306
+ "type": "string"
307
+ },
308
+ "hide": {
309
+ "type": "boolean"
310
+ }
311
+ }
312
+ },
313
+ "MetricAggregationType": {
314
+ "oneOf": [
315
+ {
316
+ "type": "string",
317
+ "const": "count"
318
+ },
319
+ {
320
+ "type": "string",
321
+ "const": "avg"
322
+ },
323
+ {
324
+ "type": "string",
325
+ "const": "sum"
326
+ },
327
+ {
328
+ "type": "string",
329
+ "const": "min"
330
+ },
331
+ {
332
+ "type": "string",
333
+ "const": "max"
334
+ },
335
+ {
336
+ "type": "string",
337
+ "const": "extended_stats"
338
+ },
339
+ {
340
+ "type": "string",
341
+ "const": "percentiles"
342
+ },
343
+ {
344
+ "type": "string",
345
+ "const": "cardinality"
346
+ },
347
+ {
348
+ "type": "string",
349
+ "const": "raw_document"
350
+ },
351
+ {
352
+ "type": "string",
353
+ "const": "raw_data"
354
+ },
355
+ {
356
+ "type": "string",
357
+ "const": "logs"
358
+ },
359
+ {
360
+ "type": "string",
361
+ "const": "rate"
362
+ },
363
+ {
364
+ "type": "string",
365
+ "const": "top_metrics"
366
+ },
367
+ {
368
+ "$ref": "#/definitions/PipelineMetricAggregationType"
369
+ }
370
+ ]
371
+ },
372
+ "PipelineMetricAggregationType": {
373
+ "enum": [
374
+ "moving_avg",
375
+ "moving_fn",
376
+ "derivative",
377
+ "serial_diff",
378
+ "cumulative_sum",
379
+ "bucket_script"
380
+ ],
381
+ "type": "string"
382
+ },
383
+ "PipelineMetricAggregation": {
384
+ "oneOf": [
385
+ {
386
+ "$ref": "#/definitions/MovingAverage"
387
+ },
388
+ {
389
+ "$ref": "#/definitions/Derivative"
390
+ },
391
+ {
392
+ "$ref": "#/definitions/CumulativeSum"
393
+ },
394
+ {
395
+ "$ref": "#/definitions/BucketScript"
396
+ }
397
+ ]
398
+ },
399
+ "MovingAverage": {
400
+ "type": "object",
401
+ "additionalProperties": false,
402
+ "required": [
403
+ "type",
404
+ "id"
405
+ ],
406
+ "properties": {
407
+ "pipelineAgg": {
408
+ "type": "string"
409
+ },
410
+ "field": {
411
+ "type": "string"
412
+ },
413
+ "type": {
414
+ "$ref": "#/definitions/MetricAggregationType"
415
+ },
416
+ "id": {
417
+ "type": "string"
418
+ },
419
+ "settings": {
420
+ "type": "object",
421
+ "additionalProperties": {
422
+ "type": "object",
423
+ "additionalProperties": {}
424
+ }
425
+ },
426
+ "hide": {
427
+ "type": "boolean"
428
+ }
429
+ },
430
+ "description": "#MovingAverage's settings are overridden in types.ts"
431
+ },
432
+ "Derivative": {
433
+ "type": "object",
434
+ "additionalProperties": false,
435
+ "required": [
436
+ "type",
437
+ "id"
438
+ ],
439
+ "properties": {
440
+ "pipelineAgg": {
441
+ "type": "string"
442
+ },
443
+ "field": {
444
+ "type": "string"
445
+ },
446
+ "type": {
447
+ "$ref": "#/definitions/MetricAggregationType"
448
+ },
449
+ "id": {
450
+ "type": "string"
451
+ },
452
+ "settings": {
453
+ "type": "object",
454
+ "additionalProperties": false,
455
+ "properties": {
456
+ "unit": {
457
+ "type": "string"
458
+ }
459
+ }
460
+ },
461
+ "hide": {
462
+ "type": "boolean"
463
+ }
464
+ }
465
+ },
466
+ "CumulativeSum": {
467
+ "type": "object",
468
+ "additionalProperties": false,
469
+ "required": [
470
+ "type",
471
+ "id"
472
+ ],
473
+ "properties": {
474
+ "pipelineAgg": {
475
+ "type": "string"
476
+ },
477
+ "field": {
478
+ "type": "string"
479
+ },
480
+ "type": {
481
+ "$ref": "#/definitions/MetricAggregationType"
482
+ },
483
+ "id": {
484
+ "type": "string"
485
+ },
486
+ "settings": {
487
+ "type": "object",
488
+ "additionalProperties": false,
489
+ "properties": {
490
+ "format": {
491
+ "type": "string"
492
+ }
493
+ }
494
+ },
495
+ "hide": {
496
+ "type": "boolean"
497
+ }
498
+ }
499
+ },
500
+ "BucketScript": {
501
+ "type": "object",
502
+ "additionalProperties": false,
503
+ "required": [
504
+ "type",
505
+ "id"
506
+ ],
507
+ "properties": {
508
+ "type": {
509
+ "$ref": "#/definitions/MetricAggregationType"
510
+ },
511
+ "pipelineVariables": {
512
+ "type": "array",
513
+ "items": {
514
+ "$ref": "#/definitions/PipelineVariable"
515
+ }
516
+ },
517
+ "id": {
518
+ "type": "string"
519
+ },
520
+ "settings": {
521
+ "type": "object",
522
+ "additionalProperties": false,
523
+ "properties": {
524
+ "script": {
525
+ "$ref": "#/definitions/InlineScript"
526
+ }
527
+ }
528
+ },
529
+ "hide": {
530
+ "type": "boolean"
531
+ }
532
+ }
533
+ },
534
+ "PipelineVariable": {
535
+ "type": "object",
536
+ "additionalProperties": false,
537
+ "required": [
538
+ "name",
539
+ "pipelineAgg"
540
+ ],
541
+ "properties": {
542
+ "name": {
543
+ "type": "string"
544
+ },
545
+ "pipelineAgg": {
546
+ "type": "string"
547
+ }
548
+ }
549
+ },
550
+ "InlineScript": {
551
+ "oneOf": [
552
+ {
553
+ "type": "string"
554
+ },
555
+ {
556
+ "type": "object",
557
+ "additionalProperties": false,
558
+ "properties": {
559
+ "inline": {
560
+ "type": "string"
561
+ }
562
+ }
563
+ }
564
+ ]
565
+ },
566
+ "MetricAggregationWithSettings": {
567
+ "oneOf": [
568
+ {
569
+ "$ref": "#/definitions/BucketScript"
570
+ },
571
+ {
572
+ "$ref": "#/definitions/CumulativeSum"
573
+ },
574
+ {
575
+ "$ref": "#/definitions/Derivative"
576
+ },
577
+ {
578
+ "$ref": "#/definitions/SerialDiff"
579
+ },
580
+ {
581
+ "$ref": "#/definitions/RawData"
582
+ },
583
+ {
584
+ "$ref": "#/definitions/RawDocument"
585
+ },
586
+ {
587
+ "$ref": "#/definitions/UniqueCount"
588
+ },
589
+ {
590
+ "$ref": "#/definitions/Percentiles"
591
+ },
592
+ {
593
+ "$ref": "#/definitions/ExtendedStats"
594
+ },
595
+ {
596
+ "$ref": "#/definitions/Min"
597
+ },
598
+ {
599
+ "$ref": "#/definitions/Max"
600
+ },
601
+ {
602
+ "$ref": "#/definitions/Sum"
603
+ },
604
+ {
605
+ "$ref": "#/definitions/Average"
606
+ },
607
+ {
608
+ "$ref": "#/definitions/MovingAverage"
609
+ },
610
+ {
611
+ "$ref": "#/definitions/MovingFunction"
612
+ },
613
+ {
614
+ "$ref": "#/definitions/Logs"
615
+ },
616
+ {
617
+ "$ref": "#/definitions/Rate"
618
+ },
619
+ {
620
+ "$ref": "#/definitions/TopMetrics"
621
+ }
622
+ ]
623
+ },
624
+ "SerialDiff": {
625
+ "type": "object",
626
+ "additionalProperties": false,
627
+ "required": [
628
+ "type",
629
+ "id"
630
+ ],
631
+ "properties": {
632
+ "pipelineAgg": {
633
+ "type": "string"
634
+ },
635
+ "field": {
636
+ "type": "string"
637
+ },
638
+ "type": {
639
+ "$ref": "#/definitions/MetricAggregationType"
640
+ },
641
+ "id": {
642
+ "type": "string"
643
+ },
644
+ "settings": {
645
+ "type": "object",
646
+ "additionalProperties": false,
647
+ "properties": {
648
+ "lag": {
649
+ "type": "string"
650
+ }
651
+ }
652
+ },
653
+ "hide": {
654
+ "type": "boolean"
655
+ }
656
+ }
657
+ },
658
+ "RawData": {
659
+ "type": "object",
660
+ "additionalProperties": false,
661
+ "required": [
662
+ "type",
663
+ "id"
664
+ ],
665
+ "properties": {
666
+ "type": {
667
+ "$ref": "#/definitions/MetricAggregationType"
668
+ },
669
+ "id": {
670
+ "type": "string"
671
+ },
672
+ "settings": {
673
+ "type": "object",
674
+ "additionalProperties": false,
675
+ "properties": {
676
+ "size": {
677
+ "type": "string"
678
+ }
679
+ }
680
+ },
681
+ "hide": {
682
+ "type": "boolean"
683
+ }
684
+ }
685
+ },
686
+ "RawDocument": {
687
+ "type": "object",
688
+ "additionalProperties": false,
689
+ "required": [
690
+ "type",
691
+ "id"
692
+ ],
693
+ "properties": {
694
+ "type": {
695
+ "$ref": "#/definitions/MetricAggregationType"
696
+ },
697
+ "id": {
698
+ "type": "string"
699
+ },
700
+ "settings": {
701
+ "type": "object",
702
+ "additionalProperties": false,
703
+ "properties": {
704
+ "size": {
705
+ "type": "string"
706
+ }
707
+ }
708
+ },
709
+ "hide": {
710
+ "type": "boolean"
711
+ }
712
+ }
713
+ },
714
+ "UniqueCount": {
715
+ "type": "object",
716
+ "additionalProperties": false,
717
+ "required": [
718
+ "type",
719
+ "id"
720
+ ],
721
+ "properties": {
722
+ "type": {
723
+ "$ref": "#/definitions/MetricAggregationType"
724
+ },
725
+ "field": {
726
+ "type": "string"
727
+ },
728
+ "id": {
729
+ "type": "string"
730
+ },
731
+ "settings": {
732
+ "type": "object",
733
+ "additionalProperties": false,
734
+ "properties": {
735
+ "precision_threshold": {
736
+ "type": "string"
737
+ },
738
+ "missing": {
739
+ "type": "string"
740
+ }
741
+ }
742
+ },
743
+ "hide": {
744
+ "type": "boolean"
745
+ }
746
+ }
747
+ },
748
+ "Percentiles": {
749
+ "type": "object",
750
+ "additionalProperties": false,
751
+ "required": [
752
+ "type",
753
+ "id"
754
+ ],
755
+ "properties": {
756
+ "type": {
757
+ "$ref": "#/definitions/MetricAggregationType"
758
+ },
759
+ "field": {
760
+ "type": "string"
761
+ },
762
+ "id": {
763
+ "type": "string"
764
+ },
765
+ "settings": {
766
+ "type": "object",
767
+ "additionalProperties": false,
768
+ "properties": {
769
+ "script": {
770
+ "$ref": "#/definitions/InlineScript"
771
+ },
772
+ "missing": {
773
+ "type": "string"
774
+ },
775
+ "percents": {
776
+ "type": "array",
777
+ "items": {
778
+ "type": "string"
779
+ }
780
+ }
781
+ }
782
+ },
783
+ "hide": {
784
+ "type": "boolean"
785
+ }
786
+ }
787
+ },
788
+ "ExtendedStats": {
789
+ "type": "object",
790
+ "additionalProperties": false,
791
+ "required": [
792
+ "type",
793
+ "id"
794
+ ],
795
+ "properties": {
796
+ "type": {
797
+ "$ref": "#/definitions/MetricAggregationType"
798
+ },
799
+ "settings": {
800
+ "type": "object",
801
+ "additionalProperties": false,
802
+ "properties": {
803
+ "script": {
804
+ "$ref": "#/definitions/InlineScript"
805
+ },
806
+ "missing": {
807
+ "type": "string"
808
+ },
809
+ "sigma": {
810
+ "type": "string"
811
+ }
812
+ }
813
+ },
814
+ "field": {
815
+ "type": "string"
816
+ },
817
+ "id": {
818
+ "type": "string"
819
+ },
820
+ "meta": {
821
+ "type": "object",
822
+ "additionalProperties": {}
823
+ },
824
+ "hide": {
825
+ "type": "boolean"
826
+ }
827
+ }
828
+ },
829
+ "Min": {
830
+ "type": "object",
831
+ "additionalProperties": false,
832
+ "required": [
833
+ "type",
834
+ "id"
835
+ ],
836
+ "properties": {
837
+ "type": {
838
+ "$ref": "#/definitions/MetricAggregationType"
839
+ },
840
+ "field": {
841
+ "type": "string"
842
+ },
843
+ "id": {
844
+ "type": "string"
845
+ },
846
+ "settings": {
847
+ "type": "object",
848
+ "additionalProperties": false,
849
+ "properties": {
850
+ "script": {
851
+ "$ref": "#/definitions/InlineScript"
852
+ },
853
+ "missing": {
854
+ "type": "string"
855
+ }
856
+ }
857
+ },
858
+ "hide": {
859
+ "type": "boolean"
860
+ }
861
+ }
862
+ },
863
+ "Max": {
864
+ "type": "object",
865
+ "additionalProperties": false,
866
+ "required": [
867
+ "type",
868
+ "id"
869
+ ],
870
+ "properties": {
871
+ "type": {
872
+ "$ref": "#/definitions/MetricAggregationType"
873
+ },
874
+ "field": {
875
+ "type": "string"
876
+ },
877
+ "id": {
878
+ "type": "string"
879
+ },
880
+ "settings": {
881
+ "type": "object",
882
+ "additionalProperties": false,
883
+ "properties": {
884
+ "script": {
885
+ "$ref": "#/definitions/InlineScript"
886
+ },
887
+ "missing": {
888
+ "type": "string"
889
+ }
890
+ }
891
+ },
892
+ "hide": {
893
+ "type": "boolean"
894
+ }
895
+ }
896
+ },
897
+ "Sum": {
898
+ "type": "object",
899
+ "additionalProperties": false,
900
+ "required": [
901
+ "type",
902
+ "id"
903
+ ],
904
+ "properties": {
905
+ "type": {
906
+ "$ref": "#/definitions/MetricAggregationType"
907
+ },
908
+ "field": {
909
+ "type": "string"
910
+ },
911
+ "id": {
912
+ "type": "string"
913
+ },
914
+ "settings": {
915
+ "type": "object",
916
+ "additionalProperties": false,
917
+ "properties": {
918
+ "script": {
919
+ "$ref": "#/definitions/InlineScript"
920
+ },
921
+ "missing": {
922
+ "type": "string"
923
+ }
924
+ }
925
+ },
926
+ "hide": {
927
+ "type": "boolean"
928
+ }
929
+ }
930
+ },
931
+ "Average": {
932
+ "type": "object",
933
+ "additionalProperties": false,
934
+ "required": [
935
+ "type",
936
+ "id"
937
+ ],
938
+ "properties": {
939
+ "type": {
940
+ "$ref": "#/definitions/MetricAggregationType"
941
+ },
942
+ "field": {
943
+ "type": "string"
944
+ },
945
+ "id": {
946
+ "type": "string"
947
+ },
948
+ "settings": {
949
+ "type": "object",
950
+ "additionalProperties": false,
951
+ "properties": {
952
+ "script": {
953
+ "$ref": "#/definitions/InlineScript"
954
+ },
955
+ "missing": {
956
+ "type": "string"
957
+ }
958
+ }
959
+ },
960
+ "hide": {
961
+ "type": "boolean"
962
+ }
963
+ }
964
+ },
965
+ "MovingFunction": {
966
+ "type": "object",
967
+ "additionalProperties": false,
968
+ "required": [
969
+ "type",
970
+ "id"
971
+ ],
972
+ "properties": {
973
+ "pipelineAgg": {
974
+ "type": "string"
975
+ },
976
+ "field": {
977
+ "type": "string"
978
+ },
979
+ "type": {
980
+ "$ref": "#/definitions/MetricAggregationType"
981
+ },
982
+ "id": {
983
+ "type": "string"
984
+ },
985
+ "settings": {
986
+ "type": "object",
987
+ "additionalProperties": false,
988
+ "properties": {
989
+ "window": {
990
+ "type": "string"
991
+ },
992
+ "script": {
993
+ "$ref": "#/definitions/InlineScript"
994
+ },
995
+ "shift": {
996
+ "type": "string"
997
+ }
998
+ }
999
+ },
1000
+ "hide": {
1001
+ "type": "boolean"
1002
+ }
1003
+ }
1004
+ },
1005
+ "Logs": {
1006
+ "type": "object",
1007
+ "additionalProperties": false,
1008
+ "required": [
1009
+ "type",
1010
+ "id"
1011
+ ],
1012
+ "properties": {
1013
+ "type": {
1014
+ "$ref": "#/definitions/MetricAggregationType"
1015
+ },
1016
+ "id": {
1017
+ "type": "string"
1018
+ },
1019
+ "settings": {
1020
+ "type": "object",
1021
+ "additionalProperties": false,
1022
+ "properties": {
1023
+ "limit": {
1024
+ "type": "string"
1025
+ }
1026
+ }
1027
+ },
1028
+ "hide": {
1029
+ "type": "boolean"
1030
+ }
1031
+ }
1032
+ },
1033
+ "Rate": {
1034
+ "type": "object",
1035
+ "additionalProperties": false,
1036
+ "required": [
1037
+ "type",
1038
+ "id"
1039
+ ],
1040
+ "properties": {
1041
+ "type": {
1042
+ "$ref": "#/definitions/MetricAggregationType"
1043
+ },
1044
+ "field": {
1045
+ "type": "string"
1046
+ },
1047
+ "id": {
1048
+ "type": "string"
1049
+ },
1050
+ "settings": {
1051
+ "type": "object",
1052
+ "additionalProperties": false,
1053
+ "properties": {
1054
+ "unit": {
1055
+ "type": "string"
1056
+ },
1057
+ "mode": {
1058
+ "type": "string"
1059
+ }
1060
+ }
1061
+ },
1062
+ "hide": {
1063
+ "type": "boolean"
1064
+ }
1065
+ }
1066
+ },
1067
+ "TopMetrics": {
1068
+ "type": "object",
1069
+ "additionalProperties": false,
1070
+ "required": [
1071
+ "type",
1072
+ "id"
1073
+ ],
1074
+ "properties": {
1075
+ "type": {
1076
+ "$ref": "#/definitions/MetricAggregationType"
1077
+ },
1078
+ "id": {
1079
+ "type": "string"
1080
+ },
1081
+ "settings": {
1082
+ "type": "object",
1083
+ "additionalProperties": false,
1084
+ "properties": {
1085
+ "order": {
1086
+ "type": "string"
1087
+ },
1088
+ "orderBy": {
1089
+ "type": "string"
1090
+ },
1091
+ "metrics": {
1092
+ "type": "array",
1093
+ "items": {
1094
+ "type": "string"
1095
+ }
1096
+ }
1097
+ }
1098
+ },
1099
+ "hide": {
1100
+ "type": "boolean"
1101
+ }
1102
+ }
1103
+ },
1104
+ "BaseBucketAggregation": {
1105
+ "type": "object",
1106
+ "additionalProperties": false,
1107
+ "required": [
1108
+ "id",
1109
+ "type"
1110
+ ],
1111
+ "properties": {
1112
+ "id": {
1113
+ "type": "string"
1114
+ },
1115
+ "type": {
1116
+ "$ref": "#/definitions/BucketAggregationType"
1117
+ },
1118
+ "settings": {
1119
+ "type": "object",
1120
+ "additionalProperties": {}
1121
+ }
1122
+ }
1123
+ },
1124
+ "BucketAggregationWithField": {
1125
+ "type": "object",
1126
+ "additionalProperties": false,
1127
+ "required": [
1128
+ "id",
1129
+ "type"
1130
+ ],
1131
+ "properties": {
1132
+ "field": {
1133
+ "type": "string"
1134
+ },
1135
+ "id": {
1136
+ "type": "string"
1137
+ },
1138
+ "type": {
1139
+ "$ref": "#/definitions/BucketAggregationType"
1140
+ },
1141
+ "settings": {
1142
+ "type": "object",
1143
+ "additionalProperties": {}
1144
+ }
1145
+ }
1146
+ },
1147
+ "DateHistogramSettings": {
1148
+ "type": "object",
1149
+ "additionalProperties": false,
1150
+ "properties": {
1151
+ "interval": {
1152
+ "type": "string"
1153
+ },
1154
+ "min_doc_count": {
1155
+ "type": "string"
1156
+ },
1157
+ "trimEdges": {
1158
+ "type": "string"
1159
+ },
1160
+ "offset": {
1161
+ "type": "string"
1162
+ },
1163
+ "timeZone": {
1164
+ "type": "string"
1165
+ }
1166
+ }
1167
+ },
1168
+ "HistogramSettings": {
1169
+ "type": "object",
1170
+ "additionalProperties": false,
1171
+ "properties": {
1172
+ "interval": {
1173
+ "type": "string"
1174
+ },
1175
+ "min_doc_count": {
1176
+ "type": "string"
1177
+ }
1178
+ }
1179
+ },
1180
+ "TermsSettings": {
1181
+ "type": "object",
1182
+ "additionalProperties": false,
1183
+ "properties": {
1184
+ "order": {
1185
+ "$ref": "#/definitions/TermsOrder"
1186
+ },
1187
+ "size": {
1188
+ "type": "string"
1189
+ },
1190
+ "min_doc_count": {
1191
+ "type": "string"
1192
+ },
1193
+ "orderBy": {
1194
+ "type": "string"
1195
+ },
1196
+ "missing": {
1197
+ "type": "string"
1198
+ }
1199
+ }
1200
+ },
1201
+ "FiltersSettings": {
1202
+ "type": "object",
1203
+ "additionalProperties": false,
1204
+ "properties": {
1205
+ "filters": {
1206
+ "type": "array",
1207
+ "items": {
1208
+ "$ref": "#/definitions/Filter"
1209
+ }
1210
+ }
1211
+ }
1212
+ },
1213
+ "GeoHashGridSettings": {
1214
+ "type": "object",
1215
+ "additionalProperties": false,
1216
+ "properties": {
1217
+ "precision": {
1218
+ "type": "string"
1219
+ }
1220
+ }
1221
+ },
1222
+ "BaseMetricAggregation": {
1223
+ "type": "object",
1224
+ "additionalProperties": false,
1225
+ "required": [
1226
+ "type",
1227
+ "id"
1228
+ ],
1229
+ "properties": {
1230
+ "type": {
1231
+ "$ref": "#/definitions/MetricAggregationType"
1232
+ },
1233
+ "id": {
1234
+ "type": "string"
1235
+ },
1236
+ "hide": {
1237
+ "type": "boolean"
1238
+ }
1239
+ }
1240
+ },
1241
+ "MetricAggregationWithField": {
1242
+ "type": "object",
1243
+ "additionalProperties": false,
1244
+ "required": [
1245
+ "type",
1246
+ "id"
1247
+ ],
1248
+ "properties": {
1249
+ "field": {
1250
+ "type": "string"
1251
+ },
1252
+ "type": {
1253
+ "$ref": "#/definitions/MetricAggregationType"
1254
+ },
1255
+ "id": {
1256
+ "type": "string"
1257
+ },
1258
+ "hide": {
1259
+ "type": "boolean"
1260
+ }
1261
+ }
1262
+ },
1263
+ "MetricAggregationWithMissingSupport": {
1264
+ "type": "object",
1265
+ "additionalProperties": false,
1266
+ "required": [
1267
+ "type",
1268
+ "id"
1269
+ ],
1270
+ "properties": {
1271
+ "settings": {
1272
+ "type": "object",
1273
+ "additionalProperties": false,
1274
+ "properties": {
1275
+ "missing": {
1276
+ "type": "string"
1277
+ }
1278
+ }
1279
+ },
1280
+ "type": {
1281
+ "$ref": "#/definitions/MetricAggregationType"
1282
+ },
1283
+ "id": {
1284
+ "type": "string"
1285
+ },
1286
+ "hide": {
1287
+ "type": "boolean"
1288
+ }
1289
+ }
1290
+ },
1291
+ "MetricAggregationWithInlineScript": {
1292
+ "type": "object",
1293
+ "additionalProperties": false,
1294
+ "required": [
1295
+ "type",
1296
+ "id"
1297
+ ],
1298
+ "properties": {
1299
+ "settings": {
1300
+ "type": "object",
1301
+ "additionalProperties": false,
1302
+ "properties": {
1303
+ "script": {
1304
+ "$ref": "#/definitions/InlineScript"
1305
+ }
1306
+ }
1307
+ },
1308
+ "type": {
1309
+ "$ref": "#/definitions/MetricAggregationType"
1310
+ },
1311
+ "id": {
1312
+ "type": "string"
1313
+ },
1314
+ "hide": {
1315
+ "type": "boolean"
1316
+ }
1317
+ }
1318
+ },
1319
+ "ExtendedStatMetaType": {
1320
+ "enum": [
1321
+ "avg",
1322
+ "min",
1323
+ "max",
1324
+ "sum",
1325
+ "count",
1326
+ "std_deviation",
1327
+ "std_deviation_bounds_upper",
1328
+ "std_deviation_bounds_lower"
1329
+ ],
1330
+ "type": "string"
1331
+ },
1332
+ "ExtendedStat": {
1333
+ "type": "object",
1334
+ "additionalProperties": false,
1335
+ "required": [
1336
+ "label",
1337
+ "value"
1338
+ ],
1339
+ "properties": {
1340
+ "label": {
1341
+ "type": "string"
1342
+ },
1343
+ "value": {
1344
+ "$ref": "#/definitions/ExtendedStatMetaType"
1345
+ }
1346
+ }
1347
+ },
1348
+ "BasePipelineMetricAggregation": {
1349
+ "type": "object",
1350
+ "additionalProperties": false,
1351
+ "required": [
1352
+ "type",
1353
+ "id"
1354
+ ],
1355
+ "properties": {
1356
+ "pipelineAgg": {
1357
+ "type": "string"
1358
+ },
1359
+ "field": {
1360
+ "type": "string"
1361
+ },
1362
+ "type": {
1363
+ "type": "string"
1364
+ },
1365
+ "id": {
1366
+ "type": "string"
1367
+ },
1368
+ "hide": {
1369
+ "type": "boolean"
1370
+ }
1371
+ }
1372
+ },
1373
+ "PipelineMetricAggregationWithMultipleBucketPaths": {
1374
+ "type": "object",
1375
+ "additionalProperties": false,
1376
+ "required": [
1377
+ "type",
1378
+ "id"
1379
+ ],
1380
+ "properties": {
1381
+ "pipelineVariables": {
1382
+ "type": "array",
1383
+ "items": {
1384
+ "$ref": "#/definitions/PipelineVariable"
1385
+ }
1386
+ },
1387
+ "type": {
1388
+ "$ref": "#/definitions/MetricAggregationType"
1389
+ },
1390
+ "id": {
1391
+ "type": "string"
1392
+ },
1393
+ "hide": {
1394
+ "type": "boolean"
1395
+ }
1396
+ }
1397
+ },
1398
+ "MovingAverageModel": {
1399
+ "enum": [
1400
+ "simple",
1401
+ "linear",
1402
+ "ewma",
1403
+ "holt",
1404
+ "holt_winters"
1405
+ ],
1406
+ "type": "string"
1407
+ },
1408
+ "MovingAverageModelOption": {
1409
+ "type": "object",
1410
+ "additionalProperties": false,
1411
+ "required": [
1412
+ "label",
1413
+ "value"
1414
+ ],
1415
+ "properties": {
1416
+ "label": {
1417
+ "type": "string"
1418
+ },
1419
+ "value": {
1420
+ "$ref": "#/definitions/MovingAverageModel"
1421
+ }
1422
+ }
1423
+ },
1424
+ "BaseMovingAverageModelSettings": {
1425
+ "type": "object",
1426
+ "additionalProperties": false,
1427
+ "required": [
1428
+ "model",
1429
+ "window",
1430
+ "predict"
1431
+ ],
1432
+ "properties": {
1433
+ "model": {
1434
+ "$ref": "#/definitions/MovingAverageModel"
1435
+ },
1436
+ "window": {
1437
+ "type": "string"
1438
+ },
1439
+ "predict": {
1440
+ "type": "string"
1441
+ }
1442
+ }
1443
+ },
1444
+ "MovingAverageSimpleModelSettings": {
1445
+ "type": "object",
1446
+ "additionalProperties": false,
1447
+ "required": [
1448
+ "model",
1449
+ "window",
1450
+ "predict"
1451
+ ],
1452
+ "properties": {
1453
+ "model": {
1454
+ "allOf": [
1455
+ {
1456
+ "$ref": "#/definitions/MovingAverageModel"
1457
+ }
1458
+ ],
1459
+ "default": "simple"
1460
+ },
1461
+ "window": {
1462
+ "type": "string"
1463
+ },
1464
+ "predict": {
1465
+ "type": "string"
1466
+ }
1467
+ }
1468
+ },
1469
+ "MovingAverageLinearModelSettings": {
1470
+ "type": "object",
1471
+ "additionalProperties": false,
1472
+ "required": [
1473
+ "model",
1474
+ "window",
1475
+ "predict"
1476
+ ],
1477
+ "properties": {
1478
+ "model": {
1479
+ "allOf": [
1480
+ {
1481
+ "$ref": "#/definitions/MovingAverageModel"
1482
+ }
1483
+ ],
1484
+ "default": "linear"
1485
+ },
1486
+ "window": {
1487
+ "type": "string"
1488
+ },
1489
+ "predict": {
1490
+ "type": "string"
1491
+ }
1492
+ }
1493
+ },
1494
+ "MovingAverageEWMAModelSettings": {
1495
+ "type": "object",
1496
+ "additionalProperties": false,
1497
+ "required": [
1498
+ "model",
1499
+ "window",
1500
+ "minimize",
1501
+ "predict"
1502
+ ],
1503
+ "properties": {
1504
+ "model": {
1505
+ "allOf": [
1506
+ {
1507
+ "$ref": "#/definitions/MovingAverageModel"
1508
+ }
1509
+ ],
1510
+ "default": "ewma"
1511
+ },
1512
+ "settings": {
1513
+ "type": "object",
1514
+ "additionalProperties": false,
1515
+ "properties": {
1516
+ "alpha": {
1517
+ "type": "string"
1518
+ }
1519
+ }
1520
+ },
1521
+ "window": {
1522
+ "type": "string"
1523
+ },
1524
+ "minimize": {
1525
+ "type": "boolean"
1526
+ },
1527
+ "predict": {
1528
+ "type": "string"
1529
+ }
1530
+ }
1531
+ },
1532
+ "MovingAverageHoltModelSettings": {
1533
+ "type": "object",
1534
+ "additionalProperties": false,
1535
+ "required": [
1536
+ "model",
1537
+ "settings",
1538
+ "window",
1539
+ "minimize",
1540
+ "predict"
1541
+ ],
1542
+ "properties": {
1543
+ "model": {
1544
+ "allOf": [
1545
+ {
1546
+ "$ref": "#/definitions/MovingAverageModel"
1547
+ }
1548
+ ],
1549
+ "default": "holt"
1550
+ },
1551
+ "settings": {
1552
+ "type": "object",
1553
+ "additionalProperties": false,
1554
+ "properties": {
1555
+ "alpha": {
1556
+ "type": "string"
1557
+ },
1558
+ "beta": {
1559
+ "type": "string"
1560
+ }
1561
+ }
1562
+ },
1563
+ "window": {
1564
+ "type": "string"
1565
+ },
1566
+ "minimize": {
1567
+ "type": "boolean"
1568
+ },
1569
+ "predict": {
1570
+ "type": "string"
1571
+ }
1572
+ }
1573
+ },
1574
+ "MovingAverageHoltWintersModelSettings": {
1575
+ "type": "object",
1576
+ "additionalProperties": false,
1577
+ "required": [
1578
+ "model",
1579
+ "settings",
1580
+ "window",
1581
+ "minimize",
1582
+ "predict"
1583
+ ],
1584
+ "properties": {
1585
+ "model": {
1586
+ "allOf": [
1587
+ {
1588
+ "$ref": "#/definitions/MovingAverageModel"
1589
+ }
1590
+ ],
1591
+ "default": "holt_winters"
1592
+ },
1593
+ "settings": {
1594
+ "type": "object",
1595
+ "additionalProperties": false,
1596
+ "properties": {
1597
+ "alpha": {
1598
+ "type": "string"
1599
+ },
1600
+ "beta": {
1601
+ "type": "string"
1602
+ },
1603
+ "gamma": {
1604
+ "type": "string"
1605
+ },
1606
+ "period": {
1607
+ "type": "string"
1608
+ },
1609
+ "pad": {
1610
+ "type": "boolean"
1611
+ }
1612
+ }
1613
+ },
1614
+ "window": {
1615
+ "type": "string"
1616
+ },
1617
+ "minimize": {
1618
+ "type": "boolean"
1619
+ },
1620
+ "predict": {
1621
+ "type": "string"
1622
+ }
1623
+ }
1624
+ },
1625
+ "dataquery": {
1626
+ "type": "object",
1627
+ "additionalProperties": false,
1628
+ "properties": {
1629
+ "alias": {
1630
+ "type": "string",
1631
+ "description": "Alias pattern"
1632
+ },
1633
+ "query": {
1634
+ "type": "string",
1635
+ "description": "Lucene query"
1636
+ },
1637
+ "timeField": {
1638
+ "type": "string",
1639
+ "description": "Name of time field"
1640
+ },
1641
+ "bucketAggs": {
1642
+ "type": "array",
1643
+ "items": {
1644
+ "$ref": "#/definitions/BucketAggregation"
1645
+ },
1646
+ "description": "List of bucket aggregations"
1647
+ },
1648
+ "metrics": {
1649
+ "type": "array",
1650
+ "items": {
1651
+ "$ref": "#/definitions/MetricAggregation"
1652
+ },
1653
+ "description": "List of metric aggregations"
1654
+ },
1655
+ "refId": {
1656
+ "anyOf": [
1657
+ {
1658
+ "type": "string"
1659
+ },
1660
+ {
1661
+ "type": "null"
1662
+ }
1663
+ ],
1664
+ "description": "A unique identifier for the query within the list of targets.\nIn server side expressions, the refId is used as a variable name to identify results.\nBy default, the UI will assign A-\u003eZ; however setting meaningful names may be useful."
1665
+ },
1666
+ "hide": {
1667
+ "type": "boolean",
1668
+ "description": "If hide is set to true, Grafana will filter out the response(s) associated with this query before returning it to the panel."
1669
+ },
1670
+ "queryType": {
1671
+ "type": "string",
1672
+ "description": "Specify the query flavor\nTODO make this required and give it a default"
1673
+ },
1674
+ "datasource": {
1675
+ "$ref": "#/definitions/DataSourceRef",
1676
+ "description": "For mixed data sources the selected datasource is on the query level.\nFor non mixed scenarios this is undefined.\nTODO find a better way to do this ^ that's friendly to schema\nTODO this shouldn't be unknown but DataSourceRef | null"
1677
+ }
1678
+ }
1679
+ },
1680
+ "DataSourceRef": {
1681
+ "type": "object",
1682
+ "additionalProperties": false,
1683
+ "properties": {
1684
+ "type": {
1685
+ "type": "string",
1686
+ "description": "The plugin type-id"
1687
+ },
1688
+ "uid": {
1689
+ "type": "string",
1690
+ "description": "Specific datasource instance"
1691
+ }
1692
+ }
1693
+ }
1694
+ }
1695
+ }