libZSservicesZSamazonka-cloudwatchZSamazonka-cloudwatch
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

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
Eq DescribeAlarmsForMetric Source # 
Instance details

Defined in Amazonka.CloudWatch.DescribeAlarmsForMetric

Read DescribeAlarmsForMetric Source # 
Instance details

Defined in Amazonka.CloudWatch.DescribeAlarmsForMetric

Show 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 #

NFData DescribeAlarmsForMetric Source # 
Instance details

Defined in Amazonka.CloudWatch.DescribeAlarmsForMetric

Methods

rnf :: DescribeAlarmsForMetric -> () #

Hashable DescribeAlarmsForMetric Source # 
Instance details

Defined in Amazonka.CloudWatch.DescribeAlarmsForMetric

AWSRequest DescribeAlarmsForMetric Source # 
Instance details

Defined in Amazonka.CloudWatch.DescribeAlarmsForMetric

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

type Rep DescribeAlarmsForMetric Source # 
Instance details

Defined in Amazonka.CloudWatch.DescribeAlarmsForMetric

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

Defined in Amazonka.CloudWatch.DescribeAlarmsForMetric

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:

$sel:period:DescribeAlarmsForMetric', describeAlarmsForMetric_period - The period, in seconds, over which the statistic is applied.

$sel:dimensions: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.

$sel:unit:DescribeAlarmsForMetric', describeAlarmsForMetric_unit - The unit for the metric.

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

$sel:extendedStatistic:DescribeAlarmsForMetric', describeAlarmsForMetric_extendedStatistic - The percentile statistic for the metric. Specify a value between p0.0 and p100.

$sel:metricName:DescribeAlarmsForMetric', describeAlarmsForMetric_metricName - The name of the metric.

$sel:namespace:DescribeAlarmsForMetric', describeAlarmsForMetric_namespace - The namespace of the metric.

Request Lenses

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

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

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_statistic :: Lens' DescribeAlarmsForMetric (Maybe Statistic) Source #

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

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

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

Destructuring the Response

data DescribeAlarmsForMetricResponse Source #

See: newDescribeAlarmsForMetricResponse smart constructor.

Constructors

DescribeAlarmsForMetricResponse' 

Fields

Instances

Instances details
Eq DescribeAlarmsForMetricResponse Source # 
Instance details

Defined in Amazonka.CloudWatch.DescribeAlarmsForMetric

Read DescribeAlarmsForMetricResponse Source # 
Instance details

Defined in Amazonka.CloudWatch.DescribeAlarmsForMetric

Show DescribeAlarmsForMetricResponse Source # 
Instance details

Defined in Amazonka.CloudWatch.DescribeAlarmsForMetric

Generic DescribeAlarmsForMetricResponse Source # 
Instance details

Defined in Amazonka.CloudWatch.DescribeAlarmsForMetric

Associated Types

type Rep DescribeAlarmsForMetricResponse :: Type -> Type #

NFData 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" "libZSservicesZSamazonka-cloudwatchZSamazonka-cloudwatch" '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.