Documentation ¶
Index ¶
- Constants
- Variables
- func AreTwoConfigurationsEqual(config1 NewCwConfig, config2 NewCwConfig) bool
- func ReadConfigFromPathAsString(path string) (str string, err error)
- type FilesEntry
- type LogsCollectedEntry
- type LogsEntry
- type MetricsEntry
- type NewCwConfig
- type NewCwConfigLog
- type NewCwConfigMetric
- type NewCwConfigWindowsEventLog
- type OldSsmCwConfig
- type WindowsEventsEntry
Constants ¶
View Source
const ( ERROR = "ERROR" WARNING = "WARNING" INFORMATION = "INFORMATION" )
View Source
const (
DefaultFilePathWindowsConfiguration = "C:\\Program Files\\Amazon\\SSM\\Plugins\\awsCloudWatch\\AWS.EC2.Windows.CloudWatch.json"
)
Variables ¶
View Source
var Processor processors.Processor = &processor{}
Functions ¶
func AreTwoConfigurationsEqual ¶
func AreTwoConfigurationsEqual(config1 NewCwConfig, config2 NewCwConfig) bool
func ReadConfigFromPathAsString ¶ added in v1.247350.0
Types ¶
type FilesEntry ¶
type FilesEntry struct {
CollectList []NewCwConfigLog `json:"collect_list,omitempty"`
}
type LogsCollectedEntry ¶
type LogsCollectedEntry struct { Files *FilesEntry `json:"files,omitempty"` WindowsEvents *WindowsEventsEntry `json:"windows_events,omitempty"` }
type LogsEntry ¶
type LogsEntry struct {
LogsCollected LogsCollectedEntry `json:"logs_collected,omitempty"`
}
type MetricsEntry ¶
type MetricsEntry struct { MetricsCollect map[string]interface{} `json:"metrics_collected"` GlobalDimensions struct { ImageID string `json:"ImageId"` InstanceID string `json:"InstanceId"` InstanceType string `json:"InstanceType"` AutoScalingGroupName string `json:"AutoScalingGroupName"` } `json:"append_dimensions"` }
type NewCwConfig ¶
type NewCwConfig struct { Agent map[string]interface{} `json:"agent"` Metrics *MetricsEntry `json:"metrics,omitempty"` Logs *LogsEntry `json:"logs,omitempty"` }
func MapOldWindowsConfigToNewConfig ¶
func MapOldWindowsConfigToNewConfig(oldConfig OldSsmCwConfig) (newConfig NewCwConfig)
func ReadNewConfigFromPath ¶
func ReadNewConfigFromPath(path string) (config NewCwConfig, err error)
type NewCwConfigLog ¶
type NewCwConfigMetric ¶
type OldSsmCwConfig ¶
type OldSsmCwConfig struct { IsEnabled bool `json:"IsEnabled"` EngineConfiguration struct { PollInterval string `json:"PollInterval"` Components []struct { ID string `json:"Id"` FullName string `json:"FullName"` Parameters struct { // Windows log events LogName string `json:"LogName"` Levels string `json:"Levels"` // logs LogDirectoryPath string `json:"LogDirectoryPath"` TimestampFormat string `json:"TimestampFormat"` Encoding string `json:"Encoding"` Filter string `json:"Filter"` CultureName string `json:"CultureName"` TimeZoneKind string `json:"TimeZoneKind"` LineCount string `json:"LineCount"` // metrics CategoryName string `json:"CategoryName"` CounterName string `json:"CounterName"` InstanceName string `json:"InstanceName"` MetricName string `json:"MetricName"` Unit string `json:"Unit"` DimensionName string `json:"DimensionName"` DimensionValue string `json:"DimensionValue"` // output logs AccessKey string `json:"AccessKey"` SecretKey string `json:"SecretKey"` Region string `json:"Region"` LogGroup string `json:"LogGroup"` LogStream string `json:"LogStream"` // output metrics NameSpace string `json:"NameSpace"` } `json:"Parameters"` } `json:"Components"` Flows struct { Flows []string `json:"Flows"` } `json:"Flows"` } `json:"EngineConfiguration"` }
func ReadOldConfigFromPath ¶
func ReadOldConfigFromPath(path string) (config OldSsmCwConfig, err error)
type WindowsEventsEntry ¶
type WindowsEventsEntry struct {
CollectList []NewCwConfigWindowsEventLog `json:"collect_list,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.