Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(entropy): add GetLog endpoint to stream resource logs #121

Merged
merged 1 commit into from
Apr 1, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions odpf/entropy/v1beta1/service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,12 @@ service ResourceService {
body: "params"
};
}

rpc GetLog(GetLogRequest) returns (stream GetLogResponse) {
option (google.api.http) = {
get: "/v1beta1/resources/{urn}/logs"
};
}
}

message Resource {
Expand Down Expand Up @@ -123,3 +129,17 @@ message ApplyActionRequest {
message ApplyActionResponse {
Resource resource = 1;
}

message LogChunk {
bytes data = 1;
map<string, string> labels = 2;
}

message GetLogRequest {
string urn = 1;
map<string, string> filter = 6;
}

message GetLogResponse {
LogChunk chunk = 1;
}