send_event
async
¶
send_event(
event_id: identifier,
event_type_name: identifier,
event_timestamp: utcTimestampISO8601,
event_variables: EventVariableMap,
entities: listOfEntities,
*,
config_overrides: Optional[AsyncFraudDetectorClientConfig] = None,
assigned_label: Optional[identifier] = None,
label_timestamp: Optional[utcTimestampISO8601] = None,
) -> SendEventResult
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.
Parameters:
-
event_id(identifier) –The event ID to upload.
-
event_type_name(identifier) –The event type name of the event.
-
event_timestamp(utcTimestampISO8601) –The timestamp that defines when the event under evaluation occurred. The timestamp must be specified using ISO 8601 standard in UTC.
-
event_variables(EventVariableMap) –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.
-
assigned_label(Optional[identifier], default:None) –The label to associate with the event. Required if specifying
labelTimestamp. -
label_timestamp(Optional[utcTimestampISO8601], default:None) –The timestamp associated with the label. Required if specifying
assignedLabel. -
entities(listOfEntities) –An array of entities.
Raises:
-
AccessDeniedException–An exception indicating Amazon Fraud Detector does not have the needed permissions. This can occur if you submit a request, such as
PutExternalModel, that specifies a role that is not in your account. -
ConflictException–An exception indicating there was a conflict during a delete operation.
-
InternalServerException–An exception indicating an internal server error.
-
ResourceNotFoundException–An exception indicating the specified resource was not found.
-
ThrottlingException–An exception indicating a throttling error.
-
ValidationException–An exception indicating a specified value is not allowed.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_frauddetector/_services/async_fraud_detector.py
4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 4395 4396 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 | |