()
| 26 | } |
| 27 | |
| 28 | func (p ProcessSummary) HealthyInstanceCount() int { |
| 29 | count := 0 |
| 30 | for _, instance := range p.InstanceDetails { |
| 31 | if instance.State == constant.ProcessInstanceRunning { |
| 32 | count++ |
| 33 | } |
| 34 | } |
| 35 | return count |
| 36 | } |
| 37 | |
| 38 | func (ps ProcessSummaries) Sort() { |
| 39 | sort.Slice(ps, func(i int, j int) bool { |
no outgoing calls
no test coverage detected