cloudwatch

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2023 License: MIT Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Alarm added in v0.0.2

type Alarm struct {
	Metadata   defsecTypes.Metadata
	AlarmName  defsecTypes.StringValue
	MetricName defsecTypes.StringValue
	Dimensions []AlarmDimension
	Metrics    []MetricDataQuery
}

type AlarmDimension added in v0.0.2

type AlarmDimension struct {
	Metadata defsecTypes.Metadata
	Name     defsecTypes.StringValue
	Value    defsecTypes.StringValue
}

type CloudWatch

type CloudWatch struct {
	LogGroups []LogGroup
	Alarms    []Alarm
}

func (CloudWatch) GetAlarmByMetricName added in v0.0.2

func (w CloudWatch) GetAlarmByMetricName(metricName string) (alarm *Alarm)

func (CloudWatch) GetLogGroupByArn added in v0.0.2

func (w CloudWatch) GetLogGroupByArn(arn string) (logGroup *LogGroup)

type LogGroup

type LogGroup struct {
	Metadata        defsecTypes.Metadata
	Arn             defsecTypes.StringValue
	Name            defsecTypes.StringValue
	KMSKeyID        defsecTypes.StringValue
	RetentionInDays defsecTypes.IntValue
	MetricFilters   []MetricFilter
}

type MetricDataQuery added in v0.0.2

type MetricDataQuery struct {
	Metadata   defsecTypes.Metadata
	Expression defsecTypes.StringValue
	ID         defsecTypes.StringValue
}

type MetricFilter added in v0.0.2

type MetricFilter struct {
	Metadata      defsecTypes.Metadata
	FilterName    defsecTypes.StringValue
	FilterPattern defsecTypes.StringValue
}

Jump to

Keyboard shortcuts

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