amazonka-cloudwatch-2.0: Amazon CloudWatch SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.CloudWatch.DescribeAlarmsForMetric

Description

Retrieves the alarms for the specified metric. To filter the results, specify a statistic, period, or unit.

This operation retrieves only standard alarms that are based on the specified metric. It does not return alarms based on math expressions that use the specified metric, or composite alarms that use the specified metric.

Synopsis

Creating a Request

data DescribeAlarmsForMetric Source #

See: newDescribeAlarmsForMetric smart constructor.

Constructors

DescribeAlarmsForMetric' 

Fields

Instances

Instances details
ToHeaders DescribeAlarmsForMetric Source # 
Instance details

Defined in Amazonka.CloudWatch.DescribeAlarmsForMetric

ToPath DescribeAlarmsForMetric Source # 
Instance details

Defined in Amazonka.CloudWatch.DescribeAlarmsForMetric

ToQuery DescribeAlarmsForMetric Source # 
Instance details

Defined in Amazonka.CloudWatch.DescribeAlarmsForMetric

AWSRequest DescribeAlarmsForMetric Source # 
Instance details

Defined in Amazonka.CloudWatch.DescribeAlarmsForMetric

Generic DescribeAlarmsForMetric Source # 
Instance details

Defined in Amazonka.CloudWatch.DescribeAlarmsForMetric

Associated Types

type Rep DescribeAlarmsForMetric :: Type -> Type #

Read DescribeAlarmsForMetric Source # 
Instance details

Defined in Amazonka.CloudWatch.DescribeAlarmsForMetric

Show DescribeAlarmsForMetric Source # 
Instance details

Defined in Amazonka.CloudWatch.DescribeAlarmsForMetric

NFData DescribeAlarmsForMetric Source # 
Instance details

Defined in Amazonka.CloudWatch.DescribeAlarmsForMetric

Methods

rnf :: DescribeAlarmsForMetric -> () #

Eq DescribeAlarmsForMetric Source # 
Instance details

Defined in Amazonka.CloudWatch.DescribeAlarmsForMetric

Hashable DescribeAlarmsForMetric Source # 
Instance details

Defined in Amazonka.CloudWatch.DescribeAlarmsForMetric

type AWSResponse DescribeAlarmsForMetric Source # 
Instance details

Defined in Amazonka.CloudWatch.DescribeAlarmsForMetric

type Rep DescribeAlarmsForMetric Source # 
Instance details

Defined in Amazonka.CloudWatch.DescribeAlarmsForMetric

type Rep DescribeAlarmsForMetric = D1 ('MetaData "DescribeAlarmsForMetric" "Amazonka.CloudWatch.DescribeAlarmsForMetric" "amazonka-cloudwatch-2.0-9xq2AWTkbYo3pEtgQNn4jD" 'False) (C1 ('MetaCons "DescribeAlarmsForMetric'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "dimensions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Dimension])) :*: (S1 ('MetaSel ('Just "extendedStatistic") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "period") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)))) :*: ((S1 ('MetaSel ('Just "statistic") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Statistic)) :*: S1 ('MetaSel ('Just "unit") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe StandardUnit))) :*: (S1 ('MetaSel ('Just "metricName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "namespace") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))

newDescribeAlarmsForMetric Source #

Create a value of DescribeAlarmsForMetric with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

DescribeAlarmsForMetric, describeAlarmsForMetric_dimensions - The dimensions associated with the metric. If the metric has any associated dimensions, you must specify them in order for the call to succeed.

DescribeAlarmsForMetric, describeAlarmsForMetric_extendedStatistic - The percentile statistic for the metric. Specify a value between p0.0 and p100.

DescribeAlarmsForMetric, describeAlarmsForMetric_period - The period, in seconds, over which the statistic is applied.

DescribeAlarmsForMetric, describeAlarmsForMetric_statistic - The statistic for the metric, other than percentiles. For percentile statistics, use ExtendedStatistics.

DescribeAlarmsForMetric, describeAlarmsForMetric_unit - The unit for the metric.

DescribeAlarmsForMetric, describeAlarmsForMetric_metricName - The name of the metric.

DescribeAlarmsForMetric, describeAlarmsForMetric_namespace - The namespace of the metric.

Request Lenses

describeAlarmsForMetric_dimensions :: Lens' DescribeAlarmsForMetric (Maybe [Dimension]) Source #

The dimensions associated with the metric. If the metric has any associated dimensions, you must specify them in order for the call to succeed.

describeAlarmsForMetric_extendedStatistic :: Lens' DescribeAlarmsForMetric (Maybe Text) Source #

The percentile statistic for the metric. Specify a value between p0.0 and p100.

describeAlarmsForMetric_period :: Lens' DescribeAlarmsForMetric (Maybe Natural) Source #

The period, in seconds, over which the statistic is applied.

describeAlarmsForMetric_statistic :: Lens' DescribeAlarmsForMetric (Maybe Statistic) Source #

The statistic for the metric, other than percentiles. For percentile statistics, use ExtendedStatistics.

Destructuring the Response

data DescribeAlarmsForMetricResponse Source #

See: newDescribeAlarmsForMetricResponse smart constructor.

Constructors

DescribeAlarmsForMetricResponse' 

Fields

Instances

Instances details
Generic DescribeAlarmsForMetricResponse Source # 
Instance details

Defined in Amazonka.CloudWatch.DescribeAlarmsForMetric

Associated Types

type Rep DescribeAlarmsForMetricResponse :: Type -> Type #

Read DescribeAlarmsForMetricResponse Source # 
Instance details

Defined in Amazonka.CloudWatch.DescribeAlarmsForMetric

Show DescribeAlarmsForMetricResponse Source # 
Instance details

Defined in Amazonka.CloudWatch.DescribeAlarmsForMetric

NFData DescribeAlarmsForMetricResponse Source # 
Instance details

Defined in Amazonka.CloudWatch.DescribeAlarmsForMetric

Eq DescribeAlarmsForMetricResponse Source # 
Instance details

Defined in Amazonka.CloudWatch.DescribeAlarmsForMetric

type Rep DescribeAlarmsForMetricResponse Source # 
Instance details

Defined in Amazonka.CloudWatch.DescribeAlarmsForMetric

type Rep DescribeAlarmsForMetricResponse = D1 ('MetaData "DescribeAlarmsForMetricResponse" "Amazonka.CloudWatch.DescribeAlarmsForMetric" "amazonka-cloudwatch-2.0-9xq2AWTkbYo3pEtgQNn4jD" 'False) (C1 ('MetaCons "DescribeAlarmsForMetricResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "metricAlarms") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [MetricAlarm])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newDescribeAlarmsForMetricResponse Source #

Create a value of DescribeAlarmsForMetricResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:metricAlarms:DescribeAlarmsForMetricResponse', describeAlarmsForMetricResponse_metricAlarms - The information for each alarm with the specified metric.

$sel:httpStatus:DescribeAlarmsForMetricResponse', describeAlarmsForMetricResponse_httpStatus - The response's http status code.

Response Lenses

describeAlarmsForMetricResponse_metricAlarms :: Lens' DescribeAlarmsForMetricResponse (Maybe [MetricAlarm]) Source #

The information for each alarm with the specified metric.