Skip to main content

time_series_data_points

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

Overview

Nametime_series_data_points
TypeResource
Idaws.datazone.time_series_data_points

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
domain_idstringThe ID of the Amazon DataZone domain that houses the asset data point that you want to get. (pattern: <code>dzd[-][a-zA-Z0-9-]{1,36}</code>)
entity_idstringThe ID of the asset for which you want to get the data point. (pattern: <code>[a-zA-Z0-9_-]{1,36}</code>)
entity_typestringThe type of the asset for which you want to get the data point. (ASSET, LISTING)
formobjectThe time series data points form.
form_namestringThe name of the time series form that houses the data point that you want to get.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_time_series_data_pointselectdomain_identifier, entity_identifier, entity_type, identifier, formName, regionGets the existing data point for the asset.
list_time_series_data_pointsselectdomain_identifier, entity_identifier, entity_type, formName, regionstartedAt, endedAt, nextToken, maxResultsLists time series data points.
delete_time_series_data_pointsdeletedomain_identifier, entity_identifier, entity_type, formName, regionclientTokenDeletes the specified time series form for the specified asset.
post_time_series_data_pointsexecdomain_identifier, entity_identifier, entity_type, region, formsPosts time series data points to Amazon DataZone for the specified asset.

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
domain_identifierstringThe ID of the Amazon DataZone domain in which you want to post time series data points.
entity_identifierstringThe ID of the asset for which you want to post time series data points.
entity_typestringThe type of the asset for which you want to post data points.
formNamestringThe name of the time series form that you want to delete.
identifierstringThe ID of the data point that you want to get.
regionstringAWS region (default: us-east-1)
clientTokenstringA unique, case-sensitive identifier to ensure idempotency of the request. This field is automatically populated if not provided.
endedAtstring (date-time)The timestamp at which the data points that you wanted to list ended.
maxResultsintegerThe maximum number of data points to return in a single call to ListTimeSeriesDataPoints. When the number of data points to be listed is greater than the value of MaxResults, the response contains a NextToken value that you can use in a subsequent call to ListTimeSeriesDataPoints to list the next set of data points.
nextTokenstringWhen the number of data points is greater than the default value for the MaxResults parameter, or if you explicitly specify a value for MaxResults that is less than the number of data points, the response includes a pagination token named NextToken. You can specify this NextToken value in a subsequent call to ListTimeSeriesDataPoints to list the next set of data points.
startedAtstring (date-time)The timestamp at which the data points that you want to list started.

SELECT examples

Gets the existing data point for the asset.

SELECT
domain_id,
entity_id,
entity_type,
form,
form_name
FROM aws.datazone.time_series_data_points
WHERE domain_identifier = '{{ domain_identifier }}' -- required
AND entity_identifier = '{{ entity_identifier }}' -- required
AND entity_type = '{{ entity_type }}' -- required
AND identifier = '{{ identifier }}' -- required
AND formName = '{{ formName }}' -- required
AND region = '{{ region }}' -- required
;

DELETE examples

Deletes the specified time series form for the specified asset.

DELETE FROM aws.datazone.time_series_data_points
WHERE domain_identifier = '{{ domain_identifier }}' --required
AND entity_identifier = '{{ entity_identifier }}' --required
AND entity_type = '{{ entity_type }}' --required
AND formName = '{{ formName }}' --required
AND region = '{{ region }}' --required
AND clientToken = '{{ clientToken }}'
;

Lifecycle Methods

Posts time series data points to Amazon DataZone for the specified asset.

EXEC aws.datazone.time_series_data_points.post_time_series_data_points
@domain_identifier='{{ domain_identifier }}' --required,
@entity_identifier='{{ entity_identifier }}' --required,
@entity_type='{{ entity_type }}' --required,
@region='{{ region }}' --required
@@json=
'{
"forms": "{{ forms }}",
"clientToken": "{{ clientToken }}"
}'
;