Help us shape the future of Go! Take the 2026 Go Developer Survey

cloudwatch

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client calls cloudwatch over its wire protocol.

func NewFromConfig

func NewFromConfig(cfg aws.Config, optFns ...func(*Options)) *Client

NewFromConfig returns a Client for cfg.

func (*Client) DeleteAlarms

func (c *Client) DeleteAlarms(ctx context.Context, in *DeleteAlarmsInput) (*DeleteAlarmsOutput, error)

DeleteAlarms calls the DeleteAlarms operation.

func (*Client) DescribeAlarms

func (c *Client) DescribeAlarms(ctx context.Context, in *DescribeAlarmsInput) (*DescribeAlarmsOutput, error)

DescribeAlarms calls the DescribeAlarms operation.

func (*Client) ListMetrics

func (c *Client) ListMetrics(ctx context.Context, in *ListMetricsInput) (*ListMetricsOutput, error)

ListMetrics calls the ListMetrics operation.

func (*Client) ListTagsForResource

func (c *Client) ListTagsForResource(ctx context.Context, in *ListTagsForResourceInput) (*ListTagsForResourceOutput, error)

ListTagsForResource calls the ListTagsForResource operation.

func (*Client) PutMetricAlarm

func (c *Client) PutMetricAlarm(ctx context.Context, in *PutMetricAlarmInput) (*PutMetricAlarmOutput, error)

PutMetricAlarm calls the PutMetricAlarm operation.

func (*Client) PutMetricData

func (c *Client) PutMetricData(ctx context.Context, in *PutMetricDataInput) (*PutMetricDataOutput, error)

PutMetricData calls the PutMetricData operation.

func (*Client) SetAlarmState

func (c *Client) SetAlarmState(ctx context.Context, in *SetAlarmStateInput) (*SetAlarmStateOutput, error)

SetAlarmState calls the SetAlarmState operation.

func (*Client) TagResource

func (c *Client) TagResource(ctx context.Context, in *TagResourceInput) (*TagResourceOutput, error)

TagResource calls the TagResource operation.

func (*Client) UntagResource

func (c *Client) UntagResource(ctx context.Context, in *UntagResourceInput) (*UntagResourceOutput, error)

UntagResource calls the UntagResource operation.

type DeleteAlarmsInput

type DeleteAlarmsInput struct {
	AlarmNames []string
}

type DeleteAlarmsOutput

type DeleteAlarmsOutput struct {
}

type DescribeAlarmsInput

type DescribeAlarmsInput struct {
	ActionPrefix        *string
	AlarmNamePrefix     *string
	AlarmNames          []string
	AlarmTypes          []types.AlarmType
	ChildrenOfAlarmName *string
	MaxRecords          *int32
	NextToken           *string
	ParentsOfAlarmName  *string
	StateValue          types.StateValue `json:",omitempty"`
}

type DescribeAlarmsOutput

type DescribeAlarmsOutput struct {
	CompositeAlarms []types.CompositeAlarm
	LogAlarms       []types.LogAlarm
	MetricAlarms    []MetricAlarm
	NextToken       *string
}

type DescribeAlarmsPaginator

type DescribeAlarmsPaginator = awswire.Paginator[DescribeAlarmsInput, DescribeAlarmsOutput]

DescribeAlarmsPaginator pages through DescribeAlarms.

func NewDescribeAlarmsPaginator

func NewDescribeAlarmsPaginator(c *Client, in *DescribeAlarmsInput) *DescribeAlarmsPaginator

NewDescribeAlarmsPaginator returns a paginator over DescribeAlarms.

type ListMetricsInput

type ListMetricsInput struct {
	Dimensions            []types.DimensionFilter
	IncludeLinkedAccounts *bool
	MetricName            *string
	Namespace             *string
	NextToken             *string
	OwningAccount         *string
	RecentlyActive        types.RecentlyActive `json:",omitempty"`
}

type ListMetricsOutput

type ListMetricsOutput struct {
	Metrics        []types.Metric
	NextToken      *string
	OwningAccounts []string
}

type ListTagsForResourceInput

type ListTagsForResourceInput struct {
	ResourceARN *string
}

type ListTagsForResourceOutput

type ListTagsForResourceOutput struct {
	Tags []types.Tag
}

type MetricAlarm

type MetricAlarm struct {
	ActionsEnabled                     *bool
	AlarmActions                       []string
	AlarmArn                           *string
	AlarmConfigurationUpdatedTimestamp *time.Time
	AlarmDescription                   *string
	AlarmName                          *string
	ComparisonOperator                 types.ComparisonOperator
	DatapointsToAlarm                  *int32
	Dimensions                         []types.Dimension
	EvaluateLowSampleCountPercentile   *string
	EvaluationCriteria                 map[string]any
	EvaluationInterval                 *int32
	EvaluationPeriods                  *int32
	EvaluationState                    types.EvaluationState
	EvaluationWindow                   map[string]any
	ExtendedStatistic                  *string
	InsufficientDataActions            []string
	MetricName                         *string
	Metrics                            []types.MetricDataQuery
	Namespace                          *string
	OKActions                          []string
	Period                             *int32
	StateReason                        *string
	StateReasonData                    *string
	StateTransitionedTimestamp         *time.Time
	StateUpdatedTimestamp              *time.Time
	StateValue                         types.StateValue
	Statistic                          types.Statistic
	Threshold                          *float64
	ThresholdMetricId                  *string
	TreatMissingData                   *string
	Unit                               types.StandardUnit
	WarmUpConfiguration                *types.WarmUpConfiguration
}

type Options

type Options = awswire.Options

Options configures a Client.

type PutMetricAlarmInput

type PutMetricAlarmInput struct {
	AlarmName                        *string
	ActionsEnabled                   *bool
	AlarmActions                     []string
	AlarmDescription                 *string
	ComparisonOperator               types.ComparisonOperator `json:",omitempty"`
	DatapointsToAlarm                *int32
	Dimensions                       []types.Dimension
	EvaluateLowSampleCountPercentile *string
	EvaluationCriteria               map[string]any
	EvaluationInterval               *int32
	EvaluationPeriods                *int32
	EvaluationWindow                 map[string]any
	ExtendedStatistic                *string
	InsufficientDataActions          []string
	MetricName                       *string
	Metrics                          []types.MetricDataQuery
	Namespace                        *string
	OKActions                        []string
	Period                           *int32
	Statistic                        types.Statistic `json:",omitempty"`
	Tags                             []types.Tag
	Threshold                        *float64
	ThresholdMetricId                *string
	TreatMissingData                 *string
	Unit                             types.StandardUnit `json:",omitempty"`
	WarmUpConfiguration              *types.WarmUpConfiguration
}

type PutMetricAlarmOutput

type PutMetricAlarmOutput struct {
}

type PutMetricDataInput

type PutMetricDataInput struct {
	Namespace              *string
	EntityMetricData       []types.EntityMetricData
	MetricData             []types.MetricDatum
	StrictEntityValidation *bool
}

type PutMetricDataOutput

type PutMetricDataOutput struct {
}

type SetAlarmStateInput

type SetAlarmStateInput struct {
	AlarmName       *string
	StateReason     *string
	StateValue      types.StateValue `json:",omitempty"`
	StateReasonData *string
}

type SetAlarmStateOutput

type SetAlarmStateOutput struct {
}

type TagResourceInput

type TagResourceInput struct {
	ResourceARN *string
	Tags        []types.Tag
}

type TagResourceOutput

type TagResourceOutput struct {
}

type UntagResourceInput

type UntagResourceInput struct {
	ResourceARN *string
	TagKeys     []string
}

type UntagResourceOutput

type UntagResourceOutput struct {
}

Jump to

Keyboard shortcuts

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