collect_data

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2024 License: BSD-2-Clause Imports: 4 Imported by: 0 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 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