app_examiner

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2015 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const AppNotFoundErrorMessage = "App not found."

Variables

This section is empty.

Functions

This section is empty.

Types

type AppExaminer

type AppExaminer interface {
	ListApps() ([]AppInfo, error)
	ListCells() ([]CellInfo, error)
	AppStatus(appName string) (AppInfo, error)
	AppExists(name string) (bool, error)
	RunningAppInstancesInfo(name string) (int, bool, error)
}

func New

func New(receptorClient receptor.Client, noaaConsumer NoaaConsumer) AppExaminer

type AppInfo

type AppInfo struct {
	ProcessGuid            string
	RootFS                 string
	DesiredInstances       int
	ActualRunningInstances int
	EnvironmentVariables   []EnvironmentVariable
	StartTimeout           uint
	DiskMB                 int
	MemoryMB               int
	CPUWeight              uint
	Ports                  []uint16
	Routes                 route_helpers.Routes
	LogGuid                string
	LogSource              string
	Annotation             string
	ActualInstances        []InstanceInfo
	Monitor                Monitor
}

type CellInfo

type CellInfo struct {
	CellID           string
	RunningInstances int
	ClaimedInstances int
	Missing          bool
	Zone             string
	MemoryMB         int
	DiskMB           int
	Containers       int
}

type EnvironmentVariable

type EnvironmentVariable struct {
	Name  string
	Value string
}

type InstanceInfo

type InstanceInfo struct {
	InstanceGuid   string
	CellID         string
	Index          int
	Ip             string
	Ports          []PortMapping
	State          string
	Since          int64
	PlacementError string
	CrashCount     int
	HasMetrics     bool
	Metrics        InstanceMetrics
}

type InstanceMetrics added in v0.4.2

type InstanceMetrics struct {
	CpuPercentage float64
	MemoryBytes   uint64
	DiskBytes     uint64
}

type Monitor added in v0.5.0

type Monitor struct {
	Port        uint16
	URI         string
	Command     string
	CommandArgs []string
}

type NoaaConsumer added in v0.4.2

type NoaaConsumer interface {
	GetContainerMetrics(appGuid, token string) ([]*events.ContainerMetric, error)
}

func NewNoaaConsumer added in v0.4.2

func NewNoaaConsumer(consumer *noaa.Consumer) NoaaConsumer

type PortMapping

type PortMapping struct {
	HostPort      uint16
	ContainerPort uint16
}

Directories

Path Synopsis
fake_terminal
This file was generated by counterfeiter
This file was generated by counterfeiter
graphical/fake_graphical_visualizer
This file was generated by counterfeiter
This file was generated by counterfeiter
This file was generated by counterfeiter
This file was generated by counterfeiter
This file was generated by counterfeiter
This file was generated by counterfeiter

Jump to

Keyboard shortcuts

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