@grafana/openapi 13.1.0-24259948092 → 13.1.0-24260605480
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.
|
@@ -1028,11 +1028,6 @@
|
|
|
1028
1028
|
"group": "playlist.grafana.app",
|
|
1029
1029
|
"kind": "Playlist",
|
|
1030
1030
|
"version": "v0alpha1"
|
|
1031
|
-
},
|
|
1032
|
-
{
|
|
1033
|
-
"group": "playlist.grafana.app",
|
|
1034
|
-
"kind": "Playlist",
|
|
1035
|
-
"version": "v1"
|
|
1036
1031
|
}
|
|
1037
1032
|
]
|
|
1038
1033
|
},
|
|
@@ -1076,11 +1071,6 @@
|
|
|
1076
1071
|
"group": "playlist.grafana.app",
|
|
1077
1072
|
"kind": "PlaylistList",
|
|
1078
1073
|
"version": "v0alpha1"
|
|
1079
|
-
},
|
|
1080
|
-
{
|
|
1081
|
-
"group": "playlist.grafana.app",
|
|
1082
|
-
"kind": "PlaylistList",
|
|
1083
|
-
"version": "v1"
|
|
1084
1074
|
}
|
|
1085
1075
|
]
|
|
1086
1076
|
},
|
|
@@ -1024,11 +1024,6 @@
|
|
|
1024
1024
|
}
|
|
1025
1025
|
},
|
|
1026
1026
|
"x-kubernetes-group-version-kind": [
|
|
1027
|
-
{
|
|
1028
|
-
"group": "playlist.grafana.app",
|
|
1029
|
-
"kind": "Playlist",
|
|
1030
|
-
"version": "v0alpha1"
|
|
1031
|
-
},
|
|
1032
1027
|
{
|
|
1033
1028
|
"group": "playlist.grafana.app",
|
|
1034
1029
|
"kind": "Playlist",
|
|
@@ -1072,11 +1067,6 @@
|
|
|
1072
1067
|
}
|
|
1073
1068
|
},
|
|
1074
1069
|
"x-kubernetes-group-version-kind": [
|
|
1075
|
-
{
|
|
1076
|
-
"group": "playlist.grafana.app",
|
|
1077
|
-
"kind": "PlaylistList",
|
|
1078
|
-
"version": "v0alpha1"
|
|
1079
|
-
},
|
|
1080
1070
|
{
|
|
1081
1071
|
"group": "playlist.grafana.app",
|
|
1082
1072
|
"kind": "PlaylistList",
|
|
@@ -1997,7 +1997,12 @@
|
|
|
1997
1997
|
]
|
|
1998
1998
|
},
|
|
1999
1999
|
"AlertRuleDatasourceUID": {
|
|
2000
|
-
"type": "string"
|
|
2000
|
+
"type": "string",
|
|
2001
|
+
"pattern": "^[a-zA-Z0-9_-]+$"
|
|
2002
|
+
},
|
|
2003
|
+
"AlertRuleExecErrState": {
|
|
2004
|
+
"type": "string",
|
|
2005
|
+
"enum": ["Error", "Ok", "Alerting", "KeepLast"]
|
|
2001
2006
|
},
|
|
2002
2007
|
"AlertRuleExpression": {
|
|
2003
2008
|
"type": "object",
|
|
@@ -2081,6 +2086,48 @@
|
|
|
2081
2086
|
}
|
|
2082
2087
|
]
|
|
2083
2088
|
},
|
|
2089
|
+
"AlertRuleNoDataState": {
|
|
2090
|
+
"type": "string",
|
|
2091
|
+
"enum": ["NoData", "Ok", "Alerting", "KeepLast"]
|
|
2092
|
+
},
|
|
2093
|
+
"AlertRuleNotificationSettings": {
|
|
2094
|
+
"description": "TODO(@moustafab): this should be imported from the notifications package",
|
|
2095
|
+
"type": "object",
|
|
2096
|
+
"required": ["receiver"],
|
|
2097
|
+
"properties": {
|
|
2098
|
+
"activeTimeIntervals": {
|
|
2099
|
+
"type": "array",
|
|
2100
|
+
"items": {
|
|
2101
|
+
"$ref": "#/components/schemas/AlertRuleTimeIntervalRef"
|
|
2102
|
+
}
|
|
2103
|
+
},
|
|
2104
|
+
"groupBy": {
|
|
2105
|
+
"type": "array",
|
|
2106
|
+
"items": {
|
|
2107
|
+
"type": "string"
|
|
2108
|
+
}
|
|
2109
|
+
},
|
|
2110
|
+
"groupInterval": {
|
|
2111
|
+
"$ref": "#/components/schemas/AlertRulePromDuration"
|
|
2112
|
+
},
|
|
2113
|
+
"groupWait": {
|
|
2114
|
+
"$ref": "#/components/schemas/AlertRulePromDuration"
|
|
2115
|
+
},
|
|
2116
|
+
"muteTimeIntervals": {
|
|
2117
|
+
"type": "array",
|
|
2118
|
+
"items": {
|
|
2119
|
+
"$ref": "#/components/schemas/AlertRuleTimeIntervalRef"
|
|
2120
|
+
}
|
|
2121
|
+
},
|
|
2122
|
+
"receiver": {
|
|
2123
|
+
"type": "string"
|
|
2124
|
+
},
|
|
2125
|
+
"repeatInterval": {
|
|
2126
|
+
"$ref": "#/components/schemas/AlertRulePromDuration"
|
|
2127
|
+
}
|
|
2128
|
+
},
|
|
2129
|
+
"additionalProperties": false
|
|
2130
|
+
},
|
|
2084
2131
|
"AlertRuleOperatorState": {
|
|
2085
2132
|
"type": "object",
|
|
2086
2133
|
"required": ["lastEvaluation", "state"],
|
|
@@ -2106,11 +2153,32 @@
|
|
|
2106
2153
|
},
|
|
2107
2154
|
"additionalProperties": false
|
|
2108
2155
|
},
|
|
2156
|
+
"AlertRulePanelRef": {
|
|
2157
|
+
"type": "object",
|
|
2158
|
+
"required": ["dashboardUID", "panelID"],
|
|
2159
|
+
"properties": {
|
|
2160
|
+
"dashboardUID": {
|
|
2161
|
+
"type": "string",
|
|
2162
|
+
"minLength": 1,
|
|
2163
|
+
"pattern": "^[a-zA-Z0-9_-]+$"
|
|
2164
|
+
},
|
|
2165
|
+
"panelID": {
|
|
2166
|
+
"type": "integer",
|
|
2167
|
+
"minimum": 0
|
|
2168
|
+
}
|
|
2169
|
+
},
|
|
2170
|
+
"additionalProperties": false
|
|
2171
|
+
},
|
|
2109
2172
|
"AlertRulePromDuration": {
|
|
2110
|
-
"type": "string"
|
|
2173
|
+
"type": "string",
|
|
2174
|
+
"pattern": "^((([0-9]+)y)?(([0-9]+)w)?(([0-9]+)d)?(([0-9]+)h)?(([0-9]+)m)?(([0-9]+)s)?|0)$",
|
|
2175
|
+
"not": {
|
|
2176
|
+
"pattern": "hmuµn"
|
|
2177
|
+
}
|
|
2111
2178
|
},
|
|
2112
2179
|
"AlertRulePromDurationWMillis": {
|
|
2113
|
-
"type": "string"
|
|
2180
|
+
"type": "string",
|
|
2181
|
+
"pattern": "^((([0-9]+)y)?(([0-9]+)w)?(([0-9]+)d)?(([0-9]+)h)?(([0-9]+)m)?(([0-9]+)s)?(([0-9]+)ms)?|0)$"
|
|
2114
2182
|
},
|
|
2115
2183
|
"AlertRuleRelativeTimeRange": {
|
|
2116
2184
|
"type": "object",
|
|
@@ -2136,8 +2204,7 @@
|
|
|
2136
2204
|
}
|
|
2137
2205
|
},
|
|
2138
2206
|
"execErrState": {
|
|
2139
|
-
"
|
|
2140
|
-
"default": "Error"
|
|
2207
|
+
"$ref": "#/components/schemas/AlertRuleExecErrState"
|
|
2141
2208
|
},
|
|
2142
2209
|
"expressions": {
|
|
2143
2210
|
"$ref": "#/components/schemas/AlertRuleExpressionMap"
|
|
@@ -2159,60 +2226,13 @@
|
|
|
2159
2226
|
"minimum": 0
|
|
2160
2227
|
},
|
|
2161
2228
|
"noDataState": {
|
|
2162
|
-
"
|
|
2163
|
-
"default": "NoData"
|
|
2229
|
+
"$ref": "#/components/schemas/AlertRuleNoDataState"
|
|
2164
2230
|
},
|
|
2165
2231
|
"notificationSettings": {
|
|
2166
|
-
"
|
|
2167
|
-
"required": ["receiver"],
|
|
2168
|
-
"properties": {
|
|
2169
|
-
"activeTimeIntervals": {
|
|
2170
|
-
"type": "array",
|
|
2171
|
-
"items": {
|
|
2172
|
-
"$ref": "#/components/schemas/AlertRuleTimeIntervalRef"
|
|
2173
|
-
}
|
|
2174
|
-
},
|
|
2175
|
-
"groupBy": {
|
|
2176
|
-
"type": "array",
|
|
2177
|
-
"items": {
|
|
2178
|
-
"type": "string"
|
|
2179
|
-
}
|
|
2180
|
-
},
|
|
2181
|
-
"groupInterval": {
|
|
2182
|
-
"$ref": "#/components/schemas/AlertRulePromDuration"
|
|
2183
|
-
},
|
|
2184
|
-
"groupWait": {
|
|
2185
|
-
"$ref": "#/components/schemas/AlertRulePromDuration"
|
|
2186
|
-
},
|
|
2187
|
-
"muteTimeIntervals": {
|
|
2188
|
-
"type": "array",
|
|
2189
|
-
"items": {
|
|
2190
|
-
"$ref": "#/components/schemas/AlertRuleTimeIntervalRef"
|
|
2191
|
-
}
|
|
2192
|
-
},
|
|
2193
|
-
"receiver": {
|
|
2194
|
-
"type": "string"
|
|
2195
|
-
},
|
|
2196
|
-
"repeatInterval": {
|
|
2197
|
-
"$ref": "#/components/schemas/AlertRulePromDuration"
|
|
2198
|
-
}
|
|
2199
|
-
},
|
|
2200
|
-
"additionalProperties": false
|
|
2232
|
+
"$ref": "#/components/schemas/AlertRuleNotificationSettings"
|
|
2201
2233
|
},
|
|
2202
2234
|
"panelRef": {
|
|
2203
|
-
"
|
|
2204
|
-
"required": ["dashboardUID", "panelID"],
|
|
2205
|
-
"properties": {
|
|
2206
|
-
"dashboardUID": {
|
|
2207
|
-
"type": "string",
|
|
2208
|
-
"minLength": 1
|
|
2209
|
-
},
|
|
2210
|
-
"panelID": {
|
|
2211
|
-
"type": "integer",
|
|
2212
|
-
"minimum": 0
|
|
2213
|
-
}
|
|
2214
|
-
},
|
|
2215
|
-
"additionalProperties": false
|
|
2235
|
+
"$ref": "#/components/schemas/AlertRulePanelRef"
|
|
2216
2236
|
},
|
|
2217
2237
|
"paused": {
|
|
2218
2238
|
"type": "boolean"
|
|
@@ -2287,7 +2307,8 @@
|
|
|
2287
2307
|
]
|
|
2288
2308
|
},
|
|
2289
2309
|
"RecordingRuleDatasourceUID": {
|
|
2290
|
-
"type": "string"
|
|
2310
|
+
"type": "string",
|
|
2311
|
+
"pattern": "^[a-zA-Z0-9_-]+$"
|
|
2291
2312
|
},
|
|
2292
2313
|
"RecordingRuleExpression": {
|
|
2293
2314
|
"type": "object",
|
|
@@ -2371,6 +2392,11 @@
|
|
|
2371
2392
|
}
|
|
2372
2393
|
]
|
|
2373
2394
|
},
|
|
2395
|
+
"RecordingRuleMetricName": {
|
|
2396
|
+
"description": "TODO(@moustafab): validate the metric name regex",
|
|
2397
|
+
"type": "string",
|
|
2398
|
+
"pattern": "^[a-zA-Z_:][a-zA-Z0-9_:]*$"
|
|
2399
|
+
},
|
|
2374
2400
|
"RecordingRuleOperatorState": {
|
|
2375
2401
|
"type": "object",
|
|
2376
2402
|
"required": ["lastEvaluation", "state"],
|
|
@@ -2397,10 +2423,15 @@
|
|
|
2397
2423
|
"additionalProperties": false
|
|
2398
2424
|
},
|
|
2399
2425
|
"RecordingRulePromDuration": {
|
|
2400
|
-
"type": "string"
|
|
2426
|
+
"type": "string",
|
|
2427
|
+
"pattern": "^((([0-9]+)y)?(([0-9]+)w)?(([0-9]+)d)?(([0-9]+)h)?(([0-9]+)m)?(([0-9]+)s)?|0)$",
|
|
2428
|
+
"not": {
|
|
2429
|
+
"pattern": "hmuµn"
|
|
2430
|
+
}
|
|
2401
2431
|
},
|
|
2402
2432
|
"RecordingRulePromDurationWMillis": {
|
|
2403
|
-
"type": "string"
|
|
2433
|
+
"type": "string",
|
|
2434
|
+
"pattern": "^((([0-9]+)y)?(([0-9]+)w)?(([0-9]+)d)?(([0-9]+)h)?(([0-9]+)m)?(([0-9]+)s)?(([0-9]+)ms)?|0)$"
|
|
2404
2435
|
},
|
|
2405
2436
|
"RecordingRuleRelativeTimeRange": {
|
|
2406
2437
|
"type": "object",
|
|
@@ -2429,13 +2460,13 @@
|
|
|
2429
2460
|
}
|
|
2430
2461
|
},
|
|
2431
2462
|
"metric": {
|
|
2432
|
-
"
|
|
2463
|
+
"$ref": "#/components/schemas/RecordingRuleMetricName"
|
|
2433
2464
|
},
|
|
2434
2465
|
"paused": {
|
|
2435
2466
|
"type": "boolean"
|
|
2436
2467
|
},
|
|
2437
2468
|
"targetDatasourceUID": {
|
|
2438
|
-
"
|
|
2469
|
+
"$ref": "#/components/schemas/RecordingRuleDatasourceUID"
|
|
2439
2470
|
},
|
|
2440
2471
|
"title": {
|
|
2441
2472
|
"type": "string"
|