mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Alerting: Recording rules appear as type=recording in Prometheus API + better abstraction for type (#88805)
* Wire status through to prom API * Regenerate swagger
This commit is contained in:
@@ -12476,7 +12476,7 @@
|
||||
}
|
||||
},
|
||||
"type": {
|
||||
"$ref": "#/definitions/RuleType"
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -19148,7 +19148,7 @@
|
||||
"type": "string"
|
||||
},
|
||||
"type": {
|
||||
"$ref": "#/definitions/RuleType"
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -19259,10 +19259,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"RuleType": {
|
||||
"type": "string",
|
||||
"title": "RuleType models the type of a rule."
|
||||
},
|
||||
"SNSConfig": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@@ -21749,7 +21745,6 @@
|
||||
}
|
||||
},
|
||||
"gettableAlerts": {
|
||||
"description": "GettableAlerts gettable alerts",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
@@ -21758,16 +21753,6 @@
|
||||
},
|
||||
"gettableGrafanaSilence": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"comment",
|
||||
"createdBy",
|
||||
"endsAt",
|
||||
"matchers",
|
||||
"startsAt",
|
||||
"id",
|
||||
"status",
|
||||
"updatedAt"
|
||||
],
|
||||
"properties": {
|
||||
"accessControl": {
|
||||
"type": "object",
|
||||
@@ -21780,41 +21765,8 @@
|
||||
"write": false
|
||||
}
|
||||
},
|
||||
"comment": {
|
||||
"description": "comment",
|
||||
"type": "string"
|
||||
},
|
||||
"createdBy": {
|
||||
"description": "created by",
|
||||
"type": "string"
|
||||
},
|
||||
"endsAt": {
|
||||
"description": "ends at",
|
||||
"type": "string",
|
||||
"format": "date-time"
|
||||
},
|
||||
"id": {
|
||||
"description": "id",
|
||||
"type": "string"
|
||||
},
|
||||
"matchers": {
|
||||
"$ref": "#/definitions/matchers"
|
||||
},
|
||||
"metadata": {
|
||||
"$ref": "#/definitions/SilenceMetadata"
|
||||
},
|
||||
"startsAt": {
|
||||
"description": "starts at",
|
||||
"type": "string",
|
||||
"format": "date-time"
|
||||
},
|
||||
"status": {
|
||||
"$ref": "#/definitions/silenceStatus"
|
||||
},
|
||||
"updatedAt": {
|
||||
"description": "updated at",
|
||||
"type": "string",
|
||||
"format": "date-time"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -2845,7 +2845,7 @@
|
||||
"type": "object"
|
||||
},
|
||||
"type": {
|
||||
"$ref": "#/components/schemas/RuleType"
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
@@ -9520,7 +9520,7 @@
|
||||
"type": "string"
|
||||
},
|
||||
"type": {
|
||||
"$ref": "#/components/schemas/RuleType"
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
@@ -9638,10 +9638,6 @@
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"RuleType": {
|
||||
"title": "RuleType models the type of a rule.",
|
||||
"type": "string"
|
||||
},
|
||||
"SNSConfig": {
|
||||
"properties": {
|
||||
"api_url": {
|
||||
@@ -12126,7 +12122,6 @@
|
||||
"type": "object"
|
||||
},
|
||||
"gettableAlerts": {
|
||||
"description": "GettableAlerts gettable alerts",
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/gettableAlert"
|
||||
},
|
||||
@@ -12145,53 +12140,10 @@
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"comment": {
|
||||
"description": "comment",
|
||||
"type": "string"
|
||||
},
|
||||
"createdBy": {
|
||||
"description": "created by",
|
||||
"type": "string"
|
||||
},
|
||||
"endsAt": {
|
||||
"description": "ends at",
|
||||
"format": "date-time",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"description": "id",
|
||||
"type": "string"
|
||||
},
|
||||
"matchers": {
|
||||
"$ref": "#/components/schemas/matchers"
|
||||
},
|
||||
"metadata": {
|
||||
"$ref": "#/components/schemas/SilenceMetadata"
|
||||
},
|
||||
"startsAt": {
|
||||
"description": "starts at",
|
||||
"format": "date-time",
|
||||
"type": "string"
|
||||
},
|
||||
"status": {
|
||||
"$ref": "#/components/schemas/silenceStatus"
|
||||
},
|
||||
"updatedAt": {
|
||||
"description": "updated at",
|
||||
"format": "date-time",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"comment",
|
||||
"createdBy",
|
||||
"endsAt",
|
||||
"matchers",
|
||||
"startsAt",
|
||||
"id",
|
||||
"status",
|
||||
"updatedAt"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"gettableGrafanaSilences": {
|
||||
|
||||
Reference in New Issue
Block a user