@kong-ui-public/analytics-utilities 12.7.1 → 12.7.2-pr.2694.d983d66d0.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 (81) hide show
  1. package/package.json +1 -1
  2. package/dist/types/constants.d.ts +0 -4
  3. package/dist/types/constants.d.ts.map +0 -1
  4. package/dist/types/dashboardSchema.v2.d.ts +0 -3243
  5. package/dist/types/dashboardSchema.v2.d.ts.map +0 -1
  6. package/dist/types/filters.d.ts +0 -3
  7. package/dist/types/filters.d.ts.map +0 -1
  8. package/dist/types/format.d.ts +0 -34
  9. package/dist/types/format.d.ts.map +0 -1
  10. package/dist/types/granularity.d.ts +0 -27
  11. package/dist/types/granularity.d.ts.map +0 -1
  12. package/dist/types/index.d.ts +0 -10
  13. package/dist/types/index.d.ts.map +0 -1
  14. package/dist/types/queryTime.d.ts +0 -36
  15. package/dist/types/queryTime.d.ts.map +0 -1
  16. package/dist/types/specUtils.d.ts +0 -3
  17. package/dist/types/specUtils.d.ts.map +0 -1
  18. package/dist/types/timeframes.d.ts +0 -33
  19. package/dist/types/timeframes.d.ts.map +0 -1
  20. package/dist/types/types/analytics-config.d.ts +0 -24
  21. package/dist/types/types/analytics-config.d.ts.map +0 -1
  22. package/dist/types/types/chart-types.d.ts +0 -3
  23. package/dist/types/types/chart-types.d.ts.map +0 -1
  24. package/dist/types/types/country-codes.d.ts +0 -745
  25. package/dist/types/types/country-codes.d.ts.map +0 -1
  26. package/dist/types/types/datepicker-selection.d.ts +0 -6
  27. package/dist/types/types/datepicker-selection.d.ts.map +0 -1
  28. package/dist/types/types/druid-granularity.d.ts +0 -6
  29. package/dist/types/types/druid-granularity.d.ts.map +0 -1
  30. package/dist/types/types/explore/advanced.d.ts +0 -20
  31. package/dist/types/types/explore/advanced.d.ts.map +0 -1
  32. package/dist/types/types/explore/ai.d.ts +0 -20
  33. package/dist/types/types/explore/ai.d.ts.map +0 -1
  34. package/dist/types/types/explore/all.d.ts +0 -18
  35. package/dist/types/types/explore/all.d.ts.map +0 -1
  36. package/dist/types/types/explore/basic.d.ts +0 -31
  37. package/dist/types/types/explore/basic.d.ts.map +0 -1
  38. package/dist/types/types/explore/common.d.ts +0 -34
  39. package/dist/types/types/explore/common.d.ts.map +0 -1
  40. package/dist/types/types/explore/index.d.ts +0 -8
  41. package/dist/types/types/explore/index.d.ts.map +0 -1
  42. package/dist/types/types/explore/requests.d.ts +0 -57
  43. package/dist/types/types/explore/requests.d.ts.map +0 -1
  44. package/dist/types/types/explore/result.d.ts +0 -48
  45. package/dist/types/types/explore/result.d.ts.map +0 -1
  46. package/dist/types/types/explore/util.d.ts +0 -8
  47. package/dist/types/types/explore/util.d.ts.map +0 -1
  48. package/dist/types/types/index.d.ts +0 -14
  49. package/dist/types/types/index.d.ts.map +0 -1
  50. package/dist/types/types/query-bridge.d.ts +0 -29
  51. package/dist/types/types/query-bridge.d.ts.map +0 -1
  52. package/dist/types/types/query-time.d.ts +0 -13
  53. package/dist/types/types/query-time.d.ts.map +0 -1
  54. package/dist/types/types/request-export.d.ts +0 -11
  55. package/dist/types/types/request-export.d.ts.map +0 -1
  56. package/dist/types/types/time-period.d.ts +0 -9
  57. package/dist/types/types/time-period.d.ts.map +0 -1
  58. package/dist/types/types/timeframe-keys.d.ts +0 -21
  59. package/dist/types/types/timeframe-keys.d.ts.map +0 -1
  60. package/dist/types/types/timeframe-options.d.ts +0 -18
  61. package/dist/types/types/timeframe-options.d.ts.map +0 -1
  62. package/dist/types/types/timeframe.d.ts +0 -17
  63. package/dist/types/types/timeframe.d.ts.map +0 -1
  64. package/dist/types/utils/GeoLookup.d.ts +0 -4
  65. package/dist/types/utils/GeoLookup.d.ts.map +0 -1
  66. package/dist/types/utils/SeedRandom.d.ts +0 -6
  67. package/dist/types/utils/SeedRandom.d.ts.map +0 -1
  68. package/dist/types/utils/chartDataGenerator.d.ts +0 -9
  69. package/dist/types/utils/chartDataGenerator.d.ts.map +0 -1
  70. package/dist/types/utils/formatUnit.d.ts +0 -21
  71. package/dist/types/utils/formatUnit.d.ts.map +0 -1
  72. package/dist/types/utils/helpers.d.ts +0 -2
  73. package/dist/types/utils/helpers.d.ts.map +0 -1
  74. package/dist/types/utils/index.d.ts +0 -6
  75. package/dist/types/utils/index.d.ts.map +0 -1
  76. package/dist/vitals-utilities.cjs +0 -2
  77. package/dist/vitals-utilities.cjs.map +0 -1
  78. package/dist/vitals-utilities.es.js +0 -4042
  79. package/dist/vitals-utilities.es.js.map +0 -1
  80. package/dist/vitals-utilities.umd.js +0 -2
  81. package/dist/vitals-utilities.umd.js.map +0 -1
@@ -1,3243 +0,0 @@
1
- import type { FromSchema, JSONSchema } from 'json-schema-to-ts';
2
- type FromSchemaWithOptions<T extends JSONSchema> = FromSchema<T, {
3
- keepDefaultedPropertiesOptional: true;
4
- }>;
5
- export declare const dashboardTileTypes: readonly ["horizontal_bar", "vertical_bar", "gauge", "donut", "timeseries_line", "timeseries_bar", "golden_signals", "top_n", "slottable", "single_value", "choropleth_map"];
6
- export type DashboardTileType = typeof dashboardTileTypes[number];
7
- export declare const slottableSchema: {
8
- readonly type: "object";
9
- readonly properties: {
10
- readonly type: {
11
- readonly type: "string";
12
- readonly enum: readonly ["slottable"];
13
- };
14
- readonly id: {
15
- readonly type: "string";
16
- };
17
- };
18
- readonly required: readonly ["type", "id"];
19
- readonly additionalProperties: false;
20
- };
21
- export type SlottableOptions = FromSchemaWithOptions<typeof slottableSchema>;
22
- export declare const barChartSchema: {
23
- readonly type: "object";
24
- readonly properties: {
25
- readonly type: {
26
- readonly type: "string";
27
- readonly enum: readonly ["horizontal_bar", "vertical_bar"];
28
- };
29
- readonly stacked: {
30
- readonly type: "boolean";
31
- };
32
- readonly chart_dataset_colors: {
33
- readonly type: readonly ["object", "array"];
34
- readonly items: {
35
- readonly type: "string";
36
- };
37
- readonly additionalProperties: {
38
- readonly type: "string";
39
- };
40
- };
41
- readonly synthetics_data_key: {
42
- readonly type: "string";
43
- };
44
- readonly chart_title: {
45
- readonly type: "string";
46
- };
47
- readonly allow_csv_export: {
48
- readonly type: "boolean";
49
- };
50
- };
51
- readonly required: readonly ["type"];
52
- readonly additionalProperties: false;
53
- };
54
- export type BarChartOptions = FromSchemaWithOptions<typeof barChartSchema>;
55
- export declare const thresholdSchema: {
56
- readonly type: "object";
57
- readonly properties: {
58
- readonly type: {
59
- readonly type: "string";
60
- readonly enum: readonly ["warning", "error", "neutral"];
61
- };
62
- readonly value: {
63
- readonly type: "number";
64
- };
65
- readonly label: {
66
- readonly type: "string";
67
- };
68
- readonly highlightIntersections: {
69
- readonly type: "boolean";
70
- readonly default: false;
71
- };
72
- };
73
- readonly required: readonly ["type", "value"];
74
- readonly additionalProperties: false;
75
- };
76
- export declare const timeseriesChartSchema: {
77
- readonly type: "object";
78
- readonly properties: {
79
- readonly type: {
80
- readonly type: "string";
81
- readonly enum: readonly ["timeseries_line", "timeseries_bar"];
82
- };
83
- readonly stacked: {
84
- readonly type: "boolean";
85
- };
86
- readonly threshold: {
87
- readonly type: "object";
88
- readonly additionalProperties: {
89
- readonly type: "array";
90
- readonly items: {
91
- readonly type: "object";
92
- readonly properties: {
93
- readonly type: {
94
- readonly type: "string";
95
- readonly enum: readonly ["warning", "error", "neutral"];
96
- };
97
- readonly value: {
98
- readonly type: "number";
99
- };
100
- readonly label: {
101
- readonly type: "string";
102
- };
103
- readonly highlightIntersections: {
104
- readonly type: "boolean";
105
- readonly default: false;
106
- };
107
- };
108
- readonly required: readonly ["type", "value"];
109
- readonly additionalProperties: false;
110
- };
111
- };
112
- };
113
- readonly chart_dataset_colors: {
114
- readonly type: readonly ["object", "array"];
115
- readonly items: {
116
- readonly type: "string";
117
- };
118
- readonly additionalProperties: {
119
- readonly type: "string";
120
- };
121
- };
122
- readonly synthetics_data_key: {
123
- readonly type: "string";
124
- };
125
- readonly chart_title: {
126
- readonly type: "string";
127
- };
128
- readonly allow_csv_export: {
129
- readonly type: "boolean";
130
- };
131
- };
132
- readonly required: readonly ["type"];
133
- readonly additionalProperties: false;
134
- };
135
- export type TimeseriesChartOptions = FromSchemaWithOptions<typeof timeseriesChartSchema>;
136
- export declare const gaugeChartSchema: {
137
- readonly type: "object";
138
- readonly properties: {
139
- readonly type: {
140
- readonly type: "string";
141
- readonly enum: readonly ["gauge"];
142
- };
143
- readonly metric_display: {
144
- readonly type: "string";
145
- readonly enum: readonly ["hidden", "single", "full"];
146
- };
147
- readonly reverse_dataset: {
148
- readonly type: "boolean";
149
- };
150
- readonly numerator: {
151
- readonly type: "number";
152
- };
153
- readonly synthetics_data_key: {
154
- readonly type: "string";
155
- };
156
- readonly chart_title: {
157
- readonly type: "string";
158
- };
159
- };
160
- readonly required: readonly ["type"];
161
- readonly additionalProperties: false;
162
- };
163
- export type GaugeChartOptions = FromSchemaWithOptions<typeof gaugeChartSchema>;
164
- export declare const donutChartSchema: {
165
- readonly type: "object";
166
- readonly properties: {
167
- readonly type: {
168
- readonly type: "string";
169
- readonly enum: readonly ["donut"];
170
- };
171
- readonly synthetics_data_key: {
172
- readonly type: "string";
173
- };
174
- readonly chart_title: {
175
- readonly type: "string";
176
- };
177
- };
178
- readonly required: readonly ["type"];
179
- readonly additionalProperties: false;
180
- };
181
- export type DonutChartOptions = FromSchemaWithOptions<typeof donutChartSchema>;
182
- export declare const topNTableSchema: {
183
- readonly type: "object";
184
- readonly properties: {
185
- readonly chart_title: {
186
- readonly type: "string";
187
- };
188
- readonly synthetics_data_key: {
189
- readonly type: "string";
190
- };
191
- readonly type: {
192
- readonly type: "string";
193
- readonly enum: readonly ["top_n"];
194
- };
195
- readonly description: {
196
- readonly type: "string";
197
- };
198
- readonly entity_link: {
199
- readonly type: "string";
200
- };
201
- };
202
- readonly required: readonly ["type"];
203
- readonly additionalProperties: false;
204
- };
205
- export type TopNTableOptions = FromSchemaWithOptions<typeof topNTableSchema>;
206
- export declare const metricCardSchema: {
207
- readonly type: "object";
208
- readonly properties: {
209
- readonly chart_title: {
210
- readonly type: "string";
211
- };
212
- readonly type: {
213
- readonly type: "string";
214
- readonly enum: readonly ["golden_signals"];
215
- };
216
- readonly long_card_titles: {
217
- readonly type: "boolean";
218
- };
219
- readonly description: {
220
- readonly type: "string";
221
- };
222
- readonly percentile_latency: {
223
- readonly type: "boolean";
224
- };
225
- };
226
- readonly required: readonly ["type"];
227
- readonly additionalProperties: false;
228
- };
229
- export type MetricCardOptions = FromSchemaWithOptions<typeof metricCardSchema>;
230
- export declare const singleValueSchema: {
231
- readonly type: "object";
232
- readonly properties: {
233
- readonly type: {
234
- readonly type: "string";
235
- readonly enum: readonly ["single_value"];
236
- };
237
- readonly decimal_points: {
238
- readonly type: "number";
239
- };
240
- readonly chart_title: {
241
- readonly type: "string";
242
- };
243
- };
244
- readonly required: readonly ["type"];
245
- readonly additionalProperties: false;
246
- };
247
- export type SingleValueOptions = FromSchemaWithOptions<typeof singleValueSchema>;
248
- export declare const choroplethMapSchema: {
249
- readonly type: "object";
250
- readonly properties: {
251
- readonly type: {
252
- readonly type: "string";
253
- readonly enum: readonly ["choropleth_map"];
254
- };
255
- readonly chart_title: {
256
- readonly type: "string";
257
- };
258
- readonly fit_to_country: {
259
- readonly type: "string";
260
- readonly enum: ("AF" | "AX" | "AL" | "DZ" | "AS" | "AD" | "AO" | "AI" | "AQ" | "AG" | "AR" | "AM" | "AW" | "AU" | "AT" | "AZ" | "BS" | "BH" | "BD" | "BB" | "BY" | "BE" | "BZ" | "BJ" | "BM" | "BT" | "BO" | "BA" | "BW" | "BV" | "BR" | "IO" | "BN" | "BG" | "BF" | "BI" | "KH" | "CM" | "CA" | "CV" | "KY" | "CF" | "TD" | "CL" | "CN" | "CX" | "CC" | "CO" | "KM" | "CG" | "CD" | "CK" | "CR" | "CI" | "HR" | "CU" | "CY" | "CZ" | "DK" | "DJ" | "DM" | "DO" | "EC" | "EG" | "SV" | "GQ" | "ER" | "EE" | "ET" | "FK" | "FO" | "FJ" | "FI" | "FR" | "GF" | "PF" | "TF" | "GA" | "GM" | "GE" | "DE" | "GH" | "GI" | "GR" | "GL" | "GD" | "GP" | "GU" | "GT" | "GG" | "GN" | "GW" | "GY" | "HT" | "HM" | "VA" | "HN" | "HK" | "HU" | "IS" | "IN" | "ID" | "IR" | "IQ" | "IE" | "IM" | "IL" | "IT" | "JM" | "JP" | "JE" | "JO" | "KZ" | "KE" | "KI" | "KP" | "KR" | "KW" | "KG" | "LA" | "LV" | "LB" | "LS" | "LR" | "LY" | "LI" | "LT" | "LU" | "MO" | "MK" | "MG" | "MW" | "MY" | "MV" | "ML" | "MT" | "MH" | "MQ" | "MR" | "MU" | "YT" | "MX" | "FM" | "MD" | "MC" | "MN" | "ME" | "MS" | "MA" | "MZ" | "MM" | "NA" | "NR" | "NP" | "NL" | "NC" | "NZ" | "NI" | "NE" | "NG" | "NU" | "NF" | "MP" | "NO" | "OM" | "PK" | "PW" | "PA" | "PG" | "PY" | "PE" | "PH" | "PN" | "PL" | "PT" | "PR" | "QA" | "RE" | "RO" | "RU" | "RW" | "BL" | "SH" | "KN" | "LC" | "MF" | "PM" | "VC" | "WS" | "SM" | "ST" | "SA" | "SN" | "RS" | "SC" | "SL" | "SG" | "SX" | "SK" | "SI" | "SB" | "SO" | "ZA" | "GS" | "SS" | "ES" | "LK" | "SD" | "SR" | "SJ" | "SZ" | "SE" | "CH" | "SY" | "TW" | "TJ" | "TZ" | "TH" | "TL" | "TG" | "TK" | "TO" | "TT" | "TN" | "TR" | "TM" | "TC" | "TV" | "UG" | "UA" | "AE" | "GB" | "US" | "UM" | "UY" | "UZ" | "VU" | "VE" | "VN" | "VG" | "VI" | "WF" | "EH" | "YE" | "ZM" | "ZW")[];
261
- };
262
- readonly legend: {
263
- readonly type: "boolean";
264
- readonly default: false;
265
- };
266
- readonly bounds: {
267
- readonly type: "array";
268
- readonly minItems: 2;
269
- readonly maxItems: 2;
270
- readonly items: {
271
- readonly type: "array";
272
- readonly minItems: 2;
273
- readonly maxItems: 2;
274
- readonly items: readonly [{
275
- readonly type: "number";
276
- readonly minimum: -180;
277
- readonly maximum: 180;
278
- }, {
279
- readonly type: "number";
280
- readonly minimum: -90;
281
- readonly maximum: 90;
282
- }];
283
- };
284
- };
285
- };
286
- readonly required: readonly ["type"];
287
- readonly additionalProperties: false;
288
- };
289
- export type ChoroplethMapOptions = FromSchemaWithOptions<typeof choroplethMapSchema>;
290
- export declare const apiUsageQuerySchema: {
291
- readonly type: "object";
292
- readonly description: "A query to launch at the advanced explore API";
293
- readonly properties: {
294
- readonly granularity: {
295
- readonly type: "string";
296
- readonly description: "Force time grouping into buckets of this duration. Only has an effect if \"time\" is in the \"dimensions\" list.";
297
- readonly enum: readonly ["secondly", "tenSecondly", "thirtySecondly", "minutely", "fiveMinutely", "tenMinutely", "thirtyMinutely", "hourly", "twoHourly", "twelveHourly", "daily", "weekly", "trend"];
298
- };
299
- readonly time_range: {
300
- readonly type: "object";
301
- readonly description: "The time range to query.";
302
- readonly anyOf: readonly [{
303
- readonly type: "object";
304
- readonly properties: {
305
- readonly tz: {
306
- readonly type: "string";
307
- readonly default: "Etc/UTC";
308
- };
309
- readonly type: {
310
- readonly type: "string";
311
- readonly enum: readonly ["relative"];
312
- };
313
- readonly time_range: {
314
- readonly type: "string";
315
- readonly enum: readonly ["15m", "1h", "6h", "12h", "24h", "7d", "current_week", "previous_week", "30d", "current_month", "previous_month"];
316
- readonly default: "1h";
317
- };
318
- };
319
- readonly required: readonly ["type", "time_range"];
320
- readonly additionalProperties: false;
321
- }, {
322
- readonly type: "object";
323
- readonly description: "A duration representing an exact start and end time.";
324
- readonly properties: {
325
- readonly tz: {
326
- readonly type: "string";
327
- };
328
- readonly type: {
329
- readonly type: "string";
330
- readonly enum: readonly ["absolute"];
331
- };
332
- readonly start: {
333
- readonly type: "string";
334
- };
335
- readonly end: {
336
- readonly type: "string";
337
- };
338
- };
339
- readonly required: readonly ["type", "start", "end"];
340
- readonly additionalProperties: false;
341
- }];
342
- readonly default: {
343
- readonly type: "relative";
344
- readonly time_range: "1h";
345
- };
346
- };
347
- readonly limit: {
348
- readonly type: "number";
349
- };
350
- readonly meta: {
351
- readonly type: "object";
352
- };
353
- readonly datasource: {
354
- readonly type: "string";
355
- readonly enum: readonly ["api_usage"];
356
- };
357
- readonly metrics: {
358
- readonly type: "array";
359
- readonly description: "List of aggregated metrics to collect across the requested time span.";
360
- readonly items: {
361
- readonly type: "string";
362
- readonly enum: readonly ["active_services", "request_count", "request_per_minute", "response_latency_average", "response_latency_p99", "response_latency_p95", "response_latency_p50", "upstream_latency_p99", "upstream_latency_p95", "upstream_latency_p50", "upstream_latency_average", "kong_latency_p99", "kong_latency_p95", "kong_latency_p50", "kong_latency_average", "response_size_p99", "response_size_p95", "response_size_p50", "response_size_average", "response_size_sum", "request_size_p99", "request_size_p95", "request_size_p50", "request_size_average", "request_size_sum"];
363
- };
364
- };
365
- readonly dimensions: {
366
- readonly type: "array";
367
- readonly description: "List of attributes or entity types to group by.";
368
- readonly minItems: 0;
369
- readonly maxItems: 2;
370
- readonly items: {
371
- readonly type: "string";
372
- readonly enum: readonly ["api", "api_package", "api_product", "api_product_version", "control_plane", "control_plane_group", "data_plane_node", "gateway_service", "portal", "route", "status_code", "status_code_grouped", "time", "application", "consumer", "country_code", "upstream_status_code", "upstream_status_code_grouped", "response_source", "data_plane_node_version", "realm", "portal_api"];
373
- };
374
- };
375
- readonly filters: {
376
- readonly type: "array";
377
- readonly description: "A list of filters to apply to the query";
378
- readonly items: {
379
- readonly oneOf: readonly [{
380
- readonly type: "object";
381
- readonly description: "In filter";
382
- readonly properties: {
383
- readonly field: {
384
- readonly type: "string";
385
- readonly enum: ["api", "api_package", "api_product", "api_product_version", "control_plane", "control_plane_group", "data_plane_node", "gateway_service", "portal", "route", "status_code", "status_code_grouped", "application", "consumer", "country_code", "upstream_status_code", "upstream_status_code_grouped", "response_source", "data_plane_node_version", "realm", "portal_api"];
386
- };
387
- readonly operator: {
388
- readonly type: "string";
389
- readonly enum: readonly ["in", "not_in", "selector"];
390
- };
391
- readonly value: {
392
- readonly type: "array";
393
- readonly items: {
394
- readonly type: readonly ["string", "number", "null"];
395
- };
396
- };
397
- };
398
- readonly required: readonly ["field", "operator", "value"];
399
- readonly additionalProperties: false;
400
- }, {
401
- readonly type: "object";
402
- readonly description: "Empty filter";
403
- readonly properties: {
404
- readonly field: {
405
- readonly type: "string";
406
- readonly enum: ["api", "api_package", "api_product", "api_product_version", "control_plane", "control_plane_group", "data_plane_node", "gateway_service", "portal", "route", "status_code", "status_code_grouped", "application", "consumer", "country_code", "upstream_status_code", "upstream_status_code_grouped", "response_source", "data_plane_node_version", "realm", "portal_api"];
407
- };
408
- readonly operator: {
409
- readonly type: "string";
410
- readonly enum: readonly ["empty", "not_empty"];
411
- };
412
- };
413
- readonly required: readonly ["field", "operator"];
414
- readonly additionalProperties: false;
415
- }];
416
- };
417
- };
418
- };
419
- readonly required: readonly ["datasource"];
420
- readonly additionalProperties: false;
421
- };
422
- export declare const basicQuerySchema: {
423
- readonly type: "object";
424
- readonly description: "A query to launch at the basic explore API";
425
- readonly properties: {
426
- readonly granularity: {
427
- readonly type: "string";
428
- readonly description: "Force time grouping into buckets of this duration. Only has an effect if \"time\" is in the \"dimensions\" list.";
429
- readonly enum: readonly ["secondly", "tenSecondly", "thirtySecondly", "minutely", "fiveMinutely", "tenMinutely", "thirtyMinutely", "hourly", "twoHourly", "twelveHourly", "daily", "weekly", "trend"];
430
- };
431
- readonly time_range: {
432
- readonly type: "object";
433
- readonly description: "The time range to query.";
434
- readonly anyOf: readonly [{
435
- readonly type: "object";
436
- readonly properties: {
437
- readonly tz: {
438
- readonly type: "string";
439
- readonly default: "Etc/UTC";
440
- };
441
- readonly type: {
442
- readonly type: "string";
443
- readonly enum: readonly ["relative"];
444
- };
445
- readonly time_range: {
446
- readonly type: "string";
447
- readonly enum: readonly ["15m", "1h", "6h", "12h", "24h", "7d", "current_week", "previous_week", "30d", "current_month", "previous_month"];
448
- readonly default: "1h";
449
- };
450
- };
451
- readonly required: readonly ["type", "time_range"];
452
- readonly additionalProperties: false;
453
- }, {
454
- readonly type: "object";
455
- readonly description: "A duration representing an exact start and end time.";
456
- readonly properties: {
457
- readonly tz: {
458
- readonly type: "string";
459
- };
460
- readonly type: {
461
- readonly type: "string";
462
- readonly enum: readonly ["absolute"];
463
- };
464
- readonly start: {
465
- readonly type: "string";
466
- };
467
- readonly end: {
468
- readonly type: "string";
469
- };
470
- };
471
- readonly required: readonly ["type", "start", "end"];
472
- readonly additionalProperties: false;
473
- }];
474
- readonly default: {
475
- readonly type: "relative";
476
- readonly time_range: "1h";
477
- };
478
- };
479
- readonly limit: {
480
- readonly type: "number";
481
- };
482
- readonly meta: {
483
- readonly type: "object";
484
- };
485
- readonly datasource: {
486
- readonly type: "string";
487
- readonly enum: readonly ["basic"];
488
- };
489
- readonly metrics: {
490
- readonly type: "array";
491
- readonly description: "List of aggregated metrics to collect across the requested time span.";
492
- readonly items: {
493
- readonly type: "string";
494
- readonly enum: readonly ["active_services", "request_count", "request_per_minute", "response_latency_average"];
495
- };
496
- };
497
- readonly dimensions: {
498
- readonly type: "array";
499
- readonly description: "List of attributes or entity types to group by.";
500
- readonly minItems: 0;
501
- readonly maxItems: 2;
502
- readonly items: {
503
- readonly type: "string";
504
- readonly enum: readonly ["api", "api_package", "api_product", "api_product_version", "control_plane", "control_plane_group", "data_plane_node", "gateway_service", "portal", "route", "status_code", "status_code_grouped", "time"];
505
- };
506
- };
507
- readonly filters: {
508
- readonly type: "array";
509
- readonly description: "A list of filters to apply to the query";
510
- readonly items: {
511
- readonly oneOf: readonly [{
512
- readonly type: "object";
513
- readonly description: "In filter";
514
- readonly properties: {
515
- readonly field: {
516
- readonly type: "string";
517
- readonly enum: ["api", "api_package", "api_product", "api_product_version", "control_plane", "control_plane_group", "data_plane_node", "gateway_service", "portal", "route", "status_code", "status_code_grouped"];
518
- };
519
- readonly operator: {
520
- readonly type: "string";
521
- readonly enum: readonly ["in", "not_in", "selector"];
522
- };
523
- readonly value: {
524
- readonly type: "array";
525
- readonly items: {
526
- readonly type: readonly ["string", "number", "null"];
527
- };
528
- };
529
- };
530
- readonly required: readonly ["field", "operator", "value"];
531
- readonly additionalProperties: false;
532
- }, {
533
- readonly type: "object";
534
- readonly description: "Empty filter";
535
- readonly properties: {
536
- readonly field: {
537
- readonly type: "string";
538
- readonly enum: ["api", "api_package", "api_product", "api_product_version", "control_plane", "control_plane_group", "data_plane_node", "gateway_service", "portal", "route", "status_code", "status_code_grouped"];
539
- };
540
- readonly operator: {
541
- readonly type: "string";
542
- readonly enum: readonly ["empty", "not_empty"];
543
- };
544
- };
545
- readonly required: readonly ["field", "operator"];
546
- readonly additionalProperties: false;
547
- }];
548
- };
549
- };
550
- };
551
- readonly required: readonly ["datasource"];
552
- readonly additionalProperties: false;
553
- };
554
- export declare const llmUsageSchema: {
555
- readonly type: "object";
556
- readonly description: "A query to launch at the AI explore API";
557
- readonly properties: {
558
- readonly granularity: {
559
- readonly type: "string";
560
- readonly description: "Force time grouping into buckets of this duration. Only has an effect if \"time\" is in the \"dimensions\" list.";
561
- readonly enum: readonly ["secondly", "tenSecondly", "thirtySecondly", "minutely", "fiveMinutely", "tenMinutely", "thirtyMinutely", "hourly", "twoHourly", "twelveHourly", "daily", "weekly", "trend"];
562
- };
563
- readonly time_range: {
564
- readonly type: "object";
565
- readonly description: "The time range to query.";
566
- readonly anyOf: readonly [{
567
- readonly type: "object";
568
- readonly properties: {
569
- readonly tz: {
570
- readonly type: "string";
571
- readonly default: "Etc/UTC";
572
- };
573
- readonly type: {
574
- readonly type: "string";
575
- readonly enum: readonly ["relative"];
576
- };
577
- readonly time_range: {
578
- readonly type: "string";
579
- readonly enum: readonly ["15m", "1h", "6h", "12h", "24h", "7d", "current_week", "previous_week", "30d", "current_month", "previous_month"];
580
- readonly default: "1h";
581
- };
582
- };
583
- readonly required: readonly ["type", "time_range"];
584
- readonly additionalProperties: false;
585
- }, {
586
- readonly type: "object";
587
- readonly description: "A duration representing an exact start and end time.";
588
- readonly properties: {
589
- readonly tz: {
590
- readonly type: "string";
591
- };
592
- readonly type: {
593
- readonly type: "string";
594
- readonly enum: readonly ["absolute"];
595
- };
596
- readonly start: {
597
- readonly type: "string";
598
- };
599
- readonly end: {
600
- readonly type: "string";
601
- };
602
- };
603
- readonly required: readonly ["type", "start", "end"];
604
- readonly additionalProperties: false;
605
- }];
606
- readonly default: {
607
- readonly type: "relative";
608
- readonly time_range: "1h";
609
- };
610
- };
611
- readonly limit: {
612
- readonly type: "number";
613
- };
614
- readonly meta: {
615
- readonly type: "object";
616
- };
617
- readonly datasource: {
618
- readonly type: "string";
619
- readonly enum: readonly ["llm_usage"];
620
- };
621
- readonly metrics: {
622
- readonly type: "array";
623
- readonly description: "List of aggregated metrics to collect across the requested time span.";
624
- readonly items: {
625
- readonly type: "string";
626
- readonly enum: readonly ["total_tokens", "prompt_tokens", "completion_tokens", "ai_request_count", "cost", "llm_cache_embeddings_latency_average", "llm_cache_fetch_latency_average", "llm_latency_average", "llm_embeddings_tokens", "llm_embeddings_cost"];
627
- };
628
- };
629
- readonly dimensions: {
630
- readonly type: "array";
631
- readonly description: "List of attributes or entity types to group by.";
632
- readonly minItems: 0;
633
- readonly maxItems: 2;
634
- readonly items: {
635
- readonly type: "string";
636
- readonly enum: readonly ["control_plane", "control_plane_group", "gateway_service", "consumer", "application", "route", "ai_provider", "ai_response_model", "ai_request_model", "llm_cache_status", "llm_embeddings_provider", "llm_embeddings_model", "time", "realm", "status_code", "status_code_grouped", "ai_plugin"];
637
- };
638
- };
639
- readonly filters: {
640
- readonly type: "array";
641
- readonly description: "A list of filters to apply to the query";
642
- readonly items: {
643
- readonly oneOf: readonly [{
644
- readonly type: "object";
645
- readonly description: "In filter";
646
- readonly properties: {
647
- readonly field: {
648
- readonly type: "string";
649
- readonly enum: ["control_plane", "control_plane_group", "gateway_service", "consumer", "application", "route", "ai_provider", "ai_response_model", "ai_request_model", "llm_cache_status", "llm_embeddings_provider", "llm_embeddings_model", "realm", "status_code", "status_code_grouped", "ai_plugin"];
650
- };
651
- readonly operator: {
652
- readonly type: "string";
653
- readonly enum: readonly ["in", "not_in", "selector"];
654
- };
655
- readonly value: {
656
- readonly type: "array";
657
- readonly items: {
658
- readonly type: readonly ["string", "number", "null"];
659
- };
660
- };
661
- };
662
- readonly required: readonly ["field", "operator", "value"];
663
- readonly additionalProperties: false;
664
- }, {
665
- readonly type: "object";
666
- readonly description: "Empty filter";
667
- readonly properties: {
668
- readonly field: {
669
- readonly type: "string";
670
- readonly enum: ["control_plane", "control_plane_group", "gateway_service", "consumer", "application", "route", "ai_provider", "ai_response_model", "ai_request_model", "llm_cache_status", "llm_embeddings_provider", "llm_embeddings_model", "realm", "status_code", "status_code_grouped", "ai_plugin"];
671
- };
672
- readonly operator: {
673
- readonly type: "string";
674
- readonly enum: readonly ["empty", "not_empty"];
675
- };
676
- };
677
- readonly required: readonly ["field", "operator"];
678
- readonly additionalProperties: false;
679
- }];
680
- };
681
- };
682
- };
683
- readonly required: readonly ["datasource"];
684
- readonly additionalProperties: false;
685
- };
686
- export declare const validDashboardQuery: {
687
- readonly anyOf: readonly [{
688
- readonly type: "object";
689
- readonly description: "A query to launch at the advanced explore API";
690
- readonly properties: {
691
- readonly granularity: {
692
- readonly type: "string";
693
- readonly description: "Force time grouping into buckets of this duration. Only has an effect if \"time\" is in the \"dimensions\" list.";
694
- readonly enum: readonly ["secondly", "tenSecondly", "thirtySecondly", "minutely", "fiveMinutely", "tenMinutely", "thirtyMinutely", "hourly", "twoHourly", "twelveHourly", "daily", "weekly", "trend"];
695
- };
696
- readonly time_range: {
697
- readonly type: "object";
698
- readonly description: "The time range to query.";
699
- readonly anyOf: readonly [{
700
- readonly type: "object";
701
- readonly properties: {
702
- readonly tz: {
703
- readonly type: "string";
704
- readonly default: "Etc/UTC";
705
- };
706
- readonly type: {
707
- readonly type: "string";
708
- readonly enum: readonly ["relative"];
709
- };
710
- readonly time_range: {
711
- readonly type: "string";
712
- readonly enum: readonly ["15m", "1h", "6h", "12h", "24h", "7d", "current_week", "previous_week", "30d", "current_month", "previous_month"];
713
- readonly default: "1h";
714
- };
715
- };
716
- readonly required: readonly ["type", "time_range"];
717
- readonly additionalProperties: false;
718
- }, {
719
- readonly type: "object";
720
- readonly description: "A duration representing an exact start and end time.";
721
- readonly properties: {
722
- readonly tz: {
723
- readonly type: "string";
724
- };
725
- readonly type: {
726
- readonly type: "string";
727
- readonly enum: readonly ["absolute"];
728
- };
729
- readonly start: {
730
- readonly type: "string";
731
- };
732
- readonly end: {
733
- readonly type: "string";
734
- };
735
- };
736
- readonly required: readonly ["type", "start", "end"];
737
- readonly additionalProperties: false;
738
- }];
739
- readonly default: {
740
- readonly type: "relative";
741
- readonly time_range: "1h";
742
- };
743
- };
744
- readonly limit: {
745
- readonly type: "number";
746
- };
747
- readonly meta: {
748
- readonly type: "object";
749
- };
750
- readonly datasource: {
751
- readonly type: "string";
752
- readonly enum: readonly ["api_usage"];
753
- };
754
- readonly metrics: {
755
- readonly type: "array";
756
- readonly description: "List of aggregated metrics to collect across the requested time span.";
757
- readonly items: {
758
- readonly type: "string";
759
- readonly enum: readonly ["active_services", "request_count", "request_per_minute", "response_latency_average", "response_latency_p99", "response_latency_p95", "response_latency_p50", "upstream_latency_p99", "upstream_latency_p95", "upstream_latency_p50", "upstream_latency_average", "kong_latency_p99", "kong_latency_p95", "kong_latency_p50", "kong_latency_average", "response_size_p99", "response_size_p95", "response_size_p50", "response_size_average", "response_size_sum", "request_size_p99", "request_size_p95", "request_size_p50", "request_size_average", "request_size_sum"];
760
- };
761
- };
762
- readonly dimensions: {
763
- readonly type: "array";
764
- readonly description: "List of attributes or entity types to group by.";
765
- readonly minItems: 0;
766
- readonly maxItems: 2;
767
- readonly items: {
768
- readonly type: "string";
769
- readonly enum: readonly ["api", "api_package", "api_product", "api_product_version", "control_plane", "control_plane_group", "data_plane_node", "gateway_service", "portal", "route", "status_code", "status_code_grouped", "time", "application", "consumer", "country_code", "upstream_status_code", "upstream_status_code_grouped", "response_source", "data_plane_node_version", "realm", "portal_api"];
770
- };
771
- };
772
- readonly filters: {
773
- readonly type: "array";
774
- readonly description: "A list of filters to apply to the query";
775
- readonly items: {
776
- readonly oneOf: readonly [{
777
- readonly type: "object";
778
- readonly description: "In filter";
779
- readonly properties: {
780
- readonly field: {
781
- readonly type: "string";
782
- readonly enum: ["api", "api_package", "api_product", "api_product_version", "control_plane", "control_plane_group", "data_plane_node", "gateway_service", "portal", "route", "status_code", "status_code_grouped", "application", "consumer", "country_code", "upstream_status_code", "upstream_status_code_grouped", "response_source", "data_plane_node_version", "realm", "portal_api"];
783
- };
784
- readonly operator: {
785
- readonly type: "string";
786
- readonly enum: readonly ["in", "not_in", "selector"];
787
- };
788
- readonly value: {
789
- readonly type: "array";
790
- readonly items: {
791
- readonly type: readonly ["string", "number", "null"];
792
- };
793
- };
794
- };
795
- readonly required: readonly ["field", "operator", "value"];
796
- readonly additionalProperties: false;
797
- }, {
798
- readonly type: "object";
799
- readonly description: "Empty filter";
800
- readonly properties: {
801
- readonly field: {
802
- readonly type: "string";
803
- readonly enum: ["api", "api_package", "api_product", "api_product_version", "control_plane", "control_plane_group", "data_plane_node", "gateway_service", "portal", "route", "status_code", "status_code_grouped", "application", "consumer", "country_code", "upstream_status_code", "upstream_status_code_grouped", "response_source", "data_plane_node_version", "realm", "portal_api"];
804
- };
805
- readonly operator: {
806
- readonly type: "string";
807
- readonly enum: readonly ["empty", "not_empty"];
808
- };
809
- };
810
- readonly required: readonly ["field", "operator"];
811
- readonly additionalProperties: false;
812
- }];
813
- };
814
- };
815
- };
816
- readonly required: readonly ["datasource"];
817
- readonly additionalProperties: false;
818
- }, {
819
- readonly type: "object";
820
- readonly description: "A query to launch at the basic explore API";
821
- readonly properties: {
822
- readonly granularity: {
823
- readonly type: "string";
824
- readonly description: "Force time grouping into buckets of this duration. Only has an effect if \"time\" is in the \"dimensions\" list.";
825
- readonly enum: readonly ["secondly", "tenSecondly", "thirtySecondly", "minutely", "fiveMinutely", "tenMinutely", "thirtyMinutely", "hourly", "twoHourly", "twelveHourly", "daily", "weekly", "trend"];
826
- };
827
- readonly time_range: {
828
- readonly type: "object";
829
- readonly description: "The time range to query.";
830
- readonly anyOf: readonly [{
831
- readonly type: "object";
832
- readonly properties: {
833
- readonly tz: {
834
- readonly type: "string";
835
- readonly default: "Etc/UTC";
836
- };
837
- readonly type: {
838
- readonly type: "string";
839
- readonly enum: readonly ["relative"];
840
- };
841
- readonly time_range: {
842
- readonly type: "string";
843
- readonly enum: readonly ["15m", "1h", "6h", "12h", "24h", "7d", "current_week", "previous_week", "30d", "current_month", "previous_month"];
844
- readonly default: "1h";
845
- };
846
- };
847
- readonly required: readonly ["type", "time_range"];
848
- readonly additionalProperties: false;
849
- }, {
850
- readonly type: "object";
851
- readonly description: "A duration representing an exact start and end time.";
852
- readonly properties: {
853
- readonly tz: {
854
- readonly type: "string";
855
- };
856
- readonly type: {
857
- readonly type: "string";
858
- readonly enum: readonly ["absolute"];
859
- };
860
- readonly start: {
861
- readonly type: "string";
862
- };
863
- readonly end: {
864
- readonly type: "string";
865
- };
866
- };
867
- readonly required: readonly ["type", "start", "end"];
868
- readonly additionalProperties: false;
869
- }];
870
- readonly default: {
871
- readonly type: "relative";
872
- readonly time_range: "1h";
873
- };
874
- };
875
- readonly limit: {
876
- readonly type: "number";
877
- };
878
- readonly meta: {
879
- readonly type: "object";
880
- };
881
- readonly datasource: {
882
- readonly type: "string";
883
- readonly enum: readonly ["basic"];
884
- };
885
- readonly metrics: {
886
- readonly type: "array";
887
- readonly description: "List of aggregated metrics to collect across the requested time span.";
888
- readonly items: {
889
- readonly type: "string";
890
- readonly enum: readonly ["active_services", "request_count", "request_per_minute", "response_latency_average"];
891
- };
892
- };
893
- readonly dimensions: {
894
- readonly type: "array";
895
- readonly description: "List of attributes or entity types to group by.";
896
- readonly minItems: 0;
897
- readonly maxItems: 2;
898
- readonly items: {
899
- readonly type: "string";
900
- readonly enum: readonly ["api", "api_package", "api_product", "api_product_version", "control_plane", "control_plane_group", "data_plane_node", "gateway_service", "portal", "route", "status_code", "status_code_grouped", "time"];
901
- };
902
- };
903
- readonly filters: {
904
- readonly type: "array";
905
- readonly description: "A list of filters to apply to the query";
906
- readonly items: {
907
- readonly oneOf: readonly [{
908
- readonly type: "object";
909
- readonly description: "In filter";
910
- readonly properties: {
911
- readonly field: {
912
- readonly type: "string";
913
- readonly enum: ["api", "api_package", "api_product", "api_product_version", "control_plane", "control_plane_group", "data_plane_node", "gateway_service", "portal", "route", "status_code", "status_code_grouped"];
914
- };
915
- readonly operator: {
916
- readonly type: "string";
917
- readonly enum: readonly ["in", "not_in", "selector"];
918
- };
919
- readonly value: {
920
- readonly type: "array";
921
- readonly items: {
922
- readonly type: readonly ["string", "number", "null"];
923
- };
924
- };
925
- };
926
- readonly required: readonly ["field", "operator", "value"];
927
- readonly additionalProperties: false;
928
- }, {
929
- readonly type: "object";
930
- readonly description: "Empty filter";
931
- readonly properties: {
932
- readonly field: {
933
- readonly type: "string";
934
- readonly enum: ["api", "api_package", "api_product", "api_product_version", "control_plane", "control_plane_group", "data_plane_node", "gateway_service", "portal", "route", "status_code", "status_code_grouped"];
935
- };
936
- readonly operator: {
937
- readonly type: "string";
938
- readonly enum: readonly ["empty", "not_empty"];
939
- };
940
- };
941
- readonly required: readonly ["field", "operator"];
942
- readonly additionalProperties: false;
943
- }];
944
- };
945
- };
946
- };
947
- readonly required: readonly ["datasource"];
948
- readonly additionalProperties: false;
949
- }, {
950
- readonly type: "object";
951
- readonly description: "A query to launch at the AI explore API";
952
- readonly properties: {
953
- readonly granularity: {
954
- readonly type: "string";
955
- readonly description: "Force time grouping into buckets of this duration. Only has an effect if \"time\" is in the \"dimensions\" list.";
956
- readonly enum: readonly ["secondly", "tenSecondly", "thirtySecondly", "minutely", "fiveMinutely", "tenMinutely", "thirtyMinutely", "hourly", "twoHourly", "twelveHourly", "daily", "weekly", "trend"];
957
- };
958
- readonly time_range: {
959
- readonly type: "object";
960
- readonly description: "The time range to query.";
961
- readonly anyOf: readonly [{
962
- readonly type: "object";
963
- readonly properties: {
964
- readonly tz: {
965
- readonly type: "string";
966
- readonly default: "Etc/UTC";
967
- };
968
- readonly type: {
969
- readonly type: "string";
970
- readonly enum: readonly ["relative"];
971
- };
972
- readonly time_range: {
973
- readonly type: "string";
974
- readonly enum: readonly ["15m", "1h", "6h", "12h", "24h", "7d", "current_week", "previous_week", "30d", "current_month", "previous_month"];
975
- readonly default: "1h";
976
- };
977
- };
978
- readonly required: readonly ["type", "time_range"];
979
- readonly additionalProperties: false;
980
- }, {
981
- readonly type: "object";
982
- readonly description: "A duration representing an exact start and end time.";
983
- readonly properties: {
984
- readonly tz: {
985
- readonly type: "string";
986
- };
987
- readonly type: {
988
- readonly type: "string";
989
- readonly enum: readonly ["absolute"];
990
- };
991
- readonly start: {
992
- readonly type: "string";
993
- };
994
- readonly end: {
995
- readonly type: "string";
996
- };
997
- };
998
- readonly required: readonly ["type", "start", "end"];
999
- readonly additionalProperties: false;
1000
- }];
1001
- readonly default: {
1002
- readonly type: "relative";
1003
- readonly time_range: "1h";
1004
- };
1005
- };
1006
- readonly limit: {
1007
- readonly type: "number";
1008
- };
1009
- readonly meta: {
1010
- readonly type: "object";
1011
- };
1012
- readonly datasource: {
1013
- readonly type: "string";
1014
- readonly enum: readonly ["llm_usage"];
1015
- };
1016
- readonly metrics: {
1017
- readonly type: "array";
1018
- readonly description: "List of aggregated metrics to collect across the requested time span.";
1019
- readonly items: {
1020
- readonly type: "string";
1021
- readonly enum: readonly ["total_tokens", "prompt_tokens", "completion_tokens", "ai_request_count", "cost", "llm_cache_embeddings_latency_average", "llm_cache_fetch_latency_average", "llm_latency_average", "llm_embeddings_tokens", "llm_embeddings_cost"];
1022
- };
1023
- };
1024
- readonly dimensions: {
1025
- readonly type: "array";
1026
- readonly description: "List of attributes or entity types to group by.";
1027
- readonly minItems: 0;
1028
- readonly maxItems: 2;
1029
- readonly items: {
1030
- readonly type: "string";
1031
- readonly enum: readonly ["control_plane", "control_plane_group", "gateway_service", "consumer", "application", "route", "ai_provider", "ai_response_model", "ai_request_model", "llm_cache_status", "llm_embeddings_provider", "llm_embeddings_model", "time", "realm", "status_code", "status_code_grouped", "ai_plugin"];
1032
- };
1033
- };
1034
- readonly filters: {
1035
- readonly type: "array";
1036
- readonly description: "A list of filters to apply to the query";
1037
- readonly items: {
1038
- readonly oneOf: readonly [{
1039
- readonly type: "object";
1040
- readonly description: "In filter";
1041
- readonly properties: {
1042
- readonly field: {
1043
- readonly type: "string";
1044
- readonly enum: ["control_plane", "control_plane_group", "gateway_service", "consumer", "application", "route", "ai_provider", "ai_response_model", "ai_request_model", "llm_cache_status", "llm_embeddings_provider", "llm_embeddings_model", "realm", "status_code", "status_code_grouped", "ai_plugin"];
1045
- };
1046
- readonly operator: {
1047
- readonly type: "string";
1048
- readonly enum: readonly ["in", "not_in", "selector"];
1049
- };
1050
- readonly value: {
1051
- readonly type: "array";
1052
- readonly items: {
1053
- readonly type: readonly ["string", "number", "null"];
1054
- };
1055
- };
1056
- };
1057
- readonly required: readonly ["field", "operator", "value"];
1058
- readonly additionalProperties: false;
1059
- }, {
1060
- readonly type: "object";
1061
- readonly description: "Empty filter";
1062
- readonly properties: {
1063
- readonly field: {
1064
- readonly type: "string";
1065
- readonly enum: ["control_plane", "control_plane_group", "gateway_service", "consumer", "application", "route", "ai_provider", "ai_response_model", "ai_request_model", "llm_cache_status", "llm_embeddings_provider", "llm_embeddings_model", "realm", "status_code", "status_code_grouped", "ai_plugin"];
1066
- };
1067
- readonly operator: {
1068
- readonly type: "string";
1069
- readonly enum: readonly ["empty", "not_empty"];
1070
- };
1071
- };
1072
- readonly required: readonly ["field", "operator"];
1073
- readonly additionalProperties: false;
1074
- }];
1075
- };
1076
- };
1077
- };
1078
- readonly required: readonly ["datasource"];
1079
- readonly additionalProperties: false;
1080
- }];
1081
- };
1082
- export type ValidDashboardQuery = FromSchemaWithOptions<typeof validDashboardQuery>;
1083
- export declare const tileDefinitionSchema: {
1084
- readonly type: "object";
1085
- readonly properties: {
1086
- readonly query: {
1087
- readonly anyOf: readonly [{
1088
- readonly type: "object";
1089
- readonly description: "A query to launch at the advanced explore API";
1090
- readonly properties: {
1091
- readonly granularity: {
1092
- readonly type: "string";
1093
- readonly description: "Force time grouping into buckets of this duration. Only has an effect if \"time\" is in the \"dimensions\" list.";
1094
- readonly enum: readonly ["secondly", "tenSecondly", "thirtySecondly", "minutely", "fiveMinutely", "tenMinutely", "thirtyMinutely", "hourly", "twoHourly", "twelveHourly", "daily", "weekly", "trend"];
1095
- };
1096
- readonly time_range: {
1097
- readonly type: "object";
1098
- readonly description: "The time range to query.";
1099
- readonly anyOf: readonly [{
1100
- readonly type: "object";
1101
- readonly properties: {
1102
- readonly tz: {
1103
- readonly type: "string";
1104
- readonly default: "Etc/UTC";
1105
- };
1106
- readonly type: {
1107
- readonly type: "string";
1108
- readonly enum: readonly ["relative"];
1109
- };
1110
- readonly time_range: {
1111
- readonly type: "string";
1112
- readonly enum: readonly ["15m", "1h", "6h", "12h", "24h", "7d", "current_week", "previous_week", "30d", "current_month", "previous_month"];
1113
- readonly default: "1h";
1114
- };
1115
- };
1116
- readonly required: readonly ["type", "time_range"];
1117
- readonly additionalProperties: false;
1118
- }, {
1119
- readonly type: "object";
1120
- readonly description: "A duration representing an exact start and end time.";
1121
- readonly properties: {
1122
- readonly tz: {
1123
- readonly type: "string";
1124
- };
1125
- readonly type: {
1126
- readonly type: "string";
1127
- readonly enum: readonly ["absolute"];
1128
- };
1129
- readonly start: {
1130
- readonly type: "string";
1131
- };
1132
- readonly end: {
1133
- readonly type: "string";
1134
- };
1135
- };
1136
- readonly required: readonly ["type", "start", "end"];
1137
- readonly additionalProperties: false;
1138
- }];
1139
- readonly default: {
1140
- readonly type: "relative";
1141
- readonly time_range: "1h";
1142
- };
1143
- };
1144
- readonly limit: {
1145
- readonly type: "number";
1146
- };
1147
- readonly meta: {
1148
- readonly type: "object";
1149
- };
1150
- readonly datasource: {
1151
- readonly type: "string";
1152
- readonly enum: readonly ["api_usage"];
1153
- };
1154
- readonly metrics: {
1155
- readonly type: "array";
1156
- readonly description: "List of aggregated metrics to collect across the requested time span.";
1157
- readonly items: {
1158
- readonly type: "string";
1159
- readonly enum: readonly ["active_services", "request_count", "request_per_minute", "response_latency_average", "response_latency_p99", "response_latency_p95", "response_latency_p50", "upstream_latency_p99", "upstream_latency_p95", "upstream_latency_p50", "upstream_latency_average", "kong_latency_p99", "kong_latency_p95", "kong_latency_p50", "kong_latency_average", "response_size_p99", "response_size_p95", "response_size_p50", "response_size_average", "response_size_sum", "request_size_p99", "request_size_p95", "request_size_p50", "request_size_average", "request_size_sum"];
1160
- };
1161
- };
1162
- readonly dimensions: {
1163
- readonly type: "array";
1164
- readonly description: "List of attributes or entity types to group by.";
1165
- readonly minItems: 0;
1166
- readonly maxItems: 2;
1167
- readonly items: {
1168
- readonly type: "string";
1169
- readonly enum: readonly ["api", "api_package", "api_product", "api_product_version", "control_plane", "control_plane_group", "data_plane_node", "gateway_service", "portal", "route", "status_code", "status_code_grouped", "time", "application", "consumer", "country_code", "upstream_status_code", "upstream_status_code_grouped", "response_source", "data_plane_node_version", "realm", "portal_api"];
1170
- };
1171
- };
1172
- readonly filters: {
1173
- readonly type: "array";
1174
- readonly description: "A list of filters to apply to the query";
1175
- readonly items: {
1176
- readonly oneOf: readonly [{
1177
- readonly type: "object";
1178
- readonly description: "In filter";
1179
- readonly properties: {
1180
- readonly field: {
1181
- readonly type: "string";
1182
- readonly enum: ["api", "api_package", "api_product", "api_product_version", "control_plane", "control_plane_group", "data_plane_node", "gateway_service", "portal", "route", "status_code", "status_code_grouped", "application", "consumer", "country_code", "upstream_status_code", "upstream_status_code_grouped", "response_source", "data_plane_node_version", "realm", "portal_api"];
1183
- };
1184
- readonly operator: {
1185
- readonly type: "string";
1186
- readonly enum: readonly ["in", "not_in", "selector"];
1187
- };
1188
- readonly value: {
1189
- readonly type: "array";
1190
- readonly items: {
1191
- readonly type: readonly ["string", "number", "null"];
1192
- };
1193
- };
1194
- };
1195
- readonly required: readonly ["field", "operator", "value"];
1196
- readonly additionalProperties: false;
1197
- }, {
1198
- readonly type: "object";
1199
- readonly description: "Empty filter";
1200
- readonly properties: {
1201
- readonly field: {
1202
- readonly type: "string";
1203
- readonly enum: ["api", "api_package", "api_product", "api_product_version", "control_plane", "control_plane_group", "data_plane_node", "gateway_service", "portal", "route", "status_code", "status_code_grouped", "application", "consumer", "country_code", "upstream_status_code", "upstream_status_code_grouped", "response_source", "data_plane_node_version", "realm", "portal_api"];
1204
- };
1205
- readonly operator: {
1206
- readonly type: "string";
1207
- readonly enum: readonly ["empty", "not_empty"];
1208
- };
1209
- };
1210
- readonly required: readonly ["field", "operator"];
1211
- readonly additionalProperties: false;
1212
- }];
1213
- };
1214
- };
1215
- };
1216
- readonly required: readonly ["datasource"];
1217
- readonly additionalProperties: false;
1218
- }, {
1219
- readonly type: "object";
1220
- readonly description: "A query to launch at the basic explore API";
1221
- readonly properties: {
1222
- readonly granularity: {
1223
- readonly type: "string";
1224
- readonly description: "Force time grouping into buckets of this duration. Only has an effect if \"time\" is in the \"dimensions\" list.";
1225
- readonly enum: readonly ["secondly", "tenSecondly", "thirtySecondly", "minutely", "fiveMinutely", "tenMinutely", "thirtyMinutely", "hourly", "twoHourly", "twelveHourly", "daily", "weekly", "trend"];
1226
- };
1227
- readonly time_range: {
1228
- readonly type: "object";
1229
- readonly description: "The time range to query.";
1230
- readonly anyOf: readonly [{
1231
- readonly type: "object";
1232
- readonly properties: {
1233
- readonly tz: {
1234
- readonly type: "string";
1235
- readonly default: "Etc/UTC";
1236
- };
1237
- readonly type: {
1238
- readonly type: "string";
1239
- readonly enum: readonly ["relative"];
1240
- };
1241
- readonly time_range: {
1242
- readonly type: "string";
1243
- readonly enum: readonly ["15m", "1h", "6h", "12h", "24h", "7d", "current_week", "previous_week", "30d", "current_month", "previous_month"];
1244
- readonly default: "1h";
1245
- };
1246
- };
1247
- readonly required: readonly ["type", "time_range"];
1248
- readonly additionalProperties: false;
1249
- }, {
1250
- readonly type: "object";
1251
- readonly description: "A duration representing an exact start and end time.";
1252
- readonly properties: {
1253
- readonly tz: {
1254
- readonly type: "string";
1255
- };
1256
- readonly type: {
1257
- readonly type: "string";
1258
- readonly enum: readonly ["absolute"];
1259
- };
1260
- readonly start: {
1261
- readonly type: "string";
1262
- };
1263
- readonly end: {
1264
- readonly type: "string";
1265
- };
1266
- };
1267
- readonly required: readonly ["type", "start", "end"];
1268
- readonly additionalProperties: false;
1269
- }];
1270
- readonly default: {
1271
- readonly type: "relative";
1272
- readonly time_range: "1h";
1273
- };
1274
- };
1275
- readonly limit: {
1276
- readonly type: "number";
1277
- };
1278
- readonly meta: {
1279
- readonly type: "object";
1280
- };
1281
- readonly datasource: {
1282
- readonly type: "string";
1283
- readonly enum: readonly ["basic"];
1284
- };
1285
- readonly metrics: {
1286
- readonly type: "array";
1287
- readonly description: "List of aggregated metrics to collect across the requested time span.";
1288
- readonly items: {
1289
- readonly type: "string";
1290
- readonly enum: readonly ["active_services", "request_count", "request_per_minute", "response_latency_average"];
1291
- };
1292
- };
1293
- readonly dimensions: {
1294
- readonly type: "array";
1295
- readonly description: "List of attributes or entity types to group by.";
1296
- readonly minItems: 0;
1297
- readonly maxItems: 2;
1298
- readonly items: {
1299
- readonly type: "string";
1300
- readonly enum: readonly ["api", "api_package", "api_product", "api_product_version", "control_plane", "control_plane_group", "data_plane_node", "gateway_service", "portal", "route", "status_code", "status_code_grouped", "time"];
1301
- };
1302
- };
1303
- readonly filters: {
1304
- readonly type: "array";
1305
- readonly description: "A list of filters to apply to the query";
1306
- readonly items: {
1307
- readonly oneOf: readonly [{
1308
- readonly type: "object";
1309
- readonly description: "In filter";
1310
- readonly properties: {
1311
- readonly field: {
1312
- readonly type: "string";
1313
- readonly enum: ["api", "api_package", "api_product", "api_product_version", "control_plane", "control_plane_group", "data_plane_node", "gateway_service", "portal", "route", "status_code", "status_code_grouped"];
1314
- };
1315
- readonly operator: {
1316
- readonly type: "string";
1317
- readonly enum: readonly ["in", "not_in", "selector"];
1318
- };
1319
- readonly value: {
1320
- readonly type: "array";
1321
- readonly items: {
1322
- readonly type: readonly ["string", "number", "null"];
1323
- };
1324
- };
1325
- };
1326
- readonly required: readonly ["field", "operator", "value"];
1327
- readonly additionalProperties: false;
1328
- }, {
1329
- readonly type: "object";
1330
- readonly description: "Empty filter";
1331
- readonly properties: {
1332
- readonly field: {
1333
- readonly type: "string";
1334
- readonly enum: ["api", "api_package", "api_product", "api_product_version", "control_plane", "control_plane_group", "data_plane_node", "gateway_service", "portal", "route", "status_code", "status_code_grouped"];
1335
- };
1336
- readonly operator: {
1337
- readonly type: "string";
1338
- readonly enum: readonly ["empty", "not_empty"];
1339
- };
1340
- };
1341
- readonly required: readonly ["field", "operator"];
1342
- readonly additionalProperties: false;
1343
- }];
1344
- };
1345
- };
1346
- };
1347
- readonly required: readonly ["datasource"];
1348
- readonly additionalProperties: false;
1349
- }, {
1350
- readonly type: "object";
1351
- readonly description: "A query to launch at the AI explore API";
1352
- readonly properties: {
1353
- readonly granularity: {
1354
- readonly type: "string";
1355
- readonly description: "Force time grouping into buckets of this duration. Only has an effect if \"time\" is in the \"dimensions\" list.";
1356
- readonly enum: readonly ["secondly", "tenSecondly", "thirtySecondly", "minutely", "fiveMinutely", "tenMinutely", "thirtyMinutely", "hourly", "twoHourly", "twelveHourly", "daily", "weekly", "trend"];
1357
- };
1358
- readonly time_range: {
1359
- readonly type: "object";
1360
- readonly description: "The time range to query.";
1361
- readonly anyOf: readonly [{
1362
- readonly type: "object";
1363
- readonly properties: {
1364
- readonly tz: {
1365
- readonly type: "string";
1366
- readonly default: "Etc/UTC";
1367
- };
1368
- readonly type: {
1369
- readonly type: "string";
1370
- readonly enum: readonly ["relative"];
1371
- };
1372
- readonly time_range: {
1373
- readonly type: "string";
1374
- readonly enum: readonly ["15m", "1h", "6h", "12h", "24h", "7d", "current_week", "previous_week", "30d", "current_month", "previous_month"];
1375
- readonly default: "1h";
1376
- };
1377
- };
1378
- readonly required: readonly ["type", "time_range"];
1379
- readonly additionalProperties: false;
1380
- }, {
1381
- readonly type: "object";
1382
- readonly description: "A duration representing an exact start and end time.";
1383
- readonly properties: {
1384
- readonly tz: {
1385
- readonly type: "string";
1386
- };
1387
- readonly type: {
1388
- readonly type: "string";
1389
- readonly enum: readonly ["absolute"];
1390
- };
1391
- readonly start: {
1392
- readonly type: "string";
1393
- };
1394
- readonly end: {
1395
- readonly type: "string";
1396
- };
1397
- };
1398
- readonly required: readonly ["type", "start", "end"];
1399
- readonly additionalProperties: false;
1400
- }];
1401
- readonly default: {
1402
- readonly type: "relative";
1403
- readonly time_range: "1h";
1404
- };
1405
- };
1406
- readonly limit: {
1407
- readonly type: "number";
1408
- };
1409
- readonly meta: {
1410
- readonly type: "object";
1411
- };
1412
- readonly datasource: {
1413
- readonly type: "string";
1414
- readonly enum: readonly ["llm_usage"];
1415
- };
1416
- readonly metrics: {
1417
- readonly type: "array";
1418
- readonly description: "List of aggregated metrics to collect across the requested time span.";
1419
- readonly items: {
1420
- readonly type: "string";
1421
- readonly enum: readonly ["total_tokens", "prompt_tokens", "completion_tokens", "ai_request_count", "cost", "llm_cache_embeddings_latency_average", "llm_cache_fetch_latency_average", "llm_latency_average", "llm_embeddings_tokens", "llm_embeddings_cost"];
1422
- };
1423
- };
1424
- readonly dimensions: {
1425
- readonly type: "array";
1426
- readonly description: "List of attributes or entity types to group by.";
1427
- readonly minItems: 0;
1428
- readonly maxItems: 2;
1429
- readonly items: {
1430
- readonly type: "string";
1431
- readonly enum: readonly ["control_plane", "control_plane_group", "gateway_service", "consumer", "application", "route", "ai_provider", "ai_response_model", "ai_request_model", "llm_cache_status", "llm_embeddings_provider", "llm_embeddings_model", "time", "realm", "status_code", "status_code_grouped", "ai_plugin"];
1432
- };
1433
- };
1434
- readonly filters: {
1435
- readonly type: "array";
1436
- readonly description: "A list of filters to apply to the query";
1437
- readonly items: {
1438
- readonly oneOf: readonly [{
1439
- readonly type: "object";
1440
- readonly description: "In filter";
1441
- readonly properties: {
1442
- readonly field: {
1443
- readonly type: "string";
1444
- readonly enum: ["control_plane", "control_plane_group", "gateway_service", "consumer", "application", "route", "ai_provider", "ai_response_model", "ai_request_model", "llm_cache_status", "llm_embeddings_provider", "llm_embeddings_model", "realm", "status_code", "status_code_grouped", "ai_plugin"];
1445
- };
1446
- readonly operator: {
1447
- readonly type: "string";
1448
- readonly enum: readonly ["in", "not_in", "selector"];
1449
- };
1450
- readonly value: {
1451
- readonly type: "array";
1452
- readonly items: {
1453
- readonly type: readonly ["string", "number", "null"];
1454
- };
1455
- };
1456
- };
1457
- readonly required: readonly ["field", "operator", "value"];
1458
- readonly additionalProperties: false;
1459
- }, {
1460
- readonly type: "object";
1461
- readonly description: "Empty filter";
1462
- readonly properties: {
1463
- readonly field: {
1464
- readonly type: "string";
1465
- readonly enum: ["control_plane", "control_plane_group", "gateway_service", "consumer", "application", "route", "ai_provider", "ai_response_model", "ai_request_model", "llm_cache_status", "llm_embeddings_provider", "llm_embeddings_model", "realm", "status_code", "status_code_grouped", "ai_plugin"];
1466
- };
1467
- readonly operator: {
1468
- readonly type: "string";
1469
- readonly enum: readonly ["empty", "not_empty"];
1470
- };
1471
- };
1472
- readonly required: readonly ["field", "operator"];
1473
- readonly additionalProperties: false;
1474
- }];
1475
- };
1476
- };
1477
- };
1478
- readonly required: readonly ["datasource"];
1479
- readonly additionalProperties: false;
1480
- }];
1481
- };
1482
- readonly chart: {
1483
- readonly anyOf: readonly [{
1484
- readonly type: "object";
1485
- readonly properties: {
1486
- readonly type: {
1487
- readonly type: "string";
1488
- readonly enum: readonly ["horizontal_bar", "vertical_bar"];
1489
- };
1490
- readonly stacked: {
1491
- readonly type: "boolean";
1492
- };
1493
- readonly chart_dataset_colors: {
1494
- readonly type: readonly ["object", "array"];
1495
- readonly items: {
1496
- readonly type: "string";
1497
- };
1498
- readonly additionalProperties: {
1499
- readonly type: "string";
1500
- };
1501
- };
1502
- readonly synthetics_data_key: {
1503
- readonly type: "string";
1504
- };
1505
- readonly chart_title: {
1506
- readonly type: "string";
1507
- };
1508
- readonly allow_csv_export: {
1509
- readonly type: "boolean";
1510
- };
1511
- };
1512
- readonly required: readonly ["type"];
1513
- readonly additionalProperties: false;
1514
- }, {
1515
- readonly type: "object";
1516
- readonly properties: {
1517
- readonly type: {
1518
- readonly type: "string";
1519
- readonly enum: readonly ["gauge"];
1520
- };
1521
- readonly metric_display: {
1522
- readonly type: "string";
1523
- readonly enum: readonly ["hidden", "single", "full"];
1524
- };
1525
- readonly reverse_dataset: {
1526
- readonly type: "boolean";
1527
- };
1528
- readonly numerator: {
1529
- readonly type: "number";
1530
- };
1531
- readonly synthetics_data_key: {
1532
- readonly type: "string";
1533
- };
1534
- readonly chart_title: {
1535
- readonly type: "string";
1536
- };
1537
- };
1538
- readonly required: readonly ["type"];
1539
- readonly additionalProperties: false;
1540
- }, {
1541
- readonly type: "object";
1542
- readonly properties: {
1543
- readonly type: {
1544
- readonly type: "string";
1545
- readonly enum: readonly ["donut"];
1546
- };
1547
- readonly synthetics_data_key: {
1548
- readonly type: "string";
1549
- };
1550
- readonly chart_title: {
1551
- readonly type: "string";
1552
- };
1553
- };
1554
- readonly required: readonly ["type"];
1555
- readonly additionalProperties: false;
1556
- }, {
1557
- readonly type: "object";
1558
- readonly properties: {
1559
- readonly type: {
1560
- readonly type: "string";
1561
- readonly enum: readonly ["timeseries_line", "timeseries_bar"];
1562
- };
1563
- readonly stacked: {
1564
- readonly type: "boolean";
1565
- };
1566
- readonly threshold: {
1567
- readonly type: "object";
1568
- readonly additionalProperties: {
1569
- readonly type: "array";
1570
- readonly items: {
1571
- readonly type: "object";
1572
- readonly properties: {
1573
- readonly type: {
1574
- readonly type: "string";
1575
- readonly enum: readonly ["warning", "error", "neutral"];
1576
- };
1577
- readonly value: {
1578
- readonly type: "number";
1579
- };
1580
- readonly label: {
1581
- readonly type: "string";
1582
- };
1583
- readonly highlightIntersections: {
1584
- readonly type: "boolean";
1585
- readonly default: false;
1586
- };
1587
- };
1588
- readonly required: readonly ["type", "value"];
1589
- readonly additionalProperties: false;
1590
- };
1591
- };
1592
- };
1593
- readonly chart_dataset_colors: {
1594
- readonly type: readonly ["object", "array"];
1595
- readonly items: {
1596
- readonly type: "string";
1597
- };
1598
- readonly additionalProperties: {
1599
- readonly type: "string";
1600
- };
1601
- };
1602
- readonly synthetics_data_key: {
1603
- readonly type: "string";
1604
- };
1605
- readonly chart_title: {
1606
- readonly type: "string";
1607
- };
1608
- readonly allow_csv_export: {
1609
- readonly type: "boolean";
1610
- };
1611
- };
1612
- readonly required: readonly ["type"];
1613
- readonly additionalProperties: false;
1614
- }, {
1615
- readonly type: "object";
1616
- readonly properties: {
1617
- readonly chart_title: {
1618
- readonly type: "string";
1619
- };
1620
- readonly type: {
1621
- readonly type: "string";
1622
- readonly enum: readonly ["golden_signals"];
1623
- };
1624
- readonly long_card_titles: {
1625
- readonly type: "boolean";
1626
- };
1627
- readonly description: {
1628
- readonly type: "string";
1629
- };
1630
- readonly percentile_latency: {
1631
- readonly type: "boolean";
1632
- };
1633
- };
1634
- readonly required: readonly ["type"];
1635
- readonly additionalProperties: false;
1636
- }, {
1637
- readonly type: "object";
1638
- readonly properties: {
1639
- readonly chart_title: {
1640
- readonly type: "string";
1641
- };
1642
- readonly synthetics_data_key: {
1643
- readonly type: "string";
1644
- };
1645
- readonly type: {
1646
- readonly type: "string";
1647
- readonly enum: readonly ["top_n"];
1648
- };
1649
- readonly description: {
1650
- readonly type: "string";
1651
- };
1652
- readonly entity_link: {
1653
- readonly type: "string";
1654
- };
1655
- };
1656
- readonly required: readonly ["type"];
1657
- readonly additionalProperties: false;
1658
- }, {
1659
- readonly type: "object";
1660
- readonly properties: {
1661
- readonly type: {
1662
- readonly type: "string";
1663
- readonly enum: readonly ["slottable"];
1664
- };
1665
- readonly id: {
1666
- readonly type: "string";
1667
- };
1668
- };
1669
- readonly required: readonly ["type", "id"];
1670
- readonly additionalProperties: false;
1671
- }, {
1672
- readonly type: "object";
1673
- readonly properties: {
1674
- readonly type: {
1675
- readonly type: "string";
1676
- readonly enum: readonly ["single_value"];
1677
- };
1678
- readonly decimal_points: {
1679
- readonly type: "number";
1680
- };
1681
- readonly chart_title: {
1682
- readonly type: "string";
1683
- };
1684
- };
1685
- readonly required: readonly ["type"];
1686
- readonly additionalProperties: false;
1687
- }, {
1688
- readonly type: "object";
1689
- readonly properties: {
1690
- readonly type: {
1691
- readonly type: "string";
1692
- readonly enum: readonly ["choropleth_map"];
1693
- };
1694
- readonly chart_title: {
1695
- readonly type: "string";
1696
- };
1697
- readonly fit_to_country: {
1698
- readonly type: "string";
1699
- readonly enum: ("AF" | "AX" | "AL" | "DZ" | "AS" | "AD" | "AO" | "AI" | "AQ" | "AG" | "AR" | "AM" | "AW" | "AU" | "AT" | "AZ" | "BS" | "BH" | "BD" | "BB" | "BY" | "BE" | "BZ" | "BJ" | "BM" | "BT" | "BO" | "BA" | "BW" | "BV" | "BR" | "IO" | "BN" | "BG" | "BF" | "BI" | "KH" | "CM" | "CA" | "CV" | "KY" | "CF" | "TD" | "CL" | "CN" | "CX" | "CC" | "CO" | "KM" | "CG" | "CD" | "CK" | "CR" | "CI" | "HR" | "CU" | "CY" | "CZ" | "DK" | "DJ" | "DM" | "DO" | "EC" | "EG" | "SV" | "GQ" | "ER" | "EE" | "ET" | "FK" | "FO" | "FJ" | "FI" | "FR" | "GF" | "PF" | "TF" | "GA" | "GM" | "GE" | "DE" | "GH" | "GI" | "GR" | "GL" | "GD" | "GP" | "GU" | "GT" | "GG" | "GN" | "GW" | "GY" | "HT" | "HM" | "VA" | "HN" | "HK" | "HU" | "IS" | "IN" | "ID" | "IR" | "IQ" | "IE" | "IM" | "IL" | "IT" | "JM" | "JP" | "JE" | "JO" | "KZ" | "KE" | "KI" | "KP" | "KR" | "KW" | "KG" | "LA" | "LV" | "LB" | "LS" | "LR" | "LY" | "LI" | "LT" | "LU" | "MO" | "MK" | "MG" | "MW" | "MY" | "MV" | "ML" | "MT" | "MH" | "MQ" | "MR" | "MU" | "YT" | "MX" | "FM" | "MD" | "MC" | "MN" | "ME" | "MS" | "MA" | "MZ" | "MM" | "NA" | "NR" | "NP" | "NL" | "NC" | "NZ" | "NI" | "NE" | "NG" | "NU" | "NF" | "MP" | "NO" | "OM" | "PK" | "PW" | "PA" | "PG" | "PY" | "PE" | "PH" | "PN" | "PL" | "PT" | "PR" | "QA" | "RE" | "RO" | "RU" | "RW" | "BL" | "SH" | "KN" | "LC" | "MF" | "PM" | "VC" | "WS" | "SM" | "ST" | "SA" | "SN" | "RS" | "SC" | "SL" | "SG" | "SX" | "SK" | "SI" | "SB" | "SO" | "ZA" | "GS" | "SS" | "ES" | "LK" | "SD" | "SR" | "SJ" | "SZ" | "SE" | "CH" | "SY" | "TW" | "TJ" | "TZ" | "TH" | "TL" | "TG" | "TK" | "TO" | "TT" | "TN" | "TR" | "TM" | "TC" | "TV" | "UG" | "UA" | "AE" | "GB" | "US" | "UM" | "UY" | "UZ" | "VU" | "VE" | "VN" | "VG" | "VI" | "WF" | "EH" | "YE" | "ZM" | "ZW")[];
1700
- };
1701
- readonly legend: {
1702
- readonly type: "boolean";
1703
- readonly default: false;
1704
- };
1705
- readonly bounds: {
1706
- readonly type: "array";
1707
- readonly minItems: 2;
1708
- readonly maxItems: 2;
1709
- readonly items: {
1710
- readonly type: "array";
1711
- readonly minItems: 2;
1712
- readonly maxItems: 2;
1713
- readonly items: readonly [{
1714
- readonly type: "number";
1715
- readonly minimum: -180;
1716
- readonly maximum: 180;
1717
- }, {
1718
- readonly type: "number";
1719
- readonly minimum: -90;
1720
- readonly maximum: 90;
1721
- }];
1722
- };
1723
- };
1724
- };
1725
- readonly required: readonly ["type"];
1726
- readonly additionalProperties: false;
1727
- }];
1728
- };
1729
- };
1730
- readonly required: readonly ["query", "chart"];
1731
- readonly additionalProperties: false;
1732
- };
1733
- export type TileDefinition = FromSchemaWithOptions<typeof tileDefinitionSchema>;
1734
- export declare const tileLayoutSchema: {
1735
- readonly type: "object";
1736
- readonly properties: {
1737
- readonly position: {
1738
- readonly type: "object";
1739
- readonly properties: {
1740
- readonly col: {
1741
- readonly type: "number";
1742
- };
1743
- readonly row: {
1744
- readonly type: "number";
1745
- };
1746
- };
1747
- readonly description: "Position of the tile in the grid.";
1748
- readonly required: readonly ["col", "row"];
1749
- readonly additionalProperties: false;
1750
- };
1751
- readonly size: {
1752
- readonly type: "object";
1753
- readonly properties: {
1754
- readonly cols: {
1755
- readonly type: "number";
1756
- };
1757
- readonly rows: {
1758
- readonly type: "number";
1759
- };
1760
- readonly fit_to_content: {
1761
- readonly type: "boolean";
1762
- };
1763
- };
1764
- readonly description: string;
1765
- readonly required: readonly ["cols", "rows"];
1766
- readonly additionalProperties: false;
1767
- };
1768
- };
1769
- readonly required: readonly ["position", "size"];
1770
- readonly additionalProperties: false;
1771
- };
1772
- export type TileLayout = FromSchemaWithOptions<typeof tileLayoutSchema>;
1773
- export declare const tileConfigSchema: {
1774
- readonly type: "object";
1775
- readonly properties: {
1776
- readonly type: {
1777
- readonly type: "string";
1778
- readonly enum: readonly ["chart"];
1779
- };
1780
- readonly definition: {
1781
- readonly type: "object";
1782
- readonly properties: {
1783
- readonly query: {
1784
- readonly anyOf: readonly [{
1785
- readonly type: "object";
1786
- readonly description: "A query to launch at the advanced explore API";
1787
- readonly properties: {
1788
- readonly granularity: {
1789
- readonly type: "string";
1790
- readonly description: "Force time grouping into buckets of this duration. Only has an effect if \"time\" is in the \"dimensions\" list.";
1791
- readonly enum: readonly ["secondly", "tenSecondly", "thirtySecondly", "minutely", "fiveMinutely", "tenMinutely", "thirtyMinutely", "hourly", "twoHourly", "twelveHourly", "daily", "weekly", "trend"];
1792
- };
1793
- readonly time_range: {
1794
- readonly type: "object";
1795
- readonly description: "The time range to query.";
1796
- readonly anyOf: readonly [{
1797
- readonly type: "object";
1798
- readonly properties: {
1799
- readonly tz: {
1800
- readonly type: "string";
1801
- readonly default: "Etc/UTC";
1802
- };
1803
- readonly type: {
1804
- readonly type: "string";
1805
- readonly enum: readonly ["relative"];
1806
- };
1807
- readonly time_range: {
1808
- readonly type: "string";
1809
- readonly enum: readonly ["15m", "1h", "6h", "12h", "24h", "7d", "current_week", "previous_week", "30d", "current_month", "previous_month"];
1810
- readonly default: "1h";
1811
- };
1812
- };
1813
- readonly required: readonly ["type", "time_range"];
1814
- readonly additionalProperties: false;
1815
- }, {
1816
- readonly type: "object";
1817
- readonly description: "A duration representing an exact start and end time.";
1818
- readonly properties: {
1819
- readonly tz: {
1820
- readonly type: "string";
1821
- };
1822
- readonly type: {
1823
- readonly type: "string";
1824
- readonly enum: readonly ["absolute"];
1825
- };
1826
- readonly start: {
1827
- readonly type: "string";
1828
- };
1829
- readonly end: {
1830
- readonly type: "string";
1831
- };
1832
- };
1833
- readonly required: readonly ["type", "start", "end"];
1834
- readonly additionalProperties: false;
1835
- }];
1836
- readonly default: {
1837
- readonly type: "relative";
1838
- readonly time_range: "1h";
1839
- };
1840
- };
1841
- readonly limit: {
1842
- readonly type: "number";
1843
- };
1844
- readonly meta: {
1845
- readonly type: "object";
1846
- };
1847
- readonly datasource: {
1848
- readonly type: "string";
1849
- readonly enum: readonly ["api_usage"];
1850
- };
1851
- readonly metrics: {
1852
- readonly type: "array";
1853
- readonly description: "List of aggregated metrics to collect across the requested time span.";
1854
- readonly items: {
1855
- readonly type: "string";
1856
- readonly enum: readonly ["active_services", "request_count", "request_per_minute", "response_latency_average", "response_latency_p99", "response_latency_p95", "response_latency_p50", "upstream_latency_p99", "upstream_latency_p95", "upstream_latency_p50", "upstream_latency_average", "kong_latency_p99", "kong_latency_p95", "kong_latency_p50", "kong_latency_average", "response_size_p99", "response_size_p95", "response_size_p50", "response_size_average", "response_size_sum", "request_size_p99", "request_size_p95", "request_size_p50", "request_size_average", "request_size_sum"];
1857
- };
1858
- };
1859
- readonly dimensions: {
1860
- readonly type: "array";
1861
- readonly description: "List of attributes or entity types to group by.";
1862
- readonly minItems: 0;
1863
- readonly maxItems: 2;
1864
- readonly items: {
1865
- readonly type: "string";
1866
- readonly enum: readonly ["api", "api_package", "api_product", "api_product_version", "control_plane", "control_plane_group", "data_plane_node", "gateway_service", "portal", "route", "status_code", "status_code_grouped", "time", "application", "consumer", "country_code", "upstream_status_code", "upstream_status_code_grouped", "response_source", "data_plane_node_version", "realm", "portal_api"];
1867
- };
1868
- };
1869
- readonly filters: {
1870
- readonly type: "array";
1871
- readonly description: "A list of filters to apply to the query";
1872
- readonly items: {
1873
- readonly oneOf: readonly [{
1874
- readonly type: "object";
1875
- readonly description: "In filter";
1876
- readonly properties: {
1877
- readonly field: {
1878
- readonly type: "string";
1879
- readonly enum: ["api", "api_package", "api_product", "api_product_version", "control_plane", "control_plane_group", "data_plane_node", "gateway_service", "portal", "route", "status_code", "status_code_grouped", "application", "consumer", "country_code", "upstream_status_code", "upstream_status_code_grouped", "response_source", "data_plane_node_version", "realm", "portal_api"];
1880
- };
1881
- readonly operator: {
1882
- readonly type: "string";
1883
- readonly enum: readonly ["in", "not_in", "selector"];
1884
- };
1885
- readonly value: {
1886
- readonly type: "array";
1887
- readonly items: {
1888
- readonly type: readonly ["string", "number", "null"];
1889
- };
1890
- };
1891
- };
1892
- readonly required: readonly ["field", "operator", "value"];
1893
- readonly additionalProperties: false;
1894
- }, {
1895
- readonly type: "object";
1896
- readonly description: "Empty filter";
1897
- readonly properties: {
1898
- readonly field: {
1899
- readonly type: "string";
1900
- readonly enum: ["api", "api_package", "api_product", "api_product_version", "control_plane", "control_plane_group", "data_plane_node", "gateway_service", "portal", "route", "status_code", "status_code_grouped", "application", "consumer", "country_code", "upstream_status_code", "upstream_status_code_grouped", "response_source", "data_plane_node_version", "realm", "portal_api"];
1901
- };
1902
- readonly operator: {
1903
- readonly type: "string";
1904
- readonly enum: readonly ["empty", "not_empty"];
1905
- };
1906
- };
1907
- readonly required: readonly ["field", "operator"];
1908
- readonly additionalProperties: false;
1909
- }];
1910
- };
1911
- };
1912
- };
1913
- readonly required: readonly ["datasource"];
1914
- readonly additionalProperties: false;
1915
- }, {
1916
- readonly type: "object";
1917
- readonly description: "A query to launch at the basic explore API";
1918
- readonly properties: {
1919
- readonly granularity: {
1920
- readonly type: "string";
1921
- readonly description: "Force time grouping into buckets of this duration. Only has an effect if \"time\" is in the \"dimensions\" list.";
1922
- readonly enum: readonly ["secondly", "tenSecondly", "thirtySecondly", "minutely", "fiveMinutely", "tenMinutely", "thirtyMinutely", "hourly", "twoHourly", "twelveHourly", "daily", "weekly", "trend"];
1923
- };
1924
- readonly time_range: {
1925
- readonly type: "object";
1926
- readonly description: "The time range to query.";
1927
- readonly anyOf: readonly [{
1928
- readonly type: "object";
1929
- readonly properties: {
1930
- readonly tz: {
1931
- readonly type: "string";
1932
- readonly default: "Etc/UTC";
1933
- };
1934
- readonly type: {
1935
- readonly type: "string";
1936
- readonly enum: readonly ["relative"];
1937
- };
1938
- readonly time_range: {
1939
- readonly type: "string";
1940
- readonly enum: readonly ["15m", "1h", "6h", "12h", "24h", "7d", "current_week", "previous_week", "30d", "current_month", "previous_month"];
1941
- readonly default: "1h";
1942
- };
1943
- };
1944
- readonly required: readonly ["type", "time_range"];
1945
- readonly additionalProperties: false;
1946
- }, {
1947
- readonly type: "object";
1948
- readonly description: "A duration representing an exact start and end time.";
1949
- readonly properties: {
1950
- readonly tz: {
1951
- readonly type: "string";
1952
- };
1953
- readonly type: {
1954
- readonly type: "string";
1955
- readonly enum: readonly ["absolute"];
1956
- };
1957
- readonly start: {
1958
- readonly type: "string";
1959
- };
1960
- readonly end: {
1961
- readonly type: "string";
1962
- };
1963
- };
1964
- readonly required: readonly ["type", "start", "end"];
1965
- readonly additionalProperties: false;
1966
- }];
1967
- readonly default: {
1968
- readonly type: "relative";
1969
- readonly time_range: "1h";
1970
- };
1971
- };
1972
- readonly limit: {
1973
- readonly type: "number";
1974
- };
1975
- readonly meta: {
1976
- readonly type: "object";
1977
- };
1978
- readonly datasource: {
1979
- readonly type: "string";
1980
- readonly enum: readonly ["basic"];
1981
- };
1982
- readonly metrics: {
1983
- readonly type: "array";
1984
- readonly description: "List of aggregated metrics to collect across the requested time span.";
1985
- readonly items: {
1986
- readonly type: "string";
1987
- readonly enum: readonly ["active_services", "request_count", "request_per_minute", "response_latency_average"];
1988
- };
1989
- };
1990
- readonly dimensions: {
1991
- readonly type: "array";
1992
- readonly description: "List of attributes or entity types to group by.";
1993
- readonly minItems: 0;
1994
- readonly maxItems: 2;
1995
- readonly items: {
1996
- readonly type: "string";
1997
- readonly enum: readonly ["api", "api_package", "api_product", "api_product_version", "control_plane", "control_plane_group", "data_plane_node", "gateway_service", "portal", "route", "status_code", "status_code_grouped", "time"];
1998
- };
1999
- };
2000
- readonly filters: {
2001
- readonly type: "array";
2002
- readonly description: "A list of filters to apply to the query";
2003
- readonly items: {
2004
- readonly oneOf: readonly [{
2005
- readonly type: "object";
2006
- readonly description: "In filter";
2007
- readonly properties: {
2008
- readonly field: {
2009
- readonly type: "string";
2010
- readonly enum: ["api", "api_package", "api_product", "api_product_version", "control_plane", "control_plane_group", "data_plane_node", "gateway_service", "portal", "route", "status_code", "status_code_grouped"];
2011
- };
2012
- readonly operator: {
2013
- readonly type: "string";
2014
- readonly enum: readonly ["in", "not_in", "selector"];
2015
- };
2016
- readonly value: {
2017
- readonly type: "array";
2018
- readonly items: {
2019
- readonly type: readonly ["string", "number", "null"];
2020
- };
2021
- };
2022
- };
2023
- readonly required: readonly ["field", "operator", "value"];
2024
- readonly additionalProperties: false;
2025
- }, {
2026
- readonly type: "object";
2027
- readonly description: "Empty filter";
2028
- readonly properties: {
2029
- readonly field: {
2030
- readonly type: "string";
2031
- readonly enum: ["api", "api_package", "api_product", "api_product_version", "control_plane", "control_plane_group", "data_plane_node", "gateway_service", "portal", "route", "status_code", "status_code_grouped"];
2032
- };
2033
- readonly operator: {
2034
- readonly type: "string";
2035
- readonly enum: readonly ["empty", "not_empty"];
2036
- };
2037
- };
2038
- readonly required: readonly ["field", "operator"];
2039
- readonly additionalProperties: false;
2040
- }];
2041
- };
2042
- };
2043
- };
2044
- readonly required: readonly ["datasource"];
2045
- readonly additionalProperties: false;
2046
- }, {
2047
- readonly type: "object";
2048
- readonly description: "A query to launch at the AI explore API";
2049
- readonly properties: {
2050
- readonly granularity: {
2051
- readonly type: "string";
2052
- readonly description: "Force time grouping into buckets of this duration. Only has an effect if \"time\" is in the \"dimensions\" list.";
2053
- readonly enum: readonly ["secondly", "tenSecondly", "thirtySecondly", "minutely", "fiveMinutely", "tenMinutely", "thirtyMinutely", "hourly", "twoHourly", "twelveHourly", "daily", "weekly", "trend"];
2054
- };
2055
- readonly time_range: {
2056
- readonly type: "object";
2057
- readonly description: "The time range to query.";
2058
- readonly anyOf: readonly [{
2059
- readonly type: "object";
2060
- readonly properties: {
2061
- readonly tz: {
2062
- readonly type: "string";
2063
- readonly default: "Etc/UTC";
2064
- };
2065
- readonly type: {
2066
- readonly type: "string";
2067
- readonly enum: readonly ["relative"];
2068
- };
2069
- readonly time_range: {
2070
- readonly type: "string";
2071
- readonly enum: readonly ["15m", "1h", "6h", "12h", "24h", "7d", "current_week", "previous_week", "30d", "current_month", "previous_month"];
2072
- readonly default: "1h";
2073
- };
2074
- };
2075
- readonly required: readonly ["type", "time_range"];
2076
- readonly additionalProperties: false;
2077
- }, {
2078
- readonly type: "object";
2079
- readonly description: "A duration representing an exact start and end time.";
2080
- readonly properties: {
2081
- readonly tz: {
2082
- readonly type: "string";
2083
- };
2084
- readonly type: {
2085
- readonly type: "string";
2086
- readonly enum: readonly ["absolute"];
2087
- };
2088
- readonly start: {
2089
- readonly type: "string";
2090
- };
2091
- readonly end: {
2092
- readonly type: "string";
2093
- };
2094
- };
2095
- readonly required: readonly ["type", "start", "end"];
2096
- readonly additionalProperties: false;
2097
- }];
2098
- readonly default: {
2099
- readonly type: "relative";
2100
- readonly time_range: "1h";
2101
- };
2102
- };
2103
- readonly limit: {
2104
- readonly type: "number";
2105
- };
2106
- readonly meta: {
2107
- readonly type: "object";
2108
- };
2109
- readonly datasource: {
2110
- readonly type: "string";
2111
- readonly enum: readonly ["llm_usage"];
2112
- };
2113
- readonly metrics: {
2114
- readonly type: "array";
2115
- readonly description: "List of aggregated metrics to collect across the requested time span.";
2116
- readonly items: {
2117
- readonly type: "string";
2118
- readonly enum: readonly ["total_tokens", "prompt_tokens", "completion_tokens", "ai_request_count", "cost", "llm_cache_embeddings_latency_average", "llm_cache_fetch_latency_average", "llm_latency_average", "llm_embeddings_tokens", "llm_embeddings_cost"];
2119
- };
2120
- };
2121
- readonly dimensions: {
2122
- readonly type: "array";
2123
- readonly description: "List of attributes or entity types to group by.";
2124
- readonly minItems: 0;
2125
- readonly maxItems: 2;
2126
- readonly items: {
2127
- readonly type: "string";
2128
- readonly enum: readonly ["control_plane", "control_plane_group", "gateway_service", "consumer", "application", "route", "ai_provider", "ai_response_model", "ai_request_model", "llm_cache_status", "llm_embeddings_provider", "llm_embeddings_model", "time", "realm", "status_code", "status_code_grouped", "ai_plugin"];
2129
- };
2130
- };
2131
- readonly filters: {
2132
- readonly type: "array";
2133
- readonly description: "A list of filters to apply to the query";
2134
- readonly items: {
2135
- readonly oneOf: readonly [{
2136
- readonly type: "object";
2137
- readonly description: "In filter";
2138
- readonly properties: {
2139
- readonly field: {
2140
- readonly type: "string";
2141
- readonly enum: ["control_plane", "control_plane_group", "gateway_service", "consumer", "application", "route", "ai_provider", "ai_response_model", "ai_request_model", "llm_cache_status", "llm_embeddings_provider", "llm_embeddings_model", "realm", "status_code", "status_code_grouped", "ai_plugin"];
2142
- };
2143
- readonly operator: {
2144
- readonly type: "string";
2145
- readonly enum: readonly ["in", "not_in", "selector"];
2146
- };
2147
- readonly value: {
2148
- readonly type: "array";
2149
- readonly items: {
2150
- readonly type: readonly ["string", "number", "null"];
2151
- };
2152
- };
2153
- };
2154
- readonly required: readonly ["field", "operator", "value"];
2155
- readonly additionalProperties: false;
2156
- }, {
2157
- readonly type: "object";
2158
- readonly description: "Empty filter";
2159
- readonly properties: {
2160
- readonly field: {
2161
- readonly type: "string";
2162
- readonly enum: ["control_plane", "control_plane_group", "gateway_service", "consumer", "application", "route", "ai_provider", "ai_response_model", "ai_request_model", "llm_cache_status", "llm_embeddings_provider", "llm_embeddings_model", "realm", "status_code", "status_code_grouped", "ai_plugin"];
2163
- };
2164
- readonly operator: {
2165
- readonly type: "string";
2166
- readonly enum: readonly ["empty", "not_empty"];
2167
- };
2168
- };
2169
- readonly required: readonly ["field", "operator"];
2170
- readonly additionalProperties: false;
2171
- }];
2172
- };
2173
- };
2174
- };
2175
- readonly required: readonly ["datasource"];
2176
- readonly additionalProperties: false;
2177
- }];
2178
- };
2179
- readonly chart: {
2180
- readonly anyOf: readonly [{
2181
- readonly type: "object";
2182
- readonly properties: {
2183
- readonly type: {
2184
- readonly type: "string";
2185
- readonly enum: readonly ["horizontal_bar", "vertical_bar"];
2186
- };
2187
- readonly stacked: {
2188
- readonly type: "boolean";
2189
- };
2190
- readonly chart_dataset_colors: {
2191
- readonly type: readonly ["object", "array"];
2192
- readonly items: {
2193
- readonly type: "string";
2194
- };
2195
- readonly additionalProperties: {
2196
- readonly type: "string";
2197
- };
2198
- };
2199
- readonly synthetics_data_key: {
2200
- readonly type: "string";
2201
- };
2202
- readonly chart_title: {
2203
- readonly type: "string";
2204
- };
2205
- readonly allow_csv_export: {
2206
- readonly type: "boolean";
2207
- };
2208
- };
2209
- readonly required: readonly ["type"];
2210
- readonly additionalProperties: false;
2211
- }, {
2212
- readonly type: "object";
2213
- readonly properties: {
2214
- readonly type: {
2215
- readonly type: "string";
2216
- readonly enum: readonly ["gauge"];
2217
- };
2218
- readonly metric_display: {
2219
- readonly type: "string";
2220
- readonly enum: readonly ["hidden", "single", "full"];
2221
- };
2222
- readonly reverse_dataset: {
2223
- readonly type: "boolean";
2224
- };
2225
- readonly numerator: {
2226
- readonly type: "number";
2227
- };
2228
- readonly synthetics_data_key: {
2229
- readonly type: "string";
2230
- };
2231
- readonly chart_title: {
2232
- readonly type: "string";
2233
- };
2234
- };
2235
- readonly required: readonly ["type"];
2236
- readonly additionalProperties: false;
2237
- }, {
2238
- readonly type: "object";
2239
- readonly properties: {
2240
- readonly type: {
2241
- readonly type: "string";
2242
- readonly enum: readonly ["donut"];
2243
- };
2244
- readonly synthetics_data_key: {
2245
- readonly type: "string";
2246
- };
2247
- readonly chart_title: {
2248
- readonly type: "string";
2249
- };
2250
- };
2251
- readonly required: readonly ["type"];
2252
- readonly additionalProperties: false;
2253
- }, {
2254
- readonly type: "object";
2255
- readonly properties: {
2256
- readonly type: {
2257
- readonly type: "string";
2258
- readonly enum: readonly ["timeseries_line", "timeseries_bar"];
2259
- };
2260
- readonly stacked: {
2261
- readonly type: "boolean";
2262
- };
2263
- readonly threshold: {
2264
- readonly type: "object";
2265
- readonly additionalProperties: {
2266
- readonly type: "array";
2267
- readonly items: {
2268
- readonly type: "object";
2269
- readonly properties: {
2270
- readonly type: {
2271
- readonly type: "string";
2272
- readonly enum: readonly ["warning", "error", "neutral"];
2273
- };
2274
- readonly value: {
2275
- readonly type: "number";
2276
- };
2277
- readonly label: {
2278
- readonly type: "string";
2279
- };
2280
- readonly highlightIntersections: {
2281
- readonly type: "boolean";
2282
- readonly default: false;
2283
- };
2284
- };
2285
- readonly required: readonly ["type", "value"];
2286
- readonly additionalProperties: false;
2287
- };
2288
- };
2289
- };
2290
- readonly chart_dataset_colors: {
2291
- readonly type: readonly ["object", "array"];
2292
- readonly items: {
2293
- readonly type: "string";
2294
- };
2295
- readonly additionalProperties: {
2296
- readonly type: "string";
2297
- };
2298
- };
2299
- readonly synthetics_data_key: {
2300
- readonly type: "string";
2301
- };
2302
- readonly chart_title: {
2303
- readonly type: "string";
2304
- };
2305
- readonly allow_csv_export: {
2306
- readonly type: "boolean";
2307
- };
2308
- };
2309
- readonly required: readonly ["type"];
2310
- readonly additionalProperties: false;
2311
- }, {
2312
- readonly type: "object";
2313
- readonly properties: {
2314
- readonly chart_title: {
2315
- readonly type: "string";
2316
- };
2317
- readonly type: {
2318
- readonly type: "string";
2319
- readonly enum: readonly ["golden_signals"];
2320
- };
2321
- readonly long_card_titles: {
2322
- readonly type: "boolean";
2323
- };
2324
- readonly description: {
2325
- readonly type: "string";
2326
- };
2327
- readonly percentile_latency: {
2328
- readonly type: "boolean";
2329
- };
2330
- };
2331
- readonly required: readonly ["type"];
2332
- readonly additionalProperties: false;
2333
- }, {
2334
- readonly type: "object";
2335
- readonly properties: {
2336
- readonly chart_title: {
2337
- readonly type: "string";
2338
- };
2339
- readonly synthetics_data_key: {
2340
- readonly type: "string";
2341
- };
2342
- readonly type: {
2343
- readonly type: "string";
2344
- readonly enum: readonly ["top_n"];
2345
- };
2346
- readonly description: {
2347
- readonly type: "string";
2348
- };
2349
- readonly entity_link: {
2350
- readonly type: "string";
2351
- };
2352
- };
2353
- readonly required: readonly ["type"];
2354
- readonly additionalProperties: false;
2355
- }, {
2356
- readonly type: "object";
2357
- readonly properties: {
2358
- readonly type: {
2359
- readonly type: "string";
2360
- readonly enum: readonly ["slottable"];
2361
- };
2362
- readonly id: {
2363
- readonly type: "string";
2364
- };
2365
- };
2366
- readonly required: readonly ["type", "id"];
2367
- readonly additionalProperties: false;
2368
- }, {
2369
- readonly type: "object";
2370
- readonly properties: {
2371
- readonly type: {
2372
- readonly type: "string";
2373
- readonly enum: readonly ["single_value"];
2374
- };
2375
- readonly decimal_points: {
2376
- readonly type: "number";
2377
- };
2378
- readonly chart_title: {
2379
- readonly type: "string";
2380
- };
2381
- };
2382
- readonly required: readonly ["type"];
2383
- readonly additionalProperties: false;
2384
- }, {
2385
- readonly type: "object";
2386
- readonly properties: {
2387
- readonly type: {
2388
- readonly type: "string";
2389
- readonly enum: readonly ["choropleth_map"];
2390
- };
2391
- readonly chart_title: {
2392
- readonly type: "string";
2393
- };
2394
- readonly fit_to_country: {
2395
- readonly type: "string";
2396
- readonly enum: ("AF" | "AX" | "AL" | "DZ" | "AS" | "AD" | "AO" | "AI" | "AQ" | "AG" | "AR" | "AM" | "AW" | "AU" | "AT" | "AZ" | "BS" | "BH" | "BD" | "BB" | "BY" | "BE" | "BZ" | "BJ" | "BM" | "BT" | "BO" | "BA" | "BW" | "BV" | "BR" | "IO" | "BN" | "BG" | "BF" | "BI" | "KH" | "CM" | "CA" | "CV" | "KY" | "CF" | "TD" | "CL" | "CN" | "CX" | "CC" | "CO" | "KM" | "CG" | "CD" | "CK" | "CR" | "CI" | "HR" | "CU" | "CY" | "CZ" | "DK" | "DJ" | "DM" | "DO" | "EC" | "EG" | "SV" | "GQ" | "ER" | "EE" | "ET" | "FK" | "FO" | "FJ" | "FI" | "FR" | "GF" | "PF" | "TF" | "GA" | "GM" | "GE" | "DE" | "GH" | "GI" | "GR" | "GL" | "GD" | "GP" | "GU" | "GT" | "GG" | "GN" | "GW" | "GY" | "HT" | "HM" | "VA" | "HN" | "HK" | "HU" | "IS" | "IN" | "ID" | "IR" | "IQ" | "IE" | "IM" | "IL" | "IT" | "JM" | "JP" | "JE" | "JO" | "KZ" | "KE" | "KI" | "KP" | "KR" | "KW" | "KG" | "LA" | "LV" | "LB" | "LS" | "LR" | "LY" | "LI" | "LT" | "LU" | "MO" | "MK" | "MG" | "MW" | "MY" | "MV" | "ML" | "MT" | "MH" | "MQ" | "MR" | "MU" | "YT" | "MX" | "FM" | "MD" | "MC" | "MN" | "ME" | "MS" | "MA" | "MZ" | "MM" | "NA" | "NR" | "NP" | "NL" | "NC" | "NZ" | "NI" | "NE" | "NG" | "NU" | "NF" | "MP" | "NO" | "OM" | "PK" | "PW" | "PA" | "PG" | "PY" | "PE" | "PH" | "PN" | "PL" | "PT" | "PR" | "QA" | "RE" | "RO" | "RU" | "RW" | "BL" | "SH" | "KN" | "LC" | "MF" | "PM" | "VC" | "WS" | "SM" | "ST" | "SA" | "SN" | "RS" | "SC" | "SL" | "SG" | "SX" | "SK" | "SI" | "SB" | "SO" | "ZA" | "GS" | "SS" | "ES" | "LK" | "SD" | "SR" | "SJ" | "SZ" | "SE" | "CH" | "SY" | "TW" | "TJ" | "TZ" | "TH" | "TL" | "TG" | "TK" | "TO" | "TT" | "TN" | "TR" | "TM" | "TC" | "TV" | "UG" | "UA" | "AE" | "GB" | "US" | "UM" | "UY" | "UZ" | "VU" | "VE" | "VN" | "VG" | "VI" | "WF" | "EH" | "YE" | "ZM" | "ZW")[];
2397
- };
2398
- readonly legend: {
2399
- readonly type: "boolean";
2400
- readonly default: false;
2401
- };
2402
- readonly bounds: {
2403
- readonly type: "array";
2404
- readonly minItems: 2;
2405
- readonly maxItems: 2;
2406
- readonly items: {
2407
- readonly type: "array";
2408
- readonly minItems: 2;
2409
- readonly maxItems: 2;
2410
- readonly items: readonly [{
2411
- readonly type: "number";
2412
- readonly minimum: -180;
2413
- readonly maximum: 180;
2414
- }, {
2415
- readonly type: "number";
2416
- readonly minimum: -90;
2417
- readonly maximum: 90;
2418
- }];
2419
- };
2420
- };
2421
- };
2422
- readonly required: readonly ["type"];
2423
- readonly additionalProperties: false;
2424
- }];
2425
- };
2426
- };
2427
- readonly required: readonly ["query", "chart"];
2428
- readonly additionalProperties: false;
2429
- };
2430
- readonly layout: {
2431
- readonly type: "object";
2432
- readonly properties: {
2433
- readonly position: {
2434
- readonly type: "object";
2435
- readonly properties: {
2436
- readonly col: {
2437
- readonly type: "number";
2438
- };
2439
- readonly row: {
2440
- readonly type: "number";
2441
- };
2442
- };
2443
- readonly description: "Position of the tile in the grid.";
2444
- readonly required: readonly ["col", "row"];
2445
- readonly additionalProperties: false;
2446
- };
2447
- readonly size: {
2448
- readonly type: "object";
2449
- readonly properties: {
2450
- readonly cols: {
2451
- readonly type: "number";
2452
- };
2453
- readonly rows: {
2454
- readonly type: "number";
2455
- };
2456
- readonly fit_to_content: {
2457
- readonly type: "boolean";
2458
- };
2459
- };
2460
- readonly description: string;
2461
- readonly required: readonly ["cols", "rows"];
2462
- readonly additionalProperties: false;
2463
- };
2464
- };
2465
- readonly required: readonly ["position", "size"];
2466
- readonly additionalProperties: false;
2467
- };
2468
- readonly id: {
2469
- readonly type: "string";
2470
- readonly description: "Unique identifier for the tile. If not provided, one will be generated.";
2471
- };
2472
- };
2473
- readonly required: readonly ["type", "definition", "layout"];
2474
- readonly additionalProperties: false;
2475
- };
2476
- export type TileConfig = FromSchemaWithOptions<typeof tileConfigSchema>;
2477
- export declare const dashboardConfigSchema: {
2478
- readonly type: "object";
2479
- readonly properties: {
2480
- readonly tiles: {
2481
- readonly type: "array";
2482
- readonly items: {
2483
- readonly type: "object";
2484
- readonly properties: {
2485
- readonly type: {
2486
- readonly type: "string";
2487
- readonly enum: readonly ["chart"];
2488
- };
2489
- readonly definition: {
2490
- readonly type: "object";
2491
- readonly properties: {
2492
- readonly query: {
2493
- readonly anyOf: readonly [{
2494
- readonly type: "object";
2495
- readonly description: "A query to launch at the advanced explore API";
2496
- readonly properties: {
2497
- readonly granularity: {
2498
- readonly type: "string";
2499
- readonly description: "Force time grouping into buckets of this duration. Only has an effect if \"time\" is in the \"dimensions\" list.";
2500
- readonly enum: readonly ["secondly", "tenSecondly", "thirtySecondly", "minutely", "fiveMinutely", "tenMinutely", "thirtyMinutely", "hourly", "twoHourly", "twelveHourly", "daily", "weekly", "trend"];
2501
- };
2502
- readonly time_range: {
2503
- readonly type: "object";
2504
- readonly description: "The time range to query.";
2505
- readonly anyOf: readonly [{
2506
- readonly type: "object";
2507
- readonly properties: {
2508
- readonly tz: {
2509
- readonly type: "string";
2510
- readonly default: "Etc/UTC";
2511
- };
2512
- readonly type: {
2513
- readonly type: "string";
2514
- readonly enum: readonly ["relative"];
2515
- };
2516
- readonly time_range: {
2517
- readonly type: "string";
2518
- readonly enum: readonly ["15m", "1h", "6h", "12h", "24h", "7d", "current_week", "previous_week", "30d", "current_month", "previous_month"];
2519
- readonly default: "1h";
2520
- };
2521
- };
2522
- readonly required: readonly ["type", "time_range"];
2523
- readonly additionalProperties: false;
2524
- }, {
2525
- readonly type: "object";
2526
- readonly description: "A duration representing an exact start and end time.";
2527
- readonly properties: {
2528
- readonly tz: {
2529
- readonly type: "string";
2530
- };
2531
- readonly type: {
2532
- readonly type: "string";
2533
- readonly enum: readonly ["absolute"];
2534
- };
2535
- readonly start: {
2536
- readonly type: "string";
2537
- };
2538
- readonly end: {
2539
- readonly type: "string";
2540
- };
2541
- };
2542
- readonly required: readonly ["type", "start", "end"];
2543
- readonly additionalProperties: false;
2544
- }];
2545
- readonly default: {
2546
- readonly type: "relative";
2547
- readonly time_range: "1h";
2548
- };
2549
- };
2550
- readonly limit: {
2551
- readonly type: "number";
2552
- };
2553
- readonly meta: {
2554
- readonly type: "object";
2555
- };
2556
- readonly datasource: {
2557
- readonly type: "string";
2558
- readonly enum: readonly ["api_usage"];
2559
- };
2560
- readonly metrics: {
2561
- readonly type: "array";
2562
- readonly description: "List of aggregated metrics to collect across the requested time span.";
2563
- readonly items: {
2564
- readonly type: "string";
2565
- readonly enum: readonly ["active_services", "request_count", "request_per_minute", "response_latency_average", "response_latency_p99", "response_latency_p95", "response_latency_p50", "upstream_latency_p99", "upstream_latency_p95", "upstream_latency_p50", "upstream_latency_average", "kong_latency_p99", "kong_latency_p95", "kong_latency_p50", "kong_latency_average", "response_size_p99", "response_size_p95", "response_size_p50", "response_size_average", "response_size_sum", "request_size_p99", "request_size_p95", "request_size_p50", "request_size_average", "request_size_sum"];
2566
- };
2567
- };
2568
- readonly dimensions: {
2569
- readonly type: "array";
2570
- readonly description: "List of attributes or entity types to group by.";
2571
- readonly minItems: 0;
2572
- readonly maxItems: 2;
2573
- readonly items: {
2574
- readonly type: "string";
2575
- readonly enum: readonly ["api", "api_package", "api_product", "api_product_version", "control_plane", "control_plane_group", "data_plane_node", "gateway_service", "portal", "route", "status_code", "status_code_grouped", "time", "application", "consumer", "country_code", "upstream_status_code", "upstream_status_code_grouped", "response_source", "data_plane_node_version", "realm", "portal_api"];
2576
- };
2577
- };
2578
- readonly filters: {
2579
- readonly type: "array";
2580
- readonly description: "A list of filters to apply to the query";
2581
- readonly items: {
2582
- readonly oneOf: readonly [{
2583
- readonly type: "object";
2584
- readonly description: "In filter";
2585
- readonly properties: {
2586
- readonly field: {
2587
- readonly type: "string";
2588
- readonly enum: ["api", "api_package", "api_product", "api_product_version", "control_plane", "control_plane_group", "data_plane_node", "gateway_service", "portal", "route", "status_code", "status_code_grouped", "application", "consumer", "country_code", "upstream_status_code", "upstream_status_code_grouped", "response_source", "data_plane_node_version", "realm", "portal_api"];
2589
- };
2590
- readonly operator: {
2591
- readonly type: "string";
2592
- readonly enum: readonly ["in", "not_in", "selector"];
2593
- };
2594
- readonly value: {
2595
- readonly type: "array";
2596
- readonly items: {
2597
- readonly type: readonly ["string", "number", "null"];
2598
- };
2599
- };
2600
- };
2601
- readonly required: readonly ["field", "operator", "value"];
2602
- readonly additionalProperties: false;
2603
- }, {
2604
- readonly type: "object";
2605
- readonly description: "Empty filter";
2606
- readonly properties: {
2607
- readonly field: {
2608
- readonly type: "string";
2609
- readonly enum: ["api", "api_package", "api_product", "api_product_version", "control_plane", "control_plane_group", "data_plane_node", "gateway_service", "portal", "route", "status_code", "status_code_grouped", "application", "consumer", "country_code", "upstream_status_code", "upstream_status_code_grouped", "response_source", "data_plane_node_version", "realm", "portal_api"];
2610
- };
2611
- readonly operator: {
2612
- readonly type: "string";
2613
- readonly enum: readonly ["empty", "not_empty"];
2614
- };
2615
- };
2616
- readonly required: readonly ["field", "operator"];
2617
- readonly additionalProperties: false;
2618
- }];
2619
- };
2620
- };
2621
- };
2622
- readonly required: readonly ["datasource"];
2623
- readonly additionalProperties: false;
2624
- }, {
2625
- readonly type: "object";
2626
- readonly description: "A query to launch at the basic explore API";
2627
- readonly properties: {
2628
- readonly granularity: {
2629
- readonly type: "string";
2630
- readonly description: "Force time grouping into buckets of this duration. Only has an effect if \"time\" is in the \"dimensions\" list.";
2631
- readonly enum: readonly ["secondly", "tenSecondly", "thirtySecondly", "minutely", "fiveMinutely", "tenMinutely", "thirtyMinutely", "hourly", "twoHourly", "twelveHourly", "daily", "weekly", "trend"];
2632
- };
2633
- readonly time_range: {
2634
- readonly type: "object";
2635
- readonly description: "The time range to query.";
2636
- readonly anyOf: readonly [{
2637
- readonly type: "object";
2638
- readonly properties: {
2639
- readonly tz: {
2640
- readonly type: "string";
2641
- readonly default: "Etc/UTC";
2642
- };
2643
- readonly type: {
2644
- readonly type: "string";
2645
- readonly enum: readonly ["relative"];
2646
- };
2647
- readonly time_range: {
2648
- readonly type: "string";
2649
- readonly enum: readonly ["15m", "1h", "6h", "12h", "24h", "7d", "current_week", "previous_week", "30d", "current_month", "previous_month"];
2650
- readonly default: "1h";
2651
- };
2652
- };
2653
- readonly required: readonly ["type", "time_range"];
2654
- readonly additionalProperties: false;
2655
- }, {
2656
- readonly type: "object";
2657
- readonly description: "A duration representing an exact start and end time.";
2658
- readonly properties: {
2659
- readonly tz: {
2660
- readonly type: "string";
2661
- };
2662
- readonly type: {
2663
- readonly type: "string";
2664
- readonly enum: readonly ["absolute"];
2665
- };
2666
- readonly start: {
2667
- readonly type: "string";
2668
- };
2669
- readonly end: {
2670
- readonly type: "string";
2671
- };
2672
- };
2673
- readonly required: readonly ["type", "start", "end"];
2674
- readonly additionalProperties: false;
2675
- }];
2676
- readonly default: {
2677
- readonly type: "relative";
2678
- readonly time_range: "1h";
2679
- };
2680
- };
2681
- readonly limit: {
2682
- readonly type: "number";
2683
- };
2684
- readonly meta: {
2685
- readonly type: "object";
2686
- };
2687
- readonly datasource: {
2688
- readonly type: "string";
2689
- readonly enum: readonly ["basic"];
2690
- };
2691
- readonly metrics: {
2692
- readonly type: "array";
2693
- readonly description: "List of aggregated metrics to collect across the requested time span.";
2694
- readonly items: {
2695
- readonly type: "string";
2696
- readonly enum: readonly ["active_services", "request_count", "request_per_minute", "response_latency_average"];
2697
- };
2698
- };
2699
- readonly dimensions: {
2700
- readonly type: "array";
2701
- readonly description: "List of attributes or entity types to group by.";
2702
- readonly minItems: 0;
2703
- readonly maxItems: 2;
2704
- readonly items: {
2705
- readonly type: "string";
2706
- readonly enum: readonly ["api", "api_package", "api_product", "api_product_version", "control_plane", "control_plane_group", "data_plane_node", "gateway_service", "portal", "route", "status_code", "status_code_grouped", "time"];
2707
- };
2708
- };
2709
- readonly filters: {
2710
- readonly type: "array";
2711
- readonly description: "A list of filters to apply to the query";
2712
- readonly items: {
2713
- readonly oneOf: readonly [{
2714
- readonly type: "object";
2715
- readonly description: "In filter";
2716
- readonly properties: {
2717
- readonly field: {
2718
- readonly type: "string";
2719
- readonly enum: ["api", "api_package", "api_product", "api_product_version", "control_plane", "control_plane_group", "data_plane_node", "gateway_service", "portal", "route", "status_code", "status_code_grouped"];
2720
- };
2721
- readonly operator: {
2722
- readonly type: "string";
2723
- readonly enum: readonly ["in", "not_in", "selector"];
2724
- };
2725
- readonly value: {
2726
- readonly type: "array";
2727
- readonly items: {
2728
- readonly type: readonly ["string", "number", "null"];
2729
- };
2730
- };
2731
- };
2732
- readonly required: readonly ["field", "operator", "value"];
2733
- readonly additionalProperties: false;
2734
- }, {
2735
- readonly type: "object";
2736
- readonly description: "Empty filter";
2737
- readonly properties: {
2738
- readonly field: {
2739
- readonly type: "string";
2740
- readonly enum: ["api", "api_package", "api_product", "api_product_version", "control_plane", "control_plane_group", "data_plane_node", "gateway_service", "portal", "route", "status_code", "status_code_grouped"];
2741
- };
2742
- readonly operator: {
2743
- readonly type: "string";
2744
- readonly enum: readonly ["empty", "not_empty"];
2745
- };
2746
- };
2747
- readonly required: readonly ["field", "operator"];
2748
- readonly additionalProperties: false;
2749
- }];
2750
- };
2751
- };
2752
- };
2753
- readonly required: readonly ["datasource"];
2754
- readonly additionalProperties: false;
2755
- }, {
2756
- readonly type: "object";
2757
- readonly description: "A query to launch at the AI explore API";
2758
- readonly properties: {
2759
- readonly granularity: {
2760
- readonly type: "string";
2761
- readonly description: "Force time grouping into buckets of this duration. Only has an effect if \"time\" is in the \"dimensions\" list.";
2762
- readonly enum: readonly ["secondly", "tenSecondly", "thirtySecondly", "minutely", "fiveMinutely", "tenMinutely", "thirtyMinutely", "hourly", "twoHourly", "twelveHourly", "daily", "weekly", "trend"];
2763
- };
2764
- readonly time_range: {
2765
- readonly type: "object";
2766
- readonly description: "The time range to query.";
2767
- readonly anyOf: readonly [{
2768
- readonly type: "object";
2769
- readonly properties: {
2770
- readonly tz: {
2771
- readonly type: "string";
2772
- readonly default: "Etc/UTC";
2773
- };
2774
- readonly type: {
2775
- readonly type: "string";
2776
- readonly enum: readonly ["relative"];
2777
- };
2778
- readonly time_range: {
2779
- readonly type: "string";
2780
- readonly enum: readonly ["15m", "1h", "6h", "12h", "24h", "7d", "current_week", "previous_week", "30d", "current_month", "previous_month"];
2781
- readonly default: "1h";
2782
- };
2783
- };
2784
- readonly required: readonly ["type", "time_range"];
2785
- readonly additionalProperties: false;
2786
- }, {
2787
- readonly type: "object";
2788
- readonly description: "A duration representing an exact start and end time.";
2789
- readonly properties: {
2790
- readonly tz: {
2791
- readonly type: "string";
2792
- };
2793
- readonly type: {
2794
- readonly type: "string";
2795
- readonly enum: readonly ["absolute"];
2796
- };
2797
- readonly start: {
2798
- readonly type: "string";
2799
- };
2800
- readonly end: {
2801
- readonly type: "string";
2802
- };
2803
- };
2804
- readonly required: readonly ["type", "start", "end"];
2805
- readonly additionalProperties: false;
2806
- }];
2807
- readonly default: {
2808
- readonly type: "relative";
2809
- readonly time_range: "1h";
2810
- };
2811
- };
2812
- readonly limit: {
2813
- readonly type: "number";
2814
- };
2815
- readonly meta: {
2816
- readonly type: "object";
2817
- };
2818
- readonly datasource: {
2819
- readonly type: "string";
2820
- readonly enum: readonly ["llm_usage"];
2821
- };
2822
- readonly metrics: {
2823
- readonly type: "array";
2824
- readonly description: "List of aggregated metrics to collect across the requested time span.";
2825
- readonly items: {
2826
- readonly type: "string";
2827
- readonly enum: readonly ["total_tokens", "prompt_tokens", "completion_tokens", "ai_request_count", "cost", "llm_cache_embeddings_latency_average", "llm_cache_fetch_latency_average", "llm_latency_average", "llm_embeddings_tokens", "llm_embeddings_cost"];
2828
- };
2829
- };
2830
- readonly dimensions: {
2831
- readonly type: "array";
2832
- readonly description: "List of attributes or entity types to group by.";
2833
- readonly minItems: 0;
2834
- readonly maxItems: 2;
2835
- readonly items: {
2836
- readonly type: "string";
2837
- readonly enum: readonly ["control_plane", "control_plane_group", "gateway_service", "consumer", "application", "route", "ai_provider", "ai_response_model", "ai_request_model", "llm_cache_status", "llm_embeddings_provider", "llm_embeddings_model", "time", "realm", "status_code", "status_code_grouped", "ai_plugin"];
2838
- };
2839
- };
2840
- readonly filters: {
2841
- readonly type: "array";
2842
- readonly description: "A list of filters to apply to the query";
2843
- readonly items: {
2844
- readonly oneOf: readonly [{
2845
- readonly type: "object";
2846
- readonly description: "In filter";
2847
- readonly properties: {
2848
- readonly field: {
2849
- readonly type: "string";
2850
- readonly enum: ["control_plane", "control_plane_group", "gateway_service", "consumer", "application", "route", "ai_provider", "ai_response_model", "ai_request_model", "llm_cache_status", "llm_embeddings_provider", "llm_embeddings_model", "realm", "status_code", "status_code_grouped", "ai_plugin"];
2851
- };
2852
- readonly operator: {
2853
- readonly type: "string";
2854
- readonly enum: readonly ["in", "not_in", "selector"];
2855
- };
2856
- readonly value: {
2857
- readonly type: "array";
2858
- readonly items: {
2859
- readonly type: readonly ["string", "number", "null"];
2860
- };
2861
- };
2862
- };
2863
- readonly required: readonly ["field", "operator", "value"];
2864
- readonly additionalProperties: false;
2865
- }, {
2866
- readonly type: "object";
2867
- readonly description: "Empty filter";
2868
- readonly properties: {
2869
- readonly field: {
2870
- readonly type: "string";
2871
- readonly enum: ["control_plane", "control_plane_group", "gateway_service", "consumer", "application", "route", "ai_provider", "ai_response_model", "ai_request_model", "llm_cache_status", "llm_embeddings_provider", "llm_embeddings_model", "realm", "status_code", "status_code_grouped", "ai_plugin"];
2872
- };
2873
- readonly operator: {
2874
- readonly type: "string";
2875
- readonly enum: readonly ["empty", "not_empty"];
2876
- };
2877
- };
2878
- readonly required: readonly ["field", "operator"];
2879
- readonly additionalProperties: false;
2880
- }];
2881
- };
2882
- };
2883
- };
2884
- readonly required: readonly ["datasource"];
2885
- readonly additionalProperties: false;
2886
- }];
2887
- };
2888
- readonly chart: {
2889
- readonly anyOf: readonly [{
2890
- readonly type: "object";
2891
- readonly properties: {
2892
- readonly type: {
2893
- readonly type: "string";
2894
- readonly enum: readonly ["horizontal_bar", "vertical_bar"];
2895
- };
2896
- readonly stacked: {
2897
- readonly type: "boolean";
2898
- };
2899
- readonly chart_dataset_colors: {
2900
- readonly type: readonly ["object", "array"];
2901
- readonly items: {
2902
- readonly type: "string";
2903
- };
2904
- readonly additionalProperties: {
2905
- readonly type: "string";
2906
- };
2907
- };
2908
- readonly synthetics_data_key: {
2909
- readonly type: "string";
2910
- };
2911
- readonly chart_title: {
2912
- readonly type: "string";
2913
- };
2914
- readonly allow_csv_export: {
2915
- readonly type: "boolean";
2916
- };
2917
- };
2918
- readonly required: readonly ["type"];
2919
- readonly additionalProperties: false;
2920
- }, {
2921
- readonly type: "object";
2922
- readonly properties: {
2923
- readonly type: {
2924
- readonly type: "string";
2925
- readonly enum: readonly ["gauge"];
2926
- };
2927
- readonly metric_display: {
2928
- readonly type: "string";
2929
- readonly enum: readonly ["hidden", "single", "full"];
2930
- };
2931
- readonly reverse_dataset: {
2932
- readonly type: "boolean";
2933
- };
2934
- readonly numerator: {
2935
- readonly type: "number";
2936
- };
2937
- readonly synthetics_data_key: {
2938
- readonly type: "string";
2939
- };
2940
- readonly chart_title: {
2941
- readonly type: "string";
2942
- };
2943
- };
2944
- readonly required: readonly ["type"];
2945
- readonly additionalProperties: false;
2946
- }, {
2947
- readonly type: "object";
2948
- readonly properties: {
2949
- readonly type: {
2950
- readonly type: "string";
2951
- readonly enum: readonly ["donut"];
2952
- };
2953
- readonly synthetics_data_key: {
2954
- readonly type: "string";
2955
- };
2956
- readonly chart_title: {
2957
- readonly type: "string";
2958
- };
2959
- };
2960
- readonly required: readonly ["type"];
2961
- readonly additionalProperties: false;
2962
- }, {
2963
- readonly type: "object";
2964
- readonly properties: {
2965
- readonly type: {
2966
- readonly type: "string";
2967
- readonly enum: readonly ["timeseries_line", "timeseries_bar"];
2968
- };
2969
- readonly stacked: {
2970
- readonly type: "boolean";
2971
- };
2972
- readonly threshold: {
2973
- readonly type: "object";
2974
- readonly additionalProperties: {
2975
- readonly type: "array";
2976
- readonly items: {
2977
- readonly type: "object";
2978
- readonly properties: {
2979
- readonly type: {
2980
- readonly type: "string";
2981
- readonly enum: readonly ["warning", "error", "neutral"];
2982
- };
2983
- readonly value: {
2984
- readonly type: "number";
2985
- };
2986
- readonly label: {
2987
- readonly type: "string";
2988
- };
2989
- readonly highlightIntersections: {
2990
- readonly type: "boolean";
2991
- readonly default: false;
2992
- };
2993
- };
2994
- readonly required: readonly ["type", "value"];
2995
- readonly additionalProperties: false;
2996
- };
2997
- };
2998
- };
2999
- readonly chart_dataset_colors: {
3000
- readonly type: readonly ["object", "array"];
3001
- readonly items: {
3002
- readonly type: "string";
3003
- };
3004
- readonly additionalProperties: {
3005
- readonly type: "string";
3006
- };
3007
- };
3008
- readonly synthetics_data_key: {
3009
- readonly type: "string";
3010
- };
3011
- readonly chart_title: {
3012
- readonly type: "string";
3013
- };
3014
- readonly allow_csv_export: {
3015
- readonly type: "boolean";
3016
- };
3017
- };
3018
- readonly required: readonly ["type"];
3019
- readonly additionalProperties: false;
3020
- }, {
3021
- readonly type: "object";
3022
- readonly properties: {
3023
- readonly chart_title: {
3024
- readonly type: "string";
3025
- };
3026
- readonly type: {
3027
- readonly type: "string";
3028
- readonly enum: readonly ["golden_signals"];
3029
- };
3030
- readonly long_card_titles: {
3031
- readonly type: "boolean";
3032
- };
3033
- readonly description: {
3034
- readonly type: "string";
3035
- };
3036
- readonly percentile_latency: {
3037
- readonly type: "boolean";
3038
- };
3039
- };
3040
- readonly required: readonly ["type"];
3041
- readonly additionalProperties: false;
3042
- }, {
3043
- readonly type: "object";
3044
- readonly properties: {
3045
- readonly chart_title: {
3046
- readonly type: "string";
3047
- };
3048
- readonly synthetics_data_key: {
3049
- readonly type: "string";
3050
- };
3051
- readonly type: {
3052
- readonly type: "string";
3053
- readonly enum: readonly ["top_n"];
3054
- };
3055
- readonly description: {
3056
- readonly type: "string";
3057
- };
3058
- readonly entity_link: {
3059
- readonly type: "string";
3060
- };
3061
- };
3062
- readonly required: readonly ["type"];
3063
- readonly additionalProperties: false;
3064
- }, {
3065
- readonly type: "object";
3066
- readonly properties: {
3067
- readonly type: {
3068
- readonly type: "string";
3069
- readonly enum: readonly ["slottable"];
3070
- };
3071
- readonly id: {
3072
- readonly type: "string";
3073
- };
3074
- };
3075
- readonly required: readonly ["type", "id"];
3076
- readonly additionalProperties: false;
3077
- }, {
3078
- readonly type: "object";
3079
- readonly properties: {
3080
- readonly type: {
3081
- readonly type: "string";
3082
- readonly enum: readonly ["single_value"];
3083
- };
3084
- readonly decimal_points: {
3085
- readonly type: "number";
3086
- };
3087
- readonly chart_title: {
3088
- readonly type: "string";
3089
- };
3090
- };
3091
- readonly required: readonly ["type"];
3092
- readonly additionalProperties: false;
3093
- }, {
3094
- readonly type: "object";
3095
- readonly properties: {
3096
- readonly type: {
3097
- readonly type: "string";
3098
- readonly enum: readonly ["choropleth_map"];
3099
- };
3100
- readonly chart_title: {
3101
- readonly type: "string";
3102
- };
3103
- readonly fit_to_country: {
3104
- readonly type: "string";
3105
- readonly enum: ("AF" | "AX" | "AL" | "DZ" | "AS" | "AD" | "AO" | "AI" | "AQ" | "AG" | "AR" | "AM" | "AW" | "AU" | "AT" | "AZ" | "BS" | "BH" | "BD" | "BB" | "BY" | "BE" | "BZ" | "BJ" | "BM" | "BT" | "BO" | "BA" | "BW" | "BV" | "BR" | "IO" | "BN" | "BG" | "BF" | "BI" | "KH" | "CM" | "CA" | "CV" | "KY" | "CF" | "TD" | "CL" | "CN" | "CX" | "CC" | "CO" | "KM" | "CG" | "CD" | "CK" | "CR" | "CI" | "HR" | "CU" | "CY" | "CZ" | "DK" | "DJ" | "DM" | "DO" | "EC" | "EG" | "SV" | "GQ" | "ER" | "EE" | "ET" | "FK" | "FO" | "FJ" | "FI" | "FR" | "GF" | "PF" | "TF" | "GA" | "GM" | "GE" | "DE" | "GH" | "GI" | "GR" | "GL" | "GD" | "GP" | "GU" | "GT" | "GG" | "GN" | "GW" | "GY" | "HT" | "HM" | "VA" | "HN" | "HK" | "HU" | "IS" | "IN" | "ID" | "IR" | "IQ" | "IE" | "IM" | "IL" | "IT" | "JM" | "JP" | "JE" | "JO" | "KZ" | "KE" | "KI" | "KP" | "KR" | "KW" | "KG" | "LA" | "LV" | "LB" | "LS" | "LR" | "LY" | "LI" | "LT" | "LU" | "MO" | "MK" | "MG" | "MW" | "MY" | "MV" | "ML" | "MT" | "MH" | "MQ" | "MR" | "MU" | "YT" | "MX" | "FM" | "MD" | "MC" | "MN" | "ME" | "MS" | "MA" | "MZ" | "MM" | "NA" | "NR" | "NP" | "NL" | "NC" | "NZ" | "NI" | "NE" | "NG" | "NU" | "NF" | "MP" | "NO" | "OM" | "PK" | "PW" | "PA" | "PG" | "PY" | "PE" | "PH" | "PN" | "PL" | "PT" | "PR" | "QA" | "RE" | "RO" | "RU" | "RW" | "BL" | "SH" | "KN" | "LC" | "MF" | "PM" | "VC" | "WS" | "SM" | "ST" | "SA" | "SN" | "RS" | "SC" | "SL" | "SG" | "SX" | "SK" | "SI" | "SB" | "SO" | "ZA" | "GS" | "SS" | "ES" | "LK" | "SD" | "SR" | "SJ" | "SZ" | "SE" | "CH" | "SY" | "TW" | "TJ" | "TZ" | "TH" | "TL" | "TG" | "TK" | "TO" | "TT" | "TN" | "TR" | "TM" | "TC" | "TV" | "UG" | "UA" | "AE" | "GB" | "US" | "UM" | "UY" | "UZ" | "VU" | "VE" | "VN" | "VG" | "VI" | "WF" | "EH" | "YE" | "ZM" | "ZW")[];
3106
- };
3107
- readonly legend: {
3108
- readonly type: "boolean";
3109
- readonly default: false;
3110
- };
3111
- readonly bounds: {
3112
- readonly type: "array";
3113
- readonly minItems: 2;
3114
- readonly maxItems: 2;
3115
- readonly items: {
3116
- readonly type: "array";
3117
- readonly minItems: 2;
3118
- readonly maxItems: 2;
3119
- readonly items: readonly [{
3120
- readonly type: "number";
3121
- readonly minimum: -180;
3122
- readonly maximum: 180;
3123
- }, {
3124
- readonly type: "number";
3125
- readonly minimum: -90;
3126
- readonly maximum: 90;
3127
- }];
3128
- };
3129
- };
3130
- };
3131
- readonly required: readonly ["type"];
3132
- readonly additionalProperties: false;
3133
- }];
3134
- };
3135
- };
3136
- readonly required: readonly ["query", "chart"];
3137
- readonly additionalProperties: false;
3138
- };
3139
- readonly layout: {
3140
- readonly type: "object";
3141
- readonly properties: {
3142
- readonly position: {
3143
- readonly type: "object";
3144
- readonly properties: {
3145
- readonly col: {
3146
- readonly type: "number";
3147
- };
3148
- readonly row: {
3149
- readonly type: "number";
3150
- };
3151
- };
3152
- readonly description: "Position of the tile in the grid.";
3153
- readonly required: readonly ["col", "row"];
3154
- readonly additionalProperties: false;
3155
- };
3156
- readonly size: {
3157
- readonly type: "object";
3158
- readonly properties: {
3159
- readonly cols: {
3160
- readonly type: "number";
3161
- };
3162
- readonly rows: {
3163
- readonly type: "number";
3164
- };
3165
- readonly fit_to_content: {
3166
- readonly type: "boolean";
3167
- };
3168
- };
3169
- readonly description: string;
3170
- readonly required: readonly ["cols", "rows"];
3171
- readonly additionalProperties: false;
3172
- };
3173
- };
3174
- readonly required: readonly ["position", "size"];
3175
- readonly additionalProperties: false;
3176
- };
3177
- readonly id: {
3178
- readonly type: "string";
3179
- readonly description: "Unique identifier for the tile. If not provided, one will be generated.";
3180
- };
3181
- };
3182
- readonly required: readonly ["type", "definition", "layout"];
3183
- readonly additionalProperties: false;
3184
- };
3185
- };
3186
- readonly tile_height: {
3187
- readonly type: "number";
3188
- readonly description: "Height of each tile in pixels.";
3189
- };
3190
- readonly preset_filters: {
3191
- readonly type: "array";
3192
- readonly description: "A list of filters to apply to the query";
3193
- readonly items: {
3194
- readonly oneOf: readonly [{
3195
- readonly type: "object";
3196
- readonly description: "In filter";
3197
- readonly properties: {
3198
- readonly field: {
3199
- readonly type: "string";
3200
- readonly enum: ("api" | "api_package" | "api_product" | "api_product_version" | "control_plane" | "control_plane_group" | "data_plane_node" | "gateway_service" | "portal" | "route" | "status_code" | "status_code_grouped" | "application" | "consumer" | "country_code" | "upstream_status_code" | "upstream_status_code_grouped" | "response_source" | "data_plane_node_version" | "realm" | "portal_api" | "ai_provider" | "ai_response_model" | "ai_request_model" | "llm_cache_status" | "llm_embeddings_provider" | "llm_embeddings_model" | "ai_plugin")[];
3201
- };
3202
- readonly operator: {
3203
- readonly type: "string";
3204
- readonly enum: readonly ["in", "not_in", "selector"];
3205
- };
3206
- readonly value: {
3207
- readonly type: "array";
3208
- readonly items: {
3209
- readonly type: readonly ["string", "number", "null"];
3210
- };
3211
- };
3212
- };
3213
- readonly required: readonly ["field", "operator", "value"];
3214
- readonly additionalProperties: false;
3215
- }, {
3216
- readonly type: "object";
3217
- readonly description: "Empty filter";
3218
- readonly properties: {
3219
- readonly field: {
3220
- readonly type: "string";
3221
- readonly enum: ("api" | "api_package" | "api_product" | "api_product_version" | "control_plane" | "control_plane_group" | "data_plane_node" | "gateway_service" | "portal" | "route" | "status_code" | "status_code_grouped" | "application" | "consumer" | "country_code" | "upstream_status_code" | "upstream_status_code_grouped" | "response_source" | "data_plane_node_version" | "realm" | "portal_api" | "ai_provider" | "ai_response_model" | "ai_request_model" | "llm_cache_status" | "llm_embeddings_provider" | "llm_embeddings_model" | "ai_plugin")[];
3222
- };
3223
- readonly operator: {
3224
- readonly type: "string";
3225
- readonly enum: readonly ["empty", "not_empty"];
3226
- };
3227
- };
3228
- readonly required: readonly ["field", "operator"];
3229
- readonly additionalProperties: false;
3230
- }];
3231
- };
3232
- };
3233
- readonly template_id: {
3234
- readonly type: readonly ["string", "null"];
3235
- readonly description: "Template id which was used to instantiate this dashboard.";
3236
- };
3237
- };
3238
- readonly required: readonly ["tiles"];
3239
- readonly additionalProperties: false;
3240
- };
3241
- export type DashboardConfig = FromSchemaWithOptions<typeof dashboardConfigSchema>;
3242
- export {};
3243
- //# sourceMappingURL=dashboardSchema.v2.d.ts.map