Skip to content

Commit

Permalink
feat(siren): filter receivers by labels (goto#39)
Browse files Browse the repository at this point in the history
* feat(siren): filter receivers by labels

* feat(siren): add receiver parent_id field
  • Loading branch information
mabdh authored Aug 1, 2023
1 parent ec06634 commit 6e57afd
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion gotocompany/siren/v1beta1/siren.proto
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,11 @@ message Receiver {
google.protobuf.Timestamp updated_at = 8;
}

message ListReceiversRequest {}
message ListReceiversRequest {
map<string, string> labels = 1 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
description: "query result based on receivers labels. the label is written as map. eg, \"labels[key1]=value1\""
}];
}

message ListReceiversResponse {
repeated Receiver receivers = 1;
Expand All @@ -644,6 +648,7 @@ message CreateReceiverRequest {
string type = 2;
map<string, string> labels = 3;
google.protobuf.Struct configurations = 4;
uint64 parent_id = 5;
}

message CreateReceiverResponse {
Expand All @@ -663,6 +668,7 @@ message UpdateReceiverRequest {
string name = 2 [(validate.rules).string.pattern = "^[A-Za-z0-9_.-]+$"];
map<string, string> labels = 3;
google.protobuf.Struct configurations = 4;
uint64 parent_id = 5;
}

message UpdateReceiverResponse {
Expand Down

0 comments on commit 6e57afd

Please sign in to comment.