agent

package
v1.300028.4 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Profile_Key                 = "profile"
	CredentialsFile_Key         = "shared_credential_file"
	CommonCredentialsSectionKey = "commoncredentials"
)
View Source
const (
	Role_Arn_Key          = "role_arn"
	CredentialsSectionKey = "credentials"
)
View Source
const (
	InternalKey = "internal"
)
View Source
const Linux_Darwin_Default_Log_Dir = "/opt/aws/amazon-cloudwatch-agent/logs/amazon-cloudwatch-agent.log"
View Source
const (
	RegionKey = "region"
)
View Source
const (
	SectionKey = "agent"
)

Variables

View Source
var ChildRule = map[string]translator.Rule{}
View Source
var MergeRuleMap = map[string]mergeJsonRule.MergeRule{}

Functions

func GetCurPath

func GetCurPath() string

func GetDefaultValue added in v1.300025.0

func GetDefaultValue() string

func RegisterRule

func RegisterRule(fieldname string, r translator.Rule)

Types

type Agent

type Agent struct {
	Interval    string
	Credentials map[string]interface{}
	Region      string
	Internal    bool
	Role_arn    string
}
var Global_Config Agent = *new(Agent)

func (*Agent) ApplyRule

func (a *Agent) ApplyRule(input interface{}) (returnKey string, returnVal interface{})

func (*Agent) Merge

func (a *Agent) Merge(source map[string]interface{}, result map[string]interface{})

type CollectionJitter

type CollectionJitter struct {
}

func (*CollectionJitter) ApplyRule

func (c *CollectionJitter) ApplyRule(input interface{}) (returnKey string, returnVal interface{})

type CommonCreds

type CommonCreds struct {
}

func (*CommonCreds) ApplyRule

func (c *CommonCreds) ApplyRule(input interface{}) (returnKey string, returnVal interface{})

Here we simply record the credentials map into the agent section(global). This credential map will be provided to the corresponding input and output plugins This should be applied before interpreting other component.

type Debug

type Debug struct {
}

func (*Debug) ApplyRule

func (d *Debug) ApplyRule(input interface{}) (returnKey string, returnVal interface{})

type FlushInterval

type FlushInterval struct {
}

func (*FlushInterval) ApplyRule

func (f *FlushInterval) ApplyRule(input interface{}) (returnKey string, returnVal interface{})

type FlushJitter

type FlushJitter struct {
}

func (*FlushJitter) ApplyRule

func (f *FlushJitter) ApplyRule(input interface{}) (returnKey string, returnVal interface{})

type GlobalCreds

type GlobalCreds struct {
}

func (*GlobalCreds) ApplyRule

func (c *GlobalCreds) ApplyRule(input interface{}) (returnKey string, returnVal interface{})

type Hostname

type Hostname struct {
}

func (*Hostname) ApplyRule

func (h *Hostname) ApplyRule(input interface{}) (returnKey string, returnVal interface{})

type Internal

type Internal struct {
}

func (*Internal) ApplyRule

func (obj *Internal) ApplyRule(input interface{}) (returnKey string, returnVal interface{})

This internal will be provided to the corresponding input and output plugins This should be applied before interpreting other component.

type Interval

type Interval struct {
}

func (*Interval) ApplyRule

func (i *Interval) ApplyRule(input interface{}) (returnKey string, returnVal interface{})

type LogTarget

type LogTarget struct {
}

func (*LogTarget) ApplyRule

func (l *LogTarget) ApplyRule(input interface{}) (returnKey string, returnVal interface{})

type Logfile

type Logfile struct {
}

func (*Logfile) ApplyRule

func (l *Logfile) ApplyRule(input interface{}) (returnKey string, returnVal interface{})

type MetricBatchSize

type MetricBatchSize struct {
}

func (*MetricBatchSize) ApplyRule

func (m *MetricBatchSize) ApplyRule(input interface{}) (returnKey string, returnVal interface{})

type MetricBufferLimit

type MetricBufferLimit struct {
}

func (*MetricBufferLimit) ApplyRule

func (m *MetricBufferLimit) ApplyRule(input interface{}) (returnKey string, returnVal interface{})

type OmitHostname

type OmitHostname struct {
}

func (*OmitHostname) ApplyRule

func (o *OmitHostname) ApplyRule(input interface{}) (returnKey string, returnVal interface{})

type Precision

type Precision struct {
}

func (*Precision) ApplyRule

func (p *Precision) ApplyRule(input interface{}) (returnKey string, returnVal interface{})

type Quiet

type Quiet struct {
}

func (*Quiet) ApplyRule

func (q *Quiet) ApplyRule(input interface{}) (returnKey string, returnVal interface{})

type Region

type Region struct {
}

func (*Region) ApplyRule

func (r *Region) ApplyRule(input interface{}) (returnKey string, returnVal interface{})

This region will be provided to the corresponding input and output plugins This should be applied before interpreting other component.

type RoundInterval

type RoundInterval struct {
}

func (*RoundInterval) ApplyRule

func (r *RoundInterval) ApplyRule(input interface{}) (returnKey string, returnVal interface{})

Jump to

Keyboard shortcuts

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