github.com/loggregator/cli@v6.33.1-0.20180224010324-82334f081791+incompatible/cf/models/app_instance.go (about) 1 package models 2 3 import "time" 4 5 type InstanceState string 6 7 const ( 8 InstanceStarting InstanceState = "starting" 9 InstanceRunning InstanceState = "running" 10 InstanceFlapping InstanceState = "flapping" 11 InstanceDown InstanceState = "down" 12 InstanceCrashed InstanceState = "crashed" 13 ) 14 15 type AppInstanceFields struct { 16 State InstanceState 17 Details string 18 Since time.Time 19 CPUUsage float64 // percentage 20 DiskQuota int64 // in bytes 21 DiskUsage int64 22 MemQuota int64 23 MemUsage int64 24 }