@grafana/openapi 13.2.3 → 13.3.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 (29) hide show
  1. package/dist/api/openapi3.json +358 -247
  2. package/dist/apis/collections.grafana.app-v1alpha1.json +3 -14
  3. package/dist/apis/correlations.grafana.app-v0alpha1.json +411 -0
  4. package/dist/apis/dashboard.grafana.app-v0alpha1.json +865 -105
  5. package/dist/apis/dashboard.grafana.app-v1beta1.json +733 -6
  6. package/dist/apis/dashboard.grafana.app-v2.json +821 -194
  7. package/dist/apis/dashboard.grafana.app-v2alpha1.json +803 -208
  8. package/dist/apis/dashboard.grafana.app-v2beta1.json +985 -374
  9. package/dist/apis/folder.grafana.app-v1.json +644 -20
  10. package/dist/apis/folder.grafana.app-v1beta1.json +644 -20
  11. package/dist/apis/grafana-testdata-datasource.datasource.grafana.app-v0alpha1.json +3 -21
  12. package/dist/apis/historian.alerting.grafana.app-v0alpha1.json +411 -0
  13. package/dist/apis/iam.grafana.app-v0alpha1.json +2397 -748
  14. package/dist/apis/logsdrilldown.grafana.app-v1beta1.json +448 -0
  15. package/dist/apis/notifications.alerting.grafana.app-v0alpha1.json +596 -0
  16. package/dist/apis/notifications.alerting.grafana.app-v1beta1.json +596 -0
  17. package/dist/apis/playlist.grafana.app-v0alpha1.json +415 -0
  18. package/dist/apis/playlist.grafana.app-v1.json +415 -0
  19. package/dist/apis/preferences.grafana.app-v1.json +3 -9
  20. package/dist/apis/preferences.grafana.app-v1alpha1.json +3 -9
  21. package/dist/apis/provisioning.grafana.app-v0alpha1.json +649 -151
  22. package/dist/apis/provisioning.grafana.app-v1beta1.json +634 -100
  23. package/dist/apis/query.grafana.app-v0alpha1.json +14 -11
  24. package/dist/apis/quotas.grafana.app-v0alpha1.json +1 -2
  25. package/dist/apis/rules.alerting.grafana.app-v0alpha1.json +3027 -767
  26. package/dist/apis/rules.alerting.grafana.app-v1beta1.json +4541 -0
  27. package/dist/apis/search.grafana.app-v0alpha1.json +693 -0
  28. package/dist/apis/shorturl.grafana.app-v1beta1.json +411 -0
  29. package/package.json +3 -3
@@ -397,6 +397,43 @@
397
397
  }
398
398
  ]
399
399
  },
400
+ "/playlists/search": {
401
+ "post": {
402
+ "tags": ["Search"],
403
+ "description": "Search Playlist resources in a namespace.",
404
+ "operationId": "listPlaylistSearchV0alpha1",
405
+ "parameters": [],
406
+ "requestBody": {
407
+ "description": "A SearchQuery describing what to match, sort and return.",
408
+ "content": {
409
+ "application/json": {
410
+ "schema": {
411
+ "$ref": "#/components/schemas/SearchQuery"
412
+ },
413
+ "example": {
414
+ "kind": "SearchQuery",
415
+ "apiVersion": "search.grafana.app/v0alpha1",
416
+ "facetLimit": 0,
417
+ "limit": 10
418
+ }
419
+ }
420
+ },
421
+ "required": true
422
+ },
423
+ "responses": {
424
+ "200": {
425
+ "description": "A SearchResults envelope.",
426
+ "content": {
427
+ "application/json": {
428
+ "schema": {
429
+ "$ref": "#/components/schemas/SearchResults"
430
+ }
431
+ }
432
+ }
433
+ }
434
+ }
435
+ }
436
+ },
400
437
  "/playlists/{name}": {
401
438
  "get": {
402
439
  "tags": ["Playlist"],
@@ -1086,6 +1123,10 @@
1086
1123
  "type": "object",
1087
1124
  "required": ["type", "value"],
1088
1125
  "properties": {
1126
+ "interval": {
1127
+ "description": "Optional per-item display interval (e.g. \"30s\", \"2m\"). When unset, the\nplaylist's global spec.interval is used.",
1128
+ "type": "string"
1129
+ },
1089
1130
  "type": {
1090
1131
  "description": "type of the item.",
1091
1132
  "type": "string",
@@ -1135,6 +1176,333 @@
1135
1176
  },
1136
1177
  "additionalProperties": false
1137
1178
  },
1179
+ "Unstructured": {
1180
+ "type": "object",
1181
+ "additionalProperties": true,
1182
+ "x-kubernetes-preserve-unknown-fields": true
1183
+ },
1184
+ "ExistsPredicate": {
1185
+ "description": "ExistsPredicate is a future field-existence predicate. Modelled for schema stability; always rejected in v1.",
1186
+ "type": "object",
1187
+ "required": ["field"],
1188
+ "properties": {
1189
+ "field": {
1190
+ "type": "string",
1191
+ "default": ""
1192
+ }
1193
+ }
1194
+ },
1195
+ "FacetTerm": {
1196
+ "description": "FacetTerm is a single facet term and its count.",
1197
+ "type": "object",
1198
+ "required": ["value", "count"],
1199
+ "properties": {
1200
+ "count": {
1201
+ "type": "integer",
1202
+ "format": "int64",
1203
+ "default": 0
1204
+ },
1205
+ "value": {
1206
+ "type": "string",
1207
+ "default": ""
1208
+ }
1209
+ }
1210
+ },
1211
+ "FilterPredicate": {
1212
+ "description": "FilterPredicate is an exact / set-based predicate against a single field. Values are strings whatever the field's declared type, so a boolean field takes \"true\" or \"false\" and a numeric field takes the number written out.\n\nNumbers are held as float64, so only integers up to 2^53 are compared exactly. Past that, values a whole number apart share one representation, and a filter can both match a neighbour and miss the value asked for.",
1213
+ "type": "object",
1214
+ "required": ["field", "operator", "values"],
1215
+ "properties": {
1216
+ "field": {
1217
+ "type": "string",
1218
+ "default": ""
1219
+ },
1220
+ "operator": {
1221
+ "description": "Operator is \"In\", \"NotIn\" or \"All\" in v1. \"In\" matches any of the values, \"NotIn\" excludes all of them, and \"All\" requires the field to hold every value, which only a field holding a list of values can do.",
1222
+ "type": "string",
1223
+ "default": ""
1224
+ },
1225
+ "values": {
1226
+ "type": "array",
1227
+ "items": {
1228
+ "type": "string"
1229
+ }
1230
+ }
1231
+ }
1232
+ },
1233
+ "RangePredicate": {
1234
+ "description": "RangePredicate compares a numeric field against one or two bounds. At least one bound is required, gt cannot be combined with gte, and lt cannot be combined with lte. Boolean and string fields are rejected: only numbers have the order a range asks about. On an integer field a bound must be whole.\n\nBounds are held as float64, so only integers up to 2^53 are compared exactly. Past that, values a whole number apart share one representation, and a bound can both admit a neighbour and exclude the value asked for.",
1235
+ "type": "object",
1236
+ "required": ["field"],
1237
+ "properties": {
1238
+ "field": {
1239
+ "type": "string",
1240
+ "default": ""
1241
+ },
1242
+ "gt": {
1243
+ "type": "number",
1244
+ "format": "double"
1245
+ },
1246
+ "gte": {
1247
+ "type": "number",
1248
+ "format": "double"
1249
+ },
1250
+ "lt": {
1251
+ "type": "number",
1252
+ "format": "double"
1253
+ },
1254
+ "lte": {
1255
+ "type": "number",
1256
+ "format": "double"
1257
+ }
1258
+ }
1259
+ },
1260
+ "RegexPredicate": {
1261
+ "description": "RegexPredicate matches a single field against a regular expression, one pattern per leaf the way a single Prometheus matcher works. Negate turns the leaf from =~ into !~.\n\nMatching is against the whole indexed term and is case-sensitive, so it is restricted to filterable keyword string fields that keep their original case. The pattern is a portable RE2 subset: literals, character classes, grouping, alternation, and greedy repetition. The backend is the source of truth for what the subset admits; it rejects unsupported syntax, fields that do not preserve case, and patterns that expand to too many terms with a 400.",
1262
+ "type": "object",
1263
+ "required": ["field", "pattern"],
1264
+ "properties": {
1265
+ "field": {
1266
+ "type": "string",
1267
+ "default": ""
1268
+ },
1269
+ "negate": {
1270
+ "description": "Negate inverts the match: the field must not match the pattern.",
1271
+ "type": "boolean"
1272
+ },
1273
+ "pattern": {
1274
+ "type": "string",
1275
+ "default": ""
1276
+ }
1277
+ }
1278
+ },
1279
+ "ResourceRef": {
1280
+ "description": "ResourceRef is the full identity of a returned item. Namespace is implicit from the URL and omitted.",
1281
+ "type": "object",
1282
+ "required": ["group", "resource", "kind", "name"],
1283
+ "properties": {
1284
+ "group": {
1285
+ "type": "string",
1286
+ "default": ""
1287
+ },
1288
+ "kind": {
1289
+ "type": "string",
1290
+ "default": ""
1291
+ },
1292
+ "name": {
1293
+ "type": "string",
1294
+ "default": ""
1295
+ },
1296
+ "resource": {
1297
+ "type": "string",
1298
+ "default": ""
1299
+ }
1300
+ }
1301
+ },
1302
+ "ResultItem": {
1303
+ "description": "ResultItem is one search or trash hit. The item shape is identical on both endpoints; only which fields the Fields map can carry differs.",
1304
+ "type": "object",
1305
+ "required": ["resource"],
1306
+ "properties": {
1307
+ "fields": {
1308
+ "description": "Fields holds the JSON values for the requested (or default) fields. Array-typed fields are returned as JSON arrays. Absent fields are omitted.",
1309
+ "$ref": "#/components/schemas/Unstructured"
1310
+ },
1311
+ "resource": {
1312
+ "default": {},
1313
+ "$ref": "#/components/schemas/ResourceRef"
1314
+ },
1315
+ "score": {
1316
+ "description": "Score is present only when a text query was evaluated. A pointer so a real score of 0 is still distinguishable from \"no text query\" (absent).",
1317
+ "type": "number",
1318
+ "format": "double"
1319
+ }
1320
+ }
1321
+ },
1322
+ "ResultsMetadata": {
1323
+ "description": "ResultsMetadata carries the pagination token and the total hit count.",
1324
+ "type": "object",
1325
+ "required": ["totalHits", "totalHitsRelation"],
1326
+ "properties": {
1327
+ "continue": {
1328
+ "type": "string"
1329
+ },
1330
+ "totalHits": {
1331
+ "description": "TotalHits counts the resources matching the query. Always read it together with TotalHitsRelation. When the relation is \"unknown\", this is a zero placeholder that must not be interpreted as a count.",
1332
+ "type": "integer",
1333
+ "format": "int64",
1334
+ "default": 0
1335
+ },
1336
+ "totalHitsRelation": {
1337
+ "description": "TotalHitsRelation is \"eq\" when TotalHits is exact and \"lte\" when it is an upper bound. \"unknown\" means no count is available and TotalHits must be ignored.",
1338
+ "type": "string",
1339
+ "default": ""
1340
+ }
1341
+ }
1342
+ },
1343
+ "SearchQuery": {
1344
+ "description": "SearchQuery is the request body for POST .../{resource}/search, which searches one kind, and for POST .../namespaces/{namespace}/global/search, which searches several resource types at once.",
1345
+ "type": "object",
1346
+ "properties": {
1347
+ "apiVersion": {
1348
+ "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
1349
+ "type": "string"
1350
+ },
1351
+ "continue": {
1352
+ "description": "Continue is an opaque pagination token from a previous page.",
1353
+ "type": "string"
1354
+ },
1355
+ "facetLimit": {
1356
+ "description": "FacetLimit caps the number of terms returned per facet. It applies to every entry in Facets. Zero uses the server default; values above the server cap are clamped.",
1357
+ "type": "integer",
1358
+ "format": "int64"
1359
+ },
1360
+ "facets": {
1361
+ "type": "array",
1362
+ "items": {
1363
+ "type": "string"
1364
+ }
1365
+ },
1366
+ "fields": {
1367
+ "type": "array",
1368
+ "items": {
1369
+ "type": "string"
1370
+ }
1371
+ },
1372
+ "kind": {
1373
+ "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
1374
+ "type": "string"
1375
+ },
1376
+ "labelSelector": {
1377
+ "description": "LabelSelector filters on metadata.labels, ANDed with Where.",
1378
+ "$ref": "#/components/schemas/LabelSelector"
1379
+ },
1380
+ "limit": {
1381
+ "description": "Limit is the page size. Zero uses the default; values above the maximum are clamped.",
1382
+ "type": "integer",
1383
+ "format": "int64"
1384
+ },
1385
+ "sort": {
1386
+ "type": "array",
1387
+ "items": {
1388
+ "$ref": "#/components/schemas/SortField"
1389
+ }
1390
+ },
1391
+ "where": {
1392
+ "description": "Where is the search predicate tree. Omitting it matches everything the endpoint searches: all resources of the kind, or of every type the global search covers (subject to labelSelector and per-item authz).",
1393
+ "$ref": "#/components/schemas/WhereNode"
1394
+ }
1395
+ }
1396
+ },
1397
+ "SearchResults": {
1398
+ "description": "SearchResults is the response body for POST .../{resource}/search.",
1399
+ "type": "object",
1400
+ "required": ["metadata", "items"],
1401
+ "properties": {
1402
+ "apiVersion": {
1403
+ "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
1404
+ "type": "string"
1405
+ },
1406
+ "facets": {
1407
+ "description": "Facets holds term counts per requested facet field. Counts are computed over a bounded sample window, so they are best-effort/approximate.",
1408
+ "type": "object",
1409
+ "additionalProperties": {
1410
+ "type": "array",
1411
+ "items": {
1412
+ "$ref": "#/components/schemas/FacetTerm"
1413
+ }
1414
+ }
1415
+ },
1416
+ "items": {
1417
+ "type": "array",
1418
+ "items": {
1419
+ "$ref": "#/components/schemas/ResultItem"
1420
+ }
1421
+ },
1422
+ "kind": {
1423
+ "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
1424
+ "type": "string"
1425
+ },
1426
+ "metadata": {
1427
+ "default": {},
1428
+ "$ref": "#/components/schemas/ResultsMetadata"
1429
+ }
1430
+ }
1431
+ },
1432
+ "SortField": {
1433
+ "description": "SortField names a field to sort by and a direction (\"asc\" or \"desc\"). V1 allows sorting only on scalar string and numeric fields that declare the sort capability.",
1434
+ "type": "object",
1435
+ "required": ["field"],
1436
+ "properties": {
1437
+ "direction": {
1438
+ "type": "string"
1439
+ },
1440
+ "field": {
1441
+ "type": "string",
1442
+ "default": ""
1443
+ }
1444
+ }
1445
+ },
1446
+ "TextPredicate": {
1447
+ "description": "TextPredicate is a free-text predicate against one or more text-capable fields. When Fields is empty it defaults to the kind's searchTextFields (currently [\"title\"]).",
1448
+ "type": "object",
1449
+ "required": ["value"],
1450
+ "properties": {
1451
+ "boost": {
1452
+ "description": "Boost is a future per-leaf score multiplier. Setting it is rejected in v1.",
1453
+ "type": "number",
1454
+ "format": "double"
1455
+ },
1456
+ "fields": {
1457
+ "type": "array",
1458
+ "items": {
1459
+ "type": "string"
1460
+ }
1461
+ },
1462
+ "value": {
1463
+ "type": "string",
1464
+ "default": ""
1465
+ }
1466
+ }
1467
+ },
1468
+ "WhereNode": {
1469
+ "description": "WhereNode is a single node of the where tree. Exactly one field must be set; the set field names the node's type. Combinators (and/or/not) compose other nodes, leaves (text/filter/range/regex/exists) are terminal predicates.\n\nAll node types are modelled so the schema is future-proof, but v1 only accepts a narrow subset (top-level single leaf or a single and of leaves; text, filter, range and regex leaves; In/NotIn/All filter operators). Everything else is rejected with 422 Unprocessable Entity by the validation layer. exists is sketched for a future version and always rejected today.",
1470
+ "type": "object",
1471
+ "properties": {
1472
+ "and": {
1473
+ "description": "Combinators.",
1474
+ "type": "array",
1475
+ "items": {
1476
+ "$ref": "#/components/schemas/WhereNode"
1477
+ }
1478
+ },
1479
+ "exists": {
1480
+ "$ref": "#/components/schemas/ExistsPredicate"
1481
+ },
1482
+ "filter": {
1483
+ "$ref": "#/components/schemas/FilterPredicate"
1484
+ },
1485
+ "not": {
1486
+ "$ref": "#/components/schemas/WhereNode"
1487
+ },
1488
+ "or": {
1489
+ "type": "array",
1490
+ "items": {
1491
+ "$ref": "#/components/schemas/WhereNode"
1492
+ }
1493
+ },
1494
+ "range": {
1495
+ "$ref": "#/components/schemas/RangePredicate"
1496
+ },
1497
+ "regex": {
1498
+ "$ref": "#/components/schemas/RegexPredicate"
1499
+ },
1500
+ "text": {
1501
+ "description": "Leaves.",
1502
+ "$ref": "#/components/schemas/TextPredicate"
1503
+ }
1504
+ }
1505
+ },
1138
1506
  "APIResource": {
1139
1507
  "description": "APIResource specifies the name of a resource and whether it is namespaced.",
1140
1508
  "type": "object",
@@ -1285,6 +1653,53 @@
1285
1653
  "description": "FieldsV1 stores a set of fields in a data structure like a Trie, in JSON format.\n\nEach key is either a '.' representing the field itself, and will always map to an empty set, or a string representing a sub-field or item. The string will follow one of these four formats: 'f:<name>', where <name> is the name of a field in a struct, or key in a map 'v:<value>', where <value> is the exact json formatted value of a list item 'i:<index>', where <index> is position of a item in a list 'k:<keys>', where <keys> is a map of a list item's key fields to their unique values If a key maps to an empty Fields value, the field that key represents is part of the set.\n\nThe exact format is defined in sigs.k8s.io/structured-merge-diff",
1286
1654
  "type": "object"
1287
1655
  },
1656
+ "LabelSelector": {
1657
+ "description": "A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects.",
1658
+ "type": "object",
1659
+ "properties": {
1660
+ "matchExpressions": {
1661
+ "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.",
1662
+ "type": "array",
1663
+ "items": {
1664
+ "$ref": "#/components/schemas/LabelSelectorRequirement"
1665
+ },
1666
+ "x-kubernetes-list-type": "atomic"
1667
+ },
1668
+ "matchLabels": {
1669
+ "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed.",
1670
+ "type": "object",
1671
+ "additionalProperties": {
1672
+ "type": "string"
1673
+ }
1674
+ }
1675
+ },
1676
+ "x-kubernetes-map-type": "atomic"
1677
+ },
1678
+ "LabelSelectorRequirement": {
1679
+ "description": "A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.",
1680
+ "type": "object",
1681
+ "required": ["key", "operator"],
1682
+ "properties": {
1683
+ "key": {
1684
+ "description": "key is the label key that the selector applies to.",
1685
+ "type": "string",
1686
+ "default": ""
1687
+ },
1688
+ "operator": {
1689
+ "description": "operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.",
1690
+ "type": "string",
1691
+ "default": ""
1692
+ },
1693
+ "values": {
1694
+ "description": "values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.",
1695
+ "type": "array",
1696
+ "items": {
1697
+ "type": "string"
1698
+ },
1699
+ "x-kubernetes-list-type": "atomic"
1700
+ }
1701
+ }
1702
+ },
1288
1703
  "ListMeta": {
1289
1704
  "description": "ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}.",
1290
1705
  "type": "object",