MCPcopy Index your code
hub / github.com/cloudfoundry/cli / HealthyInstanceCount

Method HealthyInstanceCount

actor/v7action/process_summary.go:28–36  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

26}
27
28func (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
38func (ps ProcessSummaries) Sort() {
39 sort.Slice(ps, func(i int, j int) bool {

Callers 3

displayProcessTableMethod · 0.80
StringMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected