#[non_exhaustive]pub struct GetEventPredictionInput {
pub detector_id: Option<String>,
pub detector_version_id: Option<String>,
pub event_id: Option<String>,
pub event_type_name: Option<String>,
pub entities: Option<Vec<Entity>>,
pub event_timestamp: Option<String>,
pub event_variables: Option<HashMap<String, String>>,
pub external_model_endpoint_data_blobs: Option<HashMap<String, ModelEndpointDataBlob>>,
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.detector_id: Option<String>
The detector ID.
detector_version_id: Option<String>
The detector version ID.
event_id: Option<String>
The unique ID used to identify the event.
event_type_name: Option<String>
The event type associated with the detector specified for the prediction.
entities: Option<Vec<Entity>>
The entity type (associated with the detector's event type) and specific entity ID representing who performed the event. If an entity id is not available, use "UNKNOWN."
event_timestamp: Option<String>
Timestamp that defines when the event under evaluation occurred. The timestamp must be specified using ISO 8601 standard in UTC.
event_variables: Option<HashMap<String, String>>
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.
You must provide at least one eventVariable
To ensure most accurate fraud prediction and to simplify your data preparation, Amazon Fraud Detector will replace all missing variables or values as follows:
For Amazon Fraud Detector trained models:
If a null value is provided explicitly for a variable or if a variable is missing, model will replace the null value or the missing variable (no variable name in the eventVariables map) with calculated default mean/medians for numeric variables and with special values for categorical variables.
For imported SageMaker models:
If a null value is provided explicitly for a variable, the model and rules will use “null” as the value. If a variable is not provided (no variable name in the eventVariables map), model and rules will use the default value that is provided for the variable.
external_model_endpoint_data_blobs: Option<HashMap<String, ModelEndpointDataBlob>>
The Amazon SageMaker model endpoint input data blobs.
Implementations§
source§impl GetEventPredictionInput
impl GetEventPredictionInput
sourcepub fn detector_id(&self) -> Option<&str>
pub fn detector_id(&self) -> Option<&str>
The detector ID.
sourcepub fn detector_version_id(&self) -> Option<&str>
pub fn detector_version_id(&self) -> Option<&str>
The detector version ID.
sourcepub fn event_type_name(&self) -> Option<&str>
pub fn event_type_name(&self) -> Option<&str>
The event type associated with the detector specified for the prediction.
sourcepub fn entities(&self) -> &[Entity]
pub fn entities(&self) -> &[Entity]
The entity type (associated with the detector's event type) and specific entity ID representing who performed the event. If an entity id is not available, use "UNKNOWN."
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .entities.is_none()
.
sourcepub fn event_timestamp(&self) -> Option<&str>
pub fn event_timestamp(&self) -> Option<&str>
Timestamp that defines when the event under evaluation occurred. The timestamp must be specified using ISO 8601 standard in UTC.
sourcepub fn event_variables(&self) -> Option<&HashMap<String, String>>
pub fn event_variables(&self) -> Option<&HashMap<String, String>>
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.
You must provide at least one eventVariable
To ensure most accurate fraud prediction and to simplify your data preparation, Amazon Fraud Detector will replace all missing variables or values as follows:
For Amazon Fraud Detector trained models:
If a null value is provided explicitly for a variable or if a variable is missing, model will replace the null value or the missing variable (no variable name in the eventVariables map) with calculated default mean/medians for numeric variables and with special values for categorical variables.
For imported SageMaker models:
If a null value is provided explicitly for a variable, the model and rules will use “null” as the value. If a variable is not provided (no variable name in the eventVariables map), model and rules will use the default value that is provided for the variable.
sourcepub fn external_model_endpoint_data_blobs(
&self
) -> Option<&HashMap<String, ModelEndpointDataBlob>>
pub fn external_model_endpoint_data_blobs( &self ) -> Option<&HashMap<String, ModelEndpointDataBlob>>
The Amazon SageMaker model endpoint input data blobs.
source§impl GetEventPredictionInput
impl GetEventPredictionInput
sourcepub fn builder() -> GetEventPredictionInputBuilder
pub fn builder() -> GetEventPredictionInputBuilder
Creates a new builder-style object to manufacture GetEventPredictionInput
.
Trait Implementations§
source§impl Clone for GetEventPredictionInput
impl Clone for GetEventPredictionInput
source§fn clone(&self) -> GetEventPredictionInput
fn clone(&self) -> GetEventPredictionInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for GetEventPredictionInput
impl Debug for GetEventPredictionInput
source§impl PartialEq for GetEventPredictionInput
impl PartialEq for GetEventPredictionInput
source§fn eq(&self, other: &GetEventPredictionInput) -> bool
fn eq(&self, other: &GetEventPredictionInput) -> bool
self
and other
values to be equal, and is used
by ==
.