Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindAppStatisticMetadata ¶
func FindAppStatisticMetadata(appId string) map[string]*AppInstanceStatistic
func LoadAppStatisticCache ¶
func LoadAppStatisticCache(cliConnection plugin.CliConnection, appId string) error
Types ¶
type AppInstanceStatistic ¶
type AppInstanceStatistic struct { State string `json:"state"` Stats struct { Name string `json:"name"` URIs []string `json:"uris"` Host string `json:"host"` Port int `json:"port"` Uptime int64 `json:"uptime"` StartTime *time.Time // This will be populated on post-processing of response MemoryQuota int64 `json:"mem_quota"` DiskQuota int64 `json:"disk_quota"` FiledescriptorQuota int `json:"fds_quota"` Usage struct { Time string `json:"time"` CPU float64 `json:"cpu"` Memory int64 `json:"mem"` Disk int64 `json:"disk"` } `json:"usage"` } `json:"stats"` }
type AppInstanceStatistics ¶
type AppInstanceStatistics struct { CacheTime *time.Time Data map[string]*AppInstanceStatistic }
**************************************************************** The following are used used calling API: /v2/apps/APP_GUID/stats ****************************************************************
func FindAppStatisticMetadataInternal ¶
func FindAppStatisticMetadataInternal(appId string) *AppInstanceStatistics
Click to show internal directories.
Click to hide internal directories.