Renamed WorkflowStatistics to just Stats.

Changed value types so they come back as integers in JSON.
This commit is contained in:
Aleksandr Melnikov
2020-04-15 15:16:45 -07:00
parent 72df98834c
commit 01bbca6c73
6 changed files with 48 additions and 52 deletions

View File

@@ -67,7 +67,7 @@ func apiWorkflowTemplate(wft *v1.WorkflowTemplate) *api.WorkflowTemplate {
Manifest: wft.Manifest,
IsLatest: wft.IsLatest,
IsArchived: wft.IsArchived,
WorkflowExecutionStatisticReport: &api.WorkflowExecutionStatisticReport{
Stats: &api.WorkflowExecutionStatisticReport{
Total: wft.WorkflowExecutionStatisticReport.Total,
LastExecuted: wft.WorkflowExecutionStatisticReport.LastExecuted.String(),
Running: wft.WorkflowExecutionStatisticReport.Running,