diff --git a/plugins/ps/ps.go b/plugins/ps/ps.go index 9d524c109..8b2ecddcf 100644 --- a/plugins/ps/ps.go +++ b/plugins/ps/ps.go @@ -24,13 +24,15 @@ var ( } ) -type FormationSlice []*Formation - +// Formation contains scaling information for a given process type type Formation struct { ProcessType string `json:"process_type"` Quantity int `json:"quantity"` } +// FormationSlice contains a slice of Formations that can be sorted +type FormationSlice []*Formation + func (d FormationSlice) Len() int { return len(d) }