send_event
¶
send_event(
event_id: identifier,
event_type_name: identifier,
event_timestamp: utcTimestampISO8601,
event_variables: EventVariableMap,
entities: listOfEntities,
*,
config_overrides: Optional[FraudDetectorClientConfig] = 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/fraud_detector.py
4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 | |