aws-sdk-timestreamquery 1.45.0 → 1.46.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-timestreamquery/client.rb +72 -4
- data/lib/aws-sdk-timestreamquery/client_api.rb +56 -0
- data/lib/aws-sdk-timestreamquery/types.rb +343 -3
- data/lib/aws-sdk-timestreamquery.rb +1 -1
- data/sig/client.rbs +9 -2
- data/sig/types.rbs +58 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fb59ed80152c28419c4294a46f6c5f19d5e42f0bdb5b3ca722ed8e28a2c5ad6b
|
4
|
+
data.tar.gz: c1e00cdb5ffe446e2010b6347ed03e975ac7c77f69f79733d6f1958037b12455
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 95159c2b95fbaecd30729f8a74c3d310a4ac4f677854c4e4c4eddc71f8d6ee5d94a7679d7996dff83578f3670cd57088f85e09cccfae166f0c354118219f8c16
|
7
|
+
data.tar.gz: 2930945cfcdd863fc7780eda3e463f1640161d581ce5d680f9f74ff20eca0817f231e1f747de875f5c9a7072a263ea86c885c5d156476dc568ec25ac45167f01
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.46.0 (2024-10-22)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - This release adds support for Query Insights, a feature that provides details of query execution, enabling users to identify areas for improvement to optimize their queries, resulting in improved query performance and lower query costs.
|
8
|
+
|
4
9
|
1.45.0 (2024-10-18)
|
5
10
|
------------------
|
6
11
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.46.0
|
@@ -801,6 +801,15 @@ module Aws::TimestreamQuery
|
|
801
801
|
# resp.scheduled_query.last_run_summary.execution_stats.cumulative_bytes_scanned #=> Integer
|
802
802
|
# resp.scheduled_query.last_run_summary.execution_stats.records_ingested #=> Integer
|
803
803
|
# resp.scheduled_query.last_run_summary.execution_stats.query_result_rows #=> Integer
|
804
|
+
# resp.scheduled_query.last_run_summary.query_insights_response.query_spatial_coverage.max.value #=> Float
|
805
|
+
# resp.scheduled_query.last_run_summary.query_insights_response.query_spatial_coverage.max.table_arn #=> String
|
806
|
+
# resp.scheduled_query.last_run_summary.query_insights_response.query_spatial_coverage.max.partition_key #=> Array
|
807
|
+
# resp.scheduled_query.last_run_summary.query_insights_response.query_spatial_coverage.max.partition_key[0] #=> String
|
808
|
+
# resp.scheduled_query.last_run_summary.query_insights_response.query_temporal_range.max.value #=> Integer
|
809
|
+
# resp.scheduled_query.last_run_summary.query_insights_response.query_temporal_range.max.table_arn #=> String
|
810
|
+
# resp.scheduled_query.last_run_summary.query_insights_response.query_table_count #=> Integer
|
811
|
+
# resp.scheduled_query.last_run_summary.query_insights_response.output_rows #=> Integer
|
812
|
+
# resp.scheduled_query.last_run_summary.query_insights_response.output_bytes #=> Integer
|
804
813
|
# resp.scheduled_query.last_run_summary.error_report_location.s3_report_location.bucket_name #=> String
|
805
814
|
# resp.scheduled_query.last_run_summary.error_report_location.s3_report_location.object_key #=> String
|
806
815
|
# resp.scheduled_query.last_run_summary.failure_reason #=> String
|
@@ -814,6 +823,15 @@ module Aws::TimestreamQuery
|
|
814
823
|
# resp.scheduled_query.recently_failed_runs[0].execution_stats.cumulative_bytes_scanned #=> Integer
|
815
824
|
# resp.scheduled_query.recently_failed_runs[0].execution_stats.records_ingested #=> Integer
|
816
825
|
# resp.scheduled_query.recently_failed_runs[0].execution_stats.query_result_rows #=> Integer
|
826
|
+
# resp.scheduled_query.recently_failed_runs[0].query_insights_response.query_spatial_coverage.max.value #=> Float
|
827
|
+
# resp.scheduled_query.recently_failed_runs[0].query_insights_response.query_spatial_coverage.max.table_arn #=> String
|
828
|
+
# resp.scheduled_query.recently_failed_runs[0].query_insights_response.query_spatial_coverage.max.partition_key #=> Array
|
829
|
+
# resp.scheduled_query.recently_failed_runs[0].query_insights_response.query_spatial_coverage.max.partition_key[0] #=> String
|
830
|
+
# resp.scheduled_query.recently_failed_runs[0].query_insights_response.query_temporal_range.max.value #=> Integer
|
831
|
+
# resp.scheduled_query.recently_failed_runs[0].query_insights_response.query_temporal_range.max.table_arn #=> String
|
832
|
+
# resp.scheduled_query.recently_failed_runs[0].query_insights_response.query_table_count #=> Integer
|
833
|
+
# resp.scheduled_query.recently_failed_runs[0].query_insights_response.output_rows #=> Integer
|
834
|
+
# resp.scheduled_query.recently_failed_runs[0].query_insights_response.output_bytes #=> Integer
|
817
835
|
# resp.scheduled_query.recently_failed_runs[0].error_report_location.s3_report_location.bucket_name #=> String
|
818
836
|
# resp.scheduled_query.recently_failed_runs[0].error_report_location.s3_report_location.object_key #=> String
|
819
837
|
# resp.scheduled_query.recently_failed_runs[0].failure_reason #=> String
|
@@ -829,6 +847,11 @@ module Aws::TimestreamQuery
|
|
829
847
|
|
830
848
|
# You can use this API to run a scheduled query manually.
|
831
849
|
#
|
850
|
+
# If you enabled `QueryInsights`, this API also returns insights and
|
851
|
+
# metrics related to the query that you executed as part of an Amazon
|
852
|
+
# SNS notification. `QueryInsights` helps with performance tuning of
|
853
|
+
# your query.
|
854
|
+
#
|
832
855
|
# @option params [required, String] :scheduled_query_arn
|
833
856
|
# ARN of the scheduled query.
|
834
857
|
#
|
@@ -842,6 +865,13 @@ module Aws::TimestreamQuery
|
|
842
865
|
# **A suitable default value is auto-generated.** You should normally
|
843
866
|
# not need to pass this option.**
|
844
867
|
#
|
868
|
+
# @option params [Types::ScheduledQueryInsights] :query_insights
|
869
|
+
# Encapsulates settings for enabling `QueryInsights`.
|
870
|
+
#
|
871
|
+
# Enabling `QueryInsights` returns insights and metrics as a part of the
|
872
|
+
# Amazon SNS notification for the query that you executed. You can use
|
873
|
+
# `QueryInsights` to tune your query performance and cost.
|
874
|
+
#
|
845
875
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
846
876
|
#
|
847
877
|
# @example Request syntax with placeholder values
|
@@ -850,6 +880,9 @@ module Aws::TimestreamQuery
|
|
850
880
|
# scheduled_query_arn: "AmazonResourceName", # required
|
851
881
|
# invocation_time: Time.now, # required
|
852
882
|
# client_token: "ClientToken",
|
883
|
+
# query_insights: {
|
884
|
+
# mode: "ENABLED_WITH_RATE_CONTROL", # required, accepts ENABLED_WITH_RATE_CONTROL, DISABLED
|
885
|
+
# },
|
853
886
|
# })
|
854
887
|
#
|
855
888
|
# @see http://docs.aws.amazon.com/goto/WebAPI/timestream-query-2018-11-01/ExecuteScheduledQuery AWS API Documentation
|
@@ -1021,9 +1054,21 @@ module Aws::TimestreamQuery
|
|
1021
1054
|
end
|
1022
1055
|
|
1023
1056
|
# `Query` is a synchronous operation that enables you to run a query
|
1024
|
-
# against your Amazon Timestream data.
|
1025
|
-
#
|
1026
|
-
#
|
1057
|
+
# against your Amazon Timestream data.
|
1058
|
+
#
|
1059
|
+
# If you enabled `QueryInsights`, this API also returns insights and
|
1060
|
+
# metrics related to the query that you executed. `QueryInsights` helps
|
1061
|
+
# with performance tuning of your query.
|
1062
|
+
#
|
1063
|
+
# <note markdown="1"> The maximum number of `Query` API requests you're allowed to make
|
1064
|
+
# with `QueryInsights` enabled is 1 query per second (QPS). If you
|
1065
|
+
# exceed this query rate, it might result in throttling.
|
1066
|
+
#
|
1067
|
+
# </note>
|
1068
|
+
#
|
1069
|
+
# `Query` will time out after 60 seconds. You must update the default
|
1070
|
+
# timeout in the SDK to support a timeout of 60 seconds. See the [code
|
1071
|
+
# sample][1] for details.
|
1027
1072
|
#
|
1028
1073
|
# Your query request will fail in the following cases:
|
1029
1074
|
#
|
@@ -1129,6 +1174,13 @@ module Aws::TimestreamQuery
|
|
1129
1174
|
# limit. If `MaxRows` is not provided, Timestream will send the
|
1130
1175
|
# necessary number of rows to meet the 1 MB limit.
|
1131
1176
|
#
|
1177
|
+
# @option params [Types::QueryInsights] :query_insights
|
1178
|
+
# Encapsulates settings for enabling `QueryInsights`.
|
1179
|
+
#
|
1180
|
+
# Enabling `QueryInsights` returns insights and metrics in addition to
|
1181
|
+
# query results for the query that you executed. You can use
|
1182
|
+
# `QueryInsights` to tune your query performance.
|
1183
|
+
#
|
1132
1184
|
# @return [Types::QueryResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1133
1185
|
#
|
1134
1186
|
# * {Types::QueryResponse#query_id #query_id} => String
|
@@ -1136,6 +1188,7 @@ module Aws::TimestreamQuery
|
|
1136
1188
|
# * {Types::QueryResponse#rows #rows} => Array<Types::Row>
|
1137
1189
|
# * {Types::QueryResponse#column_info #column_info} => Array<Types::ColumnInfo>
|
1138
1190
|
# * {Types::QueryResponse#query_status #query_status} => Types::QueryStatus
|
1191
|
+
# * {Types::QueryResponse#query_insights_response #query_insights_response} => Types::QueryInsightsResponse
|
1139
1192
|
#
|
1140
1193
|
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
1141
1194
|
#
|
@@ -1146,6 +1199,9 @@ module Aws::TimestreamQuery
|
|
1146
1199
|
# client_token: "ClientRequestToken",
|
1147
1200
|
# next_token: "PaginationToken",
|
1148
1201
|
# max_rows: 1,
|
1202
|
+
# query_insights: {
|
1203
|
+
# mode: "ENABLED_WITH_RATE_CONTROL", # required, accepts ENABLED_WITH_RATE_CONTROL, DISABLED
|
1204
|
+
# },
|
1149
1205
|
# })
|
1150
1206
|
#
|
1151
1207
|
# @example Response structure
|
@@ -1170,6 +1226,18 @@ module Aws::TimestreamQuery
|
|
1170
1226
|
# resp.query_status.progress_percentage #=> Float
|
1171
1227
|
# resp.query_status.cumulative_bytes_scanned #=> Integer
|
1172
1228
|
# resp.query_status.cumulative_bytes_metered #=> Integer
|
1229
|
+
# resp.query_insights_response.query_spatial_coverage.max.value #=> Float
|
1230
|
+
# resp.query_insights_response.query_spatial_coverage.max.table_arn #=> String
|
1231
|
+
# resp.query_insights_response.query_spatial_coverage.max.partition_key #=> Array
|
1232
|
+
# resp.query_insights_response.query_spatial_coverage.max.partition_key[0] #=> String
|
1233
|
+
# resp.query_insights_response.query_temporal_range.max.value #=> Integer
|
1234
|
+
# resp.query_insights_response.query_temporal_range.max.table_arn #=> String
|
1235
|
+
# resp.query_insights_response.query_table_count #=> Integer
|
1236
|
+
# resp.query_insights_response.output_rows #=> Integer
|
1237
|
+
# resp.query_insights_response.output_bytes #=> Integer
|
1238
|
+
# resp.query_insights_response.unload_partition_count #=> Integer
|
1239
|
+
# resp.query_insights_response.unload_written_rows #=> Integer
|
1240
|
+
# resp.query_insights_response.unload_written_bytes #=> Integer
|
1173
1241
|
#
|
1174
1242
|
# @see http://docs.aws.amazon.com/goto/WebAPI/timestream-query-2018-11-01/Query AWS API Documentation
|
1175
1243
|
#
|
@@ -1346,7 +1414,7 @@ module Aws::TimestreamQuery
|
|
1346
1414
|
tracer: tracer
|
1347
1415
|
)
|
1348
1416
|
context[:gem_name] = 'aws-sdk-timestreamquery'
|
1349
|
-
context[:gem_version] = '1.
|
1417
|
+
context[:gem_version] = '1.46.0'
|
1350
1418
|
Seahorse::Client::Request.new(handlers, context)
|
1351
1419
|
end
|
1352
1420
|
|
@@ -69,15 +69,24 @@ module Aws::TimestreamQuery
|
|
69
69
|
PaginationToken = Shapes::StringShape.new(name: 'PaginationToken')
|
70
70
|
ParameterMapping = Shapes::StructureShape.new(name: 'ParameterMapping')
|
71
71
|
ParameterMappingList = Shapes::ListShape.new(name: 'ParameterMappingList')
|
72
|
+
PartitionKey = Shapes::StringShape.new(name: 'PartitionKey')
|
73
|
+
PartitionKeyList = Shapes::ListShape.new(name: 'PartitionKeyList')
|
72
74
|
PrepareQueryRequest = Shapes::StructureShape.new(name: 'PrepareQueryRequest')
|
73
75
|
PrepareQueryResponse = Shapes::StructureShape.new(name: 'PrepareQueryResponse')
|
74
76
|
QueryExecutionException = Shapes::StructureShape.new(name: 'QueryExecutionException')
|
75
77
|
QueryId = Shapes::StringShape.new(name: 'QueryId')
|
78
|
+
QueryInsights = Shapes::StructureShape.new(name: 'QueryInsights')
|
79
|
+
QueryInsightsMode = Shapes::StringShape.new(name: 'QueryInsightsMode')
|
80
|
+
QueryInsightsResponse = Shapes::StructureShape.new(name: 'QueryInsightsResponse')
|
76
81
|
QueryPricingModel = Shapes::StringShape.new(name: 'QueryPricingModel')
|
77
82
|
QueryRequest = Shapes::StructureShape.new(name: 'QueryRequest')
|
78
83
|
QueryResponse = Shapes::StructureShape.new(name: 'QueryResponse')
|
84
|
+
QuerySpatialCoverage = Shapes::StructureShape.new(name: 'QuerySpatialCoverage')
|
85
|
+
QuerySpatialCoverageMax = Shapes::StructureShape.new(name: 'QuerySpatialCoverageMax')
|
79
86
|
QueryStatus = Shapes::StructureShape.new(name: 'QueryStatus')
|
80
87
|
QueryString = Shapes::StringShape.new(name: 'QueryString')
|
88
|
+
QueryTemporalRange = Shapes::StructureShape.new(name: 'QueryTemporalRange')
|
89
|
+
QueryTemporalRangeMax = Shapes::StructureShape.new(name: 'QueryTemporalRangeMax')
|
81
90
|
ResourceName = Shapes::StringShape.new(name: 'ResourceName')
|
82
91
|
ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
|
83
92
|
Row = Shapes::StructureShape.new(name: 'Row')
|
@@ -95,6 +104,9 @@ module Aws::TimestreamQuery
|
|
95
104
|
ScheduleExpression = Shapes::StringShape.new(name: 'ScheduleExpression')
|
96
105
|
ScheduledQuery = Shapes::StructureShape.new(name: 'ScheduledQuery')
|
97
106
|
ScheduledQueryDescription = Shapes::StructureShape.new(name: 'ScheduledQueryDescription')
|
107
|
+
ScheduledQueryInsights = Shapes::StructureShape.new(name: 'ScheduledQueryInsights')
|
108
|
+
ScheduledQueryInsightsMode = Shapes::StringShape.new(name: 'ScheduledQueryInsightsMode')
|
109
|
+
ScheduledQueryInsightsResponse = Shapes::StructureShape.new(name: 'ScheduledQueryInsightsResponse')
|
98
110
|
ScheduledQueryList = Shapes::ListShape.new(name: 'ScheduledQueryList')
|
99
111
|
ScheduledQueryName = Shapes::StringShape.new(name: 'ScheduledQueryName')
|
100
112
|
ScheduledQueryRunStatus = Shapes::StringShape.new(name: 'ScheduledQueryRunStatus')
|
@@ -216,6 +228,7 @@ module Aws::TimestreamQuery
|
|
216
228
|
ExecuteScheduledQueryRequest.add_member(:scheduled_query_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, required: true, location_name: "ScheduledQueryArn"))
|
217
229
|
ExecuteScheduledQueryRequest.add_member(:invocation_time, Shapes::ShapeRef.new(shape: Time, required: true, location_name: "InvocationTime"))
|
218
230
|
ExecuteScheduledQueryRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: ClientToken, location_name: "ClientToken", metadata: {"idempotencyToken"=>true}))
|
231
|
+
ExecuteScheduledQueryRequest.add_member(:query_insights, Shapes::ShapeRef.new(shape: ScheduledQueryInsights, location_name: "QueryInsights"))
|
219
232
|
ExecuteScheduledQueryRequest.struct_class = Types::ExecuteScheduledQueryRequest
|
220
233
|
|
221
234
|
ExecutionStats.add_member(:execution_time_in_millis, Shapes::ShapeRef.new(shape: Long, location_name: "ExecutionTimeInMillis"))
|
@@ -278,6 +291,8 @@ module Aws::TimestreamQuery
|
|
278
291
|
|
279
292
|
ParameterMappingList.member = Shapes::ShapeRef.new(shape: ParameterMapping)
|
280
293
|
|
294
|
+
PartitionKeyList.member = Shapes::ShapeRef.new(shape: PartitionKey)
|
295
|
+
|
281
296
|
PrepareQueryRequest.add_member(:query_string, Shapes::ShapeRef.new(shape: QueryString, required: true, location_name: "QueryString"))
|
282
297
|
PrepareQueryRequest.add_member(:validate_only, Shapes::ShapeRef.new(shape: NullableBoolean, location_name: "ValidateOnly"))
|
283
298
|
PrepareQueryRequest.struct_class = Types::PrepareQueryRequest
|
@@ -290,10 +305,24 @@ module Aws::TimestreamQuery
|
|
290
305
|
QueryExecutionException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
|
291
306
|
QueryExecutionException.struct_class = Types::QueryExecutionException
|
292
307
|
|
308
|
+
QueryInsights.add_member(:mode, Shapes::ShapeRef.new(shape: QueryInsightsMode, required: true, location_name: "Mode"))
|
309
|
+
QueryInsights.struct_class = Types::QueryInsights
|
310
|
+
|
311
|
+
QueryInsightsResponse.add_member(:query_spatial_coverage, Shapes::ShapeRef.new(shape: QuerySpatialCoverage, location_name: "QuerySpatialCoverage"))
|
312
|
+
QueryInsightsResponse.add_member(:query_temporal_range, Shapes::ShapeRef.new(shape: QueryTemporalRange, location_name: "QueryTemporalRange"))
|
313
|
+
QueryInsightsResponse.add_member(:query_table_count, Shapes::ShapeRef.new(shape: Long, location_name: "QueryTableCount", metadata: {"box"=>true}))
|
314
|
+
QueryInsightsResponse.add_member(:output_rows, Shapes::ShapeRef.new(shape: Long, location_name: "OutputRows", metadata: {"box"=>true}))
|
315
|
+
QueryInsightsResponse.add_member(:output_bytes, Shapes::ShapeRef.new(shape: Long, location_name: "OutputBytes", metadata: {"box"=>true}))
|
316
|
+
QueryInsightsResponse.add_member(:unload_partition_count, Shapes::ShapeRef.new(shape: Long, location_name: "UnloadPartitionCount", metadata: {"box"=>true}))
|
317
|
+
QueryInsightsResponse.add_member(:unload_written_rows, Shapes::ShapeRef.new(shape: Long, location_name: "UnloadWrittenRows", metadata: {"box"=>true}))
|
318
|
+
QueryInsightsResponse.add_member(:unload_written_bytes, Shapes::ShapeRef.new(shape: Long, location_name: "UnloadWrittenBytes", metadata: {"box"=>true}))
|
319
|
+
QueryInsightsResponse.struct_class = Types::QueryInsightsResponse
|
320
|
+
|
293
321
|
QueryRequest.add_member(:query_string, Shapes::ShapeRef.new(shape: QueryString, required: true, location_name: "QueryString"))
|
294
322
|
QueryRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: ClientRequestToken, location_name: "ClientToken", metadata: {"idempotencyToken"=>true}))
|
295
323
|
QueryRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "NextToken"))
|
296
324
|
QueryRequest.add_member(:max_rows, Shapes::ShapeRef.new(shape: MaxQueryResults, location_name: "MaxRows"))
|
325
|
+
QueryRequest.add_member(:query_insights, Shapes::ShapeRef.new(shape: QueryInsights, location_name: "QueryInsights"))
|
297
326
|
QueryRequest.struct_class = Types::QueryRequest
|
298
327
|
|
299
328
|
QueryResponse.add_member(:query_id, Shapes::ShapeRef.new(shape: QueryId, required: true, location_name: "QueryId"))
|
@@ -301,13 +330,29 @@ module Aws::TimestreamQuery
|
|
301
330
|
QueryResponse.add_member(:rows, Shapes::ShapeRef.new(shape: RowList, required: true, location_name: "Rows"))
|
302
331
|
QueryResponse.add_member(:column_info, Shapes::ShapeRef.new(shape: ColumnInfoList, required: true, location_name: "ColumnInfo"))
|
303
332
|
QueryResponse.add_member(:query_status, Shapes::ShapeRef.new(shape: QueryStatus, location_name: "QueryStatus"))
|
333
|
+
QueryResponse.add_member(:query_insights_response, Shapes::ShapeRef.new(shape: QueryInsightsResponse, location_name: "QueryInsightsResponse"))
|
304
334
|
QueryResponse.struct_class = Types::QueryResponse
|
305
335
|
|
336
|
+
QuerySpatialCoverage.add_member(:max, Shapes::ShapeRef.new(shape: QuerySpatialCoverageMax, location_name: "Max"))
|
337
|
+
QuerySpatialCoverage.struct_class = Types::QuerySpatialCoverage
|
338
|
+
|
339
|
+
QuerySpatialCoverageMax.add_member(:value, Shapes::ShapeRef.new(shape: Double, location_name: "Value"))
|
340
|
+
QuerySpatialCoverageMax.add_member(:table_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, location_name: "TableArn"))
|
341
|
+
QuerySpatialCoverageMax.add_member(:partition_key, Shapes::ShapeRef.new(shape: PartitionKeyList, location_name: "PartitionKey"))
|
342
|
+
QuerySpatialCoverageMax.struct_class = Types::QuerySpatialCoverageMax
|
343
|
+
|
306
344
|
QueryStatus.add_member(:progress_percentage, Shapes::ShapeRef.new(shape: Double, location_name: "ProgressPercentage"))
|
307
345
|
QueryStatus.add_member(:cumulative_bytes_scanned, Shapes::ShapeRef.new(shape: Long, location_name: "CumulativeBytesScanned"))
|
308
346
|
QueryStatus.add_member(:cumulative_bytes_metered, Shapes::ShapeRef.new(shape: Long, location_name: "CumulativeBytesMetered"))
|
309
347
|
QueryStatus.struct_class = Types::QueryStatus
|
310
348
|
|
349
|
+
QueryTemporalRange.add_member(:max, Shapes::ShapeRef.new(shape: QueryTemporalRangeMax, location_name: "Max"))
|
350
|
+
QueryTemporalRange.struct_class = Types::QueryTemporalRange
|
351
|
+
|
352
|
+
QueryTemporalRangeMax.add_member(:value, Shapes::ShapeRef.new(shape: Long, location_name: "Value"))
|
353
|
+
QueryTemporalRangeMax.add_member(:table_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, location_name: "TableArn"))
|
354
|
+
QueryTemporalRangeMax.struct_class = Types::QueryTemporalRangeMax
|
355
|
+
|
311
356
|
ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
|
312
357
|
ResourceNotFoundException.add_member(:scheduled_query_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, location_name: "ScheduledQueryArn"))
|
313
358
|
ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
|
@@ -357,12 +402,23 @@ module Aws::TimestreamQuery
|
|
357
402
|
ScheduledQueryDescription.add_member(:recently_failed_runs, Shapes::ShapeRef.new(shape: ScheduledQueryRunSummaryList, location_name: "RecentlyFailedRuns"))
|
358
403
|
ScheduledQueryDescription.struct_class = Types::ScheduledQueryDescription
|
359
404
|
|
405
|
+
ScheduledQueryInsights.add_member(:mode, Shapes::ShapeRef.new(shape: ScheduledQueryInsightsMode, required: true, location_name: "Mode"))
|
406
|
+
ScheduledQueryInsights.struct_class = Types::ScheduledQueryInsights
|
407
|
+
|
408
|
+
ScheduledQueryInsightsResponse.add_member(:query_spatial_coverage, Shapes::ShapeRef.new(shape: QuerySpatialCoverage, location_name: "QuerySpatialCoverage"))
|
409
|
+
ScheduledQueryInsightsResponse.add_member(:query_temporal_range, Shapes::ShapeRef.new(shape: QueryTemporalRange, location_name: "QueryTemporalRange"))
|
410
|
+
ScheduledQueryInsightsResponse.add_member(:query_table_count, Shapes::ShapeRef.new(shape: Long, location_name: "QueryTableCount", metadata: {"box"=>true}))
|
411
|
+
ScheduledQueryInsightsResponse.add_member(:output_rows, Shapes::ShapeRef.new(shape: Long, location_name: "OutputRows", metadata: {"box"=>true}))
|
412
|
+
ScheduledQueryInsightsResponse.add_member(:output_bytes, Shapes::ShapeRef.new(shape: Long, location_name: "OutputBytes", metadata: {"box"=>true}))
|
413
|
+
ScheduledQueryInsightsResponse.struct_class = Types::ScheduledQueryInsightsResponse
|
414
|
+
|
360
415
|
ScheduledQueryList.member = Shapes::ShapeRef.new(shape: ScheduledQuery)
|
361
416
|
|
362
417
|
ScheduledQueryRunSummary.add_member(:invocation_time, Shapes::ShapeRef.new(shape: Time, location_name: "InvocationTime"))
|
363
418
|
ScheduledQueryRunSummary.add_member(:trigger_time, Shapes::ShapeRef.new(shape: Time, location_name: "TriggerTime"))
|
364
419
|
ScheduledQueryRunSummary.add_member(:run_status, Shapes::ShapeRef.new(shape: ScheduledQueryRunStatus, location_name: "RunStatus"))
|
365
420
|
ScheduledQueryRunSummary.add_member(:execution_stats, Shapes::ShapeRef.new(shape: ExecutionStats, location_name: "ExecutionStats"))
|
421
|
+
ScheduledQueryRunSummary.add_member(:query_insights_response, Shapes::ShapeRef.new(shape: ScheduledQueryInsightsResponse, location_name: "QueryInsightsResponse"))
|
366
422
|
ScheduledQueryRunSummary.add_member(:error_report_location, Shapes::ShapeRef.new(shape: ErrorReportLocation, location_name: "ErrorReportLocation"))
|
367
423
|
ScheduledQueryRunSummary.add_member(:failure_reason, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "FailureReason"))
|
368
424
|
ScheduledQueryRunSummary.struct_class = Types::ScheduledQueryRunSummary
|
@@ -392,12 +392,21 @@ module Aws::TimestreamQuery
|
|
392
392
|
# not need to pass this option.
|
393
393
|
# @return [String]
|
394
394
|
#
|
395
|
+
# @!attribute [rw] query_insights
|
396
|
+
# Encapsulates settings for enabling `QueryInsights`.
|
397
|
+
#
|
398
|
+
# Enabling `QueryInsights` returns insights and metrics as a part of
|
399
|
+
# the Amazon SNS notification for the query that you executed. You can
|
400
|
+
# use `QueryInsights` to tune your query performance and cost.
|
401
|
+
# @return [Types::ScheduledQueryInsights]
|
402
|
+
#
|
395
403
|
# @see http://docs.aws.amazon.com/goto/WebAPI/timestream-query-2018-11-01/ExecuteScheduledQueryRequest AWS API Documentation
|
396
404
|
#
|
397
405
|
class ExecuteScheduledQueryRequest < Struct.new(
|
398
406
|
:scheduled_query_arn,
|
399
407
|
:invocation_time,
|
400
|
-
:client_token
|
408
|
+
:client_token,
|
409
|
+
:query_insights)
|
401
410
|
SENSITIVE = [:client_token]
|
402
411
|
include Aws::Structure
|
403
412
|
end
|
@@ -737,6 +746,130 @@ module Aws::TimestreamQuery
|
|
737
746
|
include Aws::Structure
|
738
747
|
end
|
739
748
|
|
749
|
+
# `QueryInsights` is a performance tuning feature that helps you
|
750
|
+
# optimize your queries, reducing costs and improving performance. With
|
751
|
+
# `QueryInsights`, you can assess the pruning efficiency of your queries
|
752
|
+
# and identify areas for improvement to enhance query performance. With
|
753
|
+
# `QueryInsights`, you can also analyze the effectiveness of your
|
754
|
+
# queries in terms of temporal and spatial pruning, and identify
|
755
|
+
# opportunities to improve performance. Specifically, you can evaluate
|
756
|
+
# how well your queries use time-based and partition key-based indexing
|
757
|
+
# strategies to optimize data retrieval. To optimize query performance,
|
758
|
+
# it's essential that you fine-tune both the temporal and spatial
|
759
|
+
# parameters that govern query execution.
|
760
|
+
#
|
761
|
+
# The key metrics provided by `QueryInsights` are `QuerySpatialCoverage`
|
762
|
+
# and `QueryTemporalRange`. `QuerySpatialCoverage` indicates how much of
|
763
|
+
# the spatial axis the query scans, with lower values being more
|
764
|
+
# efficient. `QueryTemporalRange` shows the time range scanned, with
|
765
|
+
# narrower ranges being more performant.
|
766
|
+
#
|
767
|
+
# **Benefits of QueryInsights**
|
768
|
+
#
|
769
|
+
# The following are the key benefits of using `QueryInsights`:
|
770
|
+
#
|
771
|
+
# * **Identifying inefficient queries** – `QueryInsights` provides
|
772
|
+
# information on the time-based and attribute-based pruning of the
|
773
|
+
# tables accessed by the query. This information helps you identify
|
774
|
+
# the tables that are sub-optimally accessed.
|
775
|
+
#
|
776
|
+
# * **Optimizing your data model and partitioning** – You can use the
|
777
|
+
# `QueryInsights` information to access and fine-tune your data model
|
778
|
+
# and partitioning strategy.
|
779
|
+
#
|
780
|
+
# * **Tuning queries** – `QueryInsights` highlights opportunities to use
|
781
|
+
# indexes more effectively.
|
782
|
+
#
|
783
|
+
# <note markdown="1"> The maximum number of `Query` API requests you're allowed to make
|
784
|
+
# with `QueryInsights` enabled is 1 query per second (QPS). If you
|
785
|
+
# exceed this query rate, it might result in throttling.
|
786
|
+
#
|
787
|
+
# </note>
|
788
|
+
#
|
789
|
+
# @!attribute [rw] mode
|
790
|
+
# Provides the following modes to enable `QueryInsights`:
|
791
|
+
#
|
792
|
+
# * `ENABLED_WITH_RATE_CONTROL` – Enables `QueryInsights` for the
|
793
|
+
# queries being processed. This mode also includes a rate control
|
794
|
+
# mechanism, which limits the `QueryInsights` feature to 1 query per
|
795
|
+
# second (QPS).
|
796
|
+
#
|
797
|
+
# * `DISABLED` – Disables `QueryInsights`.
|
798
|
+
# @return [String]
|
799
|
+
#
|
800
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/timestream-query-2018-11-01/QueryInsights AWS API Documentation
|
801
|
+
#
|
802
|
+
class QueryInsights < Struct.new(
|
803
|
+
:mode)
|
804
|
+
SENSITIVE = []
|
805
|
+
include Aws::Structure
|
806
|
+
end
|
807
|
+
|
808
|
+
# Provides various insights and metrics related to the query that you
|
809
|
+
# executed.
|
810
|
+
#
|
811
|
+
# @!attribute [rw] query_spatial_coverage
|
812
|
+
# Provides insights into the spatial coverage of the query, including
|
813
|
+
# the table with sub-optimal (max) spatial pruning. This information
|
814
|
+
# can help you identify areas for improvement in your partitioning
|
815
|
+
# strategy to enhance spatial pruning.
|
816
|
+
# @return [Types::QuerySpatialCoverage]
|
817
|
+
#
|
818
|
+
# @!attribute [rw] query_temporal_range
|
819
|
+
# Provides insights into the temporal range of the query, including
|
820
|
+
# the table with the largest (max) time range. Following are some of
|
821
|
+
# the potential options for optimizing time-based pruning:
|
822
|
+
#
|
823
|
+
# * Add missing time-predicates.
|
824
|
+
#
|
825
|
+
# * Remove functions around the time predicates.
|
826
|
+
#
|
827
|
+
# * Add time predicates to all the sub-queries.
|
828
|
+
# @return [Types::QueryTemporalRange]
|
829
|
+
#
|
830
|
+
# @!attribute [rw] query_table_count
|
831
|
+
# Indicates the number of tables in the query.
|
832
|
+
# @return [Integer]
|
833
|
+
#
|
834
|
+
# @!attribute [rw] output_rows
|
835
|
+
# Indicates the total number of rows returned as part of the query
|
836
|
+
# result set. You can use this data to validate if the number of rows
|
837
|
+
# in the result set have changed as part of the query tuning exercise.
|
838
|
+
# @return [Integer]
|
839
|
+
#
|
840
|
+
# @!attribute [rw] output_bytes
|
841
|
+
# Indicates the size of query result set in bytes. You can use this
|
842
|
+
# data to validate if the result set has changed as part of the query
|
843
|
+
# tuning exercise.
|
844
|
+
# @return [Integer]
|
845
|
+
#
|
846
|
+
# @!attribute [rw] unload_partition_count
|
847
|
+
# Indicates the partitions created by the `Unload` operation.
|
848
|
+
# @return [Integer]
|
849
|
+
#
|
850
|
+
# @!attribute [rw] unload_written_rows
|
851
|
+
# Indicates the rows written by the `Unload` query.
|
852
|
+
# @return [Integer]
|
853
|
+
#
|
854
|
+
# @!attribute [rw] unload_written_bytes
|
855
|
+
# Indicates the size, in bytes, written by the `Unload` operation.
|
856
|
+
# @return [Integer]
|
857
|
+
#
|
858
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/timestream-query-2018-11-01/QueryInsightsResponse AWS API Documentation
|
859
|
+
#
|
860
|
+
class QueryInsightsResponse < Struct.new(
|
861
|
+
:query_spatial_coverage,
|
862
|
+
:query_temporal_range,
|
863
|
+
:query_table_count,
|
864
|
+
:output_rows,
|
865
|
+
:output_bytes,
|
866
|
+
:unload_partition_count,
|
867
|
+
:unload_written_rows,
|
868
|
+
:unload_written_bytes)
|
869
|
+
SENSITIVE = []
|
870
|
+
include Aws::Structure
|
871
|
+
end
|
872
|
+
|
740
873
|
# @!attribute [rw] query_string
|
741
874
|
# The query to be run by Timestream.
|
742
875
|
# @return [String]
|
@@ -822,13 +955,22 @@ module Aws::TimestreamQuery
|
|
822
955
|
# necessary number of rows to meet the 1 MB limit.
|
823
956
|
# @return [Integer]
|
824
957
|
#
|
958
|
+
# @!attribute [rw] query_insights
|
959
|
+
# Encapsulates settings for enabling `QueryInsights`.
|
960
|
+
#
|
961
|
+
# Enabling `QueryInsights` returns insights and metrics in addition to
|
962
|
+
# query results for the query that you executed. You can use
|
963
|
+
# `QueryInsights` to tune your query performance.
|
964
|
+
# @return [Types::QueryInsights]
|
965
|
+
#
|
825
966
|
# @see http://docs.aws.amazon.com/goto/WebAPI/timestream-query-2018-11-01/QueryRequest AWS API Documentation
|
826
967
|
#
|
827
968
|
class QueryRequest < Struct.new(
|
828
969
|
:query_string,
|
829
970
|
:client_token,
|
830
971
|
:next_token,
|
831
|
-
:max_rows
|
972
|
+
:max_rows,
|
973
|
+
:query_insights)
|
832
974
|
SENSITIVE = [:query_string, :client_token]
|
833
975
|
include Aws::Structure
|
834
976
|
end
|
@@ -855,6 +997,11 @@ module Aws::TimestreamQuery
|
|
855
997
|
# bytes scanned.
|
856
998
|
# @return [Types::QueryStatus]
|
857
999
|
#
|
1000
|
+
# @!attribute [rw] query_insights_response
|
1001
|
+
# Encapsulates `QueryInsights` containing insights and metrics related
|
1002
|
+
# to the query that you executed.
|
1003
|
+
# @return [Types::QueryInsightsResponse]
|
1004
|
+
#
|
858
1005
|
# @see http://docs.aws.amazon.com/goto/WebAPI/timestream-query-2018-11-01/QueryResponse AWS API Documentation
|
859
1006
|
#
|
860
1007
|
class QueryResponse < Struct.new(
|
@@ -862,7 +1009,78 @@ module Aws::TimestreamQuery
|
|
862
1009
|
:next_token,
|
863
1010
|
:rows,
|
864
1011
|
:column_info,
|
865
|
-
:query_status
|
1012
|
+
:query_status,
|
1013
|
+
:query_insights_response)
|
1014
|
+
SENSITIVE = []
|
1015
|
+
include Aws::Structure
|
1016
|
+
end
|
1017
|
+
|
1018
|
+
# Provides insights into the spatial coverage of the query, including
|
1019
|
+
# the table with sub-optimal (max) spatial pruning. This information can
|
1020
|
+
# help you identify areas for improvement in your partitioning strategy
|
1021
|
+
# to enhance spatial pruning
|
1022
|
+
#
|
1023
|
+
# For example, you can do the following with the `QuerySpatialCoverage`
|
1024
|
+
# information:
|
1025
|
+
#
|
1026
|
+
# * Add measure\_name or use [customer-defined partition key][1] (CDPK)
|
1027
|
+
# predicates.
|
1028
|
+
#
|
1029
|
+
# * If you've already done the preceding action, remove functions
|
1030
|
+
# around them or clauses, such as `LIKE`.
|
1031
|
+
#
|
1032
|
+
#
|
1033
|
+
#
|
1034
|
+
# [1]: https://docs.aws.amazon.com/timestream/latest/developerguide/customer-defined-partition-keys.html
|
1035
|
+
#
|
1036
|
+
# @!attribute [rw] max
|
1037
|
+
# Provides insights into the spatial coverage of the executed query
|
1038
|
+
# and the table with the most inefficient spatial pruning.
|
1039
|
+
#
|
1040
|
+
# * `Value` – The maximum ratio of spatial coverage.
|
1041
|
+
#
|
1042
|
+
# * `TableArn` – The Amazon Resource Name (ARN) of the table with
|
1043
|
+
# sub-optimal spatial pruning.
|
1044
|
+
#
|
1045
|
+
# * `PartitionKey` – The partition key used for partitioning, which
|
1046
|
+
# can be a default `measure_name` or a CDPK.
|
1047
|
+
# @return [Types::QuerySpatialCoverageMax]
|
1048
|
+
#
|
1049
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/timestream-query-2018-11-01/QuerySpatialCoverage AWS API Documentation
|
1050
|
+
#
|
1051
|
+
class QuerySpatialCoverage < Struct.new(
|
1052
|
+
:max)
|
1053
|
+
SENSITIVE = []
|
1054
|
+
include Aws::Structure
|
1055
|
+
end
|
1056
|
+
|
1057
|
+
# Provides insights into the table with the most sub-optimal spatial
|
1058
|
+
# range scanned by your query.
|
1059
|
+
#
|
1060
|
+
# @!attribute [rw] value
|
1061
|
+
# The maximum ratio of spatial coverage.
|
1062
|
+
# @return [Float]
|
1063
|
+
#
|
1064
|
+
# @!attribute [rw] table_arn
|
1065
|
+
# The Amazon Resource Name (ARN) of the table with the most
|
1066
|
+
# sub-optimal spatial pruning.
|
1067
|
+
# @return [String]
|
1068
|
+
#
|
1069
|
+
# @!attribute [rw] partition_key
|
1070
|
+
# The partition key used for partitioning, which can be a default
|
1071
|
+
# `measure_name` or a [customer defined partition key][1].
|
1072
|
+
#
|
1073
|
+
#
|
1074
|
+
#
|
1075
|
+
# [1]: https://docs.aws.amazon.com/timestream/latest/developerguide/customer-defined-partition-keys.html
|
1076
|
+
# @return [Array<String>]
|
1077
|
+
#
|
1078
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/timestream-query-2018-11-01/QuerySpatialCoverageMax AWS API Documentation
|
1079
|
+
#
|
1080
|
+
class QuerySpatialCoverageMax < Struct.new(
|
1081
|
+
:value,
|
1082
|
+
:table_arn,
|
1083
|
+
:partition_key)
|
866
1084
|
SENSITIVE = []
|
867
1085
|
include Aws::Structure
|
868
1086
|
end
|
@@ -898,6 +1116,50 @@ module Aws::TimestreamQuery
|
|
898
1116
|
include Aws::Structure
|
899
1117
|
end
|
900
1118
|
|
1119
|
+
# Provides insights into the temporal range of the query, including the
|
1120
|
+
# table with the largest (max) time range.
|
1121
|
+
#
|
1122
|
+
# @!attribute [rw] max
|
1123
|
+
# Encapsulates the following properties that provide insights into the
|
1124
|
+
# most sub-optimal performing table on the temporal axis:
|
1125
|
+
#
|
1126
|
+
# * `Value` – The maximum duration in nanoseconds between the start
|
1127
|
+
# and end of the query.
|
1128
|
+
#
|
1129
|
+
# * `TableArn` – The Amazon Resource Name (ARN) of the table which is
|
1130
|
+
# queried with the largest time range.
|
1131
|
+
# @return [Types::QueryTemporalRangeMax]
|
1132
|
+
#
|
1133
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/timestream-query-2018-11-01/QueryTemporalRange AWS API Documentation
|
1134
|
+
#
|
1135
|
+
class QueryTemporalRange < Struct.new(
|
1136
|
+
:max)
|
1137
|
+
SENSITIVE = []
|
1138
|
+
include Aws::Structure
|
1139
|
+
end
|
1140
|
+
|
1141
|
+
# Provides insights into the table with the most sub-optimal temporal
|
1142
|
+
# pruning scanned by your query.
|
1143
|
+
#
|
1144
|
+
# @!attribute [rw] value
|
1145
|
+
# The maximum duration in nanoseconds between the start and end of the
|
1146
|
+
# query.
|
1147
|
+
# @return [Integer]
|
1148
|
+
#
|
1149
|
+
# @!attribute [rw] table_arn
|
1150
|
+
# The Amazon Resource Name (ARN) of the table which is queried with
|
1151
|
+
# the largest time range.
|
1152
|
+
# @return [String]
|
1153
|
+
#
|
1154
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/timestream-query-2018-11-01/QueryTemporalRangeMax AWS API Documentation
|
1155
|
+
#
|
1156
|
+
class QueryTemporalRangeMax < Struct.new(
|
1157
|
+
:value,
|
1158
|
+
:table_arn)
|
1159
|
+
SENSITIVE = []
|
1160
|
+
include Aws::Structure
|
1161
|
+
end
|
1162
|
+
|
901
1163
|
# The requested resource could not be found.
|
902
1164
|
#
|
903
1165
|
# @!attribute [rw] message
|
@@ -1131,6 +1393,78 @@ module Aws::TimestreamQuery
|
|
1131
1393
|
include Aws::Structure
|
1132
1394
|
end
|
1133
1395
|
|
1396
|
+
# Encapsulates settings for enabling `QueryInsights` on an
|
1397
|
+
# `ExecuteScheduledQueryRequest`.
|
1398
|
+
#
|
1399
|
+
# @!attribute [rw] mode
|
1400
|
+
# Provides the following modes to enable `ScheduledQueryInsights`:
|
1401
|
+
#
|
1402
|
+
# * `ENABLED_WITH_RATE_CONTROL` – Enables `ScheduledQueryInsights` for
|
1403
|
+
# the queries being processed. This mode also includes a rate
|
1404
|
+
# control mechanism, which limits the `QueryInsights` feature to 1
|
1405
|
+
# query per second (QPS).
|
1406
|
+
#
|
1407
|
+
# * `DISABLED` – Disables `ScheduledQueryInsights`.
|
1408
|
+
# @return [String]
|
1409
|
+
#
|
1410
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/timestream-query-2018-11-01/ScheduledQueryInsights AWS API Documentation
|
1411
|
+
#
|
1412
|
+
class ScheduledQueryInsights < Struct.new(
|
1413
|
+
:mode)
|
1414
|
+
SENSITIVE = []
|
1415
|
+
include Aws::Structure
|
1416
|
+
end
|
1417
|
+
|
1418
|
+
# Provides various insights and metrics related to the
|
1419
|
+
# `ExecuteScheduledQueryRequest` that was executed.
|
1420
|
+
#
|
1421
|
+
# @!attribute [rw] query_spatial_coverage
|
1422
|
+
# Provides insights into the spatial coverage of the query, including
|
1423
|
+
# the table with sub-optimal (max) spatial pruning. This information
|
1424
|
+
# can help you identify areas for improvement in your partitioning
|
1425
|
+
# strategy to enhance spatial pruning.
|
1426
|
+
# @return [Types::QuerySpatialCoverage]
|
1427
|
+
#
|
1428
|
+
# @!attribute [rw] query_temporal_range
|
1429
|
+
# Provides insights into the temporal range of the query, including
|
1430
|
+
# the table with the largest (max) time range. Following are some of
|
1431
|
+
# the potential options for optimizing time-based pruning:
|
1432
|
+
#
|
1433
|
+
# * Add missing time-predicates.
|
1434
|
+
#
|
1435
|
+
# * Remove functions around the time predicates.
|
1436
|
+
#
|
1437
|
+
# * Add time predicates to all the sub-queries.
|
1438
|
+
# @return [Types::QueryTemporalRange]
|
1439
|
+
#
|
1440
|
+
# @!attribute [rw] query_table_count
|
1441
|
+
# Indicates the number of tables in the query.
|
1442
|
+
# @return [Integer]
|
1443
|
+
#
|
1444
|
+
# @!attribute [rw] output_rows
|
1445
|
+
# Indicates the total number of rows returned as part of the query
|
1446
|
+
# result set. You can use this data to validate if the number of rows
|
1447
|
+
# in the result set have changed as part of the query tuning exercise.
|
1448
|
+
# @return [Integer]
|
1449
|
+
#
|
1450
|
+
# @!attribute [rw] output_bytes
|
1451
|
+
# Indicates the size of query result set in bytes. You can use this
|
1452
|
+
# data to validate if the result set has changed as part of the query
|
1453
|
+
# tuning exercise.
|
1454
|
+
# @return [Integer]
|
1455
|
+
#
|
1456
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/timestream-query-2018-11-01/ScheduledQueryInsightsResponse AWS API Documentation
|
1457
|
+
#
|
1458
|
+
class ScheduledQueryInsightsResponse < Struct.new(
|
1459
|
+
:query_spatial_coverage,
|
1460
|
+
:query_temporal_range,
|
1461
|
+
:query_table_count,
|
1462
|
+
:output_rows,
|
1463
|
+
:output_bytes)
|
1464
|
+
SENSITIVE = []
|
1465
|
+
include Aws::Structure
|
1466
|
+
end
|
1467
|
+
|
1134
1468
|
# Run summary for the scheduled query
|
1135
1469
|
#
|
1136
1470
|
# @!attribute [rw] invocation_time
|
@@ -1151,6 +1485,11 @@ module Aws::TimestreamQuery
|
|
1151
1485
|
# Runtime statistics for a scheduled run.
|
1152
1486
|
# @return [Types::ExecutionStats]
|
1153
1487
|
#
|
1488
|
+
# @!attribute [rw] query_insights_response
|
1489
|
+
# Provides various insights and metrics related to the run summary of
|
1490
|
+
# the scheduled query.
|
1491
|
+
# @return [Types::ScheduledQueryInsightsResponse]
|
1492
|
+
#
|
1154
1493
|
# @!attribute [rw] error_report_location
|
1155
1494
|
# S3 location for error report.
|
1156
1495
|
# @return [Types::ErrorReportLocation]
|
@@ -1167,6 +1506,7 @@ module Aws::TimestreamQuery
|
|
1167
1506
|
:trigger_time,
|
1168
1507
|
:run_status,
|
1169
1508
|
:execution_stats,
|
1509
|
+
:query_insights_response,
|
1170
1510
|
:error_report_location,
|
1171
1511
|
:failure_reason)
|
1172
1512
|
SENSITIVE = []
|
data/sig/client.rbs
CHANGED
@@ -199,7 +199,10 @@ module Aws
|
|
199
199
|
def execute_scheduled_query: (
|
200
200
|
scheduled_query_arn: ::String,
|
201
201
|
invocation_time: ::Time,
|
202
|
-
?client_token: ::String
|
202
|
+
?client_token: ::String,
|
203
|
+
?query_insights: {
|
204
|
+
mode: ("ENABLED_WITH_RATE_CONTROL" | "DISABLED")
|
205
|
+
}
|
203
206
|
) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
|
204
207
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
|
205
208
|
|
@@ -248,13 +251,17 @@ module Aws
|
|
248
251
|
def rows: () -> ::Array[Types::Row]
|
249
252
|
def column_info: () -> ::Array[Types::ColumnInfo]
|
250
253
|
def query_status: () -> Types::QueryStatus
|
254
|
+
def query_insights_response: () -> Types::QueryInsightsResponse
|
251
255
|
end
|
252
256
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/TimestreamQuery/Client.html#query-instance_method
|
253
257
|
def query: (
|
254
258
|
query_string: ::String,
|
255
259
|
?client_token: ::String,
|
256
260
|
?next_token: ::String,
|
257
|
-
?max_rows: ::Integer
|
261
|
+
?max_rows: ::Integer,
|
262
|
+
?query_insights: {
|
263
|
+
mode: ("ENABLED_WITH_RATE_CONTROL" | "DISABLED")
|
264
|
+
}
|
258
265
|
) -> _QueryResponseSuccess
|
259
266
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _QueryResponseSuccess
|
260
267
|
|
data/sig/types.rbs
CHANGED
@@ -120,6 +120,7 @@ module Aws::TimestreamQuery
|
|
120
120
|
attr_accessor scheduled_query_arn: ::String
|
121
121
|
attr_accessor invocation_time: ::Time
|
122
122
|
attr_accessor client_token: ::String
|
123
|
+
attr_accessor query_insights: Types::ScheduledQueryInsights
|
123
124
|
SENSITIVE: [:client_token]
|
124
125
|
end
|
125
126
|
|
@@ -219,11 +220,29 @@ module Aws::TimestreamQuery
|
|
219
220
|
SENSITIVE: []
|
220
221
|
end
|
221
222
|
|
223
|
+
class QueryInsights
|
224
|
+
attr_accessor mode: ("ENABLED_WITH_RATE_CONTROL" | "DISABLED")
|
225
|
+
SENSITIVE: []
|
226
|
+
end
|
227
|
+
|
228
|
+
class QueryInsightsResponse
|
229
|
+
attr_accessor query_spatial_coverage: Types::QuerySpatialCoverage
|
230
|
+
attr_accessor query_temporal_range: Types::QueryTemporalRange
|
231
|
+
attr_accessor query_table_count: ::Integer
|
232
|
+
attr_accessor output_rows: ::Integer
|
233
|
+
attr_accessor output_bytes: ::Integer
|
234
|
+
attr_accessor unload_partition_count: ::Integer
|
235
|
+
attr_accessor unload_written_rows: ::Integer
|
236
|
+
attr_accessor unload_written_bytes: ::Integer
|
237
|
+
SENSITIVE: []
|
238
|
+
end
|
239
|
+
|
222
240
|
class QueryRequest
|
223
241
|
attr_accessor query_string: ::String
|
224
242
|
attr_accessor client_token: ::String
|
225
243
|
attr_accessor next_token: ::String
|
226
244
|
attr_accessor max_rows: ::Integer
|
245
|
+
attr_accessor query_insights: Types::QueryInsights
|
227
246
|
SENSITIVE: [:query_string, :client_token]
|
228
247
|
end
|
229
248
|
|
@@ -233,6 +252,19 @@ module Aws::TimestreamQuery
|
|
233
252
|
attr_accessor rows: ::Array[Types::Row]
|
234
253
|
attr_accessor column_info: ::Array[Types::ColumnInfo]
|
235
254
|
attr_accessor query_status: Types::QueryStatus
|
255
|
+
attr_accessor query_insights_response: Types::QueryInsightsResponse
|
256
|
+
SENSITIVE: []
|
257
|
+
end
|
258
|
+
|
259
|
+
class QuerySpatialCoverage
|
260
|
+
attr_accessor max: Types::QuerySpatialCoverageMax
|
261
|
+
SENSITIVE: []
|
262
|
+
end
|
263
|
+
|
264
|
+
class QuerySpatialCoverageMax
|
265
|
+
attr_accessor value: ::Float
|
266
|
+
attr_accessor table_arn: ::String
|
267
|
+
attr_accessor partition_key: ::Array[::String]
|
236
268
|
SENSITIVE: []
|
237
269
|
end
|
238
270
|
|
@@ -243,6 +275,17 @@ module Aws::TimestreamQuery
|
|
243
275
|
SENSITIVE: []
|
244
276
|
end
|
245
277
|
|
278
|
+
class QueryTemporalRange
|
279
|
+
attr_accessor max: Types::QueryTemporalRangeMax
|
280
|
+
SENSITIVE: []
|
281
|
+
end
|
282
|
+
|
283
|
+
class QueryTemporalRangeMax
|
284
|
+
attr_accessor value: ::Integer
|
285
|
+
attr_accessor table_arn: ::String
|
286
|
+
SENSITIVE: []
|
287
|
+
end
|
288
|
+
|
246
289
|
class ResourceNotFoundException
|
247
290
|
attr_accessor message: ::String
|
248
291
|
attr_accessor scheduled_query_arn: ::String
|
@@ -304,11 +347,26 @@ module Aws::TimestreamQuery
|
|
304
347
|
SENSITIVE: [:query_string]
|
305
348
|
end
|
306
349
|
|
350
|
+
class ScheduledQueryInsights
|
351
|
+
attr_accessor mode: ("ENABLED_WITH_RATE_CONTROL" | "DISABLED")
|
352
|
+
SENSITIVE: []
|
353
|
+
end
|
354
|
+
|
355
|
+
class ScheduledQueryInsightsResponse
|
356
|
+
attr_accessor query_spatial_coverage: Types::QuerySpatialCoverage
|
357
|
+
attr_accessor query_temporal_range: Types::QueryTemporalRange
|
358
|
+
attr_accessor query_table_count: ::Integer
|
359
|
+
attr_accessor output_rows: ::Integer
|
360
|
+
attr_accessor output_bytes: ::Integer
|
361
|
+
SENSITIVE: []
|
362
|
+
end
|
363
|
+
|
307
364
|
class ScheduledQueryRunSummary
|
308
365
|
attr_accessor invocation_time: ::Time
|
309
366
|
attr_accessor trigger_time: ::Time
|
310
367
|
attr_accessor run_status: ("AUTO_TRIGGER_SUCCESS" | "AUTO_TRIGGER_FAILURE" | "MANUAL_TRIGGER_SUCCESS" | "MANUAL_TRIGGER_FAILURE")
|
311
368
|
attr_accessor execution_stats: Types::ExecutionStats
|
369
|
+
attr_accessor query_insights_response: Types::ScheduledQueryInsightsResponse
|
312
370
|
attr_accessor error_report_location: Types::ErrorReportLocation
|
313
371
|
attr_accessor failure_reason: ::String
|
314
372
|
SENSITIVE: []
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-timestreamquery
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.46.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-10-
|
11
|
+
date: 2024-10-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|