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

config

package
v1.300055.2 Latest Latest
Warning

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

Go to latest
Published: May 14, 2025 License: MIT Imports: 5 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, retention int, logGroupClass string)

func (*Logs) AddWindowsEvent

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

func (*Logs) ToMap

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

type Metrics

type Metrics struct {
	AppendDimensions *metric.AppendDimensions

	AggregationDimensions *metric.AggregationDimensions

	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{})

type Traces added in v1.300028.0

type Traces struct {
	TracesCollected struct {
		Xray struct {
			BindAddress string `json:"bind_address"`
			TcpProxy    struct {
				BindAddress string `json:"bind_address"`
			} `json:"tcp_proxy"`
		} `json:"xray"`
	} `json:"traces_collected"`
	Concurrency  int    `json:"concurrency"`
	BufferSizeMB int    `json:"buffer_size_mb"`
	ResourceArn  string `json:"resource_arn,omitempty"`
	LocalMode    bool   `json:"local_mode,omitempty"` //local
	Insecure     bool   `json:"insecure, omitempty"`  //noverifyssl
	Credentials  *struct {
		RoleArn string `json:"role_arn,omitempty"`
	} `json:"credentials,omitempty"`
	EndpointOverride string `json:"endpoint_override,omitempty"` //endpoint
	RegionOverride   string `json:"region_override,omitempty"`   //region
	ProxyOverride    string `json:"proxy_override,omitempty"`
}

func (*Traces) ToMap added in v1.300028.0

func (config *Traces) 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