Skip to content
Open
Show file tree
Hide file tree
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
49 changes: 49 additions & 0 deletions api/submitqueue/gateway/proto/gateway.proto
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,50 @@ message ListResponse {
string next_page_token = 2;
}

// HistoryByIDRequest selects one retained request history by sqid.
message HistoryByIDRequest {
// Globally unique identifier for the request.
string sqid = 1;
}

// HistoryEvent is one retained append-only request-log event.
message HistoryEvent {
// Time the request-log entry was created, in Unix milliseconds.
int64 timestamp_ms = 1;
// Customer-friendly request status recorded by the event.
string status = 2;
// Error message associated with the event. Empty when absent.
string last_error = 3;
// Display and debugging metadata associated with the event.
map<string, string> metadata = 4;
}

// HistoryByIDResponse contains all retained events for one request.
message HistoryByIDResponse {
// Events ordered by timestamp ascending with a stable storage tie-breaker.
repeated HistoryEvent events = 1;
}

// HistoryByChangeIDRequest selects retained histories by an exact pinned change URI.
message HistoryByChangeIDRequest {
// Exact change URI supplied in a Land request.
string change_id = 1;
}

// RequestHistory groups retained events for one request.
message RequestHistory {
// Globally unique request identifier.
string sqid = 1;
// Retained events ordered chronologically.
repeated HistoryEvent events = 2;
}

// HistoryByChangeIDResponse contains retained histories ordered by numeric sqid counter ascending.
message HistoryByChangeIDResponse {
// Matching request histories.
repeated RequestHistory histories = 1;
}

// ***************
// Error messages, returned as `google.rpc.Status` messages.
// ***************
Expand Down Expand Up @@ -209,4 +253,9 @@ service SubmitQueueGateway {
// List returns requests received for one queue during a bounded receipt-time range.
rpc List(ListRequest) returns (ListResponse) {}

// HistoryByID returns every retained request-log event for one request.
rpc HistoryByID(HistoryByIDRequest) returns (HistoryByIDResponse) {}

// HistoryByChangeID returns retained request histories for an exact pinned change URI.
rpc HistoryByChangeID(HistoryByChangeIDRequest) returns (HistoryByChangeIDResponse) {}
}
Loading
Loading