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

reword sankey path upload intent decision apis #34

Merged
merged 1 commit into from
Nov 12, 2024
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
22 changes: 15 additions & 7 deletions src/bitdrift_public/protobuf/client/v1/api.proto
Original file line number Diff line number Diff line change
Expand Up @@ -428,16 +428,24 @@ message SankeyPathUploadResponse {

// The response to Sankey diagram intent request.
message SankeyIntentResponse {
enum Decision {
// The diagram should be uploaded.
UPLOAD = 0;
// The diagram should be dropped.
DROP = 1;
string intent_uuid = 1 [(validate.rules).string = {min_len: 1}];

reserved 2;
reserved 'decision';

message UploadImmediately {
}

string intent_uuid = 1 [(validate.rules).string = {min_len: 1}];
message Drop {
}

Decision decision = 2;
oneof decision {
// The candidate sankey path should be uploaded immediatly.
UploadImmediately upload_immediately = 3;

// The candidate sankey path should be dropped.
Drop drop = 4;
}
}

// A multiplexed response sent over the bitdrift API.
Expand Down
Loading