Skip to content

Commit

Permalink
PMM-9636 add rpc to toggle check result alerts
Browse files Browse the repository at this point in the history
  • Loading branch information
idoqo committed Mar 20, 2022
1 parent be1329a commit 619927e
Show file tree
Hide file tree
Showing 11 changed files with 1,032 additions and 125 deletions.
390 changes: 265 additions & 125 deletions api/managementpb/checks.pb.go

Large diffs are not rendered by default.

81 changes: 81 additions & 0 deletions api/managementpb/checks.pb.gw.go

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

16 changes: 16 additions & 0 deletions api/managementpb/checks.proto
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,15 @@ message GetFailedChecksResponse {
PageTotals page_totals = 2;
}

message ToggleCheckAlertRequest {
// Alert ID of the check result.
string alert_id = 1;
// Silence the check result if set to true, unsilence otherwise.
bool silence = 2;
}

message ToggleCheckAlertResponse {}

// SecurityChecks service provides public Management API methods for Security Checks Service.
service SecurityChecks {
// ListFailedServices returns a list of services with failed checks.
Expand All @@ -142,6 +151,13 @@ service SecurityChecks {
body: "*"
};
}
// ToggleCheckAlert allows to switch alerts state for a check result between "silenced" and "unsilenced".
rpc ToggleCheckAlert(ToggleCheckAlertRequest) returns (ToggleCheckAlertResponse) {
option (google.api.http) = {
post: "/v1/management/SecurityChecks/ToggleCheckAlert"
body: "*"
};
}
// GetSecurityCheckResults returns Security Thread Tool's latest checks results.
rpc GetSecurityCheckResults(GetSecurityCheckResultsRequest) returns (GetSecurityCheckResultsResponse) {
option (google.api.http) = {
Expand Down
6 changes: 6 additions & 0 deletions api/managementpb/checks.validator.pb.go

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

38 changes: 38 additions & 0 deletions api/managementpb/checks_grpc.pb.go

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

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

Loading

0 comments on commit 619927e

Please sign in to comment.