Help us shape the future of Go! Take the 2026 Go Developer Survey

config

package
v1.247347.5 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const RUNASUSER = "run_as_user"

Variables

This section is empty.

Functions

This section is empty.

Types

type AgentConfig

type AgentConfig struct {
	MetricsCollectInterval string `metrics_collection_interval`
	Runasuser              string `run_as_user`
}

func (*AgentConfig) ToMap

func (config *AgentConfig) ToMap(ctx *runtime.Context) (string, map[string]interface{})

type Logs

type Logs struct {
	ForceFlushInterval int `force_flush_interval`
	LogStream          string
	LogsCollect        *logs.Collection
}

func (*Logs) AddLogFile

func (config *Logs) AddLogFile(filePath, logGroupName string, logStream, timestampFormat, timezone, multiLineStartPattern, encoding string)

func (*Logs) AddWindowsEvent

func (config *Logs) AddWindowsEvent(eventName, logGroupName, logStream, eventFormat string, eventLevels []string)

func (*Logs) ToMap

func (config *Logs) ToMap(ctx *runtime.Context) (string, map[string]interface{})

type Metrics

type Metrics struct {
	AppendDimensions *metric.AppendDimensions

	MetricsCollect *metric.Collection
}

func (*Metrics) CollectAllMetrics

func (config *Metrics) CollectAllMetrics(ctx *runtime.Context)

func (*Metrics) Collection

func (config *Metrics) Collection() *metric.Collection

func (*Metrics) ToMap

func (config *Metrics) ToMap(ctx *runtime.Context) (string, map[string]interface{})

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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