Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Stores events in Amazon Fraud Detector without generating fraud
predictions for those events. For example, you can use SendEvent
to
upload a historical dataset, which you can then later use to train a
model.
Synopsis
- data SendEvent = SendEvent' {
- labelTimestamp :: Maybe Text
- assignedLabel :: Maybe Text
- eventId :: Text
- eventTypeName :: Text
- eventTimestamp :: Text
- eventVariables :: HashMap Text (Sensitive Text)
- entities :: [Sensitive Entity]
- newSendEvent :: Text -> Text -> Text -> SendEvent
- sendEvent_labelTimestamp :: Lens' SendEvent (Maybe Text)
- sendEvent_assignedLabel :: Lens' SendEvent (Maybe Text)
- sendEvent_eventId :: Lens' SendEvent Text
- sendEvent_eventTypeName :: Lens' SendEvent Text
- sendEvent_eventTimestamp :: Lens' SendEvent Text
- sendEvent_eventVariables :: Lens' SendEvent (HashMap Text Text)
- sendEvent_entities :: Lens' SendEvent [Entity]
- data SendEventResponse = SendEventResponse' {
- httpStatus :: Int
- newSendEventResponse :: Int -> SendEventResponse
- sendEventResponse_httpStatus :: Lens' SendEventResponse Int
Creating a Request
See: newSendEvent
smart constructor.
SendEvent' | |
|
Instances
Create a value of SendEvent
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:labelTimestamp:SendEvent'
, sendEvent_labelTimestamp
- The timestamp associated with the label. Required if specifying
assignedLabel
.
$sel:assignedLabel:SendEvent'
, sendEvent_assignedLabel
- The label to associate with the event. Required if specifying
labelTimestamp
.
$sel:eventId:SendEvent'
, sendEvent_eventId
- The event ID to upload.
$sel:eventTypeName:SendEvent'
, sendEvent_eventTypeName
- The event type name of the event.
$sel:eventTimestamp:SendEvent'
, sendEvent_eventTimestamp
- The timestamp that defines when the event under evaluation occurred. The
timestamp must be specified using ISO 8601 standard in UTC.
$sel:eventVariables:SendEvent'
, sendEvent_eventVariables
- Names of the event type's variables you defined in Amazon Fraud
Detector to represent data elements and their corresponding values for
the event you are sending for evaluation.
$sel:entities:SendEvent'
, sendEvent_entities
- An array of entities.
Request Lenses
sendEvent_labelTimestamp :: Lens' SendEvent (Maybe Text) Source #
The timestamp associated with the label. Required if specifying
assignedLabel
.
sendEvent_assignedLabel :: Lens' SendEvent (Maybe Text) Source #
The label to associate with the event. Required if specifying
labelTimestamp
.
sendEvent_eventTimestamp :: Lens' SendEvent Text Source #
The timestamp that defines when the event under evaluation occurred. The timestamp must be specified using ISO 8601 standard in UTC.
sendEvent_eventVariables :: Lens' SendEvent (HashMap Text Text) Source #
Names of the event type's variables you defined in Amazon Fraud Detector to represent data elements and their corresponding values for the event you are sending for evaluation.
Destructuring the Response
data SendEventResponse Source #
See: newSendEventResponse
smart constructor.
SendEventResponse' | |
|
Instances
Create a value of SendEventResponse
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:httpStatus:SendEventResponse'
, sendEventResponse_httpStatus
- The response's http status code.
Response Lenses
sendEventResponse_httpStatus :: Lens' SendEventResponse Int Source #
The response's http status code.