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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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