event_prediction_metadatas
Creates, updates, deletes, gets or lists an event_prediction_metadatas resource.
Overview
| Name | event_prediction_metadatas |
| Type | Resource |
| Id | aws.frauddetector.event_prediction_metadatas |
Fields
The following fields are returned by SELECT queries:
- get_event_prediction_metadata
| Name | Datatype | Description |
|---|---|---|
detector_id | string | The detector ID. (pattern: <code>^[0-9a-z_-]+$</code>) |
detector_version_id | string | The detector version ID. (pattern: <code>^([1-9][0-9]*)$</code>) |
detector_version_status | string | The status of the detector version. |
entity_id | string | The entity ID. |
entity_type | string | The entity type. |
evaluated_external_models | array | External (Amazon SageMaker) models that were evaluated for generating predictions. |
evaluated_model_versions | array | Model versions that were evaluated for generating predictions. |
event_id | string | The event ID. (pattern: <code>^[0-9a-z_-]+$</code>) |
event_timestamp | string | The timestamp for when the prediction was generated for the associated event ID. |
event_type_name | string | The event type associated with the detector specified for this prediction. (pattern: <code>^[0-9a-z_-]+$</code>) |
event_variables | array | A list of event variables that influenced the prediction scores. |
outcomes | array | The outcomes of the matched rule, based on the rule execution mode. |
prediction_timestamp | string | The timestamp that defines when the prediction was generated. |
rule_execution_mode | string | The execution mode of the rule used for evaluating variable values. (ALL_MATCHED, FIRST_MATCHED) |
rules | array | List of rules associated with the detector version that were used for evaluating variable values. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_event_prediction_metadata | select | region | Gets details of the past fraud predictions for the specified event ID, event type, detector ID, and detector version ID that was generated in the specified time period. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
region | string | AWS region (default: us-east-1) |
SELECT examples
- get_event_prediction_metadata
Gets details of the past fraud predictions for the specified event ID, event type, detector ID, and detector version ID that was generated in the specified time period.
SELECT
detector_id,
detector_version_id,
detector_version_status,
entity_id,
entity_type,
evaluated_external_models,
evaluated_model_versions,
event_id,
event_timestamp,
event_type_name,
event_variables,
outcomes,
prediction_timestamp,
rule_execution_mode,
rules
FROM aws.frauddetector.event_prediction_metadatas
WHERE region = '{{ region }}' -- required
;