Skip to content

Commit

Permalink
add summaries to methods
Browse files Browse the repository at this point in the history
  • Loading branch information
idoqo committed Mar 20, 2022
1 parent 619927e commit f0a372e
Show file tree
Hide file tree
Showing 6 changed files with 156 additions and 113 deletions.
218 changes: 117 additions & 101 deletions api/managementpb/checks.pb.go

Large diffs are not rendered by default.

12 changes: 12 additions & 0 deletions api/managementpb/checks.proto
Original file line number Diff line number Diff line change
Expand Up @@ -143,20 +143,32 @@ service SecurityChecks {
post: "/v1/management/SecurityChecks/ListFailedServices"
body: "*"
};
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
summary: "List Failed Services"
description: "Returns a list of services with failed checks and a summary of check results."
};
}
// GetFailedChecks returns the checks result for a given service.
rpc GetFailedChecks(GetFailedChecksRequest) returns (GetFailedChecksResponse) {
option (google.api.http) = {
post: "/v1/management/SecurityChecks/FailedChecks"
body: "*"
};
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
summary: "Get Failed Checks"
description: "Returns the latest check results for a given service."
};
}
// 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: "*"
};
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
summary: "Toggle Check Alert"
description: "Silence/Unsilence alerts for a specific check result."
};
}
// GetSecurityCheckResults returns Security Thread Tool's latest checks results.
rpc GetSecurityCheckResults(GetSecurityCheckResultsRequest) returns (GetSecurityCheckResultsResponse) {
Expand Down

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

9 changes: 6 additions & 3 deletions api/managementpb/json/managementpb.json
Original file line number Diff line number Diff line change
Expand Up @@ -5749,10 +5749,11 @@
},
"/v1/management/SecurityChecks/FailedChecks": {
"post": {
"description": "Returns the latest check results for a given service.",
"tags": [
"SecurityChecks"
],
"summary": "GetFailedChecks returns the checks result for a given service.",
"summary": "Get Failed Checks",
"operationId": "GetFailedChecks",
"parameters": [
{
Expand Down Expand Up @@ -6165,10 +6166,11 @@
},
"/v1/management/SecurityChecks/ListFailedServices": {
"post": {
"description": "Returns a list of services with failed checks and a summary of check results.",
"tags": [
"SecurityChecks"
],
"summary": "ListFailedServices returns a list of services with failed checks.",
"summary": "List Failed Services",
"operationId": "ListFailedServices",
"parameters": [
{
Expand Down Expand Up @@ -6346,10 +6348,11 @@
},
"/v1/management/SecurityChecks/ToggleCheckAlert": {
"post": {
"description": "Silence/Unsilence alerts for a specific check result.",
"tags": [
"SecurityChecks"
],
"summary": "ToggleCheckAlert allows to switch alerts state for a check result between \"silenced\" and \"unsilenced\".",
"summary": "Toggle Check Alert",
"operationId": "ToggleCheckAlert",
"parameters": [
{
Expand Down
9 changes: 6 additions & 3 deletions api/swagger/swagger-dev.json
Original file line number Diff line number Diff line change
Expand Up @@ -24549,10 +24549,11 @@
},
"/v1/management/SecurityChecks/FailedChecks": {
"post": {
"description": "Returns the latest check results for a given service.",
"tags": [
"SecurityChecks"
],
"summary": "GetFailedChecks returns the checks result for a given service.",
"summary": "Get Failed Checks",
"operationId": "GetFailedChecks",
"parameters": [
{
Expand Down Expand Up @@ -24965,10 +24966,11 @@
},
"/v1/management/SecurityChecks/ListFailedServices": {
"post": {
"description": "Returns a list of services with failed checks and a summary of check results.",
"tags": [
"SecurityChecks"
],
"summary": "ListFailedServices returns a list of services with failed checks.",
"summary": "List Failed Services",
"operationId": "ListFailedServices",
"parameters": [
{
Expand Down Expand Up @@ -25146,10 +25148,11 @@
},
"/v1/management/SecurityChecks/ToggleCheckAlert": {
"post": {
"description": "Silence/Unsilence alerts for a specific check result.",
"tags": [
"SecurityChecks"
],
"summary": "ToggleCheckAlert allows to switch alerts state for a check result between \"silenced\" and \"unsilenced\".",
"summary": "Toggle Check Alert",
"operationId": "ToggleCheckAlert",
"parameters": [
{
Expand Down
9 changes: 6 additions & 3 deletions api/swagger/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -18494,10 +18494,11 @@
},
"/v1/management/SecurityChecks/FailedChecks": {
"post": {
"description": "Returns the latest check results for a given service.",
"tags": [
"SecurityChecks"
],
"summary": "GetFailedChecks returns the checks result for a given service.",
"summary": "Get Failed Checks",
"operationId": "GetFailedChecks",
"parameters": [
{
Expand Down Expand Up @@ -18910,10 +18911,11 @@
},
"/v1/management/SecurityChecks/ListFailedServices": {
"post": {
"description": "Returns a list of services with failed checks and a summary of check results.",
"tags": [
"SecurityChecks"
],
"summary": "ListFailedServices returns a list of services with failed checks.",
"summary": "List Failed Services",
"operationId": "ListFailedServices",
"parameters": [
{
Expand Down Expand Up @@ -19091,10 +19093,11 @@
},
"/v1/management/SecurityChecks/ToggleCheckAlert": {
"post": {
"description": "Silence/Unsilence alerts for a specific check result.",
"tags": [
"SecurityChecks"
],
"summary": "ToggleCheckAlert allows to switch alerts state for a check result between \"silenced\" and \"unsilenced\".",
"summary": "Toggle Check Alert",
"operationId": "ToggleCheckAlert",
"parameters": [
{
Expand Down

0 comments on commit f0a372e

Please sign in to comment.