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

Amazonka.LookoutMetrics.Types.Alert

Description

 
Synopsis

Documentation

data Alert Source #

A configuration for Amazon SNS-integrated notifications.

See: newAlert smart constructor.

Constructors

Alert' 

Fields

Instances

Instances details
FromJSON Alert Source # 
Instance details

Defined in Amazonka.LookoutMetrics.Types.Alert

Generic Alert Source # 
Instance details

Defined in Amazonka.LookoutMetrics.Types.Alert

Associated Types

type Rep Alert :: Type -> Type #

Methods

from :: Alert -> Rep Alert x #

to :: Rep Alert x -> Alert #

Read Alert Source # 
Instance details

Defined in Amazonka.LookoutMetrics.Types.Alert

Show Alert Source # 
Instance details

Defined in Amazonka.LookoutMetrics.Types.Alert

Methods

showsPrec :: Int -> Alert -> ShowS #

show :: Alert -> String #

showList :: [Alert] -> ShowS #

NFData Alert Source # 
Instance details

Defined in Amazonka.LookoutMetrics.Types.Alert

Methods

rnf :: Alert -> () #

Eq Alert Source # 
Instance details

Defined in Amazonka.LookoutMetrics.Types.Alert

Methods

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

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

Hashable Alert Source # 
Instance details

Defined in Amazonka.LookoutMetrics.Types.Alert

Methods

hashWithSalt :: Int -> Alert -> Int #

hash :: Alert -> Int #

type Rep Alert Source # 
Instance details

Defined in Amazonka.LookoutMetrics.Types.Alert

type Rep Alert = D1 ('MetaData "Alert" "Amazonka.LookoutMetrics.Types.Alert" "amazonka-lookoutmetrics-2.0-5gJoMWEA4GrGsqHAPh1b9h" 'False) (C1 ('MetaCons "Alert'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "action") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Action)) :*: S1 ('MetaSel ('Just "alertArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "alertDescription") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "alertFilters") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe AlertFilters)) :*: S1 ('MetaSel ('Just "alertName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))) :*: ((S1 ('MetaSel ('Just "alertSensitivityThreshold") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: (S1 ('MetaSel ('Just "alertStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe AlertStatus)) :*: S1 ('MetaSel ('Just "alertType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe AlertType)))) :*: (S1 ('MetaSel ('Just "anomalyDetectorArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "creationTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)) :*: S1 ('MetaSel ('Just "lastModificationTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)))))))

newAlert :: Alert Source #

Create a value of Alert 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:action:Alert', alert_action - Action that will be triggered when there is an alert.

$sel:alertArn:Alert', alert_alertArn - The ARN of the alert.

$sel:alertDescription:Alert', alert_alertDescription - A description of the alert.

$sel:alertFilters:Alert', alert_alertFilters - The configuration of the alert filters, containing MetricList and DimensionFilter.

$sel:alertName:Alert', alert_alertName - The name of the alert.

$sel:alertSensitivityThreshold:Alert', alert_alertSensitivityThreshold - The minimum severity for an anomaly to trigger the alert.

$sel:alertStatus:Alert', alert_alertStatus - The status of the alert.

$sel:alertType:Alert', alert_alertType - The type of the alert.

$sel:anomalyDetectorArn:Alert', alert_anomalyDetectorArn - The ARN of the detector to which the alert is attached.

$sel:creationTime:Alert', alert_creationTime - The time at which the alert was created.

$sel:lastModificationTime:Alert', alert_lastModificationTime - The time at which the alert was last modified.

alert_action :: Lens' Alert (Maybe Action) Source #

Action that will be triggered when there is an alert.

alert_alertArn :: Lens' Alert (Maybe Text) Source #

The ARN of the alert.

alert_alertDescription :: Lens' Alert (Maybe Text) Source #

A description of the alert.

alert_alertFilters :: Lens' Alert (Maybe AlertFilters) Source #

The configuration of the alert filters, containing MetricList and DimensionFilter.

alert_alertName :: Lens' Alert (Maybe Text) Source #

The name of the alert.

alert_alertSensitivityThreshold :: Lens' Alert (Maybe Natural) Source #

The minimum severity for an anomaly to trigger the alert.

alert_alertStatus :: Lens' Alert (Maybe AlertStatus) Source #

The status of the alert.

alert_alertType :: Lens' Alert (Maybe AlertType) Source #

The type of the alert.

alert_anomalyDetectorArn :: Lens' Alert (Maybe Text) Source #

The ARN of the detector to which the alert is attached.

alert_creationTime :: Lens' Alert (Maybe UTCTime) Source #

The time at which the alert was created.

alert_lastModificationTime :: Lens' Alert (Maybe UTCTime) Source #

The time at which the alert was last modified.