Skip to content

Commit

Permalink
PMM-9636 add silenced and alertID to check results
Browse files Browse the repository at this point in the history
  • Loading branch information
idoqo committed Mar 20, 2022
1 parent 86d1fe1 commit be1329a
Show file tree
Hide file tree
Showing 6 changed files with 239 additions and 178 deletions.
377 changes: 199 additions & 178 deletions api/managementpb/checks.pb.go

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions api/managementpb/checks.proto
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ message CheckResult {
string service_id = 7;
// Name of the check that failed
string check_name = 8;
// ID of the check result as stored in AlertManager
string alert_id = 9;
// Silence status of the check result
bool silenced = 10;
}

// SecurityCheck contains check name and status.
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions api/managementpb/json/managementpb.json
Original file line number Diff line number Diff line change
Expand Up @@ -5820,6 +5820,11 @@
"description": "CheckResult represents the check results for a given service.",
"type": "object",
"properties": {
"alert_id": {
"type": "string",
"title": "ID of the check result as stored in AlertManager",
"x-order": 8
},
"check_name": {
"type": "string",
"title": "Name of the check that failed",
Expand Down Expand Up @@ -5868,6 +5873,11 @@
],
"x-order": 2
},
"silenced": {
"type": "boolean",
"title": "Silence status of the check result",
"x-order": 9
},
"summary": {
"type": "string",
"x-order": 0
Expand Down
10 changes: 10 additions & 0 deletions api/swagger/swagger-dev.json
Original file line number Diff line number Diff line change
Expand Up @@ -24652,6 +24652,16 @@
"type": "string",
"title": "Name of the check that failed",
"x-order": 7
},
"alert_id": {
"type": "string",
"title": "ID of the check result as stored in AlertManager",
"x-order": 8
},
"silenced": {
"type": "boolean",
"title": "Silence status of the check result",
"x-order": 9
}
}
},
Expand Down
10 changes: 10 additions & 0 deletions api/swagger/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -18597,6 +18597,16 @@
"type": "string",
"title": "Name of the check that failed",
"x-order": 7
},
"alert_id": {
"type": "string",
"title": "ID of the check result as stored in AlertManager",
"x-order": 8
},
"silenced": {
"type": "boolean",
"title": "Silence status of the check result",
"x-order": 9
}
}
},
Expand Down

0 comments on commit be1329a

Please sign in to comment.