PrintAllTaskCounterInfo print all task counter data
()
| 313 | |
| 314 | // PrintAllTaskCounterInfo print all task counter data |
| 315 | func (service *TaskService) PrintAllTaskCounterInfo() string { |
| 316 | body := "" |
| 317 | for _, v := range service.taskMap { |
| 318 | body += fmt.Sprintln(v.TaskID(), "Run", v.CounterInfo().RunCounter.Count()) |
| 319 | body += fmt.Sprintln(v.TaskID(), "Error", v.CounterInfo().ErrorCounter.Count()) |
| 320 | } |
| 321 | return body |
| 322 | } |
| 323 | |
| 324 | // GetAllTaskCountInfo return all show count info |
| 325 | func (service *TaskService) GetAllTaskCountInfo() []ShowCountInfo { |
no test coverage detected