collect_data

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2024 License: BSD-2-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppLookup

func AppLookup(cf *client.Client, spaceOrgNameLookup map[string]string,
	spaceLookup map[string]string) (map[string]string, map[string]string,
	map[string]string, error)

func OrgNameLookup

func OrgNameLookup(cf *client.Client) (map[string]string, error)

func SpaceLookup

func SpaceLookup(cf *client.Client, orgLookup map[string]string) (
	map[string]string, map[string]string, error)

Types

type HealthState

type HealthState struct {
	SingletonApps   map[string]map[string]map[string][]Process `json:"singleton_apps"`
	PortHealthCheck map[string]map[string]map[string][]Process `json:"port_health_checks"`
	LongInterval    map[string]map[string]map[string][]Process `json:"default_http_interval"`
	AllProcesses    map[string]map[string]map[string][]Process `json:"all_process_data"`
}

All return data stored as a nested map to allow for it to be easily sorted before rendering

func CollectHealthState

func CollectHealthState(cf *client.Client) (HealthState, error)

type LookupTables

type LookupTables struct {
	// contains filtered or unexported fields
}

type Process

type Process struct {
	Instances   int                          `json:"instance_count"`
	Type        string                       `json:"process_type"`
	AppGuid     string                       `json:"app_guid"`
	HealthCheck *resource.ProcessHealthCheck `json:"health_check"`
}

Jump to

Keyboard shortcuts

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