Skip to main content

datasets

Creates, updates, deletes, gets or lists a datasets resource.

Overview

Namedatasets
TypeResource
Idaws.lookoutequipment.datasets

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
created_atstring (date-time)Specifies the time the dataset was created in Lookout for Equipment.
data_end_timestring (date-time)Indicates the latest timestamp corresponding to data that was successfully ingested during the most recent ingestion of this particular dataset.
data_quality_summaryobjectGives statistics associated with the given dataset for the latest successful associated ingestion job id. These statistics primarily relate to quantifying incorrect data such as MissingCompleteSensorData, MissingSensorData, UnsupportedDateFormats, InsufficientSensorData, and DuplicateTimeStamps.
data_start_timestring (date-time)Indicates the earliest timestamp corresponding to data that was successfully ingested during the most recent ingestion of this particular dataset.
dataset_arnstringThe Amazon Resource Name (ARN) of the dataset being described. (pattern: <code>arn:aws(-[^:]+)?:lookoutequipment:[a-zA-Z0-9-]*:[0-9]{12}:dataset/[0-9a-zA-Z_-]{1,200}/.+</code>)
dataset_namestringThe name of the dataset being described. (pattern: <code>^[0-9a-zA-Z_-]{1,200}$</code>)
ingested_files_summaryobjectGives statistics about how many files have been ingested, and which files have not been ingested, for a particular ingestion job.
ingestion_input_configurationobjectSpecifies the S3 location configuration for the data input for the data ingestion job.
last_updated_atstring (date-time)Specifies the time the dataset was last updated, if it was.
role_arnstringThe Amazon Resource Name (ARN) of the IAM role that you are using for this the data ingestion job. (pattern: <code>arn:aws(-[^:]+)?:iam::[0-9]{12}:role/.+</code>)
schemastringA JSON description of the data that is in each time series dataset, including names, column names, and data types.
server_side_kms_key_idstringProvides the identifier of the KMS key used to encrypt dataset data by Amazon Lookout for Equipment. (pattern: <code>arn:aws[a-z-]:kms:[a-z0-9-]:\d{12}:[\w-/]+</code>)
source_dataset_arnstringThe Amazon Resource Name (ARN) of the source dataset from which the current data being described was imported from. (pattern: <code>arn:aws(-[^:]+)?:lookoutequipment:[a-zA-Z0-9-]*:[0-9]{12}:dataset/[0-9a-zA-Z_-]{1,200}/.+</code>)
statusstringIndicates the status of the dataset. (CREATED, INGESTION_IN_PROGRESS, ACTIVE, IMPORT_IN_PROGRESS)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_datasetselectregionProvides a JSON description of the data in each time series dataset, including names, column names, and data types.
list_datasetsselectregionLists all datasets currently available in your account, filtering on the dataset name.
create_datasetinsertregion, DatasetName, ClientTokenCreates a container for a collection of data being ingested for analysis. The dataset contains the metadata describing where the data is and what the data actually looks like. For example, it contains the location of the data source, the data schema, and other information. A dataset also contains any tags associated with the ingested data.
delete_datasetdeleteregionDeletes a dataset and associated artifacts. The operation will check to see if any inference scheduler or data ingestion job is currently using the dataset, and if there isn't, the dataset, its metadata, and any associated data stored in S3 will be deleted. This does not affect any models that used this dataset for training and evaluation, but does prevent it from being used in the future.
start_data_ingestion_jobexecregion, DatasetName, IngestionInputConfiguration, RoleArn, ClientTokenStarts a data ingestion job. Amazon Lookout for Equipment returns the job status.

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.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Provides a JSON description of the data in each time series dataset, including names, column names, and data types.

SELECT
created_at,
data_end_time,
data_quality_summary,
data_start_time,
dataset_arn,
dataset_name,
ingested_files_summary,
ingestion_input_configuration,
last_updated_at,
role_arn,
schema,
server_side_kms_key_id,
source_dataset_arn,
status
FROM aws.lookoutequipment.datasets
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates a container for a collection of data being ingested for analysis. The dataset contains the metadata describing where the data is and what the data actually looks like. For example, it contains the location of the data source, the data schema, and other information. A dataset also contains any tags associated with the ingested data.

INSERT INTO aws.lookoutequipment.datasets (
DatasetName,
DatasetSchema,
ServerSideKmsKeyId,
ClientToken,
Tags,
region
)
SELECT
'{{ DatasetName }}' /* required */,
'{{ DatasetSchema }}',
'{{ ServerSideKmsKeyId }}',
'{{ ClientToken }}' /* required */,
'{{ Tags }}',
'{{ region }}'
RETURNING
dataset_arn,
dataset_name,
status
;

DELETE examples

Deletes a dataset and associated artifacts. The operation will check to see if any inference scheduler or data ingestion job is currently using the dataset, and if there isn't, the dataset, its metadata, and any associated data stored in S3 will be deleted. This does not affect any models that used this dataset for training and evaluation, but does prevent it from being used in the future.

DELETE FROM aws.lookoutequipment.datasets
WHERE region = '{{ region }}' --required
;

Lifecycle Methods

Starts a data ingestion job. Amazon Lookout for Equipment returns the job status.

EXEC aws.lookoutequipment.datasets.start_data_ingestion_job
@region='{{ region }}' --required
@@json=
'{
"DatasetName": "{{ DatasetName }}",
"IngestionInputConfiguration": "{{ IngestionInputConfiguration }}",
"RoleArn": "{{ RoleArn }}",
"ClientToken": "{{ ClientToken }}"
}'
;