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.Types

Description

 
Synopsis

Service Configuration

defaultService :: Service Source #

API version 2010-08-01 of the Amazon CloudWatch SDK configuration.

Errors

_LimitExceededFault :: AsError a => Getting (First ServiceError) a ServiceError Source #

The quota for alarms for this customer has already been reached.

_DashboardNotFoundError :: AsError a => Getting (First ServiceError) a ServiceError Source #

The specified dashboard does not exist.

_InvalidNextToken :: AsError a => Getting (First ServiceError) a ServiceError Source #

The next token specified is invalid.

_InternalServiceFault :: AsError a => Getting (First ServiceError) a ServiceError Source #

Request processing has failed due to some unknown error, exception, or failure.

_DashboardInvalidInputError :: AsError a => Getting (First ServiceError) a ServiceError Source #

Some part of the dashboard data is invalid.

_InvalidParameterValueException :: AsError a => Getting (First ServiceError) a ServiceError Source #

The value of an input parameter is bad or out-of-range.

_ConcurrentModificationException :: AsError a => Getting (First ServiceError) a ServiceError Source #

More than one process tried to modify a resource at the same time.

_InvalidFormatFault :: AsError a => Getting (First ServiceError) a ServiceError Source #

Data was not syntactically valid JSON.

_MissingRequiredParameterException :: AsError a => Getting (First ServiceError) a ServiceError Source #

An input parameter that is required is missing.

_ResourceNotFoundException :: AsError a => Getting (First ServiceError) a ServiceError Source #

The named resource does not exist.

_InvalidParameterCombinationException :: AsError a => Getting (First ServiceError) a ServiceError Source #

Parameters were used together that cannot be used together.

_LimitExceededException :: AsError a => Getting (First ServiceError) a ServiceError Source #

The operation exceeded one or more limits.

_ResourceNotFound :: AsError a => Getting (First ServiceError) a ServiceError Source #

The named resource does not exist.

AlarmType

newtype AlarmType Source #

Constructors

AlarmType' 

Fields

Bundled Patterns

pattern AlarmType_CompositeAlarm :: AlarmType 
pattern AlarmType_MetricAlarm :: AlarmType 

Instances

Instances details
Eq AlarmType Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.AlarmType

Ord AlarmType Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.AlarmType

Read AlarmType Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.AlarmType

Show AlarmType Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.AlarmType

Generic AlarmType Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.AlarmType

Associated Types

type Rep AlarmType :: Type -> Type #

NFData AlarmType Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.AlarmType

Methods

rnf :: AlarmType -> () #

Hashable AlarmType Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.AlarmType

ToJSON AlarmType Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.AlarmType

ToJSONKey AlarmType Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.AlarmType

FromJSON AlarmType Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.AlarmType

FromJSONKey AlarmType Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.AlarmType

ToLog AlarmType Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.AlarmType

ToHeader AlarmType Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.AlarmType

ToQuery AlarmType Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.AlarmType

FromXML AlarmType Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.AlarmType

ToXML AlarmType Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.AlarmType

Methods

toXML :: AlarmType -> XML #

ToByteString AlarmType Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.AlarmType

Methods

toBS :: AlarmType -> ByteString #

FromText AlarmType Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.AlarmType

ToText AlarmType Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.AlarmType

Methods

toText :: AlarmType -> Text #

type Rep AlarmType Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.AlarmType

type Rep AlarmType = D1 ('MetaData "AlarmType" "Amazonka.CloudWatch.Types.AlarmType" "libZSservicesZSamazonka-cloudwatchZSamazonka-cloudwatch" 'True) (C1 ('MetaCons "AlarmType'" 'PrefixI 'True) (S1 ('MetaSel ('Just "fromAlarmType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

AnomalyDetectorStateValue

newtype AnomalyDetectorStateValue Source #

Instances

Instances details
Eq AnomalyDetectorStateValue Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.AnomalyDetectorStateValue

Ord AnomalyDetectorStateValue Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.AnomalyDetectorStateValue

Read AnomalyDetectorStateValue Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.AnomalyDetectorStateValue

Show AnomalyDetectorStateValue Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.AnomalyDetectorStateValue

Generic AnomalyDetectorStateValue Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.AnomalyDetectorStateValue

Associated Types

type Rep AnomalyDetectorStateValue :: Type -> Type #

NFData AnomalyDetectorStateValue Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.AnomalyDetectorStateValue

Hashable AnomalyDetectorStateValue Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.AnomalyDetectorStateValue

ToJSON AnomalyDetectorStateValue Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.AnomalyDetectorStateValue

ToJSONKey AnomalyDetectorStateValue Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.AnomalyDetectorStateValue

FromJSON AnomalyDetectorStateValue Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.AnomalyDetectorStateValue

FromJSONKey AnomalyDetectorStateValue Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.AnomalyDetectorStateValue

ToLog AnomalyDetectorStateValue Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.AnomalyDetectorStateValue

ToHeader AnomalyDetectorStateValue Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.AnomalyDetectorStateValue

ToQuery AnomalyDetectorStateValue Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.AnomalyDetectorStateValue

FromXML AnomalyDetectorStateValue Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.AnomalyDetectorStateValue

ToXML AnomalyDetectorStateValue Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.AnomalyDetectorStateValue

ToByteString AnomalyDetectorStateValue Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.AnomalyDetectorStateValue

FromText AnomalyDetectorStateValue Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.AnomalyDetectorStateValue

ToText AnomalyDetectorStateValue Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.AnomalyDetectorStateValue

type Rep AnomalyDetectorStateValue Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.AnomalyDetectorStateValue

type Rep AnomalyDetectorStateValue = D1 ('MetaData "AnomalyDetectorStateValue" "Amazonka.CloudWatch.Types.AnomalyDetectorStateValue" "libZSservicesZSamazonka-cloudwatchZSamazonka-cloudwatch" 'True) (C1 ('MetaCons "AnomalyDetectorStateValue'" 'PrefixI 'True) (S1 ('MetaSel ('Just "fromAnomalyDetectorStateValue") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

ComparisonOperator

newtype ComparisonOperator Source #

Instances

Instances details
Eq ComparisonOperator Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.ComparisonOperator

Ord ComparisonOperator Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.ComparisonOperator

Read ComparisonOperator Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.ComparisonOperator

Show ComparisonOperator Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.ComparisonOperator

Generic ComparisonOperator Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.ComparisonOperator

Associated Types

type Rep ComparisonOperator :: Type -> Type #

NFData ComparisonOperator Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.ComparisonOperator

Methods

rnf :: ComparisonOperator -> () #

Hashable ComparisonOperator Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.ComparisonOperator

ToJSON ComparisonOperator Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.ComparisonOperator

ToJSONKey ComparisonOperator Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.ComparisonOperator

FromJSON ComparisonOperator Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.ComparisonOperator

FromJSONKey ComparisonOperator Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.ComparisonOperator

ToLog ComparisonOperator Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.ComparisonOperator

ToHeader ComparisonOperator Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.ComparisonOperator

ToQuery ComparisonOperator Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.ComparisonOperator

FromXML ComparisonOperator Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.ComparisonOperator

ToXML ComparisonOperator Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.ComparisonOperator

ToByteString ComparisonOperator Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.ComparisonOperator

FromText ComparisonOperator Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.ComparisonOperator

ToText ComparisonOperator Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.ComparisonOperator

type Rep ComparisonOperator Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.ComparisonOperator

type Rep ComparisonOperator = D1 ('MetaData "ComparisonOperator" "Amazonka.CloudWatch.Types.ComparisonOperator" "libZSservicesZSamazonka-cloudwatchZSamazonka-cloudwatch" 'True) (C1 ('MetaCons "ComparisonOperator'" 'PrefixI 'True) (S1 ('MetaSel ('Just "fromComparisonOperator") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

HistoryItemType

newtype HistoryItemType Source #

Constructors

HistoryItemType' 

Instances

Instances details
Eq HistoryItemType Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.HistoryItemType

Ord HistoryItemType Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.HistoryItemType

Read HistoryItemType Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.HistoryItemType

Show HistoryItemType Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.HistoryItemType

Generic HistoryItemType Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.HistoryItemType

Associated Types

type Rep HistoryItemType :: Type -> Type #

NFData HistoryItemType Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.HistoryItemType

Methods

rnf :: HistoryItemType -> () #

Hashable HistoryItemType Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.HistoryItemType

ToJSON HistoryItemType Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.HistoryItemType

ToJSONKey HistoryItemType Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.HistoryItemType

FromJSON HistoryItemType Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.HistoryItemType

FromJSONKey HistoryItemType Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.HistoryItemType

ToLog HistoryItemType Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.HistoryItemType

ToHeader HistoryItemType Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.HistoryItemType

ToQuery HistoryItemType Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.HistoryItemType

FromXML HistoryItemType Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.HistoryItemType

ToXML HistoryItemType Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.HistoryItemType

Methods

toXML :: HistoryItemType -> XML #

ToByteString HistoryItemType Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.HistoryItemType

FromText HistoryItemType Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.HistoryItemType

ToText HistoryItemType Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.HistoryItemType

type Rep HistoryItemType Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.HistoryItemType

type Rep HistoryItemType = D1 ('MetaData "HistoryItemType" "Amazonka.CloudWatch.Types.HistoryItemType" "libZSservicesZSamazonka-cloudwatchZSamazonka-cloudwatch" 'True) (C1 ('MetaCons "HistoryItemType'" 'PrefixI 'True) (S1 ('MetaSel ('Just "fromHistoryItemType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

MetricStreamOutputFormat

newtype MetricStreamOutputFormat Source #

Instances

Instances details
Eq MetricStreamOutputFormat Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.MetricStreamOutputFormat

Ord MetricStreamOutputFormat Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.MetricStreamOutputFormat

Read MetricStreamOutputFormat Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.MetricStreamOutputFormat

Show MetricStreamOutputFormat Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.MetricStreamOutputFormat

Generic MetricStreamOutputFormat Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.MetricStreamOutputFormat

Associated Types

type Rep MetricStreamOutputFormat :: Type -> Type #

NFData MetricStreamOutputFormat Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.MetricStreamOutputFormat

Hashable MetricStreamOutputFormat Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.MetricStreamOutputFormat

ToJSON MetricStreamOutputFormat Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.MetricStreamOutputFormat

ToJSONKey MetricStreamOutputFormat Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.MetricStreamOutputFormat

FromJSON MetricStreamOutputFormat Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.MetricStreamOutputFormat

FromJSONKey MetricStreamOutputFormat Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.MetricStreamOutputFormat

ToLog MetricStreamOutputFormat Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.MetricStreamOutputFormat

ToHeader MetricStreamOutputFormat Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.MetricStreamOutputFormat

ToQuery MetricStreamOutputFormat Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.MetricStreamOutputFormat

FromXML MetricStreamOutputFormat Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.MetricStreamOutputFormat

ToXML MetricStreamOutputFormat Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.MetricStreamOutputFormat

ToByteString MetricStreamOutputFormat Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.MetricStreamOutputFormat

FromText MetricStreamOutputFormat Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.MetricStreamOutputFormat

ToText MetricStreamOutputFormat Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.MetricStreamOutputFormat

type Rep MetricStreamOutputFormat Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.MetricStreamOutputFormat

type Rep MetricStreamOutputFormat = D1 ('MetaData "MetricStreamOutputFormat" "Amazonka.CloudWatch.Types.MetricStreamOutputFormat" "libZSservicesZSamazonka-cloudwatchZSamazonka-cloudwatch" 'True) (C1 ('MetaCons "MetricStreamOutputFormat'" 'PrefixI 'True) (S1 ('MetaSel ('Just "fromMetricStreamOutputFormat") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

RecentlyActive

newtype RecentlyActive Source #

Constructors

RecentlyActive' 

Bundled Patterns

pattern RecentlyActive_PT3H :: RecentlyActive 

Instances

Instances details
Eq RecentlyActive Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.RecentlyActive

Ord RecentlyActive Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.RecentlyActive

Read RecentlyActive Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.RecentlyActive

Show RecentlyActive Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.RecentlyActive

Generic RecentlyActive Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.RecentlyActive

Associated Types

type Rep RecentlyActive :: Type -> Type #

NFData RecentlyActive Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.RecentlyActive

Methods

rnf :: RecentlyActive -> () #

Hashable RecentlyActive Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.RecentlyActive

ToJSON RecentlyActive Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.RecentlyActive

ToJSONKey RecentlyActive Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.RecentlyActive

FromJSON RecentlyActive Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.RecentlyActive

FromJSONKey RecentlyActive Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.RecentlyActive

ToLog RecentlyActive Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.RecentlyActive

ToHeader RecentlyActive Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.RecentlyActive

ToQuery RecentlyActive Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.RecentlyActive

FromXML RecentlyActive Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.RecentlyActive

ToXML RecentlyActive Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.RecentlyActive

Methods

toXML :: RecentlyActive -> XML #

ToByteString RecentlyActive Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.RecentlyActive

FromText RecentlyActive Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.RecentlyActive

ToText RecentlyActive Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.RecentlyActive

type Rep RecentlyActive Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.RecentlyActive

type Rep RecentlyActive = D1 ('MetaData "RecentlyActive" "Amazonka.CloudWatch.Types.RecentlyActive" "libZSservicesZSamazonka-cloudwatchZSamazonka-cloudwatch" 'True) (C1 ('MetaCons "RecentlyActive'" 'PrefixI 'True) (S1 ('MetaSel ('Just "fromRecentlyActive") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

ScanBy

newtype ScanBy Source #

Constructors

ScanBy' 

Fields

Bundled Patterns

pattern ScanBy_TimestampAscending :: ScanBy 
pattern ScanBy_TimestampDescending :: ScanBy 

Instances

Instances details
Eq ScanBy Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.ScanBy

Methods

(==) :: ScanBy -> ScanBy -> Bool #

(/=) :: ScanBy -> ScanBy -> Bool #

Ord ScanBy Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.ScanBy

Read ScanBy Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.ScanBy

Show ScanBy Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.ScanBy

Generic ScanBy Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.ScanBy

Associated Types

type Rep ScanBy :: Type -> Type #

Methods

from :: ScanBy -> Rep ScanBy x #

to :: Rep ScanBy x -> ScanBy #

NFData ScanBy Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.ScanBy

Methods

rnf :: ScanBy -> () #

Hashable ScanBy Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.ScanBy

Methods

hashWithSalt :: Int -> ScanBy -> Int #

hash :: ScanBy -> Int #

ToJSON ScanBy Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.ScanBy

ToJSONKey ScanBy Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.ScanBy

FromJSON ScanBy Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.ScanBy

FromJSONKey ScanBy Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.ScanBy

ToLog ScanBy Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.ScanBy

ToHeader ScanBy Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.ScanBy

Methods

toHeader :: HeaderName -> ScanBy -> [Header] #

ToQuery ScanBy Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.ScanBy

FromXML ScanBy Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.ScanBy

ToXML ScanBy Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.ScanBy

Methods

toXML :: ScanBy -> XML #

ToByteString ScanBy Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.ScanBy

Methods

toBS :: ScanBy -> ByteString #

FromText ScanBy Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.ScanBy

ToText ScanBy Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.ScanBy

Methods

toText :: ScanBy -> Text #

type Rep ScanBy Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.ScanBy

type Rep ScanBy = D1 ('MetaData "ScanBy" "Amazonka.CloudWatch.Types.ScanBy" "libZSservicesZSamazonka-cloudwatchZSamazonka-cloudwatch" 'True) (C1 ('MetaCons "ScanBy'" 'PrefixI 'True) (S1 ('MetaSel ('Just "fromScanBy") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

StandardUnit

newtype StandardUnit Source #

Constructors

StandardUnit' 

Instances

Instances details
Eq StandardUnit Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.StandardUnit

Ord StandardUnit Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.StandardUnit

Read StandardUnit Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.StandardUnit

Show StandardUnit Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.StandardUnit

Generic StandardUnit Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.StandardUnit

Associated Types

type Rep StandardUnit :: Type -> Type #

NFData StandardUnit Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.StandardUnit

Methods

rnf :: StandardUnit -> () #

Hashable StandardUnit Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.StandardUnit

ToJSON StandardUnit Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.StandardUnit

ToJSONKey StandardUnit Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.StandardUnit

FromJSON StandardUnit Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.StandardUnit

FromJSONKey StandardUnit Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.StandardUnit

ToLog StandardUnit Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.StandardUnit

ToHeader StandardUnit Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.StandardUnit

ToQuery StandardUnit Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.StandardUnit

FromXML StandardUnit Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.StandardUnit

ToXML StandardUnit Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.StandardUnit

Methods

toXML :: StandardUnit -> XML #

ToByteString StandardUnit Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.StandardUnit

FromText StandardUnit Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.StandardUnit

ToText StandardUnit Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.StandardUnit

Methods

toText :: StandardUnit -> Text #

type Rep StandardUnit Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.StandardUnit

type Rep StandardUnit = D1 ('MetaData "StandardUnit" "Amazonka.CloudWatch.Types.StandardUnit" "libZSservicesZSamazonka-cloudwatchZSamazonka-cloudwatch" 'True) (C1 ('MetaCons "StandardUnit'" 'PrefixI 'True) (S1 ('MetaSel ('Just "fromStandardUnit") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

StateValue

newtype StateValue Source #

Constructors

StateValue' 

Fields

Bundled Patterns

pattern StateValue_ALARM :: StateValue 
pattern StateValue_INSUFFICIENT_DATA :: StateValue 
pattern StateValue_OK :: StateValue 

Instances

Instances details
Eq StateValue Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.StateValue

Ord StateValue Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.StateValue

Read StateValue Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.StateValue

Show StateValue Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.StateValue

Generic StateValue Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.StateValue

Associated Types

type Rep StateValue :: Type -> Type #

NFData StateValue Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.StateValue

Methods

rnf :: StateValue -> () #

Hashable StateValue Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.StateValue

ToJSON StateValue Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.StateValue

ToJSONKey StateValue Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.StateValue

FromJSON StateValue Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.StateValue

FromJSONKey StateValue Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.StateValue

ToLog StateValue Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.StateValue

ToHeader StateValue Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.StateValue

ToQuery StateValue Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.StateValue

FromXML StateValue Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.StateValue

ToXML StateValue Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.StateValue

Methods

toXML :: StateValue -> XML #

ToByteString StateValue Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.StateValue

FromText StateValue Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.StateValue

ToText StateValue Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.StateValue

Methods

toText :: StateValue -> Text #

type Rep StateValue Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.StateValue

type Rep StateValue = D1 ('MetaData "StateValue" "Amazonka.CloudWatch.Types.StateValue" "libZSservicesZSamazonka-cloudwatchZSamazonka-cloudwatch" 'True) (C1 ('MetaCons "StateValue'" 'PrefixI 'True) (S1 ('MetaSel ('Just "fromStateValue") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

Statistic

newtype Statistic Source #

Constructors

Statistic' 

Fields

Instances

Instances details
Eq Statistic Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.Statistic

Ord Statistic Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.Statistic

Read Statistic Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.Statistic

Show Statistic Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.Statistic

Generic Statistic Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.Statistic

Associated Types

type Rep Statistic :: Type -> Type #

NFData Statistic Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.Statistic

Methods

rnf :: Statistic -> () #

Hashable Statistic Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.Statistic

ToJSON Statistic Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.Statistic

ToJSONKey Statistic Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.Statistic

FromJSON Statistic Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.Statistic

FromJSONKey Statistic Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.Statistic

ToLog Statistic Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.Statistic

ToHeader Statistic Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.Statistic

ToQuery Statistic Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.Statistic

FromXML Statistic Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.Statistic

ToXML Statistic Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.Statistic

Methods

toXML :: Statistic -> XML #

ToByteString Statistic Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.Statistic

Methods

toBS :: Statistic -> ByteString #

FromText Statistic Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.Statistic

ToText Statistic Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.Statistic

Methods

toText :: Statistic -> Text #

type Rep Statistic Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.Statistic

type Rep Statistic = D1 ('MetaData "Statistic" "Amazonka.CloudWatch.Types.Statistic" "libZSservicesZSamazonka-cloudwatchZSamazonka-cloudwatch" 'True) (C1 ('MetaCons "Statistic'" 'PrefixI 'True) (S1 ('MetaSel ('Just "fromStatistic") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

StatusCode

newtype StatusCode Source #

Constructors

StatusCode' 

Fields

Instances

Instances details
Eq StatusCode Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.StatusCode

Ord StatusCode Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.StatusCode

Read StatusCode Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.StatusCode

Show StatusCode Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.StatusCode

Generic StatusCode Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.StatusCode

Associated Types

type Rep StatusCode :: Type -> Type #

NFData StatusCode Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.StatusCode

Methods

rnf :: StatusCode -> () #

Hashable StatusCode Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.StatusCode

ToJSON StatusCode Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.StatusCode

ToJSONKey StatusCode Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.StatusCode

FromJSON StatusCode Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.StatusCode

FromJSONKey StatusCode Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.StatusCode

ToLog StatusCode Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.StatusCode

ToHeader StatusCode Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.StatusCode

ToQuery StatusCode Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.StatusCode

FromXML StatusCode Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.StatusCode

ToXML StatusCode Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.StatusCode

Methods

toXML :: StatusCode -> XML #

ToByteString StatusCode Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.StatusCode

FromText StatusCode Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.StatusCode

ToText StatusCode Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.StatusCode

Methods

toText :: StatusCode -> Text #

type Rep StatusCode Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.StatusCode

type Rep StatusCode = D1 ('MetaData "StatusCode" "Amazonka.CloudWatch.Types.StatusCode" "libZSservicesZSamazonka-cloudwatchZSamazonka-cloudwatch" 'True) (C1 ('MetaCons "StatusCode'" 'PrefixI 'True) (S1 ('MetaSel ('Just "fromStatusCode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

AlarmHistoryItem

data AlarmHistoryItem Source #

Represents the history of a specific alarm.

See: newAlarmHistoryItem smart constructor.

Constructors

AlarmHistoryItem' 

Fields

Instances

Instances details
Eq AlarmHistoryItem Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.AlarmHistoryItem

Read AlarmHistoryItem Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.AlarmHistoryItem

Show AlarmHistoryItem Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.AlarmHistoryItem

Generic AlarmHistoryItem Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.AlarmHistoryItem

Associated Types

type Rep AlarmHistoryItem :: Type -> Type #

NFData AlarmHistoryItem Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.AlarmHistoryItem

Methods

rnf :: AlarmHistoryItem -> () #

Hashable AlarmHistoryItem Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.AlarmHistoryItem

FromXML AlarmHistoryItem Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.AlarmHistoryItem

type Rep AlarmHistoryItem Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.AlarmHistoryItem

type Rep AlarmHistoryItem = D1 ('MetaData "AlarmHistoryItem" "Amazonka.CloudWatch.Types.AlarmHistoryItem" "libZSservicesZSamazonka-cloudwatchZSamazonka-cloudwatch" 'False) (C1 ('MetaCons "AlarmHistoryItem'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "alarmName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "historyItemType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe HistoryItemType)) :*: S1 ('MetaSel ('Just "historyData") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: (S1 ('MetaSel ('Just "alarmType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe AlarmType)) :*: (S1 ('MetaSel ('Just "historySummary") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "timestamp") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ISO8601))))))

newAlarmHistoryItem :: AlarmHistoryItem Source #

Create a value of AlarmHistoryItem 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:alarmName:AlarmHistoryItem', alarmHistoryItem_alarmName - The descriptive name for the alarm.

$sel:historyItemType:AlarmHistoryItem', alarmHistoryItem_historyItemType - The type of alarm history item.

$sel:historyData:AlarmHistoryItem', alarmHistoryItem_historyData - Data about the alarm, in JSON format.

$sel:alarmType:AlarmHistoryItem', alarmHistoryItem_alarmType - The type of alarm, either metric alarm or composite alarm.

$sel:historySummary:AlarmHistoryItem', alarmHistoryItem_historySummary - A summary of the alarm history, in text format.

$sel:timestamp:AlarmHistoryItem', alarmHistoryItem_timestamp - The time stamp for the alarm history item.

alarmHistoryItem_alarmName :: Lens' AlarmHistoryItem (Maybe Text) Source #

The descriptive name for the alarm.

alarmHistoryItem_historyData :: Lens' AlarmHistoryItem (Maybe Text) Source #

Data about the alarm, in JSON format.

alarmHistoryItem_alarmType :: Lens' AlarmHistoryItem (Maybe AlarmType) Source #

The type of alarm, either metric alarm or composite alarm.

alarmHistoryItem_historySummary :: Lens' AlarmHistoryItem (Maybe Text) Source #

A summary of the alarm history, in text format.

alarmHistoryItem_timestamp :: Lens' AlarmHistoryItem (Maybe UTCTime) Source #

The time stamp for the alarm history item.

AnomalyDetector

data AnomalyDetector Source #

An anomaly detection model associated with a particular CloudWatch metric and statistic. You can use the model to display a band of expected normal values when the metric is graphed.

See: newAnomalyDetector smart constructor.

Constructors

AnomalyDetector' 

Fields

Instances

Instances details
Eq AnomalyDetector Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.AnomalyDetector

Read AnomalyDetector Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.AnomalyDetector

Show AnomalyDetector Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.AnomalyDetector

Generic AnomalyDetector Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.AnomalyDetector

Associated Types

type Rep AnomalyDetector :: Type -> Type #

NFData AnomalyDetector Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.AnomalyDetector

Methods

rnf :: AnomalyDetector -> () #

Hashable AnomalyDetector Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.AnomalyDetector

FromXML AnomalyDetector Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.AnomalyDetector

type Rep AnomalyDetector Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.AnomalyDetector

type Rep AnomalyDetector = D1 ('MetaData "AnomalyDetector" "Amazonka.CloudWatch.Types.AnomalyDetector" "libZSservicesZSamazonka-cloudwatchZSamazonka-cloudwatch" 'False) (C1 ('MetaCons "AnomalyDetector'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "metricName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "namespace") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "stateValue") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe AnomalyDetectorStateValue)))) :*: (S1 ('MetaSel ('Just "stat") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "configuration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe AnomalyDetectorConfiguration)) :*: S1 ('MetaSel ('Just "dimensions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Dimension]))))))

newAnomalyDetector :: AnomalyDetector Source #

Create a value of AnomalyDetector 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:metricName:AnomalyDetector', anomalyDetector_metricName - The name of the metric associated with the anomaly detection model.

$sel:namespace:AnomalyDetector', anomalyDetector_namespace - The namespace of the metric associated with the anomaly detection model.

$sel:stateValue:AnomalyDetector', anomalyDetector_stateValue - The current status of the anomaly detector's training. The possible values are TRAINED | PENDING_TRAINING | TRAINED_INSUFFICIENT_DATA

$sel:stat:AnomalyDetector', anomalyDetector_stat - The statistic associated with the anomaly detection model.

$sel:configuration:AnomalyDetector', anomalyDetector_configuration - The configuration specifies details about how the anomaly detection model is to be trained, including time ranges to exclude from use for training the model, and the time zone to use for the metric.

$sel:dimensions:AnomalyDetector', anomalyDetector_dimensions - The metric dimensions associated with the anomaly detection model.

anomalyDetector_metricName :: Lens' AnomalyDetector (Maybe Text) Source #

The name of the metric associated with the anomaly detection model.

anomalyDetector_namespace :: Lens' AnomalyDetector (Maybe Text) Source #

The namespace of the metric associated with the anomaly detection model.

anomalyDetector_stateValue :: Lens' AnomalyDetector (Maybe AnomalyDetectorStateValue) Source #

The current status of the anomaly detector's training. The possible values are TRAINED | PENDING_TRAINING | TRAINED_INSUFFICIENT_DATA

anomalyDetector_stat :: Lens' AnomalyDetector (Maybe Text) Source #

The statistic associated with the anomaly detection model.

anomalyDetector_configuration :: Lens' AnomalyDetector (Maybe AnomalyDetectorConfiguration) Source #

The configuration specifies details about how the anomaly detection model is to be trained, including time ranges to exclude from use for training the model, and the time zone to use for the metric.

anomalyDetector_dimensions :: Lens' AnomalyDetector (Maybe [Dimension]) Source #

The metric dimensions associated with the anomaly detection model.

AnomalyDetectorConfiguration

data AnomalyDetectorConfiguration Source #

The configuration specifies details about how the anomaly detection model is to be trained, including time ranges to exclude from use for training the model and the time zone to use for the metric.

See: newAnomalyDetectorConfiguration smart constructor.

Constructors

AnomalyDetectorConfiguration' 

Fields

  • metricTimezone :: Maybe Text

    The time zone to use for the metric. This is useful to enable the model to automatically account for daylight savings time changes if the metric is sensitive to such time changes.

    To specify a time zone, use the name of the time zone as specified in the standard tz database. For more information, see tz database.

  • excludedTimeRanges :: Maybe [Range]

    An array of time ranges to exclude from use when the anomaly detection model is trained. Use this to make sure that events that could cause unusual values for the metric, such as deployments, aren't used when CloudWatch creates the model.

Instances

Instances details
Eq AnomalyDetectorConfiguration Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.AnomalyDetectorConfiguration

Read AnomalyDetectorConfiguration Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.AnomalyDetectorConfiguration

Show AnomalyDetectorConfiguration Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.AnomalyDetectorConfiguration

Generic AnomalyDetectorConfiguration Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.AnomalyDetectorConfiguration

Associated Types

type Rep AnomalyDetectorConfiguration :: Type -> Type #

NFData AnomalyDetectorConfiguration Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.AnomalyDetectorConfiguration

Hashable AnomalyDetectorConfiguration Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.AnomalyDetectorConfiguration

ToQuery AnomalyDetectorConfiguration Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.AnomalyDetectorConfiguration

FromXML AnomalyDetectorConfiguration Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.AnomalyDetectorConfiguration

type Rep AnomalyDetectorConfiguration Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.AnomalyDetectorConfiguration

type Rep AnomalyDetectorConfiguration = D1 ('MetaData "AnomalyDetectorConfiguration" "Amazonka.CloudWatch.Types.AnomalyDetectorConfiguration" "libZSservicesZSamazonka-cloudwatchZSamazonka-cloudwatch" 'False) (C1 ('MetaCons "AnomalyDetectorConfiguration'" 'PrefixI 'True) (S1 ('MetaSel ('Just "metricTimezone") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "excludedTimeRanges") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Range]))))

newAnomalyDetectorConfiguration :: AnomalyDetectorConfiguration Source #

Create a value of AnomalyDetectorConfiguration 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:metricTimezone:AnomalyDetectorConfiguration', anomalyDetectorConfiguration_metricTimezone - The time zone to use for the metric. This is useful to enable the model to automatically account for daylight savings time changes if the metric is sensitive to such time changes.

To specify a time zone, use the name of the time zone as specified in the standard tz database. For more information, see tz database.

$sel:excludedTimeRanges:AnomalyDetectorConfiguration', anomalyDetectorConfiguration_excludedTimeRanges - An array of time ranges to exclude from use when the anomaly detection model is trained. Use this to make sure that events that could cause unusual values for the metric, such as deployments, aren't used when CloudWatch creates the model.

anomalyDetectorConfiguration_metricTimezone :: Lens' AnomalyDetectorConfiguration (Maybe Text) Source #

The time zone to use for the metric. This is useful to enable the model to automatically account for daylight savings time changes if the metric is sensitive to such time changes.

To specify a time zone, use the name of the time zone as specified in the standard tz database. For more information, see tz database.

anomalyDetectorConfiguration_excludedTimeRanges :: Lens' AnomalyDetectorConfiguration (Maybe [Range]) Source #

An array of time ranges to exclude from use when the anomaly detection model is trained. Use this to make sure that events that could cause unusual values for the metric, such as deployments, aren't used when CloudWatch creates the model.

CompositeAlarm

data CompositeAlarm Source #

The details about a composite alarm.

See: newCompositeAlarm smart constructor.

Constructors

CompositeAlarm' 

Fields

Instances

Instances details
Eq CompositeAlarm Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.CompositeAlarm

Read CompositeAlarm Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.CompositeAlarm

Show CompositeAlarm Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.CompositeAlarm

Generic CompositeAlarm Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.CompositeAlarm

Associated Types

type Rep CompositeAlarm :: Type -> Type #

NFData CompositeAlarm Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.CompositeAlarm

Methods

rnf :: CompositeAlarm -> () #

Hashable CompositeAlarm Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.CompositeAlarm

FromXML CompositeAlarm Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.CompositeAlarm

type Rep CompositeAlarm Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.CompositeAlarm

type Rep CompositeAlarm = D1 ('MetaData "CompositeAlarm" "Amazonka.CloudWatch.Types.CompositeAlarm" "libZSservicesZSamazonka-cloudwatchZSamazonka-cloudwatch" 'False) (C1 ('MetaCons "CompositeAlarm'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "alarmName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "stateUpdatedTimestamp") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ISO8601)) :*: S1 ('MetaSel ('Just "alarmDescription") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: (S1 ('MetaSel ('Just "alarmRule") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "oKActions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])) :*: S1 ('MetaSel ('Just "stateValue") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe StateValue))))) :*: ((S1 ('MetaSel ('Just "alarmConfigurationUpdatedTimestamp") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ISO8601)) :*: (S1 ('MetaSel ('Just "actionsEnabled") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "insufficientDataActions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])))) :*: ((S1 ('MetaSel ('Just "stateReason") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "stateReasonData") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "alarmArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "alarmActions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])))))))

newCompositeAlarm :: CompositeAlarm Source #

Create a value of CompositeAlarm 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:alarmName:CompositeAlarm', compositeAlarm_alarmName - The name of the alarm.

$sel:stateUpdatedTimestamp:CompositeAlarm', compositeAlarm_stateUpdatedTimestamp - The time stamp of the last update to the alarm state.

$sel:alarmDescription:CompositeAlarm', compositeAlarm_alarmDescription - The description of the alarm.

$sel:alarmRule:CompositeAlarm', compositeAlarm_alarmRule - The rule that this alarm uses to evaluate its alarm state.

$sel:oKActions:CompositeAlarm', compositeAlarm_oKActions - The actions to execute when this alarm transitions to the OK state from any other state. Each action is specified as an Amazon Resource Name (ARN).

$sel:stateValue:CompositeAlarm', compositeAlarm_stateValue - The state value for the alarm.

$sel:alarmConfigurationUpdatedTimestamp:CompositeAlarm', compositeAlarm_alarmConfigurationUpdatedTimestamp - The time stamp of the last update to the alarm configuration.

$sel:actionsEnabled:CompositeAlarm', compositeAlarm_actionsEnabled - Indicates whether actions should be executed during any changes to the alarm state.

$sel:insufficientDataActions:CompositeAlarm', compositeAlarm_insufficientDataActions - The actions to execute when this alarm transitions to the INSUFFICIENT_DATA state from any other state. Each action is specified as an Amazon Resource Name (ARN).

$sel:stateReason:CompositeAlarm', compositeAlarm_stateReason - An explanation for the alarm state, in text format.

$sel:stateReasonData:CompositeAlarm', compositeAlarm_stateReasonData - An explanation for the alarm state, in JSON format.

$sel:alarmArn:CompositeAlarm', compositeAlarm_alarmArn - The Amazon Resource Name (ARN) of the alarm.

$sel:alarmActions:CompositeAlarm', compositeAlarm_alarmActions - The actions to execute when this alarm transitions to the ALARM state from any other state. Each action is specified as an Amazon Resource Name (ARN).

compositeAlarm_stateUpdatedTimestamp :: Lens' CompositeAlarm (Maybe UTCTime) Source #

The time stamp of the last update to the alarm state.

compositeAlarm_alarmRule :: Lens' CompositeAlarm (Maybe Text) Source #

The rule that this alarm uses to evaluate its alarm state.

compositeAlarm_oKActions :: Lens' CompositeAlarm (Maybe [Text]) Source #

The actions to execute when this alarm transitions to the OK state from any other state. Each action is specified as an Amazon Resource Name (ARN).

compositeAlarm_alarmConfigurationUpdatedTimestamp :: Lens' CompositeAlarm (Maybe UTCTime) Source #

The time stamp of the last update to the alarm configuration.

compositeAlarm_actionsEnabled :: Lens' CompositeAlarm (Maybe Bool) Source #

Indicates whether actions should be executed during any changes to the alarm state.

compositeAlarm_insufficientDataActions :: Lens' CompositeAlarm (Maybe [Text]) Source #

The actions to execute when this alarm transitions to the INSUFFICIENT_DATA state from any other state. Each action is specified as an Amazon Resource Name (ARN).

compositeAlarm_stateReason :: Lens' CompositeAlarm (Maybe Text) Source #

An explanation for the alarm state, in text format.

compositeAlarm_stateReasonData :: Lens' CompositeAlarm (Maybe Text) Source #

An explanation for the alarm state, in JSON format.

compositeAlarm_alarmArn :: Lens' CompositeAlarm (Maybe Text) Source #

The Amazon Resource Name (ARN) of the alarm.

compositeAlarm_alarmActions :: Lens' CompositeAlarm (Maybe [Text]) Source #

The actions to execute when this alarm transitions to the ALARM state from any other state. Each action is specified as an Amazon Resource Name (ARN).

DashboardEntry

data DashboardEntry Source #

Represents a specific dashboard.

See: newDashboardEntry smart constructor.

Constructors

DashboardEntry' 

Fields

Instances

Instances details
Eq DashboardEntry Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.DashboardEntry

Read DashboardEntry Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.DashboardEntry

Show DashboardEntry Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.DashboardEntry

Generic DashboardEntry Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.DashboardEntry

Associated Types

type Rep DashboardEntry :: Type -> Type #

NFData DashboardEntry Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.DashboardEntry

Methods

rnf :: DashboardEntry -> () #

Hashable DashboardEntry Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.DashboardEntry

FromXML DashboardEntry Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.DashboardEntry

type Rep DashboardEntry Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.DashboardEntry

type Rep DashboardEntry = D1 ('MetaData "DashboardEntry" "Amazonka.CloudWatch.Types.DashboardEntry" "libZSservicesZSamazonka-cloudwatchZSamazonka-cloudwatch" 'False) (C1 ('MetaCons "DashboardEntry'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "size") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Integer)) :*: S1 ('MetaSel ('Just "dashboardName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "lastModified") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ISO8601)) :*: S1 ('MetaSel ('Just "dashboardArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))))

newDashboardEntry :: DashboardEntry Source #

Create a value of DashboardEntry 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:size:DashboardEntry', dashboardEntry_size - The size of the dashboard, in bytes.

$sel:dashboardName:DashboardEntry', dashboardEntry_dashboardName - The name of the dashboard.

$sel:lastModified:DashboardEntry', dashboardEntry_lastModified - The time stamp of when the dashboard was last modified, either by an API call or through the console. This number is expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC.

$sel:dashboardArn:DashboardEntry', dashboardEntry_dashboardArn - The Amazon Resource Name (ARN) of the dashboard.

dashboardEntry_size :: Lens' DashboardEntry (Maybe Integer) Source #

The size of the dashboard, in bytes.

dashboardEntry_lastModified :: Lens' DashboardEntry (Maybe UTCTime) Source #

The time stamp of when the dashboard was last modified, either by an API call or through the console. This number is expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC.

dashboardEntry_dashboardArn :: Lens' DashboardEntry (Maybe Text) Source #

The Amazon Resource Name (ARN) of the dashboard.

DashboardValidationMessage

data DashboardValidationMessage Source #

An error or warning for the operation.

See: newDashboardValidationMessage smart constructor.

Constructors

DashboardValidationMessage' 

Fields

Instances

Instances details
Eq DashboardValidationMessage Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.DashboardValidationMessage

Read DashboardValidationMessage Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.DashboardValidationMessage

Show DashboardValidationMessage Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.DashboardValidationMessage

Generic DashboardValidationMessage Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.DashboardValidationMessage

Associated Types

type Rep DashboardValidationMessage :: Type -> Type #

NFData DashboardValidationMessage Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.DashboardValidationMessage

Hashable DashboardValidationMessage Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.DashboardValidationMessage

FromXML DashboardValidationMessage Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.DashboardValidationMessage

type Rep DashboardValidationMessage Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.DashboardValidationMessage

type Rep DashboardValidationMessage = D1 ('MetaData "DashboardValidationMessage" "Amazonka.CloudWatch.Types.DashboardValidationMessage" "libZSservicesZSamazonka-cloudwatchZSamazonka-cloudwatch" 'False) (C1 ('MetaCons "DashboardValidationMessage'" 'PrefixI 'True) (S1 ('MetaSel ('Just "dataPath") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "message") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))

newDashboardValidationMessage :: DashboardValidationMessage Source #

Create a value of DashboardValidationMessage 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:dataPath:DashboardValidationMessage', dashboardValidationMessage_dataPath - The data path related to the message.

$sel:message:DashboardValidationMessage', dashboardValidationMessage_message - A message describing the error or warning.

Datapoint

data Datapoint Source #

Encapsulates the statistical data that CloudWatch computes from metric data.

See: newDatapoint smart constructor.

Constructors

Datapoint' 

Fields

Instances

Instances details
Eq Datapoint Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.Datapoint

Read Datapoint Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.Datapoint

Show Datapoint Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.Datapoint

Generic Datapoint Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.Datapoint

Associated Types

type Rep Datapoint :: Type -> Type #

NFData Datapoint Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.Datapoint

Methods

rnf :: Datapoint -> () #

Hashable Datapoint Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.Datapoint

FromXML Datapoint Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.Datapoint

type Rep Datapoint Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.Datapoint

newDatapoint :: Datapoint Source #

Create a value of Datapoint 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:sampleCount:Datapoint', datapoint_sampleCount - The number of metric values that contributed to the aggregate value of this data point.

$sel:maximum:Datapoint', datapoint_maximum - The maximum metric value for the data point.

$sel:average:Datapoint', datapoint_average - The average of the metric values that correspond to the data point.

$sel:minimum:Datapoint', datapoint_minimum - The minimum metric value for the data point.

$sel:extendedStatistics:Datapoint', datapoint_extendedStatistics - The percentile statistic for the data point.

$sel:sum:Datapoint', datapoint_sum - The sum of the metric values for the data point.

$sel:unit:Datapoint', datapoint_unit - The standard unit for the data point.

$sel:timestamp:Datapoint', datapoint_timestamp - The time stamp used for the data point.

datapoint_sampleCount :: Lens' Datapoint (Maybe Double) Source #

The number of metric values that contributed to the aggregate value of this data point.

datapoint_maximum :: Lens' Datapoint (Maybe Double) Source #

The maximum metric value for the data point.

datapoint_average :: Lens' Datapoint (Maybe Double) Source #

The average of the metric values that correspond to the data point.

datapoint_minimum :: Lens' Datapoint (Maybe Double) Source #

The minimum metric value for the data point.

datapoint_extendedStatistics :: Lens' Datapoint (Maybe (HashMap Text Double)) Source #

The percentile statistic for the data point.

datapoint_sum :: Lens' Datapoint (Maybe Double) Source #

The sum of the metric values for the data point.

datapoint_unit :: Lens' Datapoint (Maybe StandardUnit) Source #

The standard unit for the data point.

datapoint_timestamp :: Lens' Datapoint (Maybe UTCTime) Source #

The time stamp used for the data point.

Dimension

data Dimension Source #

A dimension is a name/value pair that is part of the identity of a metric. You can assign up to 10 dimensions to a metric. Because dimensions are part of the unique identifier for a metric, whenever you add a unique name/value pair to one of your metrics, you are creating a new variation of that metric.

See: newDimension smart constructor.

Constructors

Dimension' 

Fields

  • name :: Text

    The name of the dimension. Dimension names must contain only ASCII characters and must include at least one non-whitespace character.

  • value :: Text

    The value of the dimension. Dimension values must contain only ASCII characters and must include at least one non-whitespace character.

Instances

Instances details
Eq Dimension Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.Dimension

Read Dimension Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.Dimension

Show Dimension Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.Dimension

Generic Dimension Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.Dimension

Associated Types

type Rep Dimension :: Type -> Type #

NFData Dimension Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.Dimension

Methods

rnf :: Dimension -> () #

Hashable Dimension Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.Dimension

ToQuery Dimension Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.Dimension

FromXML Dimension Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.Dimension

type Rep Dimension Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.Dimension

type Rep Dimension = D1 ('MetaData "Dimension" "Amazonka.CloudWatch.Types.Dimension" "libZSservicesZSamazonka-cloudwatchZSamazonka-cloudwatch" 'False) (C1 ('MetaCons "Dimension'" 'PrefixI 'True) (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "value") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newDimension Source #

Create a value of Dimension 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:name:Dimension', dimension_name - The name of the dimension. Dimension names must contain only ASCII characters and must include at least one non-whitespace character.

$sel:value:Dimension', dimension_value - The value of the dimension. Dimension values must contain only ASCII characters and must include at least one non-whitespace character.

dimension_name :: Lens' Dimension Text Source #

The name of the dimension. Dimension names must contain only ASCII characters and must include at least one non-whitespace character.

dimension_value :: Lens' Dimension Text Source #

The value of the dimension. Dimension values must contain only ASCII characters and must include at least one non-whitespace character.

DimensionFilter

data DimensionFilter Source #

Represents filters for a dimension.

See: newDimensionFilter smart constructor.

Constructors

DimensionFilter' 

Fields

Instances

Instances details
Eq DimensionFilter Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.DimensionFilter

Read DimensionFilter Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.DimensionFilter

Show DimensionFilter Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.DimensionFilter

Generic DimensionFilter Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.DimensionFilter

Associated Types

type Rep DimensionFilter :: Type -> Type #

NFData DimensionFilter Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.DimensionFilter

Methods

rnf :: DimensionFilter -> () #

Hashable DimensionFilter Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.DimensionFilter

ToQuery DimensionFilter Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.DimensionFilter

type Rep DimensionFilter Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.DimensionFilter

type Rep DimensionFilter = D1 ('MetaData "DimensionFilter" "Amazonka.CloudWatch.Types.DimensionFilter" "libZSservicesZSamazonka-cloudwatchZSamazonka-cloudwatch" 'False) (C1 ('MetaCons "DimensionFilter'" 'PrefixI 'True) (S1 ('MetaSel ('Just "value") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newDimensionFilter Source #

Create a value of DimensionFilter 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:value:DimensionFilter', dimensionFilter_value - The value of the dimension to be matched.

$sel:name:DimensionFilter', dimensionFilter_name - The dimension name to be matched.

dimensionFilter_value :: Lens' DimensionFilter (Maybe Text) Source #

The value of the dimension to be matched.

dimensionFilter_name :: Lens' DimensionFilter Text Source #

The dimension name to be matched.

InsightRule

data InsightRule Source #

This structure contains the definition for a Contributor Insights rule.

See: newInsightRule smart constructor.

Constructors

InsightRule' 

Fields

  • name :: Text

    The name of the rule.

  • state :: Text

    Indicates whether the rule is enabled or disabled.

  • schema :: Text

    For rules that you create, this is always {"Name": "CloudWatchLogRule", "Version": 1}. For built-in rules, this is {"Name": "ServiceLogRule", "Version": 1}

  • definition :: Text

    The definition of the rule, as a JSON object. The definition contains the keywords used to define contributors, the value to aggregate on if this rule returns a sum instead of a count, and the filters. For details on the valid syntax, see Contributor Insights Rule Syntax.

Instances

Instances details
Eq InsightRule Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.InsightRule

Read InsightRule Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.InsightRule

Show InsightRule Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.InsightRule

Generic InsightRule Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.InsightRule

Associated Types

type Rep InsightRule :: Type -> Type #

NFData InsightRule Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.InsightRule

Methods

rnf :: InsightRule -> () #

Hashable InsightRule Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.InsightRule

FromXML InsightRule Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.InsightRule

type Rep InsightRule Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.InsightRule

type Rep InsightRule = D1 ('MetaData "InsightRule" "Amazonka.CloudWatch.Types.InsightRule" "libZSservicesZSamazonka-cloudwatchZSamazonka-cloudwatch" 'False) (C1 ('MetaCons "InsightRule'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "state") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "schema") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "definition") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newInsightRule Source #

Create a value of InsightRule 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:name:InsightRule', insightRule_name - The name of the rule.

$sel:state:InsightRule', insightRule_state - Indicates whether the rule is enabled or disabled.

$sel:schema:InsightRule', insightRule_schema - For rules that you create, this is always {"Name": "CloudWatchLogRule", "Version": 1}. For built-in rules, this is {"Name": "ServiceLogRule", "Version": 1}

$sel:definition:InsightRule', insightRule_definition - The definition of the rule, as a JSON object. The definition contains the keywords used to define contributors, the value to aggregate on if this rule returns a sum instead of a count, and the filters. For details on the valid syntax, see Contributor Insights Rule Syntax.

insightRule_name :: Lens' InsightRule Text Source #

The name of the rule.

insightRule_state :: Lens' InsightRule Text Source #

Indicates whether the rule is enabled or disabled.

insightRule_schema :: Lens' InsightRule Text Source #

For rules that you create, this is always {"Name": "CloudWatchLogRule", "Version": 1}. For built-in rules, this is {"Name": "ServiceLogRule", "Version": 1}

insightRule_definition :: Lens' InsightRule Text Source #

The definition of the rule, as a JSON object. The definition contains the keywords used to define contributors, the value to aggregate on if this rule returns a sum instead of a count, and the filters. For details on the valid syntax, see Contributor Insights Rule Syntax.

InsightRuleContributor

data InsightRuleContributor Source #

One of the unique contributors found by a Contributor Insights rule. If the rule contains multiple keys, then a unique contributor is a unique combination of values from all the keys in the rule.

If the rule contains a single key, then each unique contributor is each unique value for this key.

For more information, see GetInsightRuleReport.

See: newInsightRuleContributor smart constructor.

Constructors

InsightRuleContributor' 

Fields

Instances

Instances details
Eq InsightRuleContributor Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.InsightRuleContributor

Read InsightRuleContributor Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.InsightRuleContributor

Show InsightRuleContributor Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.InsightRuleContributor

Generic InsightRuleContributor Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.InsightRuleContributor

Associated Types

type Rep InsightRuleContributor :: Type -> Type #

NFData InsightRuleContributor Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.InsightRuleContributor

Methods

rnf :: InsightRuleContributor -> () #

Hashable InsightRuleContributor Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.InsightRuleContributor

FromXML InsightRuleContributor Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.InsightRuleContributor

type Rep InsightRuleContributor Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.InsightRuleContributor

type Rep InsightRuleContributor = D1 ('MetaData "InsightRuleContributor" "Amazonka.CloudWatch.Types.InsightRuleContributor" "libZSservicesZSamazonka-cloudwatchZSamazonka-cloudwatch" 'False) (C1 ('MetaCons "InsightRuleContributor'" 'PrefixI 'True) (S1 ('MetaSel ('Just "keys") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Text]) :*: (S1 ('MetaSel ('Just "approximateAggregateValue") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Double) :*: S1 ('MetaSel ('Just "datapoints") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [InsightRuleContributorDatapoint]))))

newInsightRuleContributor Source #

Create a value of InsightRuleContributor 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:keys:InsightRuleContributor', insightRuleContributor_keys - One of the log entry field keywords that is used to define contributors for this rule.

$sel:approximateAggregateValue:InsightRuleContributor', insightRuleContributor_approximateAggregateValue - An approximation of the aggregate value that comes from this contributor.

$sel:datapoints:InsightRuleContributor', insightRuleContributor_datapoints - An array of the data points where this contributor is present. Only the data points when this contributor appeared are included in the array.

insightRuleContributor_keys :: Lens' InsightRuleContributor [Text] Source #

One of the log entry field keywords that is used to define contributors for this rule.

insightRuleContributor_approximateAggregateValue :: Lens' InsightRuleContributor Double Source #

An approximation of the aggregate value that comes from this contributor.

insightRuleContributor_datapoints :: Lens' InsightRuleContributor [InsightRuleContributorDatapoint] Source #

An array of the data points where this contributor is present. Only the data points when this contributor appeared are included in the array.

InsightRuleContributorDatapoint

data InsightRuleContributorDatapoint Source #

One data point related to one contributor.

For more information, see GetInsightRuleReport and InsightRuleContributor.

See: newInsightRuleContributorDatapoint smart constructor.

Constructors

InsightRuleContributorDatapoint' 

Fields

Instances

Instances details
Eq InsightRuleContributorDatapoint Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.InsightRuleContributorDatapoint

Read InsightRuleContributorDatapoint Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.InsightRuleContributorDatapoint

Show InsightRuleContributorDatapoint Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.InsightRuleContributorDatapoint

Generic InsightRuleContributorDatapoint Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.InsightRuleContributorDatapoint

Associated Types

type Rep InsightRuleContributorDatapoint :: Type -> Type #

NFData InsightRuleContributorDatapoint Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.InsightRuleContributorDatapoint

Hashable InsightRuleContributorDatapoint Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.InsightRuleContributorDatapoint

FromXML InsightRuleContributorDatapoint Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.InsightRuleContributorDatapoint

type Rep InsightRuleContributorDatapoint Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.InsightRuleContributorDatapoint

type Rep InsightRuleContributorDatapoint = D1 ('MetaData "InsightRuleContributorDatapoint" "Amazonka.CloudWatch.Types.InsightRuleContributorDatapoint" "libZSservicesZSamazonka-cloudwatchZSamazonka-cloudwatch" 'False) (C1 ('MetaCons "InsightRuleContributorDatapoint'" 'PrefixI 'True) (S1 ('MetaSel ('Just "timestamp") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ISO8601) :*: S1 ('MetaSel ('Just "approximateValue") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Double)))

newInsightRuleContributorDatapoint Source #

Create a value of InsightRuleContributorDatapoint 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:timestamp:InsightRuleContributorDatapoint', insightRuleContributorDatapoint_timestamp - The timestamp of the data point.

$sel:approximateValue:InsightRuleContributorDatapoint', insightRuleContributorDatapoint_approximateValue - The approximate value that this contributor added during this timestamp.

insightRuleContributorDatapoint_approximateValue :: Lens' InsightRuleContributorDatapoint Double Source #

The approximate value that this contributor added during this timestamp.

InsightRuleMetricDatapoint

data InsightRuleMetricDatapoint Source #

One data point from the metric time series returned in a Contributor Insights rule report.

For more information, see GetInsightRuleReport.

See: newInsightRuleMetricDatapoint smart constructor.

Constructors

InsightRuleMetricDatapoint' 

Fields

  • maxContributorValue :: Maybe Double

    The maximum value provided by one contributor during this timestamp. Each timestamp is evaluated separately, so the identity of the max contributor could be different for each timestamp.

    This statistic is returned only if you included it in the Metrics array in your request.

  • sampleCount :: Maybe Double

    The number of occurrences that matched the rule during this data point.

    This statistic is returned only if you included it in the Metrics array in your request.

  • maximum :: Maybe Double

    The maximum value from a single occurence from a single contributor during the time period represented by that data point.

    This statistic is returned only if you included it in the Metrics array in your request.

  • average :: Maybe Double

    The average value from all contributors during the time period represented by that data point.

    This statistic is returned only if you included it in the Metrics array in your request.

  • minimum :: Maybe Double

    The minimum value from a single contributor during the time period represented by that data point.

    This statistic is returned only if you included it in the Metrics array in your request.

  • uniqueContributors :: Maybe Double

    The number of unique contributors who published data during this timestamp.

    This statistic is returned only if you included it in the Metrics array in your request.

  • sum :: Maybe Double

    The sum of the values from all contributors during the time period represented by that data point.

    This statistic is returned only if you included it in the Metrics array in your request.

  • timestamp :: ISO8601

    The timestamp of the data point.

Instances

Instances details
Eq InsightRuleMetricDatapoint Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.InsightRuleMetricDatapoint

Read InsightRuleMetricDatapoint Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.InsightRuleMetricDatapoint

Show InsightRuleMetricDatapoint Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.InsightRuleMetricDatapoint

Generic InsightRuleMetricDatapoint Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.InsightRuleMetricDatapoint

Associated Types

type Rep InsightRuleMetricDatapoint :: Type -> Type #

NFData InsightRuleMetricDatapoint Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.InsightRuleMetricDatapoint

Hashable InsightRuleMetricDatapoint Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.InsightRuleMetricDatapoint

FromXML InsightRuleMetricDatapoint Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.InsightRuleMetricDatapoint

type Rep InsightRuleMetricDatapoint Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.InsightRuleMetricDatapoint

type Rep InsightRuleMetricDatapoint = D1 ('MetaData "InsightRuleMetricDatapoint" "Amazonka.CloudWatch.Types.InsightRuleMetricDatapoint" "libZSservicesZSamazonka-cloudwatchZSamazonka-cloudwatch" 'False) (C1 ('MetaCons "InsightRuleMetricDatapoint'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "maxContributorValue") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Double)) :*: S1 ('MetaSel ('Just "sampleCount") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Double))) :*: (S1 ('MetaSel ('Just "maximum") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Double)) :*: S1 ('MetaSel ('Just "average") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Double)))) :*: ((S1 ('MetaSel ('Just "minimum") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Double)) :*: S1 ('MetaSel ('Just "uniqueContributors") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Double))) :*: (S1 ('MetaSel ('Just "sum") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Double)) :*: S1 ('MetaSel ('Just "timestamp") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ISO8601)))))

newInsightRuleMetricDatapoint Source #

Create a value of InsightRuleMetricDatapoint 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:maxContributorValue:InsightRuleMetricDatapoint', insightRuleMetricDatapoint_maxContributorValue - The maximum value provided by one contributor during this timestamp. Each timestamp is evaluated separately, so the identity of the max contributor could be different for each timestamp.

This statistic is returned only if you included it in the Metrics array in your request.

$sel:sampleCount:InsightRuleMetricDatapoint', insightRuleMetricDatapoint_sampleCount - The number of occurrences that matched the rule during this data point.

This statistic is returned only if you included it in the Metrics array in your request.

$sel:maximum:InsightRuleMetricDatapoint', insightRuleMetricDatapoint_maximum - The maximum value from a single occurence from a single contributor during the time period represented by that data point.

This statistic is returned only if you included it in the Metrics array in your request.

$sel:average:InsightRuleMetricDatapoint', insightRuleMetricDatapoint_average - The average value from all contributors during the time period represented by that data point.

This statistic is returned only if you included it in the Metrics array in your request.

$sel:minimum:InsightRuleMetricDatapoint', insightRuleMetricDatapoint_minimum - The minimum value from a single contributor during the time period represented by that data point.

This statistic is returned only if you included it in the Metrics array in your request.

$sel:uniqueContributors:InsightRuleMetricDatapoint', insightRuleMetricDatapoint_uniqueContributors - The number of unique contributors who published data during this timestamp.

This statistic is returned only if you included it in the Metrics array in your request.

$sel:sum:InsightRuleMetricDatapoint', insightRuleMetricDatapoint_sum - The sum of the values from all contributors during the time period represented by that data point.

This statistic is returned only if you included it in the Metrics array in your request.

$sel:timestamp:InsightRuleMetricDatapoint', insightRuleMetricDatapoint_timestamp - The timestamp of the data point.

insightRuleMetricDatapoint_maxContributorValue :: Lens' InsightRuleMetricDatapoint (Maybe Double) Source #

The maximum value provided by one contributor during this timestamp. Each timestamp is evaluated separately, so the identity of the max contributor could be different for each timestamp.

This statistic is returned only if you included it in the Metrics array in your request.

insightRuleMetricDatapoint_sampleCount :: Lens' InsightRuleMetricDatapoint (Maybe Double) Source #

The number of occurrences that matched the rule during this data point.

This statistic is returned only if you included it in the Metrics array in your request.

insightRuleMetricDatapoint_maximum :: Lens' InsightRuleMetricDatapoint (Maybe Double) Source #

The maximum value from a single occurence from a single contributor during the time period represented by that data point.

This statistic is returned only if you included it in the Metrics array in your request.

insightRuleMetricDatapoint_average :: Lens' InsightRuleMetricDatapoint (Maybe Double) Source #

The average value from all contributors during the time period represented by that data point.

This statistic is returned only if you included it in the Metrics array in your request.

insightRuleMetricDatapoint_minimum :: Lens' InsightRuleMetricDatapoint (Maybe Double) Source #

The minimum value from a single contributor during the time period represented by that data point.

This statistic is returned only if you included it in the Metrics array in your request.

insightRuleMetricDatapoint_uniqueContributors :: Lens' InsightRuleMetricDatapoint (Maybe Double) Source #

The number of unique contributors who published data during this timestamp.

This statistic is returned only if you included it in the Metrics array in your request.

insightRuleMetricDatapoint_sum :: Lens' InsightRuleMetricDatapoint (Maybe Double) Source #

The sum of the values from all contributors during the time period represented by that data point.

This statistic is returned only if you included it in the Metrics array in your request.

LabelOptions

data LabelOptions Source #

This structure includes the Timezone parameter, which you can use to specify your time zone so that the labels that are associated with returned metrics display the correct time for your time zone.

The Timezone value affects a label only if you have a time-based dynamic expression in the label. For more information about dynamic expressions in labels, see Using Dynamic Labels.

See: newLabelOptions smart constructor.

Constructors

LabelOptions' 

Fields

  • timezone :: Maybe Text

    The time zone to use for metric data return in this operation. The format is + or - followed by four digits. The first two digits indicate the number of hours ahead or behind of UTC, and the final two digits are the number of minutes. For example, +0130 indicates a time zone that is 1 hour and 30 minutes ahead of UTC. The default is +0000.

Instances

Instances details
Eq LabelOptions Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.LabelOptions

Read LabelOptions Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.LabelOptions

Show LabelOptions Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.LabelOptions

Generic LabelOptions Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.LabelOptions

Associated Types

type Rep LabelOptions :: Type -> Type #

NFData LabelOptions Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.LabelOptions

Methods

rnf :: LabelOptions -> () #

Hashable LabelOptions Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.LabelOptions

ToQuery LabelOptions Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.LabelOptions

type Rep LabelOptions Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.LabelOptions

type Rep LabelOptions = D1 ('MetaData "LabelOptions" "Amazonka.CloudWatch.Types.LabelOptions" "libZSservicesZSamazonka-cloudwatchZSamazonka-cloudwatch" 'False) (C1 ('MetaCons "LabelOptions'" 'PrefixI 'True) (S1 ('MetaSel ('Just "timezone") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))

newLabelOptions :: LabelOptions Source #

Create a value of LabelOptions 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:timezone:LabelOptions', labelOptions_timezone - The time zone to use for metric data return in this operation. The format is + or - followed by four digits. The first two digits indicate the number of hours ahead or behind of UTC, and the final two digits are the number of minutes. For example, +0130 indicates a time zone that is 1 hour and 30 minutes ahead of UTC. The default is +0000.

labelOptions_timezone :: Lens' LabelOptions (Maybe Text) Source #

The time zone to use for metric data return in this operation. The format is + or - followed by four digits. The first two digits indicate the number of hours ahead or behind of UTC, and the final two digits are the number of minutes. For example, +0130 indicates a time zone that is 1 hour and 30 minutes ahead of UTC. The default is +0000.

MessageData

data MessageData Source #

A message returned by the GetMetricDataAPI, including a code and a description.

If a cross-Region GetMetricData operation fails with a code of Forbidden and a value of Authentication too complex to retrieve cross region data, you can correct the problem by running the GetMetricData operation in the same Region where the metric data is.

See: newMessageData smart constructor.

Constructors

MessageData' 

Fields

Instances

Instances details
Eq MessageData Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.MessageData

Read MessageData Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.MessageData

Show MessageData Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.MessageData

Generic MessageData Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.MessageData

Associated Types

type Rep MessageData :: Type -> Type #

NFData MessageData Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.MessageData

Methods

rnf :: MessageData -> () #

Hashable MessageData Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.MessageData

FromXML MessageData Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.MessageData

type Rep MessageData Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.MessageData

type Rep MessageData = D1 ('MetaData "MessageData" "Amazonka.CloudWatch.Types.MessageData" "libZSservicesZSamazonka-cloudwatchZSamazonka-cloudwatch" 'False) (C1 ('MetaCons "MessageData'" 'PrefixI 'True) (S1 ('MetaSel ('Just "value") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "code") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))

newMessageData :: MessageData Source #

Create a value of MessageData 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:value:MessageData', messageData_value - The message text.

$sel:code:MessageData', messageData_code - The error code or status code associated with the message.

messageData_code :: Lens' MessageData (Maybe Text) Source #

The error code or status code associated with the message.

Metric

data Metric Source #

Represents a specific metric.

See: newMetric smart constructor.

Constructors

Metric' 

Fields

Instances

Instances details
Eq Metric Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.Metric

Methods

(==) :: Metric -> Metric -> Bool #

(/=) :: Metric -> Metric -> Bool #

Read Metric Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.Metric

Show Metric Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.Metric

Generic Metric Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.Metric

Associated Types

type Rep Metric :: Type -> Type #

Methods

from :: Metric -> Rep Metric x #

to :: Rep Metric x -> Metric #

NFData Metric Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.Metric

Methods

rnf :: Metric -> () #

Hashable Metric Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.Metric

Methods

hashWithSalt :: Int -> Metric -> Int #

hash :: Metric -> Int #

ToQuery Metric Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.Metric

FromXML Metric Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.Metric

type Rep Metric Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.Metric

type Rep Metric = D1 ('MetaData "Metric" "Amazonka.CloudWatch.Types.Metric" "libZSservicesZSamazonka-cloudwatchZSamazonka-cloudwatch" 'False) (C1 ('MetaCons "Metric'" 'PrefixI 'True) (S1 ('MetaSel ('Just "metricName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "namespace") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "dimensions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Dimension])))))

newMetric :: Metric Source #

Create a value of Metric 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:metricName:Metric', metric_metricName - The name of the metric. This is a required field.

$sel:namespace:Metric', metric_namespace - The namespace of the metric.

$sel:dimensions:Metric', metric_dimensions - The dimensions for the metric.

metric_metricName :: Lens' Metric (Maybe Text) Source #

The name of the metric. This is a required field.

metric_namespace :: Lens' Metric (Maybe Text) Source #

The namespace of the metric.

metric_dimensions :: Lens' Metric (Maybe [Dimension]) Source #

The dimensions for the metric.

MetricAlarm

data MetricAlarm Source #

The details about a metric alarm.

See: newMetricAlarm smart constructor.

Constructors

MetricAlarm' 

Fields

  • alarmName :: Maybe Text

    The name of the alarm.

  • stateUpdatedTimestamp :: Maybe ISO8601

    The time stamp of the last update to the alarm state.

  • metrics :: Maybe [MetricDataQuery]

    An array of MetricDataQuery structures, used in an alarm based on a metric math expression. Each structure either retrieves a metric or performs a math expression. One item in the Metrics array is the math expression that the alarm watches. This expression by designated by having ReturnData set to true.

  • treatMissingData :: Maybe Text

    Sets how this alarm is to handle missing data points. If this parameter is omitted, the default behavior of missing is used.

  • period :: Maybe Natural

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

  • alarmDescription :: Maybe Text

    The description of the alarm.

  • evaluationPeriods :: Maybe Natural

    The number of periods over which data is compared to the specified threshold.

  • metricName :: Maybe Text

    The name of the metric associated with the alarm, if this is an alarm based on a single metric.

  • namespace :: Maybe Text

    The namespace of the metric associated with the alarm.

  • thresholdMetricId :: Maybe Text

    In an alarm based on an anomaly detection model, this is the ID of the ANOMALY_DETECTION_BAND function used as the threshold for the alarm.

  • comparisonOperator :: Maybe ComparisonOperator

    The arithmetic operation to use when comparing the specified statistic and threshold. The specified statistic value is used as the first operand.

  • oKActions :: Maybe [Text]

    The actions to execute when this alarm transitions to the OK state from any other state. Each action is specified as an Amazon Resource Name (ARN).

  • evaluateLowSampleCountPercentile :: Maybe Text

    Used only for alarms based on percentiles. If ignore, the alarm state does not change during periods with too few data points to be statistically significant. If evaluate or this parameter is not used, the alarm is always evaluated and possibly changes state no matter how many data points are available.

  • stateValue :: Maybe StateValue

    The state value for the alarm.

  • datapointsToAlarm :: Maybe Natural

    The number of data points that must be breaching to trigger the alarm.

  • threshold :: Maybe Double

    The value to compare with the specified statistic.

  • alarmConfigurationUpdatedTimestamp :: Maybe ISO8601

    The time stamp of the last update to the alarm configuration.

  • actionsEnabled :: Maybe Bool

    Indicates whether actions should be executed during any changes to the alarm state.

  • insufficientDataActions :: Maybe [Text]

    The actions to execute when this alarm transitions to the INSUFFICIENT_DATA state from any other state. Each action is specified as an Amazon Resource Name (ARN).

  • stateReason :: Maybe Text

    An explanation for the alarm state, in text format.

  • stateReasonData :: Maybe Text

    An explanation for the alarm state, in JSON format.

  • dimensions :: Maybe [Dimension]

    The dimensions for the metric associated with the alarm.

  • alarmArn :: Maybe Text

    The Amazon Resource Name (ARN) of the alarm.

  • alarmActions :: Maybe [Text]

    The actions to execute when this alarm transitions to the ALARM state from any other state. Each action is specified as an Amazon Resource Name (ARN).

  • unit :: Maybe StandardUnit

    The unit of the metric associated with the alarm.

  • statistic :: Maybe Statistic

    The statistic for the metric associated with the alarm, other than percentile. For percentile statistics, use ExtendedStatistic.

  • extendedStatistic :: Maybe Text

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

Instances

Instances details
Eq MetricAlarm Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.MetricAlarm

Read MetricAlarm Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.MetricAlarm

Show MetricAlarm Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.MetricAlarm

Generic MetricAlarm Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.MetricAlarm

Associated Types

type Rep MetricAlarm :: Type -> Type #

NFData MetricAlarm Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.MetricAlarm

Methods

rnf :: MetricAlarm -> () #

Hashable MetricAlarm Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.MetricAlarm

FromXML MetricAlarm Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.MetricAlarm

type Rep MetricAlarm Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.MetricAlarm

type Rep MetricAlarm = D1 ('MetaData "MetricAlarm" "Amazonka.CloudWatch.Types.MetricAlarm" "libZSservicesZSamazonka-cloudwatchZSamazonka-cloudwatch" 'False) (C1 ('MetaCons "MetricAlarm'" 'PrefixI 'True) ((((S1 ('MetaSel ('Just "alarmName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "stateUpdatedTimestamp") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ISO8601)) :*: S1 ('MetaSel ('Just "metrics") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [MetricDataQuery])))) :*: (S1 ('MetaSel ('Just "treatMissingData") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "period") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "alarmDescription") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))) :*: ((S1 ('MetaSel ('Just "evaluationPeriods") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: (S1 ('MetaSel ('Just "metricName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "namespace") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 ('MetaSel ('Just "thresholdMetricId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "comparisonOperator") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ComparisonOperator))) :*: (S1 ('MetaSel ('Just "oKActions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])) :*: S1 ('MetaSel ('Just "evaluateLowSampleCountPercentile") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))))) :*: (((S1 ('MetaSel ('Just "stateValue") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe StateValue)) :*: (S1 ('MetaSel ('Just "datapointsToAlarm") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "threshold") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Double)))) :*: ((S1 ('MetaSel ('Just "alarmConfigurationUpdatedTimestamp") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ISO8601)) :*: S1 ('MetaSel ('Just "actionsEnabled") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool))) :*: (S1 ('MetaSel ('Just "insufficientDataActions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])) :*: S1 ('MetaSel ('Just "stateReason") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))) :*: ((S1 ('MetaSel ('Just "stateReasonData") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "dimensions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Dimension])) :*: S1 ('MetaSel ('Just "alarmArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 ('MetaSel ('Just "alarmActions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])) :*: 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))))))))

newMetricAlarm :: MetricAlarm Source #

Create a value of MetricAlarm 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:alarmName:MetricAlarm', metricAlarm_alarmName - The name of the alarm.

$sel:stateUpdatedTimestamp:MetricAlarm', metricAlarm_stateUpdatedTimestamp - The time stamp of the last update to the alarm state.

$sel:metrics:MetricAlarm', metricAlarm_metrics - An array of MetricDataQuery structures, used in an alarm based on a metric math expression. Each structure either retrieves a metric or performs a math expression. One item in the Metrics array is the math expression that the alarm watches. This expression by designated by having ReturnData set to true.

$sel:treatMissingData:MetricAlarm', metricAlarm_treatMissingData - Sets how this alarm is to handle missing data points. If this parameter is omitted, the default behavior of missing is used.

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

$sel:alarmDescription:MetricAlarm', metricAlarm_alarmDescription - The description of the alarm.

$sel:evaluationPeriods:MetricAlarm', metricAlarm_evaluationPeriods - The number of periods over which data is compared to the specified threshold.

$sel:metricName:MetricAlarm', metricAlarm_metricName - The name of the metric associated with the alarm, if this is an alarm based on a single metric.

$sel:namespace:MetricAlarm', metricAlarm_namespace - The namespace of the metric associated with the alarm.

$sel:thresholdMetricId:MetricAlarm', metricAlarm_thresholdMetricId - In an alarm based on an anomaly detection model, this is the ID of the ANOMALY_DETECTION_BAND function used as the threshold for the alarm.

$sel:comparisonOperator:MetricAlarm', metricAlarm_comparisonOperator - The arithmetic operation to use when comparing the specified statistic and threshold. The specified statistic value is used as the first operand.

$sel:oKActions:MetricAlarm', metricAlarm_oKActions - The actions to execute when this alarm transitions to the OK state from any other state. Each action is specified as an Amazon Resource Name (ARN).

$sel:evaluateLowSampleCountPercentile:MetricAlarm', metricAlarm_evaluateLowSampleCountPercentile - Used only for alarms based on percentiles. If ignore, the alarm state does not change during periods with too few data points to be statistically significant. If evaluate or this parameter is not used, the alarm is always evaluated and possibly changes state no matter how many data points are available.

$sel:stateValue:MetricAlarm', metricAlarm_stateValue - The state value for the alarm.

$sel:datapointsToAlarm:MetricAlarm', metricAlarm_datapointsToAlarm - The number of data points that must be breaching to trigger the alarm.

$sel:threshold:MetricAlarm', metricAlarm_threshold - The value to compare with the specified statistic.

$sel:alarmConfigurationUpdatedTimestamp:MetricAlarm', metricAlarm_alarmConfigurationUpdatedTimestamp - The time stamp of the last update to the alarm configuration.

$sel:actionsEnabled:MetricAlarm', metricAlarm_actionsEnabled - Indicates whether actions should be executed during any changes to the alarm state.

$sel:insufficientDataActions:MetricAlarm', metricAlarm_insufficientDataActions - The actions to execute when this alarm transitions to the INSUFFICIENT_DATA state from any other state. Each action is specified as an Amazon Resource Name (ARN).

$sel:stateReason:MetricAlarm', metricAlarm_stateReason - An explanation for the alarm state, in text format.

$sel:stateReasonData:MetricAlarm', metricAlarm_stateReasonData - An explanation for the alarm state, in JSON format.

$sel:dimensions:MetricAlarm', metricAlarm_dimensions - The dimensions for the metric associated with the alarm.

$sel:alarmArn:MetricAlarm', metricAlarm_alarmArn - The Amazon Resource Name (ARN) of the alarm.

$sel:alarmActions:MetricAlarm', metricAlarm_alarmActions - The actions to execute when this alarm transitions to the ALARM state from any other state. Each action is specified as an Amazon Resource Name (ARN).

$sel:unit:MetricAlarm', metricAlarm_unit - The unit of the metric associated with the alarm.

$sel:statistic:MetricAlarm', metricAlarm_statistic - The statistic for the metric associated with the alarm, other than percentile. For percentile statistics, use ExtendedStatistic.

$sel:extendedStatistic:MetricAlarm', metricAlarm_extendedStatistic - The percentile statistic for the metric associated with the alarm. Specify a value between p0.0 and p100.

metricAlarm_stateUpdatedTimestamp :: Lens' MetricAlarm (Maybe UTCTime) Source #

The time stamp of the last update to the alarm state.

metricAlarm_metrics :: Lens' MetricAlarm (Maybe [MetricDataQuery]) Source #

An array of MetricDataQuery structures, used in an alarm based on a metric math expression. Each structure either retrieves a metric or performs a math expression. One item in the Metrics array is the math expression that the alarm watches. This expression by designated by having ReturnData set to true.

metricAlarm_treatMissingData :: Lens' MetricAlarm (Maybe Text) Source #

Sets how this alarm is to handle missing data points. If this parameter is omitted, the default behavior of missing is used.

metricAlarm_period :: Lens' MetricAlarm (Maybe Natural) Source #

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

metricAlarm_alarmDescription :: Lens' MetricAlarm (Maybe Text) Source #

The description of the alarm.

metricAlarm_evaluationPeriods :: Lens' MetricAlarm (Maybe Natural) Source #

The number of periods over which data is compared to the specified threshold.

metricAlarm_metricName :: Lens' MetricAlarm (Maybe Text) Source #

The name of the metric associated with the alarm, if this is an alarm based on a single metric.

metricAlarm_namespace :: Lens' MetricAlarm (Maybe Text) Source #

The namespace of the metric associated with the alarm.

metricAlarm_thresholdMetricId :: Lens' MetricAlarm (Maybe Text) Source #

In an alarm based on an anomaly detection model, this is the ID of the ANOMALY_DETECTION_BAND function used as the threshold for the alarm.

metricAlarm_comparisonOperator :: Lens' MetricAlarm (Maybe ComparisonOperator) Source #

The arithmetic operation to use when comparing the specified statistic and threshold. The specified statistic value is used as the first operand.

metricAlarm_oKActions :: Lens' MetricAlarm (Maybe [Text]) Source #

The actions to execute when this alarm transitions to the OK state from any other state. Each action is specified as an Amazon Resource Name (ARN).

metricAlarm_evaluateLowSampleCountPercentile :: Lens' MetricAlarm (Maybe Text) Source #

Used only for alarms based on percentiles. If ignore, the alarm state does not change during periods with too few data points to be statistically significant. If evaluate or this parameter is not used, the alarm is always evaluated and possibly changes state no matter how many data points are available.

metricAlarm_stateValue :: Lens' MetricAlarm (Maybe StateValue) Source #

The state value for the alarm.

metricAlarm_datapointsToAlarm :: Lens' MetricAlarm (Maybe Natural) Source #

The number of data points that must be breaching to trigger the alarm.

metricAlarm_threshold :: Lens' MetricAlarm (Maybe Double) Source #

The value to compare with the specified statistic.

metricAlarm_alarmConfigurationUpdatedTimestamp :: Lens' MetricAlarm (Maybe UTCTime) Source #

The time stamp of the last update to the alarm configuration.

metricAlarm_actionsEnabled :: Lens' MetricAlarm (Maybe Bool) Source #

Indicates whether actions should be executed during any changes to the alarm state.

metricAlarm_insufficientDataActions :: Lens' MetricAlarm (Maybe [Text]) Source #

The actions to execute when this alarm transitions to the INSUFFICIENT_DATA state from any other state. Each action is specified as an Amazon Resource Name (ARN).

metricAlarm_stateReason :: Lens' MetricAlarm (Maybe Text) Source #

An explanation for the alarm state, in text format.

metricAlarm_stateReasonData :: Lens' MetricAlarm (Maybe Text) Source #

An explanation for the alarm state, in JSON format.

metricAlarm_dimensions :: Lens' MetricAlarm (Maybe [Dimension]) Source #

The dimensions for the metric associated with the alarm.

metricAlarm_alarmArn :: Lens' MetricAlarm (Maybe Text) Source #

The Amazon Resource Name (ARN) of the alarm.

metricAlarm_alarmActions :: Lens' MetricAlarm (Maybe [Text]) Source #

The actions to execute when this alarm transitions to the ALARM state from any other state. Each action is specified as an Amazon Resource Name (ARN).

metricAlarm_unit :: Lens' MetricAlarm (Maybe StandardUnit) Source #

The unit of the metric associated with the alarm.

metricAlarm_statistic :: Lens' MetricAlarm (Maybe Statistic) Source #

The statistic for the metric associated with the alarm, other than percentile. For percentile statistics, use ExtendedStatistic.

metricAlarm_extendedStatistic :: Lens' MetricAlarm (Maybe Text) Source #

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

MetricDataQuery

data MetricDataQuery Source #

This structure is used in both GetMetricData and PutMetricAlarm. The supported use of this structure is different for those two operations.

When used in GetMetricData, it indicates the metric data to return, and whether this call is just retrieving a batch set of data for one metric, or is performing a math expression on metric data. A single GetMetricData call can include up to 500 MetricDataQuery structures.

When used in PutMetricAlarm, it enables you to create an alarm based on a metric math expression. Each MetricDataQuery in the array specifies either a metric to retrieve, or a math expression to be performed on retrieved metrics. A single PutMetricAlarm call can include up to 20 MetricDataQuery structures in the array. The 20 structures can include as many as 10 structures that contain a MetricStat parameter to retrieve a metric, and as many as 10 structures that contain the Expression parameter to perform a math expression. Of those Expression structures, one must have True as the value for ReturnData. The result of this expression is the value the alarm watches.

Any expression used in a PutMetricAlarm operation must return a single time series. For more information, see Metric Math Syntax and Functions in the Amazon CloudWatch User Guide.

Some of the parameters of this structure also have different uses whether you are using this structure in a GetMetricData operation or a PutMetricAlarm operation. These differences are explained in the following parameter list.

See: newMetricDataQuery smart constructor.

Constructors

MetricDataQuery' 

Fields

  • returnData :: Maybe Bool

    When used in GetMetricData, this option indicates whether to return the timestamps and raw data values of this metric. If you are performing this call just to do math expressions and do not also need the raw data returned, you can specify False. If you omit this, the default of True is used.

    When used in PutMetricAlarm, specify True for the one expression result to use as the alarm. For all other metrics and expressions in the same PutMetricAlarm operation, specify ReturnData as False.

  • period :: Maybe Natural

    The granularity, in seconds, of the returned data points. For metrics with regular resolution, a period can be as short as one minute (60 seconds) and must be a multiple of 60. For high-resolution metrics that are collected at intervals of less than one minute, the period can be 1, 5, 10, 30, 60, or any multiple of 60. High-resolution metrics are those metrics stored by a PutMetricData operation that includes a StorageResolution of 1 second.

  • accountId :: Maybe Text

    The ID of the account where the metrics are located, if this is a cross-account alarm.

    Use this field only for PutMetricAlarm operations. It is not used in GetMetricData operations.

  • expression :: Maybe Text

    The math expression to be performed on the returned data, if this object is performing a math expression. This expression can use the Id of the other metrics to refer to those metrics, and can also use the Id of other expressions to use the result of those expressions. For more information about metric math expressions, see Metric Math Syntax and Functions in the Amazon CloudWatch User Guide.

    Within each MetricDataQuery object, you must specify either Expression or MetricStat but not both.

  • label :: Maybe Text

    A human-readable label for this metric or expression. This is especially useful if this is an expression, so that you know what the value represents. If the metric or expression is shown in a CloudWatch dashboard widget, the label is shown. If Label is omitted, CloudWatch generates a default.

    You can put dynamic expressions into a label, so that it is more descriptive. For more information, see Using Dynamic Labels.

  • metricStat :: Maybe MetricStat

    The metric to be returned, along with statistics, period, and units. Use this parameter only if this object is retrieving a metric and not performing a math expression on returned data.

    Within one MetricDataQuery object, you must specify either Expression or MetricStat but not both.

  • id :: Text

    A short name used to tie this object to the results in the response. This name must be unique within a single call to GetMetricData. If you are performing math expressions on this set of data, this name represents that data and can serve as a variable in the mathematical expression. The valid characters are letters, numbers, and underscore. The first character must be a lowercase letter.

Instances

Instances details
Eq MetricDataQuery Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.MetricDataQuery

Read MetricDataQuery Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.MetricDataQuery

Show MetricDataQuery Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.MetricDataQuery

Generic MetricDataQuery Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.MetricDataQuery

Associated Types

type Rep MetricDataQuery :: Type -> Type #

NFData MetricDataQuery Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.MetricDataQuery

Methods

rnf :: MetricDataQuery -> () #

Hashable MetricDataQuery Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.MetricDataQuery

ToQuery MetricDataQuery Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.MetricDataQuery

FromXML MetricDataQuery Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.MetricDataQuery

type Rep MetricDataQuery Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.MetricDataQuery

newMetricDataQuery Source #

Create a value of MetricDataQuery 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:returnData:MetricDataQuery', metricDataQuery_returnData - When used in GetMetricData, this option indicates whether to return the timestamps and raw data values of this metric. If you are performing this call just to do math expressions and do not also need the raw data returned, you can specify False. If you omit this, the default of True is used.

When used in PutMetricAlarm, specify True for the one expression result to use as the alarm. For all other metrics and expressions in the same PutMetricAlarm operation, specify ReturnData as False.

$sel:period:MetricDataQuery', metricDataQuery_period - The granularity, in seconds, of the returned data points. For metrics with regular resolution, a period can be as short as one minute (60 seconds) and must be a multiple of 60. For high-resolution metrics that are collected at intervals of less than one minute, the period can be 1, 5, 10, 30, 60, or any multiple of 60. High-resolution metrics are those metrics stored by a PutMetricData operation that includes a StorageResolution of 1 second.

$sel:accountId:MetricDataQuery', metricDataQuery_accountId - The ID of the account where the metrics are located, if this is a cross-account alarm.

Use this field only for PutMetricAlarm operations. It is not used in GetMetricData operations.

$sel:expression:MetricDataQuery', metricDataQuery_expression - The math expression to be performed on the returned data, if this object is performing a math expression. This expression can use the Id of the other metrics to refer to those metrics, and can also use the Id of other expressions to use the result of those expressions. For more information about metric math expressions, see Metric Math Syntax and Functions in the Amazon CloudWatch User Guide.

Within each MetricDataQuery object, you must specify either Expression or MetricStat but not both.

$sel:label:MetricDataQuery', metricDataQuery_label - A human-readable label for this metric or expression. This is especially useful if this is an expression, so that you know what the value represents. If the metric or expression is shown in a CloudWatch dashboard widget, the label is shown. If Label is omitted, CloudWatch generates a default.

You can put dynamic expressions into a label, so that it is more descriptive. For more information, see Using Dynamic Labels.

$sel:metricStat:MetricDataQuery', metricDataQuery_metricStat - The metric to be returned, along with statistics, period, and units. Use this parameter only if this object is retrieving a metric and not performing a math expression on returned data.

Within one MetricDataQuery object, you must specify either Expression or MetricStat but not both.

$sel:id:MetricDataQuery', metricDataQuery_id - A short name used to tie this object to the results in the response. This name must be unique within a single call to GetMetricData. If you are performing math expressions on this set of data, this name represents that data and can serve as a variable in the mathematical expression. The valid characters are letters, numbers, and underscore. The first character must be a lowercase letter.

metricDataQuery_returnData :: Lens' MetricDataQuery (Maybe Bool) Source #

When used in GetMetricData, this option indicates whether to return the timestamps and raw data values of this metric. If you are performing this call just to do math expressions and do not also need the raw data returned, you can specify False. If you omit this, the default of True is used.

When used in PutMetricAlarm, specify True for the one expression result to use as the alarm. For all other metrics and expressions in the same PutMetricAlarm operation, specify ReturnData as False.

metricDataQuery_period :: Lens' MetricDataQuery (Maybe Natural) Source #

The granularity, in seconds, of the returned data points. For metrics with regular resolution, a period can be as short as one minute (60 seconds) and must be a multiple of 60. For high-resolution metrics that are collected at intervals of less than one minute, the period can be 1, 5, 10, 30, 60, or any multiple of 60. High-resolution metrics are those metrics stored by a PutMetricData operation that includes a StorageResolution of 1 second.

metricDataQuery_accountId :: Lens' MetricDataQuery (Maybe Text) Source #

The ID of the account where the metrics are located, if this is a cross-account alarm.

Use this field only for PutMetricAlarm operations. It is not used in GetMetricData operations.

metricDataQuery_expression :: Lens' MetricDataQuery (Maybe Text) Source #

The math expression to be performed on the returned data, if this object is performing a math expression. This expression can use the Id of the other metrics to refer to those metrics, and can also use the Id of other expressions to use the result of those expressions. For more information about metric math expressions, see Metric Math Syntax and Functions in the Amazon CloudWatch User Guide.

Within each MetricDataQuery object, you must specify either Expression or MetricStat but not both.

metricDataQuery_label :: Lens' MetricDataQuery (Maybe Text) Source #

A human-readable label for this metric or expression. This is especially useful if this is an expression, so that you know what the value represents. If the metric or expression is shown in a CloudWatch dashboard widget, the label is shown. If Label is omitted, CloudWatch generates a default.

You can put dynamic expressions into a label, so that it is more descriptive. For more information, see Using Dynamic Labels.

metricDataQuery_metricStat :: Lens' MetricDataQuery (Maybe MetricStat) Source #

The metric to be returned, along with statistics, period, and units. Use this parameter only if this object is retrieving a metric and not performing a math expression on returned data.

Within one MetricDataQuery object, you must specify either Expression or MetricStat but not both.

metricDataQuery_id :: Lens' MetricDataQuery Text Source #

A short name used to tie this object to the results in the response. This name must be unique within a single call to GetMetricData. If you are performing math expressions on this set of data, this name represents that data and can serve as a variable in the mathematical expression. The valid characters are letters, numbers, and underscore. The first character must be a lowercase letter.

MetricDataResult

data MetricDataResult Source #

A GetMetricData call returns an array of MetricDataResult structures. Each of these structures includes the data points for that metric, along with the timestamps of those data points and other identifying information.

See: newMetricDataResult smart constructor.

Constructors

MetricDataResult' 

Fields

  • values :: Maybe [Double]

    The data points for the metric corresponding to Timestamps. The number of values always matches the number of timestamps and the timestamp for Values[x] is Timestamps[x].

  • id :: Maybe Text

    The short name you specified to represent this metric.

  • timestamps :: Maybe [ISO8601]

    The timestamps for the data points, formatted in Unix timestamp format. The number of timestamps always matches the number of values and the value for Timestamps[x] is Values[x].

  • messages :: Maybe [MessageData]

    A list of messages with additional information about the data returned.

  • label :: Maybe Text

    The human-readable label associated with the data.

  • statusCode :: Maybe StatusCode

    The status of the returned data. Complete indicates that all data points in the requested time range were returned. PartialData means that an incomplete set of data points were returned. You can use the NextToken value that was returned and repeat your request to get more data points. NextToken is not returned if you are performing a math expression. InternalError indicates that an error occurred. Retry your request using NextToken, if present.

Instances

Instances details
Eq MetricDataResult Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.MetricDataResult

Read MetricDataResult Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.MetricDataResult

Show MetricDataResult Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.MetricDataResult

Generic MetricDataResult Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.MetricDataResult

Associated Types

type Rep MetricDataResult :: Type -> Type #

NFData MetricDataResult Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.MetricDataResult

Methods

rnf :: MetricDataResult -> () #

Hashable MetricDataResult Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.MetricDataResult

FromXML MetricDataResult Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.MetricDataResult

type Rep MetricDataResult Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.MetricDataResult

type Rep MetricDataResult = D1 ('MetaData "MetricDataResult" "Amazonka.CloudWatch.Types.MetricDataResult" "libZSservicesZSamazonka-cloudwatchZSamazonka-cloudwatch" 'False) (C1 ('MetaCons "MetricDataResult'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "values") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Double])) :*: (S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "timestamps") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [ISO8601])))) :*: (S1 ('MetaSel ('Just "messages") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [MessageData])) :*: (S1 ('MetaSel ('Just "label") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "statusCode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe StatusCode))))))

newMetricDataResult :: MetricDataResult Source #

Create a value of MetricDataResult 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:values:MetricDataResult', metricDataResult_values - The data points for the metric corresponding to Timestamps. The number of values always matches the number of timestamps and the timestamp for Values[x] is Timestamps[x].

$sel:id:MetricDataResult', metricDataResult_id - The short name you specified to represent this metric.

$sel:timestamps:MetricDataResult', metricDataResult_timestamps - The timestamps for the data points, formatted in Unix timestamp format. The number of timestamps always matches the number of values and the value for Timestamps[x] is Values[x].

$sel:messages:MetricDataResult', metricDataResult_messages - A list of messages with additional information about the data returned.

$sel:label:MetricDataResult', metricDataResult_label - The human-readable label associated with the data.

$sel:statusCode:MetricDataResult', metricDataResult_statusCode - The status of the returned data. Complete indicates that all data points in the requested time range were returned. PartialData means that an incomplete set of data points were returned. You can use the NextToken value that was returned and repeat your request to get more data points. NextToken is not returned if you are performing a math expression. InternalError indicates that an error occurred. Retry your request using NextToken, if present.

metricDataResult_values :: Lens' MetricDataResult (Maybe [Double]) Source #

The data points for the metric corresponding to Timestamps. The number of values always matches the number of timestamps and the timestamp for Values[x] is Timestamps[x].

metricDataResult_id :: Lens' MetricDataResult (Maybe Text) Source #

The short name you specified to represent this metric.

metricDataResult_timestamps :: Lens' MetricDataResult (Maybe [UTCTime]) Source #

The timestamps for the data points, formatted in Unix timestamp format. The number of timestamps always matches the number of values and the value for Timestamps[x] is Values[x].

metricDataResult_messages :: Lens' MetricDataResult (Maybe [MessageData]) Source #

A list of messages with additional information about the data returned.

metricDataResult_label :: Lens' MetricDataResult (Maybe Text) Source #

The human-readable label associated with the data.

metricDataResult_statusCode :: Lens' MetricDataResult (Maybe StatusCode) Source #

The status of the returned data. Complete indicates that all data points in the requested time range were returned. PartialData means that an incomplete set of data points were returned. You can use the NextToken value that was returned and repeat your request to get more data points. NextToken is not returned if you are performing a math expression. InternalError indicates that an error occurred. Retry your request using NextToken, if present.

MetricDatum

data MetricDatum Source #

Encapsulates the information sent to either create a metric or add new values to be aggregated into an existing metric.

See: newMetricDatum smart constructor.

Constructors

MetricDatum' 

Fields

  • values :: Maybe [Double]

    Array of numbers representing the values for the metric during the period. Each unique value is listed just once in this array, and the corresponding number in the Counts array specifies the number of times that value occurred during the period. You can include up to 150 unique values in each PutMetricData action that specifies a Values array.

    Although the Values array accepts numbers of type Double, CloudWatch rejects values that are either too small or too large. Values must be in the range of -2^360 to 2^360. In addition, special values (for example, NaN, +Infinity, -Infinity) are not supported.

  • counts :: Maybe [Double]

    Array of numbers that is used along with the Values array. Each number in the Count array is the number of times the corresponding value in the Values array occurred during the period.

    If you omit the Counts array, the default of 1 is used as the value for each count. If you include a Counts array, it must include the same amount of values as the Values array.

  • value :: Maybe Double

    The value for the metric.

    Although the parameter accepts numbers of type Double, CloudWatch rejects values that are either too small or too large. Values must be in the range of -2^360 to 2^360. In addition, special values (for example, NaN, +Infinity, -Infinity) are not supported.

  • storageResolution :: Maybe Natural

    Valid values are 1 and 60. Setting this to 1 specifies this metric as a high-resolution metric, so that CloudWatch stores the metric with sub-minute resolution down to one second. Setting this to 60 specifies this metric as a regular-resolution metric, which CloudWatch stores at 1-minute resolution. Currently, high resolution is available only for custom metrics. For more information about high-resolution metrics, see High-Resolution Metrics in the Amazon CloudWatch User Guide.

    This field is optional, if you do not specify it the default of 60 is used.

  • dimensions :: Maybe [Dimension]

    The dimensions associated with the metric.

  • unit :: Maybe StandardUnit

    When you are using a Put operation, this defines what unit you want to use when storing the metric.

    In a Get operation, this displays the unit that is used for the metric.

  • timestamp :: Maybe ISO8601

    The time the metric data was received, expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC.

  • statisticValues :: Maybe StatisticSet

    The statistical values for the metric.

  • metricName :: Text

    The name of the metric.

Instances

Instances details
Eq MetricDatum Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.MetricDatum

Read MetricDatum Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.MetricDatum

Show MetricDatum Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.MetricDatum

Generic MetricDatum Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.MetricDatum

Associated Types

type Rep MetricDatum :: Type -> Type #

NFData MetricDatum Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.MetricDatum

Methods

rnf :: MetricDatum -> () #

Hashable MetricDatum Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.MetricDatum

ToQuery MetricDatum Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.MetricDatum

type Rep MetricDatum Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.MetricDatum

newMetricDatum Source #

Create a value of MetricDatum 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:values:MetricDatum', metricDatum_values - Array of numbers representing the values for the metric during the period. Each unique value is listed just once in this array, and the corresponding number in the Counts array specifies the number of times that value occurred during the period. You can include up to 150 unique values in each PutMetricData action that specifies a Values array.

Although the Values array accepts numbers of type Double, CloudWatch rejects values that are either too small or too large. Values must be in the range of -2^360 to 2^360. In addition, special values (for example, NaN, +Infinity, -Infinity) are not supported.

$sel:counts:MetricDatum', metricDatum_counts - Array of numbers that is used along with the Values array. Each number in the Count array is the number of times the corresponding value in the Values array occurred during the period.

If you omit the Counts array, the default of 1 is used as the value for each count. If you include a Counts array, it must include the same amount of values as the Values array.

$sel:value:MetricDatum', metricDatum_value - The value for the metric.

Although the parameter accepts numbers of type Double, CloudWatch rejects values that are either too small or too large. Values must be in the range of -2^360 to 2^360. In addition, special values (for example, NaN, +Infinity, -Infinity) are not supported.

$sel:storageResolution:MetricDatum', metricDatum_storageResolution - Valid values are 1 and 60. Setting this to 1 specifies this metric as a high-resolution metric, so that CloudWatch stores the metric with sub-minute resolution down to one second. Setting this to 60 specifies this metric as a regular-resolution metric, which CloudWatch stores at 1-minute resolution. Currently, high resolution is available only for custom metrics. For more information about high-resolution metrics, see High-Resolution Metrics in the Amazon CloudWatch User Guide.

This field is optional, if you do not specify it the default of 60 is used.

$sel:dimensions:MetricDatum', metricDatum_dimensions - The dimensions associated with the metric.

$sel:unit:MetricDatum', metricDatum_unit - When you are using a Put operation, this defines what unit you want to use when storing the metric.

In a Get operation, this displays the unit that is used for the metric.

$sel:timestamp:MetricDatum', metricDatum_timestamp - The time the metric data was received, expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC.

$sel:statisticValues:MetricDatum', metricDatum_statisticValues - The statistical values for the metric.

$sel:metricName:MetricDatum', metricDatum_metricName - The name of the metric.

metricDatum_values :: Lens' MetricDatum (Maybe [Double]) Source #

Array of numbers representing the values for the metric during the period. Each unique value is listed just once in this array, and the corresponding number in the Counts array specifies the number of times that value occurred during the period. You can include up to 150 unique values in each PutMetricData action that specifies a Values array.

Although the Values array accepts numbers of type Double, CloudWatch rejects values that are either too small or too large. Values must be in the range of -2^360 to 2^360. In addition, special values (for example, NaN, +Infinity, -Infinity) are not supported.

metricDatum_counts :: Lens' MetricDatum (Maybe [Double]) Source #

Array of numbers that is used along with the Values array. Each number in the Count array is the number of times the corresponding value in the Values array occurred during the period.

If you omit the Counts array, the default of 1 is used as the value for each count. If you include a Counts array, it must include the same amount of values as the Values array.

metricDatum_value :: Lens' MetricDatum (Maybe Double) Source #

The value for the metric.

Although the parameter accepts numbers of type Double, CloudWatch rejects values that are either too small or too large. Values must be in the range of -2^360 to 2^360. In addition, special values (for example, NaN, +Infinity, -Infinity) are not supported.

metricDatum_storageResolution :: Lens' MetricDatum (Maybe Natural) Source #

Valid values are 1 and 60. Setting this to 1 specifies this metric as a high-resolution metric, so that CloudWatch stores the metric with sub-minute resolution down to one second. Setting this to 60 specifies this metric as a regular-resolution metric, which CloudWatch stores at 1-minute resolution. Currently, high resolution is available only for custom metrics. For more information about high-resolution metrics, see High-Resolution Metrics in the Amazon CloudWatch User Guide.

This field is optional, if you do not specify it the default of 60 is used.

metricDatum_dimensions :: Lens' MetricDatum (Maybe [Dimension]) Source #

The dimensions associated with the metric.

metricDatum_unit :: Lens' MetricDatum (Maybe StandardUnit) Source #

When you are using a Put operation, this defines what unit you want to use when storing the metric.

In a Get operation, this displays the unit that is used for the metric.

metricDatum_timestamp :: Lens' MetricDatum (Maybe UTCTime) Source #

The time the metric data was received, expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC.

metricDatum_statisticValues :: Lens' MetricDatum (Maybe StatisticSet) Source #

The statistical values for the metric.

MetricStat

data MetricStat Source #

This structure defines the metric to be returned, along with the statistics, period, and units.

See: newMetricStat smart constructor.

Constructors

MetricStat' 

Fields

  • unit :: Maybe StandardUnit

    When you are using a Put operation, this defines what unit you want to use when storing the metric.

    In a Get operation, if you omit Unit then all data that was collected with any unit is returned, along with the corresponding units that were specified when the data was reported to CloudWatch. If you specify a unit, the operation returns only data that was collected with that unit specified. If you specify a unit that does not match the data collected, the results of the operation are null. CloudWatch does not perform unit conversions.

  • metric :: Metric

    The metric to return, including the metric name, namespace, and dimensions.

  • period :: Natural

    The granularity, in seconds, of the returned data points. For metrics with regular resolution, a period can be as short as one minute (60 seconds) and must be a multiple of 60. For high-resolution metrics that are collected at intervals of less than one minute, the period can be 1, 5, 10, 30, 60, or any multiple of 60. High-resolution metrics are those metrics stored by a PutMetricData call that includes a StorageResolution of 1 second.

    If the StartTime parameter specifies a time stamp that is greater than 3 hours ago, you must specify the period as follows or no data points in that time range is returned:

    • Start time between 3 hours and 15 days ago - Use a multiple of 60 seconds (1 minute).
    • Start time between 15 and 63 days ago - Use a multiple of 300 seconds (5 minutes).
    • Start time greater than 63 days ago - Use a multiple of 3600 seconds (1 hour).
  • stat :: Text

    The statistic to return. It can include any CloudWatch statistic or extended statistic.

Instances

Instances details
Eq MetricStat Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.MetricStat

Read MetricStat Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.MetricStat

Show MetricStat Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.MetricStat

Generic MetricStat Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.MetricStat

Associated Types

type Rep MetricStat :: Type -> Type #

NFData MetricStat Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.MetricStat

Methods

rnf :: MetricStat -> () #

Hashable MetricStat Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.MetricStat

ToQuery MetricStat Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.MetricStat

FromXML MetricStat Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.MetricStat

type Rep MetricStat Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.MetricStat

type Rep MetricStat = D1 ('MetaData "MetricStat" "Amazonka.CloudWatch.Types.MetricStat" "libZSservicesZSamazonka-cloudwatchZSamazonka-cloudwatch" 'False) (C1 ('MetaCons "MetricStat'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "unit") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe StandardUnit)) :*: S1 ('MetaSel ('Just "metric") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Metric)) :*: (S1 ('MetaSel ('Just "period") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Natural) :*: S1 ('MetaSel ('Just "stat") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newMetricStat Source #

Create a value of MetricStat 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:unit:MetricStat', metricStat_unit - When you are using a Put operation, this defines what unit you want to use when storing the metric.

In a Get operation, if you omit Unit then all data that was collected with any unit is returned, along with the corresponding units that were specified when the data was reported to CloudWatch. If you specify a unit, the operation returns only data that was collected with that unit specified. If you specify a unit that does not match the data collected, the results of the operation are null. CloudWatch does not perform unit conversions.

$sel:metric:MetricStat', metricStat_metric - The metric to return, including the metric name, namespace, and dimensions.

$sel:period:MetricStat', metricStat_period - The granularity, in seconds, of the returned data points. For metrics with regular resolution, a period can be as short as one minute (60 seconds) and must be a multiple of 60. For high-resolution metrics that are collected at intervals of less than one minute, the period can be 1, 5, 10, 30, 60, or any multiple of 60. High-resolution metrics are those metrics stored by a PutMetricData call that includes a StorageResolution of 1 second.

If the StartTime parameter specifies a time stamp that is greater than 3 hours ago, you must specify the period as follows or no data points in that time range is returned:

  • Start time between 3 hours and 15 days ago - Use a multiple of 60 seconds (1 minute).
  • Start time between 15 and 63 days ago - Use a multiple of 300 seconds (5 minutes).
  • Start time greater than 63 days ago - Use a multiple of 3600 seconds (1 hour).

$sel:stat:MetricStat', metricStat_stat - The statistic to return. It can include any CloudWatch statistic or extended statistic.

metricStat_unit :: Lens' MetricStat (Maybe StandardUnit) Source #

When you are using a Put operation, this defines what unit you want to use when storing the metric.

In a Get operation, if you omit Unit then all data that was collected with any unit is returned, along with the corresponding units that were specified when the data was reported to CloudWatch. If you specify a unit, the operation returns only data that was collected with that unit specified. If you specify a unit that does not match the data collected, the results of the operation are null. CloudWatch does not perform unit conversions.

metricStat_metric :: Lens' MetricStat Metric Source #

The metric to return, including the metric name, namespace, and dimensions.

metricStat_period :: Lens' MetricStat Natural Source #

The granularity, in seconds, of the returned data points. For metrics with regular resolution, a period can be as short as one minute (60 seconds) and must be a multiple of 60. For high-resolution metrics that are collected at intervals of less than one minute, the period can be 1, 5, 10, 30, 60, or any multiple of 60. High-resolution metrics are those metrics stored by a PutMetricData call that includes a StorageResolution of 1 second.

If the StartTime parameter specifies a time stamp that is greater than 3 hours ago, you must specify the period as follows or no data points in that time range is returned:

  • Start time between 3 hours and 15 days ago - Use a multiple of 60 seconds (1 minute).
  • Start time between 15 and 63 days ago - Use a multiple of 300 seconds (5 minutes).
  • Start time greater than 63 days ago - Use a multiple of 3600 seconds (1 hour).

metricStat_stat :: Lens' MetricStat Text Source #

The statistic to return. It can include any CloudWatch statistic or extended statistic.

MetricStreamEntry

data MetricStreamEntry Source #

This structure contains the configuration information about one metric stream.

See: newMetricStreamEntry smart constructor.

Constructors

MetricStreamEntry' 

Fields

Instances

Instances details
Eq MetricStreamEntry Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.MetricStreamEntry

Read MetricStreamEntry Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.MetricStreamEntry

Show MetricStreamEntry Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.MetricStreamEntry

Generic MetricStreamEntry Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.MetricStreamEntry

Associated Types

type Rep MetricStreamEntry :: Type -> Type #

NFData MetricStreamEntry Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.MetricStreamEntry

Methods

rnf :: MetricStreamEntry -> () #

Hashable MetricStreamEntry Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.MetricStreamEntry

FromXML MetricStreamEntry Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.MetricStreamEntry

type Rep MetricStreamEntry Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.MetricStreamEntry

newMetricStreamEntry :: MetricStreamEntry Source #

Create a value of MetricStreamEntry 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:state:MetricStreamEntry', metricStreamEntry_state - The current state of this stream. Valid values are running and stopped.

$sel:arn:MetricStreamEntry', metricStreamEntry_arn - The ARN of the metric stream.

$sel:firehoseArn:MetricStreamEntry', metricStreamEntry_firehoseArn - The ARN of the Kinesis Firehose devlivery stream that is used for this metric stream.

$sel:outputFormat:MetricStreamEntry', metricStreamEntry_outputFormat - The output format of this metric stream. Valid values are json and opentelemetry0.7.

$sel:lastUpdateDate:MetricStreamEntry', metricStreamEntry_lastUpdateDate - The date that the configuration of this metric stream was most recently updated.

$sel:name:MetricStreamEntry', metricStreamEntry_name - The name of the metric stream.

$sel:creationDate:MetricStreamEntry', metricStreamEntry_creationDate - The date that the metric stream was originally created.

metricStreamEntry_state :: Lens' MetricStreamEntry (Maybe Text) Source #

The current state of this stream. Valid values are running and stopped.

metricStreamEntry_arn :: Lens' MetricStreamEntry (Maybe Text) Source #

The ARN of the metric stream.

metricStreamEntry_firehoseArn :: Lens' MetricStreamEntry (Maybe Text) Source #

The ARN of the Kinesis Firehose devlivery stream that is used for this metric stream.

metricStreamEntry_outputFormat :: Lens' MetricStreamEntry (Maybe MetricStreamOutputFormat) Source #

The output format of this metric stream. Valid values are json and opentelemetry0.7.

metricStreamEntry_lastUpdateDate :: Lens' MetricStreamEntry (Maybe UTCTime) Source #

The date that the configuration of this metric stream was most recently updated.

metricStreamEntry_name :: Lens' MetricStreamEntry (Maybe Text) Source #

The name of the metric stream.

metricStreamEntry_creationDate :: Lens' MetricStreamEntry (Maybe UTCTime) Source #

The date that the metric stream was originally created.

MetricStreamFilter

data MetricStreamFilter Source #

This structure contains the name of one of the metric namespaces that is listed in a filter of a metric stream.

See: newMetricStreamFilter smart constructor.

Constructors

MetricStreamFilter' 

Fields

Instances

Instances details
Eq MetricStreamFilter Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.MetricStreamFilter

Read MetricStreamFilter Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.MetricStreamFilter

Show MetricStreamFilter Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.MetricStreamFilter

Generic MetricStreamFilter Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.MetricStreamFilter

Associated Types

type Rep MetricStreamFilter :: Type -> Type #

NFData MetricStreamFilter Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.MetricStreamFilter

Methods

rnf :: MetricStreamFilter -> () #

Hashable MetricStreamFilter Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.MetricStreamFilter

ToQuery MetricStreamFilter Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.MetricStreamFilter

FromXML MetricStreamFilter Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.MetricStreamFilter

type Rep MetricStreamFilter Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.MetricStreamFilter

type Rep MetricStreamFilter = D1 ('MetaData "MetricStreamFilter" "Amazonka.CloudWatch.Types.MetricStreamFilter" "libZSservicesZSamazonka-cloudwatchZSamazonka-cloudwatch" 'False) (C1 ('MetaCons "MetricStreamFilter'" 'PrefixI 'True) (S1 ('MetaSel ('Just "namespace") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))

newMetricStreamFilter :: MetricStreamFilter Source #

Create a value of MetricStreamFilter 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:namespace:MetricStreamFilter', metricStreamFilter_namespace - The name of the metric namespace in the filter.

metricStreamFilter_namespace :: Lens' MetricStreamFilter (Maybe Text) Source #

The name of the metric namespace in the filter.

PartialFailure

data PartialFailure Source #

This array is empty if the API operation was successful for all the rules specified in the request. If the operation could not process one of the rules, the following data is returned for each of those rules.

See: newPartialFailure smart constructor.

Constructors

PartialFailure' 

Fields

Instances

Instances details
Eq PartialFailure Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.PartialFailure

Read PartialFailure Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.PartialFailure

Show PartialFailure Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.PartialFailure

Generic PartialFailure Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.PartialFailure

Associated Types

type Rep PartialFailure :: Type -> Type #

NFData PartialFailure Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.PartialFailure

Methods

rnf :: PartialFailure -> () #

Hashable PartialFailure Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.PartialFailure

FromXML PartialFailure Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.PartialFailure

type Rep PartialFailure Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.PartialFailure

type Rep PartialFailure = D1 ('MetaData "PartialFailure" "Amazonka.CloudWatch.Types.PartialFailure" "libZSservicesZSamazonka-cloudwatchZSamazonka-cloudwatch" 'False) (C1 ('MetaCons "PartialFailure'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "failureResource") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "failureCode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "failureDescription") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "exceptionType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))))

newPartialFailure :: PartialFailure Source #

Create a value of PartialFailure 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:failureResource:PartialFailure', partialFailure_failureResource - The specified rule that could not be deleted.

$sel:failureCode:PartialFailure', partialFailure_failureCode - The code of the error.

$sel:failureDescription:PartialFailure', partialFailure_failureDescription - A description of the error.

$sel:exceptionType:PartialFailure', partialFailure_exceptionType - The type of error.

partialFailure_failureResource :: Lens' PartialFailure (Maybe Text) Source #

The specified rule that could not be deleted.

Range

data Range Source #

Specifies one range of days or times to exclude from use for training an anomaly detection model.

See: newRange smart constructor.

Constructors

Range' 

Fields

  • startTime :: ISO8601

    The start time of the range to exclude. The format is yyyy-MM-dd'T'HH:mm:ss. For example, 2019-07-01T23:59:59.

  • endTime :: ISO8601

    The end time of the range to exclude. The format is yyyy-MM-dd'T'HH:mm:ss. For example, 2019-07-01T23:59:59.

Instances

Instances details
Eq Range Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.Range

Methods

(==) :: Range -> Range -> Bool #

(/=) :: Range -> Range -> Bool #

Read Range Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.Range

Show Range Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.Range

Methods

showsPrec :: Int -> Range -> ShowS #

show :: Range -> String #

showList :: [Range] -> ShowS #

Generic Range Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.Range

Associated Types

type Rep Range :: Type -> Type #

Methods

from :: Range -> Rep Range x #

to :: Rep Range x -> Range #

NFData Range Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.Range

Methods

rnf :: Range -> () #

Hashable Range Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.Range

Methods

hashWithSalt :: Int -> Range -> Int #

hash :: Range -> Int #

ToQuery Range Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.Range

Methods

toQuery :: Range -> QueryString #

FromXML Range Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.Range

Methods

parseXML :: [Node] -> Either String Range #

type Rep Range Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.Range

type Rep Range = D1 ('MetaData "Range" "Amazonka.CloudWatch.Types.Range" "libZSservicesZSamazonka-cloudwatchZSamazonka-cloudwatch" 'False) (C1 ('MetaCons "Range'" 'PrefixI 'True) (S1 ('MetaSel ('Just "startTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ISO8601) :*: S1 ('MetaSel ('Just "endTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ISO8601)))

newRange Source #

Create a value of Range 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:startTime:Range', range_startTime - The start time of the range to exclude. The format is yyyy-MM-dd'T'HH:mm:ss. For example, 2019-07-01T23:59:59.

$sel:endTime:Range', range_endTime - The end time of the range to exclude. The format is yyyy-MM-dd'T'HH:mm:ss. For example, 2019-07-01T23:59:59.

range_startTime :: Lens' Range UTCTime Source #

The start time of the range to exclude. The format is yyyy-MM-dd'T'HH:mm:ss. For example, 2019-07-01T23:59:59.

range_endTime :: Lens' Range UTCTime Source #

The end time of the range to exclude. The format is yyyy-MM-dd'T'HH:mm:ss. For example, 2019-07-01T23:59:59.

StatisticSet

data StatisticSet Source #

Represents a set of statistics that describes a specific metric.

See: newStatisticSet smart constructor.

Constructors

StatisticSet' 

Fields

Instances

Instances details
Eq StatisticSet Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.StatisticSet

Read StatisticSet Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.StatisticSet

Show StatisticSet Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.StatisticSet

Generic StatisticSet Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.StatisticSet

Associated Types

type Rep StatisticSet :: Type -> Type #

NFData StatisticSet Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.StatisticSet

Methods

rnf :: StatisticSet -> () #

Hashable StatisticSet Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.StatisticSet

ToQuery StatisticSet Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.StatisticSet

type Rep StatisticSet Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.StatisticSet

type Rep StatisticSet = D1 ('MetaData "StatisticSet" "Amazonka.CloudWatch.Types.StatisticSet" "libZSservicesZSamazonka-cloudwatchZSamazonka-cloudwatch" 'False) (C1 ('MetaCons "StatisticSet'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "sampleCount") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Double) :*: S1 ('MetaSel ('Just "sum") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Double)) :*: (S1 ('MetaSel ('Just "minimum") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Double) :*: S1 ('MetaSel ('Just "maximum") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Double))))

newStatisticSet Source #

Create a value of StatisticSet 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:sampleCount:StatisticSet', statisticSet_sampleCount - The number of samples used for the statistic set.

$sel:sum:StatisticSet', statisticSet_sum - The sum of values for the sample set.

$sel:minimum:StatisticSet', statisticSet_minimum - The minimum value of the sample set.

$sel:maximum:StatisticSet', statisticSet_maximum - The maximum value of the sample set.

statisticSet_sampleCount :: Lens' StatisticSet Double Source #

The number of samples used for the statistic set.

statisticSet_sum :: Lens' StatisticSet Double Source #

The sum of values for the sample set.

statisticSet_minimum :: Lens' StatisticSet Double Source #

The minimum value of the sample set.

statisticSet_maximum :: Lens' StatisticSet Double Source #

The maximum value of the sample set.

Tag

data Tag Source #

A key-value pair associated with a CloudWatch resource.

See: newTag smart constructor.

Constructors

Tag' 

Fields

  • key :: Text

    A string that you can use to assign a value. The combination of tag keys and values can help you organize and categorize your resources.

  • value :: Text

    The value for the specified tag key.

Instances

Instances details
Eq Tag Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.Tag

Methods

(==) :: Tag -> Tag -> Bool #

(/=) :: Tag -> Tag -> Bool #

Read Tag Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.Tag

Show Tag Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.Tag

Methods

showsPrec :: Int -> Tag -> ShowS #

show :: Tag -> String #

showList :: [Tag] -> ShowS #

Generic Tag Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.Tag

Associated Types

type Rep Tag :: Type -> Type #

Methods

from :: Tag -> Rep Tag x #

to :: Rep Tag x -> Tag #

NFData Tag Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.Tag

Methods

rnf :: Tag -> () #

Hashable Tag Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.Tag

Methods

hashWithSalt :: Int -> Tag -> Int #

hash :: Tag -> Int #

ToQuery Tag Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.Tag

Methods

toQuery :: Tag -> QueryString #

FromXML Tag Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.Tag

Methods

parseXML :: [Node] -> Either String Tag #

type Rep Tag Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.Tag

type Rep Tag = D1 ('MetaData "Tag" "Amazonka.CloudWatch.Types.Tag" "libZSservicesZSamazonka-cloudwatchZSamazonka-cloudwatch" 'False) (C1 ('MetaCons "Tag'" 'PrefixI 'True) (S1 ('MetaSel ('Just "key") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "value") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newTag Source #

Create a value of Tag 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:key:Tag', tag_key - A string that you can use to assign a value. The combination of tag keys and values can help you organize and categorize your resources.

$sel:value:Tag', tag_value - The value for the specified tag key.

tag_key :: Lens' Tag Text Source #

A string that you can use to assign a value. The combination of tag keys and values can help you organize and categorize your resources.

tag_value :: Lens' Tag Text Source #

The value for the specified tag key.