config

package
v1.3000030.2 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2023 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)

func (*Logs) AddWindowsEvent

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

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