Documentation ¶
Index ¶
Constants ¶
View Source
const ( SectionKey = "collect_list" EventConfigTomlKey = "event_config" BatchReadSizeKey = "batch_read_size" EventLevelsKey = "event_levels" //TODO: Performance test to confirm the proper value here - https://github.com/aws/amazon-cloudwatch-agent/issues/231 BatchReadSizeValue = 170 )
View Source
const ( EventFormatSectionKey = "event_format" EventFormatXML = "xml" //xml format in windows event viewer EVentFormatPlainText = "text" //old ssm agent format )
View Source
const LogGroupNameSectionKey = "log_group_name"
View Source
const RetentionInDaysSectionKey = "retention_in_days"
Variables ¶
View Source
var ChildRule = map[string]Rule{}
View Source
var MergeRuleMap = map[string]mergeJsonRule.MergeRule{}
Functions ¶
func GetCurPath ¶
func GetCurPath() string
func RegisterRule ¶
Types ¶
type CollectList ¶
type CollectList struct { }
func (*CollectList) ApplyRule ¶
func (c *CollectList) ApplyRule(input interface{}) (returnKey string, returnVal interface{})
func (*CollectList) Merge ¶
func (c *CollectList) Merge(source map[string]interface{}, result map[string]interface{})
type EventFormat ¶
type EventFormat struct { }
func (*EventFormat) ApplyRule ¶
func (r *EventFormat) ApplyRule(input interface{}) (returnKey string, returnVal interface{})
type LogGroupName ¶
type LogGroupName struct { }
func (*LogGroupName) ApplyRule ¶
func (l *LogGroupName) ApplyRule(input interface{}) (returnKey string, returnVal interface{})
type LogStreamName ¶
type LogStreamName struct { }
func (*LogStreamName) ApplyRule ¶
func (l *LogStreamName) ApplyRule(input interface{}) (returnKey string, returnVal interface{})
type RetentionInDays ¶ added in v1.247350.0
type RetentionInDays struct { }
func (*RetentionInDays) ApplyRule ¶ added in v1.247350.0
func (f *RetentionInDays) ApplyRule(input interface{}) (returnKey string, returnVal interface{})
type Rule ¶
type Rule translator.Rule
Click to show internal directories.
Click to hide internal directories.