appStatistics

package
v0.9.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 16, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clear

func Clear()

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL