amazonka-lookoutequipment-2.0: Amazon Lookout for Equipment 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.LookoutEquipment.CreateLabel

Description

Creates a label for an event.

Synopsis

Creating a Request

data CreateLabel Source #

See: newCreateLabel smart constructor.

Constructors

CreateLabel' 

Fields

  • equipment :: Maybe Text

    Indicates that a label pertains to a particular piece of equipment.

    Data in this field will be retained for service usage. Follow best practices for the security of your data.

  • faultCode :: Maybe Text

    Provides additional information about the label. The fault code must be defined in the FaultCodes attribute of the label group.

    Data in this field will be retained for service usage. Follow best practices for the security of your data.

  • notes :: Maybe Text

    Metadata providing additional information about the label.

    Data in this field will be retained for service usage. Follow best practices for the security of your data.

  • labelGroupName :: Text

    The name of a group of labels.

    Data in this field will be retained for service usage. Follow best practices for the security of your data.

  • startTime :: POSIX

    The start time of the labeled event.

  • endTime :: POSIX

    The end time of the labeled event.

  • rating :: LabelRating

    Indicates whether a labeled event represents an anomaly.

  • clientToken :: Text

    A unique identifier for the request to create a label. If you do not set the client request token, Lookout for Equipment generates one.

Instances

Instances details
ToJSON CreateLabel Source # 
Instance details

Defined in Amazonka.LookoutEquipment.CreateLabel

ToHeaders CreateLabel Source # 
Instance details

Defined in Amazonka.LookoutEquipment.CreateLabel

Methods

toHeaders :: CreateLabel -> [Header] #

ToPath CreateLabel Source # 
Instance details

Defined in Amazonka.LookoutEquipment.CreateLabel

ToQuery CreateLabel Source # 
Instance details

Defined in Amazonka.LookoutEquipment.CreateLabel

AWSRequest CreateLabel Source # 
Instance details

Defined in Amazonka.LookoutEquipment.CreateLabel

Associated Types

type AWSResponse CreateLabel #

Generic CreateLabel Source # 
Instance details

Defined in Amazonka.LookoutEquipment.CreateLabel

Associated Types

type Rep CreateLabel :: Type -> Type #

Read CreateLabel Source # 
Instance details

Defined in Amazonka.LookoutEquipment.CreateLabel

Show CreateLabel Source # 
Instance details

Defined in Amazonka.LookoutEquipment.CreateLabel

NFData CreateLabel Source # 
Instance details

Defined in Amazonka.LookoutEquipment.CreateLabel

Methods

rnf :: CreateLabel -> () #

Eq CreateLabel Source # 
Instance details

Defined in Amazonka.LookoutEquipment.CreateLabel

Hashable CreateLabel Source # 
Instance details

Defined in Amazonka.LookoutEquipment.CreateLabel

type AWSResponse CreateLabel Source # 
Instance details

Defined in Amazonka.LookoutEquipment.CreateLabel

type Rep CreateLabel Source # 
Instance details

Defined in Amazonka.LookoutEquipment.CreateLabel

newCreateLabel Source #

Create a value of CreateLabel 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:

CreateLabel, createLabel_equipment - Indicates that a label pertains to a particular piece of equipment.

Data in this field will be retained for service usage. Follow best practices for the security of your data.

CreateLabel, createLabel_faultCode - Provides additional information about the label. The fault code must be defined in the FaultCodes attribute of the label group.

Data in this field will be retained for service usage. Follow best practices for the security of your data.

$sel:notes:CreateLabel', createLabel_notes - Metadata providing additional information about the label.

Data in this field will be retained for service usage. Follow best practices for the security of your data.

CreateLabel, createLabel_labelGroupName - The name of a group of labels.

Data in this field will be retained for service usage. Follow best practices for the security of your data.

CreateLabel, createLabel_startTime - The start time of the labeled event.

CreateLabel, createLabel_endTime - The end time of the labeled event.

CreateLabel, createLabel_rating - Indicates whether a labeled event represents an anomaly.

$sel:clientToken:CreateLabel', createLabel_clientToken - A unique identifier for the request to create a label. If you do not set the client request token, Lookout for Equipment generates one.

Request Lenses

createLabel_equipment :: Lens' CreateLabel (Maybe Text) Source #

Indicates that a label pertains to a particular piece of equipment.

Data in this field will be retained for service usage. Follow best practices for the security of your data.

createLabel_faultCode :: Lens' CreateLabel (Maybe Text) Source #

Provides additional information about the label. The fault code must be defined in the FaultCodes attribute of the label group.

Data in this field will be retained for service usage. Follow best practices for the security of your data.

createLabel_notes :: Lens' CreateLabel (Maybe Text) Source #

Metadata providing additional information about the label.

Data in this field will be retained for service usage. Follow best practices for the security of your data.

createLabel_labelGroupName :: Lens' CreateLabel Text Source #

The name of a group of labels.

Data in this field will be retained for service usage. Follow best practices for the security of your data.

createLabel_startTime :: Lens' CreateLabel UTCTime Source #

The start time of the labeled event.

createLabel_endTime :: Lens' CreateLabel UTCTime Source #

The end time of the labeled event.

createLabel_rating :: Lens' CreateLabel LabelRating Source #

Indicates whether a labeled event represents an anomaly.

createLabel_clientToken :: Lens' CreateLabel Text Source #

A unique identifier for the request to create a label. If you do not set the client request token, Lookout for Equipment generates one.

Destructuring the Response

data CreateLabelResponse Source #

See: newCreateLabelResponse smart constructor.

Constructors

CreateLabelResponse' 

Fields

Instances

Instances details
Generic CreateLabelResponse Source # 
Instance details

Defined in Amazonka.LookoutEquipment.CreateLabel

Associated Types

type Rep CreateLabelResponse :: Type -> Type #

Read CreateLabelResponse Source # 
Instance details

Defined in Amazonka.LookoutEquipment.CreateLabel

Show CreateLabelResponse Source # 
Instance details

Defined in Amazonka.LookoutEquipment.CreateLabel

NFData CreateLabelResponse Source # 
Instance details

Defined in Amazonka.LookoutEquipment.CreateLabel

Methods

rnf :: CreateLabelResponse -> () #

Eq CreateLabelResponse Source # 
Instance details

Defined in Amazonka.LookoutEquipment.CreateLabel

type Rep CreateLabelResponse Source # 
Instance details

Defined in Amazonka.LookoutEquipment.CreateLabel

type Rep CreateLabelResponse = D1 ('MetaData "CreateLabelResponse" "Amazonka.LookoutEquipment.CreateLabel" "amazonka-lookoutequipment-2.0-FBtgEViQ46F6elHeNaa8oC" 'False) (C1 ('MetaCons "CreateLabelResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "labelId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newCreateLabelResponse Source #

Create a value of CreateLabelResponse 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:

CreateLabelResponse, createLabelResponse_labelId - The ID of the label that you have created.

$sel:httpStatus:CreateLabelResponse', createLabelResponse_httpStatus - The response's http status code.

Response Lenses

createLabelResponse_labelId :: Lens' CreateLabelResponse (Maybe Text) Source #

The ID of the label that you have created.