Alerting: Update GettableRuleGroupConfig and PostableRuleGroupConfig with missing fields supported by Prometheus (#94030)
This commit is contained in:
@@ -163,6 +163,14 @@
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"AlertRuleEditorSettings": {
|
||||
"properties": {
|
||||
"simplified_query_and_expressions_section": {
|
||||
"type": "boolean"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"AlertRuleExport": {
|
||||
"properties": {
|
||||
"annotations": {
|
||||
@@ -286,6 +294,14 @@
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"AlertRuleMetadata": {
|
||||
"properties": {
|
||||
"editor_settings": {
|
||||
"$ref": "#/definitions/AlertRuleEditorSettings"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"AlertRuleNotificationSettings": {
|
||||
"properties": {
|
||||
"group_by": {
|
||||
@@ -1573,6 +1589,9 @@
|
||||
"is_paused": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"metadata": {
|
||||
"$ref": "#/definitions/AlertRuleMetadata"
|
||||
},
|
||||
"namespace_uid": {
|
||||
"type": "string"
|
||||
},
|
||||
@@ -1660,12 +1679,25 @@
|
||||
},
|
||||
"GettableRuleGroupConfig": {
|
||||
"properties": {
|
||||
"align_evaluation_time_on_interval": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"evaluation_delay": {
|
||||
"type": "string"
|
||||
},
|
||||
"interval": {
|
||||
"$ref": "#/definitions/Duration"
|
||||
},
|
||||
"limit": {
|
||||
"format": "int64",
|
||||
"type": "integer"
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"query_offset": {
|
||||
"type": "string"
|
||||
},
|
||||
"rules": {
|
||||
"items": {
|
||||
"$ref": "#/definitions/GettableExtendedRuleNode"
|
||||
@@ -2786,6 +2818,9 @@
|
||||
"is_paused": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"metadata": {
|
||||
"$ref": "#/definitions/AlertRuleMetadata"
|
||||
},
|
||||
"no_data_state": {
|
||||
"enum": [
|
||||
"Alerting",
|
||||
@@ -2824,17 +2859,36 @@
|
||||
},
|
||||
"PostableRuleGroupConfig": {
|
||||
"properties": {
|
||||
"align_evaluation_time_on_interval": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"evaluation_delay": {
|
||||
"type": "string"
|
||||
},
|
||||
"interval": {
|
||||
"$ref": "#/definitions/Duration"
|
||||
},
|
||||
"limit": {
|
||||
"format": "int64",
|
||||
"type": "integer"
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"query_offset": {
|
||||
"type": "string"
|
||||
},
|
||||
"rules": {
|
||||
"items": {
|
||||
"$ref": "#/definitions/PostableExtendedRuleNode"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"source_tenants": {
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"type": "array"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
@@ -3616,12 +3670,25 @@
|
||||
},
|
||||
"RuleGroupConfigResponse": {
|
||||
"properties": {
|
||||
"align_evaluation_time_on_interval": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"evaluation_delay": {
|
||||
"type": "string"
|
||||
},
|
||||
"interval": {
|
||||
"$ref": "#/definitions/Duration"
|
||||
},
|
||||
"limit": {
|
||||
"format": "int64",
|
||||
"type": "integer"
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"query_offset": {
|
||||
"type": "string"
|
||||
},
|
||||
"rules": {
|
||||
"items": {
|
||||
"$ref": "#/definitions/GettableExtendedRuleNode"
|
||||
|
||||
Reference in New Issue
Block a user