Skip to content

Commit

Permalink
feat: ActionIngestionLog rpc (#203)
Browse files Browse the repository at this point in the history
  • Loading branch information
ltucker authored Dec 16, 2024
1 parent a8b8ef7 commit 59fb526
Show file tree
Hide file tree
Showing 5 changed files with 904 additions and 613 deletions.
27 changes: 27 additions & 0 deletions diode-proto/diode/v1/reconciler.proto
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,37 @@ message RetrieveIngestionLogsResponse {
string next_page_token = 3; // Token for the next page of results, if any
}

enum ActionType {
ACTION_UNSPECIFIED = 0;
ACTION_DIFF = 1;
ACTION_APPLY = 2;
ACTION_REJECT = 3;
}

// The request to take action on an ingestion log
message ActionIngestionLogRequest {
ActionType action = 1;
string ingestion_log_id = 2;
optional string branch_id = 3;
}

// The response from the ActionIngestionLog request
message ActionIngestionLogResponse {
message Error {
string message = 1;
int32 code = 2;
}

IngestionLog log = 1;
repeated Error errors = 2;
}

// Reconciler service API
service ReconcilerService {
// Retrieves ingestion data sources
rpc RetrieveIngestionDataSources(RetrieveIngestionDataSourcesRequest) returns (RetrieveIngestionDataSourcesResponse) {}
// Retrieves ingestion logs
rpc RetrieveIngestionLogs(RetrieveIngestionLogsRequest) returns (RetrieveIngestionLogsResponse);
// Takes action on an ingestion log
rpc ActionIngestionLog(ActionIngestionLogRequest) returns (ActionIngestionLogResponse);
}
Loading

0 comments on commit 59fb526

Please sign in to comment.