libZSservicesZSamazonka-lookoutmetricsZSamazonka-lookoutmetrics
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.LookoutMetrics.CreateAlert

Description

Creates an alert for an anomaly detector.

Synopsis

Creating a Request

data CreateAlert Source #

See: newCreateAlert smart constructor.

Constructors

CreateAlert' 

Fields

Instances

Instances details
Eq CreateAlert Source # 
Instance details

Defined in Amazonka.LookoutMetrics.CreateAlert

Read CreateAlert Source # 
Instance details

Defined in Amazonka.LookoutMetrics.CreateAlert

Show CreateAlert Source # 
Instance details

Defined in Amazonka.LookoutMetrics.CreateAlert

Generic CreateAlert Source # 
Instance details

Defined in Amazonka.LookoutMetrics.CreateAlert

Associated Types

type Rep CreateAlert :: Type -> Type #

NFData CreateAlert Source # 
Instance details

Defined in Amazonka.LookoutMetrics.CreateAlert

Methods

rnf :: CreateAlert -> () #

Hashable CreateAlert Source # 
Instance details

Defined in Amazonka.LookoutMetrics.CreateAlert

ToJSON CreateAlert Source # 
Instance details

Defined in Amazonka.LookoutMetrics.CreateAlert

AWSRequest CreateAlert Source # 
Instance details

Defined in Amazonka.LookoutMetrics.CreateAlert

Associated Types

type AWSResponse CreateAlert #

ToHeaders CreateAlert Source # 
Instance details

Defined in Amazonka.LookoutMetrics.CreateAlert

Methods

toHeaders :: CreateAlert -> [Header] #

ToPath CreateAlert Source # 
Instance details

Defined in Amazonka.LookoutMetrics.CreateAlert

ToQuery CreateAlert Source # 
Instance details

Defined in Amazonka.LookoutMetrics.CreateAlert

type Rep CreateAlert Source # 
Instance details

Defined in Amazonka.LookoutMetrics.CreateAlert

type Rep CreateAlert = D1 ('MetaData "CreateAlert" "Amazonka.LookoutMetrics.CreateAlert" "libZSservicesZSamazonka-lookoutmetricsZSamazonka-lookoutmetrics" 'False) (C1 ('MetaCons "CreateAlert'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "alertDescription") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text))) :*: S1 ('MetaSel ('Just "alertName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))) :*: (S1 ('MetaSel ('Just "alertSensitivityThreshold") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Natural) :*: (S1 ('MetaSel ('Just "anomalyDetectorArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "action") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Action)))))
type AWSResponse CreateAlert Source # 
Instance details

Defined in Amazonka.LookoutMetrics.CreateAlert

newCreateAlert Source #

Create a value of CreateAlert 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:alertDescription:CreateAlert', createAlert_alertDescription - A description of the alert.

$sel:tags:CreateAlert', createAlert_tags - A list of tags to apply to the alert.

$sel:alertName:CreateAlert', createAlert_alertName - The name of the alert.

$sel:alertSensitivityThreshold:CreateAlert', createAlert_alertSensitivityThreshold - An integer from 0 to 100 specifying the alert sensitivity threshold.

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

$sel:action:CreateAlert', createAlert_action - Action that will be triggered when there is an alert.

Request Lenses

createAlert_tags :: Lens' CreateAlert (Maybe (HashMap Text Text)) Source #

A list of tags to apply to the alert.

createAlert_alertSensitivityThreshold :: Lens' CreateAlert Natural Source #

An integer from 0 to 100 specifying the alert sensitivity threshold.

createAlert_anomalyDetectorArn :: Lens' CreateAlert Text Source #

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

createAlert_action :: Lens' CreateAlert Action Source #

Action that will be triggered when there is an alert.

Destructuring the Response

data CreateAlertResponse Source #

See: newCreateAlertResponse smart constructor.

Constructors

CreateAlertResponse' 

Fields

Instances

Instances details
Eq CreateAlertResponse Source # 
Instance details

Defined in Amazonka.LookoutMetrics.CreateAlert

Read CreateAlertResponse Source # 
Instance details

Defined in Amazonka.LookoutMetrics.CreateAlert

Show CreateAlertResponse Source # 
Instance details

Defined in Amazonka.LookoutMetrics.CreateAlert

Generic CreateAlertResponse Source # 
Instance details

Defined in Amazonka.LookoutMetrics.CreateAlert

Associated Types

type Rep CreateAlertResponse :: Type -> Type #

NFData CreateAlertResponse Source # 
Instance details

Defined in Amazonka.LookoutMetrics.CreateAlert

Methods

rnf :: CreateAlertResponse -> () #

type Rep CreateAlertResponse Source # 
Instance details

Defined in Amazonka.LookoutMetrics.CreateAlert

type Rep CreateAlertResponse = D1 ('MetaData "CreateAlertResponse" "Amazonka.LookoutMetrics.CreateAlert" "libZSservicesZSamazonka-lookoutmetricsZSamazonka-lookoutmetrics" 'False) (C1 ('MetaCons "CreateAlertResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "alertArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newCreateAlertResponse Source #

Create a value of CreateAlertResponse 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:alertArn:CreateAlertResponse', createAlertResponse_alertArn - The ARN of the alert.

$sel:httpStatus:CreateAlertResponse', createAlertResponse_httpStatus - The response's http status code.

Response Lenses