LookoutEquipment.Client.
create_label
(**kwargs)¶Creates a label for an event.
See also: AWS API Documentation
Request Syntax
response = client.create_label(
LabelGroupName='string',
StartTime=datetime(2015, 1, 1),
EndTime=datetime(2015, 1, 1),
Rating='ANOMALY'|'NO_ANOMALY'|'NEUTRAL',
FaultCode='string',
Notes='string',
Equipment='string',
ClientToken='string'
)
[REQUIRED]
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.
[REQUIRED]
The start time of the labeled event.
[REQUIRED]
The end time of the labeled event.
[REQUIRED]
Indicates whether a labeled event represents an anomaly.
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.
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.
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.
[REQUIRED]
A unique identifier for the request to create a label. If you do not set the client request token, Lookout for Equipment generates one.
This field is autopopulated if not provided.
dict
Response Syntax
{
'LabelId': 'string'
}
Response Structure
(dict) --
LabelId (string) --
The ID of the label that you have created.
Exceptions
LookoutEquipment.Client.exceptions.ValidationException
LookoutEquipment.Client.exceptions.ResourceNotFoundException
LookoutEquipment.Client.exceptions.ConflictException
LookoutEquipment.Client.exceptions.ThrottlingException
LookoutEquipment.Client.exceptions.ServiceQuotaExceededException
LookoutEquipment.Client.exceptions.AccessDeniedException
LookoutEquipment.Client.exceptions.InternalServerException