2023/03/21 - AWS IoT SiteWise - 2 updated api methods
Changes Provide support for tagging of data streams and enabling tag based authorization for property alias
{'timeSeriesArn': 'string'}
Retrieves information about a time series (data stream).
To identify a time series, do one of the following:
If the time series isn't associated with an asset property, specify the alias of the time series.
If the time series is associated with an asset property, specify one of the following:
The alias of the time series.
The assetId and propertyId that identifies the asset property.
See also: AWS API Documentation
Request Syntax
client.describe_time_series( alias='string', assetId='string', propertyId='string' )
string
The alias that identifies the time series.
string
The ID of the asset in which the asset property was created.
string
The ID of the asset property.
dict
Response Syntax
{ 'assetId': 'string', 'propertyId': 'string', 'alias': 'string', 'timeSeriesId': 'string', 'dataType': 'STRING'|'INTEGER'|'DOUBLE'|'BOOLEAN'|'STRUCT', 'dataTypeSpec': 'string', 'timeSeriesCreationDate': datetime(2015, 1, 1), 'timeSeriesLastUpdateDate': datetime(2015, 1, 1), 'timeSeriesArn': 'string' }
Response Structure
(dict) --
assetId (string) --
The ID of the asset in which the asset property was created.
propertyId (string) --
The ID of the asset property.
alias (string) --
The alias that identifies the time series.
timeSeriesId (string) --
The ID of the time series.
dataType (string) --
The data type of the time series.
If you specify STRUCT , you must also specify dataTypeSpec to identify the type of the structure for this time series.
dataTypeSpec (string) --
The data type of the structure for this time series. This parameter is required for time series that have the STRUCT data type.
The options for this parameter depend on the type of the composite model in which you created the asset property that is associated with your time series. Use AWS/ALARM_STATE for alarm state in alarm composite models.
timeSeriesCreationDate (datetime) --
The date that the time series was created, in Unix epoch time.
timeSeriesLastUpdateDate (datetime) --
The date that the time series was last updated, in Unix epoch time.
timeSeriesArn (string) --
The ARN of the time series, which has the following format.
arn:${Partition}:iotsitewise:${Region}:${Account}:time-series/${TimeSeriesId}
{'TimeSeriesSummaries': {'timeSeriesArn': 'string'}}
Retrieves a paginated list of time series (data streams).
See also: AWS API Documentation
Request Syntax
client.list_time_series( nextToken='string', maxResults=123, assetId='string', aliasPrefix='string', timeSeriesType='ASSOCIATED'|'DISASSOCIATED' )
string
The token to be used for the next set of paginated results.
integer
The maximum number of results to return for each paginated request.
string
The ID of the asset in which the asset property was created.
string
The alias prefix of the time series.
string
The type of the time series. The time series type can be one of the following values:
ASSOCIATED – The time series is associated with an asset property.
DISASSOCIATED – The time series isn't associated with any asset property.
dict
Response Syntax
{ 'TimeSeriesSummaries': [ { 'assetId': 'string', 'propertyId': 'string', 'alias': 'string', 'timeSeriesId': 'string', 'dataType': 'STRING'|'INTEGER'|'DOUBLE'|'BOOLEAN'|'STRUCT', 'dataTypeSpec': 'string', 'timeSeriesCreationDate': datetime(2015, 1, 1), 'timeSeriesLastUpdateDate': datetime(2015, 1, 1), 'timeSeriesArn': 'string' }, ], 'nextToken': 'string' }
Response Structure
(dict) --
TimeSeriesSummaries (list) --
One or more time series summaries to list.
(dict) --
Contains a summary of a time series (data stream).
assetId (string) --
The ID of the asset in which the asset property was created.
propertyId (string) --
The ID of the asset property.
alias (string) --
The alias that identifies the time series.
timeSeriesId (string) --
The ID of the time series.
dataType (string) --
The data type of the time series.
If you specify STRUCT , you must also specify dataTypeSpec to identify the type of the structure for this time series.
dataTypeSpec (string) --
The data type of the structure for this time series. This parameter is required for time series that have the STRUCT data type.
The options for this parameter depend on the type of the composite model in which you created the asset property that is associated with your time series. Use AWS/ALARM_STATE for alarm state in alarm composite models.
timeSeriesCreationDate (datetime) --
The date that the time series was created, in Unix epoch time.
timeSeriesLastUpdateDate (datetime) --
The date that the time series was last updated, in Unix epoch time.
timeSeriesArn (string) --
The ARN of the time series, which has the following format.
arn:${Partition}:iotsitewise:${Region}:${Account}:time-series/${TimeSeriesId}
nextToken (string) --
The token for the next set of results, or null if there are no additional results.