cloudwatchmetricalarm

package
v0.0.0-...-964ba77 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metric

type Metric struct {
	// Dimensions: map of string, optional
	Dimensions terra.MapValue[terra.StringValue] `hcl:"dimensions,attr"`
	// MetricName: string, required
	MetricName terra.StringValue `hcl:"metric_name,attr" validate:"required"`
	// Namespace: string, optional
	Namespace terra.StringValue `hcl:"namespace,attr"`
	// Period: number, required
	Period terra.NumberValue `hcl:"period,attr" validate:"required"`
	// Stat: string, required
	Stat terra.StringValue `hcl:"stat,attr" validate:"required"`
	// Unit: string, optional
	Unit terra.StringValue `hcl:"unit,attr"`
}

type MetricAttributes

type MetricAttributes struct {
	// contains filtered or unexported fields
}

func (MetricAttributes) Dimensions

func (MetricAttributes) InternalRef

func (m MetricAttributes) InternalRef() (terra.Reference, error)

func (MetricAttributes) InternalTokens

func (m MetricAttributes) InternalTokens() (hclwrite.Tokens, error)

func (MetricAttributes) InternalWithRef

func (m MetricAttributes) InternalWithRef(ref terra.Reference) MetricAttributes

func (MetricAttributes) MetricName

func (m MetricAttributes) MetricName() terra.StringValue

func (MetricAttributes) Namespace

func (m MetricAttributes) Namespace() terra.StringValue

func (MetricAttributes) Period

func (m MetricAttributes) Period() terra.NumberValue

func (MetricAttributes) Stat

func (MetricAttributes) Unit

type MetricQuery

type MetricQuery struct {
	// AccountId: string, optional
	AccountId terra.StringValue `hcl:"account_id,attr"`
	// Expression: string, optional
	Expression terra.StringValue `hcl:"expression,attr"`
	// Id: string, required
	Id terra.StringValue `hcl:"id,attr" validate:"required"`
	// Label: string, optional
	Label terra.StringValue `hcl:"label,attr"`
	// Period: number, optional
	Period terra.NumberValue `hcl:"period,attr"`
	// ReturnData: bool, optional
	ReturnData terra.BoolValue `hcl:"return_data,attr"`
	// Metric: optional
	Metric *Metric `hcl:"metric,block"`
}

type MetricQueryAttributes

type MetricQueryAttributes struct {
	// contains filtered or unexported fields
}

func (MetricQueryAttributes) AccountId

func (mq MetricQueryAttributes) AccountId() terra.StringValue

func (MetricQueryAttributes) Expression

func (mq MetricQueryAttributes) Expression() terra.StringValue

func (MetricQueryAttributes) Id

func (MetricQueryAttributes) InternalRef

func (mq MetricQueryAttributes) InternalRef() (terra.Reference, error)

func (MetricQueryAttributes) InternalTokens

func (mq MetricQueryAttributes) InternalTokens() (hclwrite.Tokens, error)

func (MetricQueryAttributes) InternalWithRef

func (MetricQueryAttributes) Label

func (MetricQueryAttributes) Metric

func (MetricQueryAttributes) Period

func (MetricQueryAttributes) ReturnData

func (mq MetricQueryAttributes) ReturnData() terra.BoolValue

type MetricQueryState

type MetricQueryState struct {
	AccountId  string        `json:"account_id"`
	Expression string        `json:"expression"`
	Id         string        `json:"id"`
	Label      string        `json:"label"`
	Period     float64       `json:"period"`
	ReturnData bool          `json:"return_data"`
	Metric     []MetricState `json:"metric"`
}

type MetricState

type MetricState struct {
	Dimensions map[string]string `json:"dimensions"`
	MetricName string            `json:"metric_name"`
	Namespace  string            `json:"namespace"`
	Period     float64           `json:"period"`
	Stat       string            `json:"stat"`
	Unit       string            `json:"unit"`
}

Jump to

Keyboard shortcuts

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