Skip to content

Commit

Permalink
Adding get alert def by version id (#84)
Browse files Browse the repository at this point in the history
* adding get alert def by version id
  • Loading branch information
michal-co authored Nov 24, 2024
1 parent 0945b9f commit 2e8b63f
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions com/coralogixapis/alerts/v3/alert_defs_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@ service AlertDefsService {
};
}

rpc GetAlertDefByVersionId(GetAlertDefByVersionIdRequest) returns (GetAlertDefByVersionIdResponse) {
option (audit_log_description).description = "get alert definition by alert version id";
option (google.api.http) = {
get: "/v3/alert-defs/alertVersionId/{alert_version_id}"
};
}

rpc CreateAlertDef(CreateAlertDefRequest) returns (CreateAlertDefResponse){
option (audit_log_description).description = "create alert definition";
option (google.api.http) = {
Expand Down Expand Up @@ -126,10 +133,18 @@ message GetAlertDefRequest {
google.protobuf.StringValue id = 1; // The Alert's non changing ID
}

message GetAlertDefByVersionIdRequest {
google.protobuf.StringValue alert_version_id = 1; // The Alert's version ID
}

message GetAlertDefResponse {
AlertDef alert_def = 1;
}

message GetAlertDefByVersionIdResponse {
AlertDef alert_def = 1;
}

message ListAlertDefsResponse {
repeated AlertDef alert_defs = 1;
}
Expand Down

0 comments on commit 2e8b63f

Please sign in to comment.