CreateEnableMetricAlarm

command
v0.0.0-...-9d6317c Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

README

CreateEnableMetricAlarmv2.go

This example enables the specified Amazon CloudWatch alarm.

go run CreateEnableMetricAlarmv2.go -n INSTANCE-NAME -i INSTANCE-ID -a ALARM-NAME

  • INSTANCE-NAME is the name of the Amazon Elastic Compute Cloud (Amazon EC2) instance for which the alarm is enabled.
  • INSTANCE-ID is the ID of the Amazon EC2 instance for which the alarm is enabled.
  • ALARM-NAME is the name of the alarm.

The unit test accepts similar values in config.json.

Documentation

Overview

Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX - License - Identifier: Apache - 2.0 snippet-start:[cloudwatch.go-v2.CreateEnableMetricAlarm]

Jump to

Keyboard shortcuts

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