@kong-ui-public/analytics-utilities 12.40.2-pr.3819.e65efac0b.0 → 12.40.2

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.
@@ -205,7 +205,7 @@ export declare const scatterChartSchema: {
205
205
  };
206
206
  readonly outlier_percentile: {
207
207
  readonly type: "number";
208
- readonly description: "Percentile above which points are split into a highlighted outlier series.";
208
+ readonly description: "Percentile above which points are colored in the outlier color, in place.";
209
209
  readonly minimum: 0;
210
210
  readonly maximum: 100;
211
211
  };
@@ -1283,6 +1283,26 @@ export declare const platformTabularQuerySchema: {
1283
1283
  readonly required: readonly ["datasource"];
1284
1284
  readonly additionalProperties: false;
1285
1285
  };
1286
+ export declare const apiRequestsExtraFieldSchema: {
1287
+ readonly type: "object";
1288
+ readonly properties: {
1289
+ readonly field: {
1290
+ readonly type: "string";
1291
+ readonly description: "Field to read, dotted for a nested one.";
1292
+ };
1293
+ readonly label: {
1294
+ readonly type: "string";
1295
+ readonly description: "Tooltip label, defaults to the field name.";
1296
+ };
1297
+ readonly unit: {
1298
+ readonly type: "string";
1299
+ readonly description: "Unit to format the value with, e.g. `ms` or `token count`.";
1300
+ };
1301
+ };
1302
+ readonly required: readonly ["field"];
1303
+ readonly additionalProperties: false;
1304
+ };
1305
+ export type ApiRequestsExtraField = FromSchemaWithOptions<typeof apiRequestsExtraFieldSchema>;
1286
1306
  export declare const apiRequestsQuerySchema: {
1287
1307
  readonly type: "object";
1288
1308
  readonly description: "A query for the api-requests endpoint.";
@@ -1393,6 +1413,33 @@ export declare const apiRequestsQuerySchema: {
1393
1413
  readonly description: "Ceiling on records gathered across pages. The endpoint serves at most 1000 per page. Defaults to 10000.";
1394
1414
  readonly minimum: 1;
1395
1415
  };
1416
+ readonly unroll: {
1417
+ readonly type: "string";
1418
+ readonly description: "A nested collection on a request record (`ai`, `mcp_info.rpc`) to expand into one point per entry rather than one per request.";
1419
+ };
1420
+ readonly extra_fields: {
1421
+ readonly type: "array";
1422
+ readonly description: "Values to annotate each point with in the tooltip. Read from the unrolled entry first, then the request record.";
1423
+ readonly items: {
1424
+ readonly type: "object";
1425
+ readonly properties: {
1426
+ readonly field: {
1427
+ readonly type: "string";
1428
+ readonly description: "Field to read, dotted for a nested one.";
1429
+ };
1430
+ readonly label: {
1431
+ readonly type: "string";
1432
+ readonly description: "Tooltip label, defaults to the field name.";
1433
+ };
1434
+ readonly unit: {
1435
+ readonly type: "string";
1436
+ readonly description: "Unit to format the value with, e.g. `ms` or `token count`.";
1437
+ };
1438
+ };
1439
+ readonly required: readonly ["field"];
1440
+ readonly additionalProperties: false;
1441
+ };
1442
+ };
1396
1443
  };
1397
1444
  readonly required: readonly ["datasource", "metric"];
1398
1445
  readonly additionalProperties: false;
@@ -4055,7 +4102,7 @@ declare const chartTileDefinitionSchema: {
4055
4102
  };
4056
4103
  readonly outlier_percentile: {
4057
4104
  readonly type: "number";
4058
- readonly description: "Percentile above which points are split into a highlighted outlier series.";
4105
+ readonly description: "Percentile above which points are colored in the outlier color, in place.";
4059
4106
  readonly minimum: 0;
4060
4107
  readonly maximum: 100;
4061
4108
  };
@@ -4334,6 +4381,11 @@ declare const tableChartTileDefinitionSchema: {
4334
4381
  readonly additionalProperties: false;
4335
4382
  };
4336
4383
  export type TableChartTileDefinition = FromSchemaWithOptions<typeof tableChartTileDefinitionSchema>;
4384
+ /**
4385
+ * A scatter tile fed by raw request records. Kept as its own arm so the api-requests
4386
+ * query, whose field names aren't enumerable, can only pair with the scatter chart.
4387
+ * A scatter tile over an explore query validates through `chartTileDefinitionSchema`.
4388
+ */
4337
4389
  declare const scatterTileDefinitionSchema: {
4338
4390
  readonly type: "object";
4339
4391
  readonly properties: {
@@ -4447,6 +4499,33 @@ declare const scatterTileDefinitionSchema: {
4447
4499
  readonly description: "Ceiling on records gathered across pages. The endpoint serves at most 1000 per page. Defaults to 10000.";
4448
4500
  readonly minimum: 1;
4449
4501
  };
4502
+ readonly unroll: {
4503
+ readonly type: "string";
4504
+ readonly description: "A nested collection on a request record (`ai`, `mcp_info.rpc`) to expand into one point per entry rather than one per request.";
4505
+ };
4506
+ readonly extra_fields: {
4507
+ readonly type: "array";
4508
+ readonly description: "Values to annotate each point with in the tooltip. Read from the unrolled entry first, then the request record.";
4509
+ readonly items: {
4510
+ readonly type: "object";
4511
+ readonly properties: {
4512
+ readonly field: {
4513
+ readonly type: "string";
4514
+ readonly description: "Field to read, dotted for a nested one.";
4515
+ };
4516
+ readonly label: {
4517
+ readonly type: "string";
4518
+ readonly description: "Tooltip label, defaults to the field name.";
4519
+ };
4520
+ readonly unit: {
4521
+ readonly type: "string";
4522
+ readonly description: "Unit to format the value with, e.g. `ms` or `token count`.";
4523
+ };
4524
+ };
4525
+ readonly required: readonly ["field"];
4526
+ readonly additionalProperties: false;
4527
+ };
4528
+ };
4450
4529
  };
4451
4530
  readonly required: readonly ["datasource", "metric"];
4452
4531
  readonly additionalProperties: false;
@@ -4491,7 +4570,7 @@ declare const scatterTileDefinitionSchema: {
4491
4570
  };
4492
4571
  readonly outlier_percentile: {
4493
4572
  readonly type: "number";
4494
- readonly description: "Percentile above which points are split into a highlighted outlier series.";
4573
+ readonly description: "Percentile above which points are colored in the outlier color, in place.";
4495
4574
  readonly minimum: 0;
4496
4575
  readonly maximum: 100;
4497
4576
  };
@@ -5499,7 +5578,7 @@ export declare const tileDefinitionSchema: {
5499
5578
  };
5500
5579
  readonly outlier_percentile: {
5501
5580
  readonly type: "number";
5502
- readonly description: "Percentile above which points are split into a highlighted outlier series.";
5581
+ readonly description: "Percentile above which points are colored in the outlier color, in place.";
5503
5582
  readonly minimum: 0;
5504
5583
  readonly maximum: 100;
5505
5584
  };
@@ -5774,148 +5853,384 @@ export declare const tileDefinitionSchema: {
5774
5853
  };
5775
5854
  readonly required: readonly ["query", "chart"];
5776
5855
  readonly additionalProperties: false;
5777
- }];
5778
- };
5779
- export type TileDefinition = FromSchemaWithOptions<typeof tileDefinitionSchema>;
5780
- export declare const tileLayoutSchema: {
5781
- readonly type: "object";
5782
- readonly properties: {
5783
- readonly position: {
5784
- readonly type: "object";
5785
- readonly properties: {
5786
- readonly col: {
5787
- readonly type: "number";
5788
- };
5789
- readonly row: {
5790
- readonly type: "number";
5791
- };
5792
- };
5793
- readonly description: "Position of the tile in the grid.";
5794
- readonly required: readonly ["col", "row"];
5795
- readonly additionalProperties: false;
5796
- };
5797
- readonly size: {
5798
- readonly type: "object";
5799
- readonly properties: {
5800
- readonly cols: {
5801
- readonly type: "number";
5802
- };
5803
- readonly rows: {
5804
- readonly type: "number";
5805
- };
5806
- readonly fit_to_content: {
5807
- readonly type: "boolean";
5808
- };
5809
- };
5810
- readonly description: string;
5811
- readonly required: readonly ["cols", "rows"];
5812
- readonly additionalProperties: false;
5813
- };
5814
- };
5815
- readonly required: readonly ["position", "size"];
5816
- readonly additionalProperties: false;
5817
- };
5818
- export type TileLayout = FromSchemaWithOptions<typeof tileLayoutSchema>;
5819
- export declare const chartTileConfigSchema: {
5820
- readonly type: "object";
5821
- readonly properties: {
5822
- readonly type: {
5823
- readonly type: "string";
5824
- readonly enum: readonly ["chart"];
5825
- };
5826
- readonly definition: {
5827
- readonly anyOf: readonly [{
5856
+ }, {
5857
+ readonly type: "object";
5858
+ readonly properties: {
5859
+ readonly query: {
5828
5860
  readonly type: "object";
5861
+ readonly description: "A query for the api-requests endpoint.";
5829
5862
  readonly properties: {
5830
- readonly query: {
5863
+ readonly datasource: {
5864
+ readonly type: "string";
5865
+ readonly enum: readonly ["requests"];
5866
+ };
5867
+ readonly metric: {
5868
+ readonly type: "string";
5869
+ readonly description: "Field plotted on the y axis.";
5870
+ };
5871
+ readonly dimension: {
5872
+ readonly type: "string";
5873
+ readonly description: "Field used to split points into series.";
5874
+ };
5875
+ readonly filters: {
5876
+ readonly type: "array";
5877
+ readonly description: "A list of filters to apply to the query";
5878
+ readonly items: {
5879
+ readonly oneOf: readonly [{
5880
+ readonly type: "object";
5881
+ readonly description: "In filter";
5882
+ readonly properties: {
5883
+ readonly field: {
5884
+ readonly enum?: readonly string[] | undefined;
5885
+ readonly type: "string";
5886
+ };
5887
+ readonly operator: {
5888
+ readonly type: "string";
5889
+ readonly enum: readonly ["in", "not_in", "selector"];
5890
+ };
5891
+ readonly value: {
5892
+ readonly type: "array";
5893
+ readonly items: {
5894
+ readonly type: readonly ["string", "number", "null"];
5895
+ };
5896
+ };
5897
+ };
5898
+ readonly required: readonly ["field", "operator", "value"];
5899
+ readonly additionalProperties: false;
5900
+ }, {
5901
+ readonly type: "object";
5902
+ readonly description: "Empty filter";
5903
+ readonly properties: {
5904
+ readonly field: {
5905
+ readonly enum?: readonly string[] | undefined;
5906
+ readonly type: "string";
5907
+ };
5908
+ readonly operator: {
5909
+ readonly type: "string";
5910
+ readonly enum: readonly ["empty", "not_empty"];
5911
+ };
5912
+ };
5913
+ readonly required: readonly ["field", "operator"];
5914
+ readonly additionalProperties: false;
5915
+ }];
5916
+ };
5917
+ };
5918
+ readonly time_range: {
5919
+ readonly type: "object";
5920
+ readonly description: "The time range to query.";
5831
5921
  readonly anyOf: readonly [{
5832
5922
  readonly type: "object";
5833
- readonly description: "A query to launch at the advanced explore API";
5834
5923
  readonly properties: {
5835
- readonly granularity: {
5924
+ readonly tz: {
5836
5925
  readonly type: "string";
5837
- readonly description: "Force time grouping into buckets of this duration. Only has an effect if \"time\" is in the \"dimensions\" list.";
5838
- readonly enum: readonly ["secondly", "tenSecondly", "thirtySecondly", "minutely", "fiveMinutely", "tenMinutely", "thirtyMinutely", "hourly", "twoHourly", "twelveHourly", "daily", "weekly", "trend"];
5926
+ readonly default: "Etc/UTC";
5839
5927
  };
5840
- readonly time_range: {
5841
- readonly type: "object";
5842
- readonly description: "The time range to query.";
5843
- readonly anyOf: readonly [{
5844
- readonly type: "object";
5845
- readonly properties: {
5846
- readonly tz: {
5847
- readonly type: "string";
5848
- readonly default: "Etc/UTC";
5849
- };
5850
- readonly type: {
5851
- readonly type: "string";
5852
- readonly enum: readonly ["relative"];
5853
- };
5854
- readonly time_range: {
5855
- readonly type: "string";
5856
- };
5857
- };
5858
- readonly required: readonly ["type", "time_range"];
5859
- readonly additionalProperties: false;
5860
- }, {
5861
- readonly type: "object";
5862
- readonly description: "A duration representing an exact start and end time.";
5863
- readonly properties: {
5864
- readonly tz: {
5865
- readonly type: "string";
5866
- };
5867
- readonly type: {
5868
- readonly type: "string";
5869
- readonly enum: readonly ["absolute"];
5870
- };
5871
- readonly start: {
5872
- readonly type: "string";
5873
- };
5874
- readonly end: {
5875
- readonly type: "string";
5876
- };
5877
- };
5878
- readonly required: readonly ["type", "start", "end"];
5879
- readonly additionalProperties: false;
5880
- }];
5881
- readonly default: {
5882
- readonly type: "relative";
5883
- readonly time_range: "1h";
5884
- };
5928
+ readonly type: {
5929
+ readonly type: "string";
5930
+ readonly enum: readonly ["relative"];
5885
5931
  };
5886
- readonly limit: {
5887
- readonly type: "number";
5932
+ readonly time_range: {
5933
+ readonly type: "string";
5888
5934
  };
5889
- readonly meta: {
5890
- readonly type: "object";
5935
+ };
5936
+ readonly required: readonly ["type", "time_range"];
5937
+ readonly additionalProperties: false;
5938
+ }, {
5939
+ readonly type: "object";
5940
+ readonly description: "A duration representing an exact start and end time.";
5941
+ readonly properties: {
5942
+ readonly tz: {
5943
+ readonly type: "string";
5891
5944
  };
5892
- readonly datasource: {
5945
+ readonly type: {
5893
5946
  readonly type: "string";
5894
- readonly enum: readonly ["api_usage"];
5947
+ readonly enum: readonly ["absolute"];
5895
5948
  };
5896
- readonly metrics: {
5897
- readonly type: "array";
5898
- readonly description: "List of aggregated metrics to collect across the requested time span.";
5899
- readonly items: {
5900
- readonly enum?: readonly string[] | undefined;
5901
- readonly type: "string";
5902
- };
5949
+ readonly start: {
5950
+ readonly type: "string";
5903
5951
  };
5904
- readonly dimensions: {
5905
- readonly type: "array";
5906
- readonly description: "List of attributes or entity types to group by.";
5907
- readonly minItems: 0;
5908
- readonly maxItems: 3;
5909
- readonly items: {
5910
- readonly enum?: readonly string[] | undefined;
5911
- readonly type: "string";
5912
- };
5952
+ readonly end: {
5953
+ readonly type: "string";
5913
5954
  };
5914
- readonly filters: {
5915
- readonly type: "array";
5916
- readonly description: "A list of filters to apply to the query";
5917
- readonly items: {
5918
- readonly oneOf: readonly [{
5955
+ };
5956
+ readonly required: readonly ["type", "start", "end"];
5957
+ readonly additionalProperties: false;
5958
+ }];
5959
+ readonly default: {
5960
+ readonly type: "relative";
5961
+ readonly time_range: "1h";
5962
+ };
5963
+ };
5964
+ readonly max_records: {
5965
+ readonly type: "number";
5966
+ readonly description: "Ceiling on records gathered across pages. The endpoint serves at most 1000 per page. Defaults to 10000.";
5967
+ readonly minimum: 1;
5968
+ };
5969
+ readonly unroll: {
5970
+ readonly type: "string";
5971
+ readonly description: "A nested collection on a request record (`ai`, `mcp_info.rpc`) to expand into one point per entry rather than one per request.";
5972
+ };
5973
+ readonly extra_fields: {
5974
+ readonly type: "array";
5975
+ readonly description: "Values to annotate each point with in the tooltip. Read from the unrolled entry first, then the request record.";
5976
+ readonly items: {
5977
+ readonly type: "object";
5978
+ readonly properties: {
5979
+ readonly field: {
5980
+ readonly type: "string";
5981
+ readonly description: "Field to read, dotted for a nested one.";
5982
+ };
5983
+ readonly label: {
5984
+ readonly type: "string";
5985
+ readonly description: "Tooltip label, defaults to the field name.";
5986
+ };
5987
+ readonly unit: {
5988
+ readonly type: "string";
5989
+ readonly description: "Unit to format the value with, e.g. `ms` or `token count`.";
5990
+ };
5991
+ };
5992
+ readonly required: readonly ["field"];
5993
+ readonly additionalProperties: false;
5994
+ };
5995
+ };
5996
+ };
5997
+ readonly required: readonly ["datasource", "metric"];
5998
+ readonly additionalProperties: false;
5999
+ };
6000
+ readonly chart: {
6001
+ readonly type: "object";
6002
+ readonly description: "Plots one point per record, percentiles are computed from the records returned.";
6003
+ readonly properties: {
6004
+ readonly type: {
6005
+ readonly type: "string";
6006
+ readonly enum: readonly ["scatter"];
6007
+ };
6008
+ readonly percentile_lines: {
6009
+ readonly type: "array";
6010
+ readonly description: "Reference lines derived from the plotted values.";
6011
+ readonly items: {
6012
+ readonly type: "object";
6013
+ readonly properties: {
6014
+ readonly percentile: {
6015
+ readonly type: "number";
6016
+ readonly minimum: 0;
6017
+ readonly maximum: 100;
6018
+ };
6019
+ readonly label: {
6020
+ readonly type: "string";
6021
+ readonly description: "Overrides the default label.";
6022
+ };
6023
+ readonly border_dash: {
6024
+ readonly type: "array";
6025
+ readonly description: "Dash pattern for the line.";
6026
+ readonly items: {
6027
+ readonly type: "number";
6028
+ };
6029
+ };
6030
+ readonly color: {
6031
+ readonly type: "string";
6032
+ };
6033
+ };
6034
+ readonly required: readonly ["percentile"];
6035
+ readonly additionalProperties: false;
6036
+ };
6037
+ };
6038
+ readonly outlier_percentile: {
6039
+ readonly type: "number";
6040
+ readonly description: "Percentile above which points are colored in the outlier color, in place.";
6041
+ readonly minimum: 0;
6042
+ readonly maximum: 100;
6043
+ };
6044
+ readonly shade_outlier_region: {
6045
+ readonly type: "boolean";
6046
+ readonly default: false;
6047
+ };
6048
+ readonly jitter_ms: {
6049
+ readonly type: "number";
6050
+ readonly description: "Maximum horizontal jitter so records sharing a timestamp do not stack into one column.";
6051
+ readonly minimum: 0;
6052
+ };
6053
+ readonly point_radius: {
6054
+ readonly type: "number";
6055
+ readonly minimum: 0;
6056
+ };
6057
+ readonly point_opacity: {
6058
+ readonly type: "number";
6059
+ readonly description: "Opacity of plotted points.";
6060
+ readonly minimum: 0;
6061
+ readonly maximum: 1;
6062
+ };
6063
+ readonly chart_dataset_colors: {
6064
+ readonly type: readonly ["object", "array"];
6065
+ readonly items: {
6066
+ readonly type: "string";
6067
+ };
6068
+ readonly additionalProperties: {
6069
+ readonly type: "string";
6070
+ };
6071
+ };
6072
+ readonly synthetics_data_key: {
6073
+ readonly type: "string";
6074
+ };
6075
+ readonly chart_title: {
6076
+ readonly type: "string";
6077
+ };
6078
+ readonly allow_csv_export: {
6079
+ readonly type: "boolean";
6080
+ };
6081
+ };
6082
+ readonly required: readonly ["type"];
6083
+ readonly additionalProperties: false;
6084
+ };
6085
+ readonly header_description: {
6086
+ readonly type: "string";
6087
+ readonly description: "Text rendered in the tile header. Supports the {timeframe} token, ";
6088
+ };
6089
+ };
6090
+ readonly required: readonly ["query", "chart"];
6091
+ readonly additionalProperties: false;
6092
+ }];
6093
+ };
6094
+ export type TileDefinition = FromSchemaWithOptions<typeof tileDefinitionSchema>;
6095
+ export declare const tileLayoutSchema: {
6096
+ readonly type: "object";
6097
+ readonly properties: {
6098
+ readonly position: {
6099
+ readonly type: "object";
6100
+ readonly properties: {
6101
+ readonly col: {
6102
+ readonly type: "number";
6103
+ };
6104
+ readonly row: {
6105
+ readonly type: "number";
6106
+ };
6107
+ };
6108
+ readonly description: "Position of the tile in the grid.";
6109
+ readonly required: readonly ["col", "row"];
6110
+ readonly additionalProperties: false;
6111
+ };
6112
+ readonly size: {
6113
+ readonly type: "object";
6114
+ readonly properties: {
6115
+ readonly cols: {
6116
+ readonly type: "number";
6117
+ };
6118
+ readonly rows: {
6119
+ readonly type: "number";
6120
+ };
6121
+ readonly fit_to_content: {
6122
+ readonly type: "boolean";
6123
+ };
6124
+ };
6125
+ readonly description: string;
6126
+ readonly required: readonly ["cols", "rows"];
6127
+ readonly additionalProperties: false;
6128
+ };
6129
+ };
6130
+ readonly required: readonly ["position", "size"];
6131
+ readonly additionalProperties: false;
6132
+ };
6133
+ export type TileLayout = FromSchemaWithOptions<typeof tileLayoutSchema>;
6134
+ export declare const chartTileConfigSchema: {
6135
+ readonly type: "object";
6136
+ readonly properties: {
6137
+ readonly type: {
6138
+ readonly type: "string";
6139
+ readonly enum: readonly ["chart"];
6140
+ };
6141
+ readonly definition: {
6142
+ readonly anyOf: readonly [{
6143
+ readonly type: "object";
6144
+ readonly properties: {
6145
+ readonly query: {
6146
+ readonly anyOf: readonly [{
6147
+ readonly type: "object";
6148
+ readonly description: "A query to launch at the advanced explore API";
6149
+ readonly properties: {
6150
+ readonly granularity: {
6151
+ readonly type: "string";
6152
+ readonly description: "Force time grouping into buckets of this duration. Only has an effect if \"time\" is in the \"dimensions\" list.";
6153
+ readonly enum: readonly ["secondly", "tenSecondly", "thirtySecondly", "minutely", "fiveMinutely", "tenMinutely", "thirtyMinutely", "hourly", "twoHourly", "twelveHourly", "daily", "weekly", "trend"];
6154
+ };
6155
+ readonly time_range: {
6156
+ readonly type: "object";
6157
+ readonly description: "The time range to query.";
6158
+ readonly anyOf: readonly [{
6159
+ readonly type: "object";
6160
+ readonly properties: {
6161
+ readonly tz: {
6162
+ readonly type: "string";
6163
+ readonly default: "Etc/UTC";
6164
+ };
6165
+ readonly type: {
6166
+ readonly type: "string";
6167
+ readonly enum: readonly ["relative"];
6168
+ };
6169
+ readonly time_range: {
6170
+ readonly type: "string";
6171
+ };
6172
+ };
6173
+ readonly required: readonly ["type", "time_range"];
6174
+ readonly additionalProperties: false;
6175
+ }, {
6176
+ readonly type: "object";
6177
+ readonly description: "A duration representing an exact start and end time.";
6178
+ readonly properties: {
6179
+ readonly tz: {
6180
+ readonly type: "string";
6181
+ };
6182
+ readonly type: {
6183
+ readonly type: "string";
6184
+ readonly enum: readonly ["absolute"];
6185
+ };
6186
+ readonly start: {
6187
+ readonly type: "string";
6188
+ };
6189
+ readonly end: {
6190
+ readonly type: "string";
6191
+ };
6192
+ };
6193
+ readonly required: readonly ["type", "start", "end"];
6194
+ readonly additionalProperties: false;
6195
+ }];
6196
+ readonly default: {
6197
+ readonly type: "relative";
6198
+ readonly time_range: "1h";
6199
+ };
6200
+ };
6201
+ readonly limit: {
6202
+ readonly type: "number";
6203
+ };
6204
+ readonly meta: {
6205
+ readonly type: "object";
6206
+ };
6207
+ readonly datasource: {
6208
+ readonly type: "string";
6209
+ readonly enum: readonly ["api_usage"];
6210
+ };
6211
+ readonly metrics: {
6212
+ readonly type: "array";
6213
+ readonly description: "List of aggregated metrics to collect across the requested time span.";
6214
+ readonly items: {
6215
+ readonly enum?: readonly string[] | undefined;
6216
+ readonly type: "string";
6217
+ };
6218
+ };
6219
+ readonly dimensions: {
6220
+ readonly type: "array";
6221
+ readonly description: "List of attributes or entity types to group by.";
6222
+ readonly minItems: 0;
6223
+ readonly maxItems: 3;
6224
+ readonly items: {
6225
+ readonly enum?: readonly string[] | undefined;
6226
+ readonly type: "string";
6227
+ };
6228
+ };
6229
+ readonly filters: {
6230
+ readonly type: "array";
6231
+ readonly description: "A list of filters to apply to the query";
6232
+ readonly items: {
6233
+ readonly oneOf: readonly [{
5919
6234
  readonly type: "object";
5920
6235
  readonly description: "In filter";
5921
6236
  readonly properties: {
@@ -6777,7 +7092,7 @@ export declare const chartTileConfigSchema: {
6777
7092
  };
6778
7093
  readonly outlier_percentile: {
6779
7094
  readonly type: "number";
6780
- readonly description: "Percentile above which points are split into a highlighted outlier series.";
7095
+ readonly description: "Percentile above which points are colored in the outlier color, in place.";
6781
7096
  readonly minimum: 0;
6782
7097
  readonly maximum: 100;
6783
7098
  };
@@ -7002,45 +7317,281 @@ export declare const chartTileConfigSchema: {
7002
7317
  };
7003
7318
  };
7004
7319
  };
7005
- readonly required: readonly ["field", "operator", "value"];
7006
- readonly additionalProperties: false;
7007
- }, {
7008
- readonly type: "object";
7009
- readonly description: "Empty filter";
7010
- readonly properties: {
7011
- readonly field: {
7012
- readonly type: "string";
7013
- };
7014
- readonly operator: {
7015
- readonly type: "string";
7320
+ readonly required: readonly ["field", "operator", "value"];
7321
+ readonly additionalProperties: false;
7322
+ }, {
7323
+ readonly type: "object";
7324
+ readonly description: "Empty filter";
7325
+ readonly properties: {
7326
+ readonly field: {
7327
+ readonly type: "string";
7328
+ };
7329
+ readonly operator: {
7330
+ readonly type: "string";
7331
+ };
7332
+ };
7333
+ readonly required: readonly ["field", "operator"];
7334
+ readonly additionalProperties: false;
7335
+ }];
7336
+ };
7337
+ };
7338
+ readonly cursor: {
7339
+ readonly type: "string";
7340
+ };
7341
+ readonly page_size: {
7342
+ readonly type: "number";
7343
+ };
7344
+ };
7345
+ readonly required: readonly ["datasource"];
7346
+ readonly additionalProperties: false;
7347
+ }];
7348
+ };
7349
+ readonly chart: {
7350
+ readonly type: "object";
7351
+ readonly properties: {
7352
+ readonly type: {
7353
+ readonly type: "string";
7354
+ readonly enum: readonly ["table"];
7355
+ };
7356
+ readonly chart_title: {
7357
+ readonly type: "string";
7358
+ };
7359
+ };
7360
+ readonly required: readonly ["type"];
7361
+ readonly additionalProperties: false;
7362
+ };
7363
+ readonly header_description: {
7364
+ readonly type: "string";
7365
+ readonly description: "Text rendered in the tile header. Supports the {timeframe} token, ";
7366
+ };
7367
+ };
7368
+ readonly required: readonly ["query", "chart"];
7369
+ readonly additionalProperties: false;
7370
+ }, {
7371
+ readonly type: "object";
7372
+ readonly properties: {
7373
+ readonly query: {
7374
+ readonly type: "object";
7375
+ readonly description: "A query for the api-requests endpoint.";
7376
+ readonly properties: {
7377
+ readonly datasource: {
7378
+ readonly type: "string";
7379
+ readonly enum: readonly ["requests"];
7380
+ };
7381
+ readonly metric: {
7382
+ readonly type: "string";
7383
+ readonly description: "Field plotted on the y axis.";
7384
+ };
7385
+ readonly dimension: {
7386
+ readonly type: "string";
7387
+ readonly description: "Field used to split points into series.";
7388
+ };
7389
+ readonly filters: {
7390
+ readonly type: "array";
7391
+ readonly description: "A list of filters to apply to the query";
7392
+ readonly items: {
7393
+ readonly oneOf: readonly [{
7394
+ readonly type: "object";
7395
+ readonly description: "In filter";
7396
+ readonly properties: {
7397
+ readonly field: {
7398
+ readonly enum?: readonly string[] | undefined;
7399
+ readonly type: "string";
7400
+ };
7401
+ readonly operator: {
7402
+ readonly type: "string";
7403
+ readonly enum: readonly ["in", "not_in", "selector"];
7404
+ };
7405
+ readonly value: {
7406
+ readonly type: "array";
7407
+ readonly items: {
7408
+ readonly type: readonly ["string", "number", "null"];
7016
7409
  };
7017
7410
  };
7018
- readonly required: readonly ["field", "operator"];
7019
- readonly additionalProperties: false;
7020
- }];
7021
- };
7411
+ };
7412
+ readonly required: readonly ["field", "operator", "value"];
7413
+ readonly additionalProperties: false;
7414
+ }, {
7415
+ readonly type: "object";
7416
+ readonly description: "Empty filter";
7417
+ readonly properties: {
7418
+ readonly field: {
7419
+ readonly enum?: readonly string[] | undefined;
7420
+ readonly type: "string";
7421
+ };
7422
+ readonly operator: {
7423
+ readonly type: "string";
7424
+ readonly enum: readonly ["empty", "not_empty"];
7425
+ };
7426
+ };
7427
+ readonly required: readonly ["field", "operator"];
7428
+ readonly additionalProperties: false;
7429
+ }];
7022
7430
  };
7023
- readonly cursor: {
7024
- readonly type: "string";
7431
+ };
7432
+ readonly time_range: {
7433
+ readonly type: "object";
7434
+ readonly description: "The time range to query.";
7435
+ readonly anyOf: readonly [{
7436
+ readonly type: "object";
7437
+ readonly properties: {
7438
+ readonly tz: {
7439
+ readonly type: "string";
7440
+ readonly default: "Etc/UTC";
7441
+ };
7442
+ readonly type: {
7443
+ readonly type: "string";
7444
+ readonly enum: readonly ["relative"];
7445
+ };
7446
+ readonly time_range: {
7447
+ readonly type: "string";
7448
+ };
7449
+ };
7450
+ readonly required: readonly ["type", "time_range"];
7451
+ readonly additionalProperties: false;
7452
+ }, {
7453
+ readonly type: "object";
7454
+ readonly description: "A duration representing an exact start and end time.";
7455
+ readonly properties: {
7456
+ readonly tz: {
7457
+ readonly type: "string";
7458
+ };
7459
+ readonly type: {
7460
+ readonly type: "string";
7461
+ readonly enum: readonly ["absolute"];
7462
+ };
7463
+ readonly start: {
7464
+ readonly type: "string";
7465
+ };
7466
+ readonly end: {
7467
+ readonly type: "string";
7468
+ };
7469
+ };
7470
+ readonly required: readonly ["type", "start", "end"];
7471
+ readonly additionalProperties: false;
7472
+ }];
7473
+ readonly default: {
7474
+ readonly type: "relative";
7475
+ readonly time_range: "1h";
7025
7476
  };
7026
- readonly page_size: {
7027
- readonly type: "number";
7477
+ };
7478
+ readonly max_records: {
7479
+ readonly type: "number";
7480
+ readonly description: "Ceiling on records gathered across pages. The endpoint serves at most 1000 per page. Defaults to 10000.";
7481
+ readonly minimum: 1;
7482
+ };
7483
+ readonly unroll: {
7484
+ readonly type: "string";
7485
+ readonly description: "A nested collection on a request record (`ai`, `mcp_info.rpc`) to expand into one point per entry rather than one per request.";
7486
+ };
7487
+ readonly extra_fields: {
7488
+ readonly type: "array";
7489
+ readonly description: "Values to annotate each point with in the tooltip. Read from the unrolled entry first, then the request record.";
7490
+ readonly items: {
7491
+ readonly type: "object";
7492
+ readonly properties: {
7493
+ readonly field: {
7494
+ readonly type: "string";
7495
+ readonly description: "Field to read, dotted for a nested one.";
7496
+ };
7497
+ readonly label: {
7498
+ readonly type: "string";
7499
+ readonly description: "Tooltip label, defaults to the field name.";
7500
+ };
7501
+ readonly unit: {
7502
+ readonly type: "string";
7503
+ readonly description: "Unit to format the value with, e.g. `ms` or `token count`.";
7504
+ };
7505
+ };
7506
+ readonly required: readonly ["field"];
7507
+ readonly additionalProperties: false;
7028
7508
  };
7029
7509
  };
7030
- readonly required: readonly ["datasource"];
7031
- readonly additionalProperties: false;
7032
- }];
7510
+ };
7511
+ readonly required: readonly ["datasource", "metric"];
7512
+ readonly additionalProperties: false;
7033
7513
  };
7034
7514
  readonly chart: {
7035
7515
  readonly type: "object";
7516
+ readonly description: "Plots one point per record, percentiles are computed from the records returned.";
7036
7517
  readonly properties: {
7037
7518
  readonly type: {
7038
7519
  readonly type: "string";
7039
- readonly enum: readonly ["table"];
7520
+ readonly enum: readonly ["scatter"];
7521
+ };
7522
+ readonly percentile_lines: {
7523
+ readonly type: "array";
7524
+ readonly description: "Reference lines derived from the plotted values.";
7525
+ readonly items: {
7526
+ readonly type: "object";
7527
+ readonly properties: {
7528
+ readonly percentile: {
7529
+ readonly type: "number";
7530
+ readonly minimum: 0;
7531
+ readonly maximum: 100;
7532
+ };
7533
+ readonly label: {
7534
+ readonly type: "string";
7535
+ readonly description: "Overrides the default label.";
7536
+ };
7537
+ readonly border_dash: {
7538
+ readonly type: "array";
7539
+ readonly description: "Dash pattern for the line.";
7540
+ readonly items: {
7541
+ readonly type: "number";
7542
+ };
7543
+ };
7544
+ readonly color: {
7545
+ readonly type: "string";
7546
+ };
7547
+ };
7548
+ readonly required: readonly ["percentile"];
7549
+ readonly additionalProperties: false;
7550
+ };
7551
+ };
7552
+ readonly outlier_percentile: {
7553
+ readonly type: "number";
7554
+ readonly description: "Percentile above which points are colored in the outlier color, in place.";
7555
+ readonly minimum: 0;
7556
+ readonly maximum: 100;
7557
+ };
7558
+ readonly shade_outlier_region: {
7559
+ readonly type: "boolean";
7560
+ readonly default: false;
7561
+ };
7562
+ readonly jitter_ms: {
7563
+ readonly type: "number";
7564
+ readonly description: "Maximum horizontal jitter so records sharing a timestamp do not stack into one column.";
7565
+ readonly minimum: 0;
7566
+ };
7567
+ readonly point_radius: {
7568
+ readonly type: "number";
7569
+ readonly minimum: 0;
7570
+ };
7571
+ readonly point_opacity: {
7572
+ readonly type: "number";
7573
+ readonly description: "Opacity of plotted points.";
7574
+ readonly minimum: 0;
7575
+ readonly maximum: 1;
7576
+ };
7577
+ readonly chart_dataset_colors: {
7578
+ readonly type: readonly ["object", "array"];
7579
+ readonly items: {
7580
+ readonly type: "string";
7581
+ };
7582
+ readonly additionalProperties: {
7583
+ readonly type: "string";
7584
+ };
7585
+ };
7586
+ readonly synthetics_data_key: {
7587
+ readonly type: "string";
7040
7588
  };
7041
7589
  readonly chart_title: {
7042
7590
  readonly type: "string";
7043
7591
  };
7592
+ readonly allow_csv_export: {
7593
+ readonly type: "boolean";
7594
+ };
7044
7595
  };
7045
7596
  readonly required: readonly ["type"];
7046
7597
  readonly additionalProperties: false;
@@ -8118,7 +8669,7 @@ export declare const tileConfigSchema: {
8118
8669
  };
8119
8670
  readonly outlier_percentile: {
8120
8671
  readonly type: "number";
8121
- readonly description: "Percentile above which points are split into a highlighted outlier series.";
8672
+ readonly description: "Percentile above which points are colored in the outlier color, in place.";
8122
8673
  readonly minimum: 0;
8123
8674
  readonly maximum: 100;
8124
8675
  };
@@ -8361,27 +8912,263 @@ export declare const tileConfigSchema: {
8361
8912
  }];
8362
8913
  };
8363
8914
  };
8364
- readonly cursor: {
8365
- readonly type: "string";
8366
- };
8367
- readonly page_size: {
8368
- readonly type: "number";
8915
+ readonly cursor: {
8916
+ readonly type: "string";
8917
+ };
8918
+ readonly page_size: {
8919
+ readonly type: "number";
8920
+ };
8921
+ };
8922
+ readonly required: readonly ["datasource"];
8923
+ readonly additionalProperties: false;
8924
+ }];
8925
+ };
8926
+ readonly chart: {
8927
+ readonly type: "object";
8928
+ readonly properties: {
8929
+ readonly type: {
8930
+ readonly type: "string";
8931
+ readonly enum: readonly ["table"];
8932
+ };
8933
+ readonly chart_title: {
8934
+ readonly type: "string";
8935
+ };
8936
+ };
8937
+ readonly required: readonly ["type"];
8938
+ readonly additionalProperties: false;
8939
+ };
8940
+ readonly header_description: {
8941
+ readonly type: "string";
8942
+ readonly description: "Text rendered in the tile header. Supports the {timeframe} token, ";
8943
+ };
8944
+ };
8945
+ readonly required: readonly ["query", "chart"];
8946
+ readonly additionalProperties: false;
8947
+ }, {
8948
+ readonly type: "object";
8949
+ readonly properties: {
8950
+ readonly query: {
8951
+ readonly type: "object";
8952
+ readonly description: "A query for the api-requests endpoint.";
8953
+ readonly properties: {
8954
+ readonly datasource: {
8955
+ readonly type: "string";
8956
+ readonly enum: readonly ["requests"];
8957
+ };
8958
+ readonly metric: {
8959
+ readonly type: "string";
8960
+ readonly description: "Field plotted on the y axis.";
8961
+ };
8962
+ readonly dimension: {
8963
+ readonly type: "string";
8964
+ readonly description: "Field used to split points into series.";
8965
+ };
8966
+ readonly filters: {
8967
+ readonly type: "array";
8968
+ readonly description: "A list of filters to apply to the query";
8969
+ readonly items: {
8970
+ readonly oneOf: readonly [{
8971
+ readonly type: "object";
8972
+ readonly description: "In filter";
8973
+ readonly properties: {
8974
+ readonly field: {
8975
+ readonly enum?: readonly string[] | undefined;
8976
+ readonly type: "string";
8977
+ };
8978
+ readonly operator: {
8979
+ readonly type: "string";
8980
+ readonly enum: readonly ["in", "not_in", "selector"];
8981
+ };
8982
+ readonly value: {
8983
+ readonly type: "array";
8984
+ readonly items: {
8985
+ readonly type: readonly ["string", "number", "null"];
8986
+ };
8987
+ };
8988
+ };
8989
+ readonly required: readonly ["field", "operator", "value"];
8990
+ readonly additionalProperties: false;
8991
+ }, {
8992
+ readonly type: "object";
8993
+ readonly description: "Empty filter";
8994
+ readonly properties: {
8995
+ readonly field: {
8996
+ readonly enum?: readonly string[] | undefined;
8997
+ readonly type: "string";
8998
+ };
8999
+ readonly operator: {
9000
+ readonly type: "string";
9001
+ readonly enum: readonly ["empty", "not_empty"];
9002
+ };
9003
+ };
9004
+ readonly required: readonly ["field", "operator"];
9005
+ readonly additionalProperties: false;
9006
+ }];
9007
+ };
9008
+ };
9009
+ readonly time_range: {
9010
+ readonly type: "object";
9011
+ readonly description: "The time range to query.";
9012
+ readonly anyOf: readonly [{
9013
+ readonly type: "object";
9014
+ readonly properties: {
9015
+ readonly tz: {
9016
+ readonly type: "string";
9017
+ readonly default: "Etc/UTC";
9018
+ };
9019
+ readonly type: {
9020
+ readonly type: "string";
9021
+ readonly enum: readonly ["relative"];
9022
+ };
9023
+ readonly time_range: {
9024
+ readonly type: "string";
9025
+ };
9026
+ };
9027
+ readonly required: readonly ["type", "time_range"];
9028
+ readonly additionalProperties: false;
9029
+ }, {
9030
+ readonly type: "object";
9031
+ readonly description: "A duration representing an exact start and end time.";
9032
+ readonly properties: {
9033
+ readonly tz: {
9034
+ readonly type: "string";
9035
+ };
9036
+ readonly type: {
9037
+ readonly type: "string";
9038
+ readonly enum: readonly ["absolute"];
9039
+ };
9040
+ readonly start: {
9041
+ readonly type: "string";
9042
+ };
9043
+ readonly end: {
9044
+ readonly type: "string";
9045
+ };
9046
+ };
9047
+ readonly required: readonly ["type", "start", "end"];
9048
+ readonly additionalProperties: false;
9049
+ }];
9050
+ readonly default: {
9051
+ readonly type: "relative";
9052
+ readonly time_range: "1h";
9053
+ };
9054
+ };
9055
+ readonly max_records: {
9056
+ readonly type: "number";
9057
+ readonly description: "Ceiling on records gathered across pages. The endpoint serves at most 1000 per page. Defaults to 10000.";
9058
+ readonly minimum: 1;
9059
+ };
9060
+ readonly unroll: {
9061
+ readonly type: "string";
9062
+ readonly description: "A nested collection on a request record (`ai`, `mcp_info.rpc`) to expand into one point per entry rather than one per request.";
9063
+ };
9064
+ readonly extra_fields: {
9065
+ readonly type: "array";
9066
+ readonly description: "Values to annotate each point with in the tooltip. Read from the unrolled entry first, then the request record.";
9067
+ readonly items: {
9068
+ readonly type: "object";
9069
+ readonly properties: {
9070
+ readonly field: {
9071
+ readonly type: "string";
9072
+ readonly description: "Field to read, dotted for a nested one.";
9073
+ };
9074
+ readonly label: {
9075
+ readonly type: "string";
9076
+ readonly description: "Tooltip label, defaults to the field name.";
9077
+ };
9078
+ readonly unit: {
9079
+ readonly type: "string";
9080
+ readonly description: "Unit to format the value with, e.g. `ms` or `token count`.";
9081
+ };
9082
+ };
9083
+ readonly required: readonly ["field"];
9084
+ readonly additionalProperties: false;
8369
9085
  };
8370
9086
  };
8371
- readonly required: readonly ["datasource"];
8372
- readonly additionalProperties: false;
8373
- }];
9087
+ };
9088
+ readonly required: readonly ["datasource", "metric"];
9089
+ readonly additionalProperties: false;
8374
9090
  };
8375
9091
  readonly chart: {
8376
9092
  readonly type: "object";
9093
+ readonly description: "Plots one point per record, percentiles are computed from the records returned.";
8377
9094
  readonly properties: {
8378
9095
  readonly type: {
8379
9096
  readonly type: "string";
8380
- readonly enum: readonly ["table"];
9097
+ readonly enum: readonly ["scatter"];
9098
+ };
9099
+ readonly percentile_lines: {
9100
+ readonly type: "array";
9101
+ readonly description: "Reference lines derived from the plotted values.";
9102
+ readonly items: {
9103
+ readonly type: "object";
9104
+ readonly properties: {
9105
+ readonly percentile: {
9106
+ readonly type: "number";
9107
+ readonly minimum: 0;
9108
+ readonly maximum: 100;
9109
+ };
9110
+ readonly label: {
9111
+ readonly type: "string";
9112
+ readonly description: "Overrides the default label.";
9113
+ };
9114
+ readonly border_dash: {
9115
+ readonly type: "array";
9116
+ readonly description: "Dash pattern for the line.";
9117
+ readonly items: {
9118
+ readonly type: "number";
9119
+ };
9120
+ };
9121
+ readonly color: {
9122
+ readonly type: "string";
9123
+ };
9124
+ };
9125
+ readonly required: readonly ["percentile"];
9126
+ readonly additionalProperties: false;
9127
+ };
9128
+ };
9129
+ readonly outlier_percentile: {
9130
+ readonly type: "number";
9131
+ readonly description: "Percentile above which points are colored in the outlier color, in place.";
9132
+ readonly minimum: 0;
9133
+ readonly maximum: 100;
9134
+ };
9135
+ readonly shade_outlier_region: {
9136
+ readonly type: "boolean";
9137
+ readonly default: false;
9138
+ };
9139
+ readonly jitter_ms: {
9140
+ readonly type: "number";
9141
+ readonly description: "Maximum horizontal jitter so records sharing a timestamp do not stack into one column.";
9142
+ readonly minimum: 0;
9143
+ };
9144
+ readonly point_radius: {
9145
+ readonly type: "number";
9146
+ readonly minimum: 0;
9147
+ };
9148
+ readonly point_opacity: {
9149
+ readonly type: "number";
9150
+ readonly description: "Opacity of plotted points.";
9151
+ readonly minimum: 0;
9152
+ readonly maximum: 1;
9153
+ };
9154
+ readonly chart_dataset_colors: {
9155
+ readonly type: readonly ["object", "array"];
9156
+ readonly items: {
9157
+ readonly type: "string";
9158
+ };
9159
+ readonly additionalProperties: {
9160
+ readonly type: "string";
9161
+ };
9162
+ };
9163
+ readonly synthetics_data_key: {
9164
+ readonly type: "string";
8381
9165
  };
8382
9166
  readonly chart_title: {
8383
9167
  readonly type: "string";
8384
9168
  };
9169
+ readonly allow_csv_export: {
9170
+ readonly type: "boolean";
9171
+ };
8385
9172
  };
8386
9173
  readonly required: readonly ["type"];
8387
9174
  readonly additionalProperties: false;
@@ -9463,7 +10250,7 @@ export declare const dashboardConfigSchema: {
9463
10250
  };
9464
10251
  readonly outlier_percentile: {
9465
10252
  readonly type: "number";
9466
- readonly description: "Percentile above which points are split into a highlighted outlier series.";
10253
+ readonly description: "Percentile above which points are colored in the outlier color, in place.";
9467
10254
  readonly minimum: 0;
9468
10255
  readonly maximum: 100;
9469
10256
  };
@@ -9738,6 +10525,242 @@ export declare const dashboardConfigSchema: {
9738
10525
  };
9739
10526
  readonly required: readonly ["query", "chart"];
9740
10527
  readonly additionalProperties: false;
10528
+ }, {
10529
+ readonly type: "object";
10530
+ readonly properties: {
10531
+ readonly query: {
10532
+ readonly type: "object";
10533
+ readonly description: "A query for the api-requests endpoint.";
10534
+ readonly properties: {
10535
+ readonly datasource: {
10536
+ readonly type: "string";
10537
+ readonly enum: readonly ["requests"];
10538
+ };
10539
+ readonly metric: {
10540
+ readonly type: "string";
10541
+ readonly description: "Field plotted on the y axis.";
10542
+ };
10543
+ readonly dimension: {
10544
+ readonly type: "string";
10545
+ readonly description: "Field used to split points into series.";
10546
+ };
10547
+ readonly filters: {
10548
+ readonly type: "array";
10549
+ readonly description: "A list of filters to apply to the query";
10550
+ readonly items: {
10551
+ readonly oneOf: readonly [{
10552
+ readonly type: "object";
10553
+ readonly description: "In filter";
10554
+ readonly properties: {
10555
+ readonly field: {
10556
+ readonly enum?: readonly string[] | undefined;
10557
+ readonly type: "string";
10558
+ };
10559
+ readonly operator: {
10560
+ readonly type: "string";
10561
+ readonly enum: readonly ["in", "not_in", "selector"];
10562
+ };
10563
+ readonly value: {
10564
+ readonly type: "array";
10565
+ readonly items: {
10566
+ readonly type: readonly ["string", "number", "null"];
10567
+ };
10568
+ };
10569
+ };
10570
+ readonly required: readonly ["field", "operator", "value"];
10571
+ readonly additionalProperties: false;
10572
+ }, {
10573
+ readonly type: "object";
10574
+ readonly description: "Empty filter";
10575
+ readonly properties: {
10576
+ readonly field: {
10577
+ readonly enum?: readonly string[] | undefined;
10578
+ readonly type: "string";
10579
+ };
10580
+ readonly operator: {
10581
+ readonly type: "string";
10582
+ readonly enum: readonly ["empty", "not_empty"];
10583
+ };
10584
+ };
10585
+ readonly required: readonly ["field", "operator"];
10586
+ readonly additionalProperties: false;
10587
+ }];
10588
+ };
10589
+ };
10590
+ readonly time_range: {
10591
+ readonly type: "object";
10592
+ readonly description: "The time range to query.";
10593
+ readonly anyOf: readonly [{
10594
+ readonly type: "object";
10595
+ readonly properties: {
10596
+ readonly tz: {
10597
+ readonly type: "string";
10598
+ readonly default: "Etc/UTC";
10599
+ };
10600
+ readonly type: {
10601
+ readonly type: "string";
10602
+ readonly enum: readonly ["relative"];
10603
+ };
10604
+ readonly time_range: {
10605
+ readonly type: "string";
10606
+ };
10607
+ };
10608
+ readonly required: readonly ["type", "time_range"];
10609
+ readonly additionalProperties: false;
10610
+ }, {
10611
+ readonly type: "object";
10612
+ readonly description: "A duration representing an exact start and end time.";
10613
+ readonly properties: {
10614
+ readonly tz: {
10615
+ readonly type: "string";
10616
+ };
10617
+ readonly type: {
10618
+ readonly type: "string";
10619
+ readonly enum: readonly ["absolute"];
10620
+ };
10621
+ readonly start: {
10622
+ readonly type: "string";
10623
+ };
10624
+ readonly end: {
10625
+ readonly type: "string";
10626
+ };
10627
+ };
10628
+ readonly required: readonly ["type", "start", "end"];
10629
+ readonly additionalProperties: false;
10630
+ }];
10631
+ readonly default: {
10632
+ readonly type: "relative";
10633
+ readonly time_range: "1h";
10634
+ };
10635
+ };
10636
+ readonly max_records: {
10637
+ readonly type: "number";
10638
+ readonly description: "Ceiling on records gathered across pages. The endpoint serves at most 1000 per page. Defaults to 10000.";
10639
+ readonly minimum: 1;
10640
+ };
10641
+ readonly unroll: {
10642
+ readonly type: "string";
10643
+ readonly description: "A nested collection on a request record (`ai`, `mcp_info.rpc`) to expand into one point per entry rather than one per request.";
10644
+ };
10645
+ readonly extra_fields: {
10646
+ readonly type: "array";
10647
+ readonly description: "Values to annotate each point with in the tooltip. Read from the unrolled entry first, then the request record.";
10648
+ readonly items: {
10649
+ readonly type: "object";
10650
+ readonly properties: {
10651
+ readonly field: {
10652
+ readonly type: "string";
10653
+ readonly description: "Field to read, dotted for a nested one.";
10654
+ };
10655
+ readonly label: {
10656
+ readonly type: "string";
10657
+ readonly description: "Tooltip label, defaults to the field name.";
10658
+ };
10659
+ readonly unit: {
10660
+ readonly type: "string";
10661
+ readonly description: "Unit to format the value with, e.g. `ms` or `token count`.";
10662
+ };
10663
+ };
10664
+ readonly required: readonly ["field"];
10665
+ readonly additionalProperties: false;
10666
+ };
10667
+ };
10668
+ };
10669
+ readonly required: readonly ["datasource", "metric"];
10670
+ readonly additionalProperties: false;
10671
+ };
10672
+ readonly chart: {
10673
+ readonly type: "object";
10674
+ readonly description: "Plots one point per record, percentiles are computed from the records returned.";
10675
+ readonly properties: {
10676
+ readonly type: {
10677
+ readonly type: "string";
10678
+ readonly enum: readonly ["scatter"];
10679
+ };
10680
+ readonly percentile_lines: {
10681
+ readonly type: "array";
10682
+ readonly description: "Reference lines derived from the plotted values.";
10683
+ readonly items: {
10684
+ readonly type: "object";
10685
+ readonly properties: {
10686
+ readonly percentile: {
10687
+ readonly type: "number";
10688
+ readonly minimum: 0;
10689
+ readonly maximum: 100;
10690
+ };
10691
+ readonly label: {
10692
+ readonly type: "string";
10693
+ readonly description: "Overrides the default label.";
10694
+ };
10695
+ readonly border_dash: {
10696
+ readonly type: "array";
10697
+ readonly description: "Dash pattern for the line.";
10698
+ readonly items: {
10699
+ readonly type: "number";
10700
+ };
10701
+ };
10702
+ readonly color: {
10703
+ readonly type: "string";
10704
+ };
10705
+ };
10706
+ readonly required: readonly ["percentile"];
10707
+ readonly additionalProperties: false;
10708
+ };
10709
+ };
10710
+ readonly outlier_percentile: {
10711
+ readonly type: "number";
10712
+ readonly description: "Percentile above which points are colored in the outlier color, in place.";
10713
+ readonly minimum: 0;
10714
+ readonly maximum: 100;
10715
+ };
10716
+ readonly shade_outlier_region: {
10717
+ readonly type: "boolean";
10718
+ readonly default: false;
10719
+ };
10720
+ readonly jitter_ms: {
10721
+ readonly type: "number";
10722
+ readonly description: "Maximum horizontal jitter so records sharing a timestamp do not stack into one column.";
10723
+ readonly minimum: 0;
10724
+ };
10725
+ readonly point_radius: {
10726
+ readonly type: "number";
10727
+ readonly minimum: 0;
10728
+ };
10729
+ readonly point_opacity: {
10730
+ readonly type: "number";
10731
+ readonly description: "Opacity of plotted points.";
10732
+ readonly minimum: 0;
10733
+ readonly maximum: 1;
10734
+ };
10735
+ readonly chart_dataset_colors: {
10736
+ readonly type: readonly ["object", "array"];
10737
+ readonly items: {
10738
+ readonly type: "string";
10739
+ };
10740
+ readonly additionalProperties: {
10741
+ readonly type: "string";
10742
+ };
10743
+ };
10744
+ readonly synthetics_data_key: {
10745
+ readonly type: "string";
10746
+ };
10747
+ readonly chart_title: {
10748
+ readonly type: "string";
10749
+ };
10750
+ readonly allow_csv_export: {
10751
+ readonly type: "boolean";
10752
+ };
10753
+ };
10754
+ readonly required: readonly ["type"];
10755
+ readonly additionalProperties: false;
10756
+ };
10757
+ readonly header_description: {
10758
+ readonly type: "string";
10759
+ readonly description: "Text rendered in the tile header. Supports the {timeframe} token, ";
10760
+ };
10761
+ };
10762
+ readonly required: readonly ["query", "chart"];
10763
+ readonly additionalProperties: false;
9741
10764
  }];
9742
10765
  };
9743
10766
  readonly layout: {