config

package
v1.247349.0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RUN_IN_CONTAINER        = "RUN_IN_CONTAINER"
	RUN_IN_CONTAINER_TRUE   = "True"
	RUN_IN_AWS              = "RUN_IN_AWS"
	RUN_IN_AWS_TRUE         = "True"
	USE_DEFAULT_CONFIG      = "USE_DEFAULT_CONFIG"
	USE_DEFAULT_CONFIG_TRUE = "True"
	HOST_NAME               = "HOST_NAME"
	POD_NAME                = "POD_NAME"
	HOST_IP                 = "HOST_IP"
	CWConfigContent         = "CW_CONFIG_CONTENT"
)
View Source
const (
	ModeEC2    = "ec2"
	ModeOnPrem = "onPrem"
)
View Source
const (
	OS_TYPE_LINUX   = "linux"
	OS_TYPE_WINDOWS = "windows"
	OS_TYPE_DARWIN  = "darwin"
)
View Source
const (
	ERR_CODE_NOJSONFILE = 99
)

Variables

This section is empty.

Functions

func DefaultECSJsonConfig

func DefaultECSJsonConfig() string

func DefaultJsonConfig

func DefaultJsonConfig(os string, mode string) string

func GetFormattedPath

func GetFormattedPath(rawPath string) string

Translate Sample: (root).agent.metrics_collection_interval -> /agent/metrics_collection_interval (root).metrics.metrics_collected.cpu.resources.1 -> /metrics/metrics_collected/cpu/resources/1

func GetJsonSchema

func GetJsonSchema() string

func OverwriteSchema added in v1.247347.5

func OverwriteSchema(newSchema string)

func ToValidOs

func ToValidOs(os string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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