Skip to content

Commit

Permalink
Merge pull request #346 from openinfradev/make_default_snr_rules
Browse files Browse the repository at this point in the history
trivial. fixes minor
  • Loading branch information
ktkfree authored Apr 5, 2024
2 parents 2bd1c63 + 4194e20 commit a718ccf
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 31 deletions.
19 changes: 8 additions & 11 deletions api/swagger/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -13968,21 +13968,12 @@ const docTemplate = `{
"cluster": {
"$ref": "#/definitions/github_com_openinfradev_tks-api_pkg_domain.SimpleClusterResponse"
},
"code": {
"type": "string"
},
"createdAt": {
"type": "string"
},
"description": {
"type": "string"
},
"firedAt": {
"type": "string"
},
"grade": {
"type": "string"
},
"grafanaUrl": {
"type": "string"
},
Expand All @@ -13992,10 +13983,13 @@ const docTemplate = `{
"lastTaker": {
"$ref": "#/definitions/github_com_openinfradev_tks-api_pkg_domain.SimpleUserResponse"
},
"message": {
"messageActionProposal": {
"type": "string"
},
"name": {
"messageContent": {
"type": "string"
},
"messageTitle": {
"type": "string"
},
"node": {
Expand All @@ -14010,6 +14004,9 @@ const docTemplate = `{
"rawData": {
"type": "string"
},
"severity": {
"type": "string"
},
"status": {
"type": "string"
},
Expand Down
19 changes: 8 additions & 11 deletions api/swagger/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -13962,21 +13962,12 @@
"cluster": {
"$ref": "#/definitions/github_com_openinfradev_tks-api_pkg_domain.SimpleClusterResponse"
},
"code": {
"type": "string"
},
"createdAt": {
"type": "string"
},
"description": {
"type": "string"
},
"firedAt": {
"type": "string"
},
"grade": {
"type": "string"
},
"grafanaUrl": {
"type": "string"
},
Expand All @@ -13986,10 +13977,13 @@
"lastTaker": {
"$ref": "#/definitions/github_com_openinfradev_tks-api_pkg_domain.SimpleUserResponse"
},
"message": {
"messageActionProposal": {
"type": "string"
},
"name": {
"messageContent": {
"type": "string"
},
"messageTitle": {
"type": "string"
},
"node": {
Expand All @@ -14004,6 +13998,9 @@
"rawData": {
"type": "string"
},
"severity": {
"type": "string"
},
"status": {
"type": "string"
},
Expand Down
14 changes: 6 additions & 8 deletions api/swagger/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3081,25 +3081,21 @@ definitions:
type: string
cluster:
$ref: '#/definitions/github_com_openinfradev_tks-api_pkg_domain.SimpleClusterResponse'
code:
type: string
createdAt:
type: string
description:
type: string
firedAt:
type: string
grade:
type: string
grafanaUrl:
type: string
id:
type: string
lastTaker:
$ref: '#/definitions/github_com_openinfradev_tks-api_pkg_domain.SimpleUserResponse'
message:
messageActionProposal:
type: string
name:
messageContent:
type: string
messageTitle:
type: string
node:
type: string
Expand All @@ -3109,6 +3105,8 @@ definitions:
type: integer
rawData:
type: string
severity:
type: string
status:
type: string
systemNotificationActions:
Expand Down
2 changes: 1 addition & 1 deletion pkg/domain/system-notification.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ type CreateSystemNotificationRequest struct {
type SystemNotificationResponse struct {
ID string `json:"id"`
OrganizationId string `json:"organizationId"`
Severity string `json:"grade"`
Severity string `json:"severity"`
MessageTitle string `json:"messageTitle"`
MessageContent string `json:"messageContent"`
MessageActionProposal string `json:"messageActionProposal"`
Expand Down

0 comments on commit a718ccf

Please sign in to comment.