Alerting: conversion API structure (#100258)
This commit is contained in:
committed by
GitHub
parent
9b37e9249a
commit
9593e51da7
@@ -734,6 +734,20 @@
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"ConvertPrometheusResponse": {
|
||||
"properties": {
|
||||
"error": {
|
||||
"type": "string"
|
||||
},
|
||||
"errorType": {
|
||||
"type": "string"
|
||||
},
|
||||
"status": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"CounterResetHint": {
|
||||
"description": "or alternatively that we are dealing with a gauge histogram, where counter resets do not apply.",
|
||||
"format": "uint8",
|
||||
@@ -2940,6 +2954,70 @@
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"PrometheusNamespace": {
|
||||
"properties": {
|
||||
"Body": {
|
||||
"additionalProperties": {
|
||||
"items": {
|
||||
"$ref": "#/definitions/PrometheusRuleGroup"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"description": "in: body",
|
||||
"type": "object"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"PrometheusRule": {
|
||||
"properties": {
|
||||
"Alert": {
|
||||
"type": "string"
|
||||
},
|
||||
"Annotations": {
|
||||
"additionalProperties": {
|
||||
"type": "string"
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"Expr": {
|
||||
"type": "string"
|
||||
},
|
||||
"For": {
|
||||
"type": "string"
|
||||
},
|
||||
"KeepFiringFor": {
|
||||
"type": "string"
|
||||
},
|
||||
"Labels": {
|
||||
"additionalProperties": {
|
||||
"type": "string"
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"Record": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"PrometheusRuleGroup": {
|
||||
"properties": {
|
||||
"Interval": {
|
||||
"$ref": "#/definitions/Duration"
|
||||
},
|
||||
"Name": {
|
||||
"type": "string"
|
||||
},
|
||||
"Rules": {
|
||||
"items": {
|
||||
"$ref": "#/definitions/PrometheusRule"
|
||||
},
|
||||
"type": "array"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"Provenance": {
|
||||
"type": "string"
|
||||
},
|
||||
@@ -4692,7 +4770,6 @@
|
||||
"type": "object"
|
||||
},
|
||||
"alertGroups": {
|
||||
"description": "AlertGroups alert groups",
|
||||
"items": {
|
||||
"$ref": "#/definitions/alertGroup",
|
||||
"type": "object"
|
||||
|
||||
Reference in New Issue
Block a user