cloudwatch

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2022 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 {
	types.Metadata
	AlarmName  types.StringValue
	MetricName types.StringValue
	Dimensions []AlarmDimension
	Metrics    []MetricDataQuery
}

type AlarmDimension

type AlarmDimension struct {
	types.Metadata
	Name  types.StringValue
	Value types.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 {
	types.Metadata
	Arn             types.StringValue
	Name            types.StringValue
	KMSKeyID        types.StringValue
	RetentionInDays types.IntValue
	MetricFilters   []MetricFilter
}

type MetricDataQuery

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

type MetricFilter

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

Jump to

Keyboard shortcuts

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