Refactoring workflow execution statistics.

- The workflow name is available even at start of the workflow, so
we do not need the uid to act as a placeholder.
- Changing workflow.proto to use name and remove uid uses
This commit is contained in:
Aleksandr Melnikov
2020-04-22 11:54:36 -07:00
parent 5128135be7
commit 238353ffb9
4 changed files with 234 additions and 249 deletions

View File

@@ -106,7 +106,7 @@ service WorkflowService {
rpc CronStartWorkflowExecutionStatistic (CronStartWorkflowExecutionStatisticRequest) returns (google.protobuf.Empty) {
option (google.api.http) = {
get: "/apis/v1beta1/{namespace}/workflow_executions/{uid}/cron_start_statistics/{workflowTemplateId}"
get: "/apis/v1beta1/{namespace}/workflow_executions/{name}/cron_start_statistics/{workflowTemplateId}"
};
}
@@ -229,8 +229,7 @@ message ListFilesResponse {
message Statistics {
string workflowStatus = 1;
string uuid = 2;
int64 workflowTemplateId = 3;
int64 workflowTemplateId = 2;
}
message AddWorkflowExecutionStatisticRequest {
@@ -241,6 +240,6 @@ message AddWorkflowExecutionStatisticRequest {
message CronStartWorkflowExecutionStatisticRequest {
string namespace = 1;
string uid = 2;
string name = 2;
int64 workflowTemplateId = 3;
}