Documentation ¶
Index ¶
- Constants
- Variables
- func GetCurPath() string
- func GetDefaultValue() string
- func RegisterRule(fieldname string, r translator.Rule)
- type Agent
- type CollectionJitter
- type CommonCreds
- type Debug
- type FlushInterval
- type FlushJitter
- type GlobalCreds
- type Hostname
- type Internal
- type Interval
- type LogTarget
- type Logfile
- type MetricBatchSize
- type MetricBufferLimit
- type OmitHostname
- type Precision
- type Quiet
- type Region
- type RoundInterval
Constants ¶
View Source
const ( SectionKey = "agent" Mode = "mode" )
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 ( RegionKey = "region" RegionType = "region_type" )
View Source
const (
InternalKey = "internal"
)
View Source
const Linux_Darwin_Default_Log_Dir = "/opt/aws/amazon-cloudwatch-agent/logs/amazon-cloudwatch-agent.log"
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 RegionType string Mode string Internal bool Role_arn string }
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 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 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 RoundInterval ¶
type RoundInterval struct { }
func (*RoundInterval) ApplyRule ¶
func (r *RoundInterval) ApplyRule(input interface{}) (returnKey string, returnVal interface{})
Source Files ¶
- agent.go
- ruleCollectionJitter.go
- ruleCommonCreds.go
- ruleDebug.go
- ruleFlushInterval.go
- ruleFlushJitter.go
- ruleGlobalCredentials.go
- ruleHostname.go
- ruleInternal.go
- ruleInterval.go
- ruleLogFile.go
- ruleLogTarget.go
- ruleMetricBatchSize.go
- ruleMetricBufferLimit.go
- ruleOmitHostname.go
- rulePrecision.go
- ruleQuiet.go
- ruleRegion.go
- ruleRoundInterval.go
Click to show internal directories.
Click to hide internal directories.