cloudwatch

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Alarm

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

type AlarmDimension

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

type CloudWatch

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

func (CloudWatch) GetAlarmByMetricName

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

func (CloudWatch) GetLogGroupByArn

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

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

type MetricFilter

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