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

@@ -1118,7 +1118,7 @@ func (c *Client) GetWorkflowExecutionStatisticsForTemplate(workflowTemplate *Wor
}
//Calculate and set the values
workflowTemplate.WorkflowExecutionStatisticReport.Total = uint64(len(workflowExecStats))
workflowTemplate.WorkflowExecutionStatisticReport.Total = int32(len(workflowExecStats))
createdAtTime, ok := (workflowExecStats[0].CreatedAt).(time.Time)
if !ok {
return errors.New("Unable to get time of created_at")