Skip to content
Merged
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
3 changes: 3 additions & 0 deletions protos/backend_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ service BackendService {

// Returns the current metrics for the backend service.
rpc GetMetrics (GetMetricsRequest) returns (GetMetricsResponse);

rpc ListInstanceIDs (ListInstanceIDsRequest) returns (ListInstanceIDsResponse);
rpc GetInstanceHistory (GetInstanceHistoryRequest) returns (GetInstanceHistoryResponse);
}

// Request payload for adding new orchestration events.
Expand Down
36 changes: 36 additions & 0 deletions protos/orchestrator_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -739,6 +739,9 @@ service TaskHubSidecarService {

// Rerun a Workflow from a specific event ID of a workflow instance.
rpc RerunWorkflowFromEvent(RerunWorkflowFromEventRequest) returns (RerunWorkflowFromEventResponse);

rpc ListInstanceIDs (ListInstanceIDsRequest) returns (ListInstanceIDsResponse);
rpc GetInstanceHistory (GetInstanceHistoryRequest) returns (GetInstanceHistoryResponse);
}

message GetWorkItemsRequest {
Expand Down Expand Up @@ -820,3 +823,36 @@ message RerunWorkflowFromEventRequest {
message RerunWorkflowFromEventResponse {
string newInstanceID = 1;
}

// ListInstanceIDsRequest is used to list all orchestration instances.
message ListInstanceIDsRequest {
// continuationToken is the continuation token to use for pagination. This
// is the token which the next page should start from. If not given, the
// first page will be returned.
optional string continuationToken = 1;

// pageSize is the maximum number of instances to return for this page. If
// not given, all instances will be attempted to be returned.
optional uint32 pageSize = 2;
}

// ListInstanceIDsResponse is the response to executing ListInstanceIDs.
message ListInstanceIDsResponse {
// instanceIds is the list of instance IDs returned.
repeated string instanceIds = 1;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
repeated string instanceIds = 1;
repeated string instanceIDs = 1;


// continuationToken is the continuation token to use for pagination. If
// there are no more pages, this will be null.
optional string continuationToken = 2;
}

// GetInstanceHistoryRequest is used to get the full history of an
// orchestration instance.
message GetInstanceHistoryRequest {
string instanceId = 1;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
string instanceId = 1;
string instanceID = 1;

}

// GetInstanceHistoryResponse is the response to executing GetInstanceHistory.
message GetInstanceHistoryResponse {
repeated HistoryEvent events = 1;
}