Alerting: Remove id and org_id from grafana alert rule API model (#100139)

This commit is contained in:
Yuri Tseretyan
2025-02-05 23:13:22 +02:00
committed by GitHub
parent 0fe4b15d00
commit f7d476e408
11 changed files with 0 additions and 75 deletions
-2
View File
@@ -585,8 +585,6 @@ func toGettableExtendedRuleNode(r ngmodels.AlertRule, provenanceRecords map[stri
gettableExtendedRuleNode := apimodels.GettableExtendedRuleNode{
GrafanaManagedAlert: &apimodels.GettableGrafanaRule{
ID: r.ID,
OrgID: r.OrgID,
Title: r.Title,
Condition: r.Condition,
Data: ApiAlertQueriesFromAlertQueries(r.Data),
@@ -1593,10 +1593,6 @@
],
"type": "string"
},
"id": {
"format": "int64",
"type": "integer"
},
"intervalSeconds": {
"format": "int64",
"type": "integer"
@@ -1621,10 +1617,6 @@
"notification_settings": {
"$ref": "#/definitions/AlertRuleNotificationSettings"
},
"orgId": {
"format": "int64",
"type": "integer"
},
"provenance": {
"$ref": "#/definitions/Provenance"
},
@@ -550,8 +550,6 @@ type PostableGrafanaRule struct {
// swagger:model
type GettableGrafanaRule struct {
ID int64 `json:"id" yaml:"id"`
OrgID int64 `json:"orgId" yaml:"orgId"`
Title string `json:"title" yaml:"title"`
Condition string `json:"condition" yaml:"condition"`
Data []AlertQuery `json:"data" yaml:"data"`
@@ -1593,10 +1593,6 @@
],
"type": "string"
},
"id": {
"format": "int64",
"type": "integer"
},
"intervalSeconds": {
"format": "int64",
"type": "integer"
@@ -1621,10 +1617,6 @@
"notification_settings": {
"$ref": "#/definitions/AlertRuleNotificationSettings"
},
"orgId": {
"format": "int64",
"type": "integer"
},
"provenance": {
"$ref": "#/definitions/Provenance"
},
@@ -5281,10 +5281,6 @@
"Error"
]
},
"id": {
"type": "integer",
"format": "int64"
},
"intervalSeconds": {
"type": "integer",
"format": "int64"
@@ -5309,10 +5305,6 @@
"notification_settings": {
"$ref": "#/definitions/AlertRuleNotificationSettings"
},
"orgId": {
"type": "integer",
"format": "int64"
},
"provenance": {
"$ref": "#/definitions/Provenance"
},