aws-sdk-pi 1.24.0 → 1.25.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws-sdk-pi.rb +1 -1
- data/lib/aws-sdk-pi/client.rb +40 -19
- data/lib/aws-sdk-pi/types.rb +108 -40
- 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: a945b3299f248a4de467e0235c9780c1ab428c4bf37cc45f1b6feb5ce18f6f64
|
4
|
+
data.tar.gz: 278b7bf031a88d17dbfd4ac15fd58c9c7e8eaae8c28b0c2e5f938fb7221bf46c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz: '
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '0399f4e5b882a6917fb57bfc48444eec243f895abff49a54e9a7a67d25c22cd3678789910cfbd96ed2b2e05df4ea82261a777d9abe11e3052ff8c57b59e2b530'
|
7
|
+
data.tar.gz: bb27d84a1481208ea3c8858c40754ea2c62fa10112d17c0df036f83f9da26bd4c5b7ebc2e21c4199bb207eecd6212c223997f9f19cec1742d5e391a3954e4a2b
|
data/lib/aws-sdk-pi.rb
CHANGED
data/lib/aws-sdk-pi/client.rb
CHANGED
@@ -340,30 +340,37 @@ module Aws::PI
|
|
340
340
|
# For a specific time period, retrieve the top `N` dimension keys for a
|
341
341
|
# metric.
|
342
342
|
#
|
343
|
+
# <note markdown="1"> Each response element returns a maximum of 500 bytes. For larger
|
344
|
+
# elements, such as SQL statements, only the first 500 bytes are
|
345
|
+
# returned.
|
346
|
+
#
|
347
|
+
# </note>
|
348
|
+
#
|
343
349
|
# @option params [required, String] :service_type
|
344
350
|
# The AWS service for which Performance Insights will return metrics.
|
345
|
-
# The only valid value for *ServiceType* is
|
351
|
+
# The only valid value for *ServiceType* is `RDS`.
|
346
352
|
#
|
347
353
|
# @option params [required, String] :identifier
|
348
354
|
# An immutable, AWS Region-unique identifier for a data source.
|
349
355
|
# Performance Insights gathers metrics from this data source.
|
350
356
|
#
|
351
357
|
# To use an Amazon RDS instance as a data source, you specify its
|
352
|
-
# `DbiResourceId` value
|
358
|
+
# `DbiResourceId` value. For example, specify
|
359
|
+
# `db-FAIHNTYBKTGAUSUZQYPDS2GW4A`
|
353
360
|
#
|
354
361
|
# @option params [required, Time,DateTime,Date,Integer,String] :start_time
|
355
362
|
# The date and time specifying the beginning of the requested time
|
356
|
-
# series data. You
|
357
|
-
#
|
358
|
-
# greater than `StartTime`
|
363
|
+
# series data. You must specify a `StartTime` within the past 7 days.
|
364
|
+
# The value specified is *inclusive*, which means that data points equal
|
365
|
+
# to or greater than `StartTime` are returned.
|
359
366
|
#
|
360
367
|
# The value for `StartTime` must be earlier than the value for
|
361
368
|
# `EndTime`.
|
362
369
|
#
|
363
370
|
# @option params [required, Time,DateTime,Date,Integer,String] :end_time
|
364
371
|
# The date and time specifying the end of the requested time series
|
365
|
-
# data. The value specified is *exclusive
|
366
|
-
# not equal to) `EndTime`
|
372
|
+
# data. The value specified is *exclusive*, which means that data points
|
373
|
+
# less than (but not equal to) `EndTime` are returned.
|
367
374
|
#
|
368
375
|
# The value for `EndTime` must be later than the value for `StartTime`.
|
369
376
|
#
|
@@ -378,6 +385,14 @@ module Aws::PI
|
|
378
385
|
# * `db.sampledload.avg` - the raw number of active sessions for the
|
379
386
|
# database engine.
|
380
387
|
#
|
388
|
+
# If the number of active sessions is less than an internal Performance
|
389
|
+
# Insights threshold, `db.load.avg` and `db.sampledload.avg` are the
|
390
|
+
# same value. If the number of active sessions is greater than the
|
391
|
+
# internal threshold, Performance Insights samples the active sessions,
|
392
|
+
# with `db.load.avg` showing the scaled values, `db.sampledload.avg`
|
393
|
+
# showing the raw values, and `db.sampledload.avg` less than
|
394
|
+
# `db.load.avg`. For most use cases, you can query `db.load.avg` only.
|
395
|
+
#
|
381
396
|
# @option params [Integer] :period_in_seconds
|
382
397
|
# The granularity, in seconds, of the data points returned from
|
383
398
|
# Performance Insights. A period can be as short as one second, or as
|
@@ -394,16 +409,16 @@ module Aws::PI
|
|
394
409
|
# * `86400` (twenty-four hours)
|
395
410
|
#
|
396
411
|
# If you don't specify `PeriodInSeconds`, then Performance Insights
|
397
|
-
#
|
398
|
-
#
|
412
|
+
# chooses a value for you, with a goal of returning roughly 100-200 data
|
413
|
+
# points in the response.
|
399
414
|
#
|
400
415
|
# @option params [required, Types::DimensionGroup] :group_by
|
401
416
|
# A specification for how to aggregate the data points from a query
|
402
417
|
# result. You must specify a valid dimension group. Performance Insights
|
403
|
-
#
|
404
|
-
#
|
405
|
-
#
|
406
|
-
#
|
418
|
+
# returns all dimensions within this group, unless you provide the names
|
419
|
+
# of specific dimensions within this group. You can also request that
|
420
|
+
# Performance Insights return a limited number of values for a
|
421
|
+
# dimension.
|
407
422
|
#
|
408
423
|
# @option params [Types::DimensionGroup] :partition_by
|
409
424
|
# For each dimension specified in `GroupBy`, specify a secondary
|
@@ -491,16 +506,22 @@ module Aws::PI
|
|
491
506
|
# dimensions, and provide aggregation and filtering criteria for each
|
492
507
|
# group.
|
493
508
|
#
|
509
|
+
# <note markdown="1"> Each response element returns a maximum of 500 bytes. For larger
|
510
|
+
# elements, such as SQL statements, only the first 500 bytes are
|
511
|
+
# returned.
|
512
|
+
#
|
513
|
+
# </note>
|
514
|
+
#
|
494
515
|
# @option params [required, String] :service_type
|
495
|
-
# The AWS service for which Performance Insights
|
496
|
-
#
|
516
|
+
# The AWS service for which Performance Insights returns metrics. The
|
517
|
+
# only valid value for *ServiceType* is `RDS`.
|
497
518
|
#
|
498
519
|
# @option params [required, String] :identifier
|
499
520
|
# An immutable, AWS Region-unique identifier for a data source.
|
500
521
|
# Performance Insights gathers metrics from this data source.
|
501
522
|
#
|
502
|
-
# To use
|
503
|
-
#
|
523
|
+
# To use a DB instance as a data source, specify its `DbiResourceId`
|
524
|
+
# value. For example, specify `db-FAIHNTYBKTGAUSUZQYPDS2GW4A`.
|
504
525
|
#
|
505
526
|
# @option params [required, Array<Types::MetricQuery>] :metric_queries
|
506
527
|
# An array of one or more queries to perform. Each query must specify a
|
@@ -517,7 +538,7 @@ module Aws::PI
|
|
517
538
|
# `EndTime`.
|
518
539
|
#
|
519
540
|
# @option params [required, Time,DateTime,Date,Integer,String] :end_time
|
520
|
-
# The date and time
|
541
|
+
# The date and time specifying the end of the requested time series
|
521
542
|
# data. The value specified is *exclusive* - data points less than (but
|
522
543
|
# not equal to) `EndTime` will be returned.
|
523
544
|
#
|
@@ -622,7 +643,7 @@ module Aws::PI
|
|
622
643
|
params: params,
|
623
644
|
config: config)
|
624
645
|
context[:gem_name] = 'aws-sdk-pi'
|
625
|
-
context[:gem_version] = '1.
|
646
|
+
context[:gem_version] = '1.25.0'
|
626
647
|
Seahorse::Client::Request.new(handlers, context)
|
627
648
|
end
|
628
649
|
|
data/lib/aws-sdk-pi/types.rb
CHANGED
@@ -59,7 +59,7 @@ module Aws::PI
|
|
59
59
|
#
|
60
60
|
# @!attribute [rw] service_type
|
61
61
|
# The AWS service for which Performance Insights will return metrics.
|
62
|
-
# The only valid value for *ServiceType* is
|
62
|
+
# The only valid value for *ServiceType* is `RDS`.
|
63
63
|
# @return [String]
|
64
64
|
#
|
65
65
|
# @!attribute [rw] identifier
|
@@ -67,14 +67,15 @@ module Aws::PI
|
|
67
67
|
# Performance Insights gathers metrics from this data source.
|
68
68
|
#
|
69
69
|
# To use an Amazon RDS instance as a data source, you specify its
|
70
|
-
# `DbiResourceId` value
|
70
|
+
# `DbiResourceId` value. For example, specify
|
71
|
+
# `db-FAIHNTYBKTGAUSUZQYPDS2GW4A`
|
71
72
|
# @return [String]
|
72
73
|
#
|
73
74
|
# @!attribute [rw] start_time
|
74
75
|
# The date and time specifying the beginning of the requested time
|
75
|
-
# series data. You
|
76
|
-
#
|
77
|
-
# or greater than `StartTime`
|
76
|
+
# series data. You must specify a `StartTime` within the past 7 days.
|
77
|
+
# The value specified is *inclusive*, which means that data points
|
78
|
+
# equal to or greater than `StartTime` are returned.
|
78
79
|
#
|
79
80
|
# The value for `StartTime` must be earlier than the value for
|
80
81
|
# `EndTime`.
|
@@ -82,8 +83,8 @@ module Aws::PI
|
|
82
83
|
#
|
83
84
|
# @!attribute [rw] end_time
|
84
85
|
# The date and time specifying the end of the requested time series
|
85
|
-
# data. The value specified is *exclusive
|
86
|
-
# (but not equal to) `EndTime`
|
86
|
+
# data. The value specified is *exclusive*, which means that data
|
87
|
+
# points less than (but not equal to) `EndTime` are returned.
|
87
88
|
#
|
88
89
|
# The value for `EndTime` must be later than the value for
|
89
90
|
# `StartTime`.
|
@@ -99,6 +100,15 @@ module Aws::PI
|
|
99
100
|
#
|
100
101
|
# * `db.sampledload.avg` - the raw number of active sessions for the
|
101
102
|
# database engine.
|
103
|
+
#
|
104
|
+
# If the number of active sessions is less than an internal
|
105
|
+
# Performance Insights threshold, `db.load.avg` and
|
106
|
+
# `db.sampledload.avg` are the same value. If the number of active
|
107
|
+
# sessions is greater than the internal threshold, Performance
|
108
|
+
# Insights samples the active sessions, with `db.load.avg` showing the
|
109
|
+
# scaled values, `db.sampledload.avg` showing the raw values, and
|
110
|
+
# `db.sampledload.avg` less than `db.load.avg`. For most use cases,
|
111
|
+
# you can query `db.load.avg` only.
|
102
112
|
# @return [String]
|
103
113
|
#
|
104
114
|
# @!attribute [rw] period_in_seconds
|
@@ -117,17 +127,17 @@ module Aws::PI
|
|
117
127
|
# * `86400` (twenty-four hours)
|
118
128
|
#
|
119
129
|
# If you don't specify `PeriodInSeconds`, then Performance Insights
|
120
|
-
#
|
121
|
-
#
|
130
|
+
# chooses a value for you, with a goal of returning roughly 100-200
|
131
|
+
# data points in the response.
|
122
132
|
# @return [Integer]
|
123
133
|
#
|
124
134
|
# @!attribute [rw] group_by
|
125
135
|
# A specification for how to aggregate the data points from a query
|
126
136
|
# result. You must specify a valid dimension group. Performance
|
127
|
-
# Insights
|
128
|
-
#
|
129
|
-
#
|
130
|
-
#
|
137
|
+
# Insights returns all dimensions within this group, unless you
|
138
|
+
# provide the names of specific dimensions within this group. You can
|
139
|
+
# also request that Performance Insights return a limited number of
|
140
|
+
# values for a dimension.
|
131
141
|
# @return [Types::DimensionGroup]
|
132
142
|
#
|
133
143
|
# @!attribute [rw] partition_by
|
@@ -222,6 +232,12 @@ module Aws::PI
|
|
222
232
|
# the following dimensions: `db.sql.id`, `db.sql.db_id`,
|
223
233
|
# `db.sql.statement`, and `db.sql.tokenized_id`.
|
224
234
|
#
|
235
|
+
# <note markdown="1"> Each response element returns a maximum of 500 bytes. For larger
|
236
|
+
# elements, such as SQL statements, only the first 500 bytes are
|
237
|
+
# returned.
|
238
|
+
#
|
239
|
+
# </note>
|
240
|
+
#
|
225
241
|
# @note When making an API call, you may pass DimensionGroup
|
226
242
|
# data as a hash:
|
227
243
|
#
|
@@ -234,17 +250,29 @@ module Aws::PI
|
|
234
250
|
# @!attribute [rw] group
|
235
251
|
# The name of the dimension group. Valid values are:
|
236
252
|
#
|
237
|
-
# * `db
|
253
|
+
# * `db` - The name of the database to which the client is connected
|
254
|
+
# (only Aurora PostgreSQL, RDS PostgreSQL, Aurora MySQL, RDS MySQL,
|
255
|
+
# and MariaDB)
|
256
|
+
#
|
257
|
+
# * `db.application` - The name of the application that is connected
|
258
|
+
# to the database (only Aurora PostgreSQL and RDS PostgreSQL)
|
259
|
+
#
|
260
|
+
# * `db.host` - The host name of the connected client (all engines)
|
261
|
+
#
|
262
|
+
# * `db.session_type` - The type of the current session (only Aurora
|
263
|
+
# PostgreSQL and RDS PostgreSQL)
|
238
264
|
#
|
239
|
-
# * `db.
|
265
|
+
# * `db.sql` - The SQL that is currently executing (all engines)
|
240
266
|
#
|
241
|
-
# * `db.
|
267
|
+
# * `db.sql_tokenized` - The SQL digest (all engines)
|
242
268
|
#
|
243
|
-
# * `db.
|
269
|
+
# * `db.wait_event` - The event for which the database backend is
|
270
|
+
# waiting (all engines)
|
244
271
|
#
|
245
|
-
# * `db.
|
272
|
+
# * `db.wait_event_type` - The type of event for which the database
|
273
|
+
# backend is waiting (all engines)
|
246
274
|
#
|
247
|
-
# * `db.
|
275
|
+
# * `db.user` - The user logged in to the database (all engines)
|
248
276
|
# @return [String]
|
249
277
|
#
|
250
278
|
# @!attribute [rw] dimensions
|
@@ -255,33 +283,55 @@ module Aws::PI
|
|
255
283
|
#
|
256
284
|
# Valid values for elements in the `Dimensions` array are:
|
257
285
|
#
|
258
|
-
# * db.
|
286
|
+
# * `db.application.name` - The name of the application that is
|
287
|
+
# connected to the database (only Aurora PostgreSQL and RDS
|
288
|
+
# PostgreSQL)
|
289
|
+
#
|
290
|
+
# * `db.host.id` - The host ID of the connected client (all engines)
|
291
|
+
#
|
292
|
+
# * `db.host.name` - The host name of the connected client (all
|
293
|
+
# engines)
|
294
|
+
#
|
295
|
+
# * `db.name` - The name of the database to which the client is
|
296
|
+
# connected (only Aurora PostgreSQL, RDS PostgreSQL, Aurora MySQL,
|
297
|
+
# RDS MySQL, and MariaDB)
|
259
298
|
#
|
260
|
-
# * db.
|
299
|
+
# * `db.session_type.name` - The type of the current session (only
|
300
|
+
# Aurora PostgreSQL and RDS PostgreSQL)
|
261
301
|
#
|
262
|
-
# * db.
|
302
|
+
# * `db.sql.id` - The SQL ID generated by Performance Insights (all
|
303
|
+
# engines)
|
263
304
|
#
|
264
|
-
# * db.
|
305
|
+
# * `db.sql.db_id` - The SQL ID generated by the database (all
|
306
|
+
# engines)
|
265
307
|
#
|
266
|
-
# * db.sql.
|
308
|
+
# * `db.sql.statement` - The SQL text that is being executed (all
|
309
|
+
# engines)
|
267
310
|
#
|
268
|
-
# * db.sql.
|
311
|
+
# * `db.sql.tokenized_id`
|
269
312
|
#
|
270
|
-
# * db.
|
313
|
+
# * `db.sql_tokenized.id` - The SQL digest ID generated by Performance
|
314
|
+
# Insights (all engines)
|
271
315
|
#
|
272
|
-
# * db.
|
316
|
+
# * `db.sql_tokenized.db_id` - SQL digest ID generated by the database
|
317
|
+
# (all engines)
|
273
318
|
#
|
274
|
-
# * db.
|
319
|
+
# * `db.sql_tokenized.statement` - The SQL digest text (all engines)
|
275
320
|
#
|
276
|
-
# * db.
|
321
|
+
# * `db.user.id` - The ID of the user logged in to the database (all
|
322
|
+
# engines)
|
277
323
|
#
|
278
|
-
# * db.
|
324
|
+
# * `db.user.name` - The name of the user logged in to the database
|
325
|
+
# (all engines)
|
279
326
|
#
|
280
|
-
# * db.
|
327
|
+
# * `db.wait_event.name` - The event for which the backend is waiting
|
328
|
+
# (all engines)
|
281
329
|
#
|
282
|
-
# * db.
|
330
|
+
# * `db.wait_event.type` - The type of event for which the backend is
|
331
|
+
# waiting (all engines)
|
283
332
|
#
|
284
|
-
# * db.
|
333
|
+
# * `db.wait_event_type.name` - The name of the event type for which
|
334
|
+
# the backend is waiting (all engines)
|
285
335
|
# @return [Array<String>]
|
286
336
|
#
|
287
337
|
# @!attribute [rw] limit
|
@@ -352,16 +402,16 @@ module Aws::PI
|
|
352
402
|
# }
|
353
403
|
#
|
354
404
|
# @!attribute [rw] service_type
|
355
|
-
# The AWS service for which Performance Insights
|
356
|
-
#
|
405
|
+
# The AWS service for which Performance Insights returns metrics. The
|
406
|
+
# only valid value for *ServiceType* is `RDS`.
|
357
407
|
# @return [String]
|
358
408
|
#
|
359
409
|
# @!attribute [rw] identifier
|
360
410
|
# An immutable, AWS Region-unique identifier for a data source.
|
361
411
|
# Performance Insights gathers metrics from this data source.
|
362
412
|
#
|
363
|
-
# To use
|
364
|
-
#
|
413
|
+
# To use a DB instance as a data source, specify its `DbiResourceId`
|
414
|
+
# value. For example, specify `db-FAIHNTYBKTGAUSUZQYPDS2GW4A`.
|
365
415
|
# @return [String]
|
366
416
|
#
|
367
417
|
# @!attribute [rw] metric_queries
|
@@ -381,7 +431,7 @@ module Aws::PI
|
|
381
431
|
# @return [Time]
|
382
432
|
#
|
383
433
|
# @!attribute [rw] end_time
|
384
|
-
# The date and time
|
434
|
+
# The date and time specifying the end of the requested time series
|
385
435
|
# data. The value specified is *exclusive* - data points less than
|
386
436
|
# (but not equal to) `EndTime` will be returned.
|
387
437
|
#
|
@@ -455,7 +505,7 @@ module Aws::PI
|
|
455
505
|
# An immutable, AWS Region-unique identifier for a data source.
|
456
506
|
# Performance Insights gathers metrics from this data source.
|
457
507
|
#
|
458
|
-
# To use
|
508
|
+
# To use a DB instance as a data source, you specify its
|
459
509
|
# `DbiResourceId` value - for example: `db-FAIHNTYBKTGAUSUZQYPDS2GW4A`
|
460
510
|
# @return [String]
|
461
511
|
#
|
@@ -508,7 +558,7 @@ module Aws::PI
|
|
508
558
|
include Aws::Structure
|
509
559
|
end
|
510
560
|
|
511
|
-
# A time-ordered series of data points,
|
561
|
+
# A time-ordered series of data points, corresponding to a dimension of
|
512
562
|
# a Performance Insights metric.
|
513
563
|
#
|
514
564
|
# @!attribute [rw] key
|
@@ -560,6 +610,15 @@ module Aws::PI
|
|
560
610
|
#
|
561
611
|
# * `db.sampledload.avg` - the raw number of active sessions for the
|
562
612
|
# database engine.
|
613
|
+
#
|
614
|
+
# If the number of active sessions is less than an internal
|
615
|
+
# Performance Insights threshold, `db.load.avg` and
|
616
|
+
# `db.sampledload.avg` are the same value. If the number of active
|
617
|
+
# sessions is greater than the internal threshold, Performance
|
618
|
+
# Insights samples the active sessions, with `db.load.avg` showing the
|
619
|
+
# scaled values, `db.sampledload.avg` showing the raw values, and
|
620
|
+
# `db.sampledload.avg` less than `db.load.avg`. For most use cases,
|
621
|
+
# you can query `db.load.avg` only.
|
563
622
|
# @return [String]
|
564
623
|
#
|
565
624
|
# @!attribute [rw] group_by
|
@@ -632,6 +691,15 @@ module Aws::PI
|
|
632
691
|
#
|
633
692
|
# * `db.sampledload.avg` - the raw number of active sessions for the
|
634
693
|
# database engine.
|
694
|
+
#
|
695
|
+
# If the number of active sessions is less than an internal
|
696
|
+
# Performance Insights threshold, `db.load.avg` and
|
697
|
+
# `db.sampledload.avg` are the same value. If the number of active
|
698
|
+
# sessions is greater than the internal threshold, Performance
|
699
|
+
# Insights samples the active sessions, with `db.load.avg` showing the
|
700
|
+
# scaled values, `db.sampledload.avg` showing the raw values, and
|
701
|
+
# `db.sampledload.avg` less than `db.load.avg`. For most use cases,
|
702
|
+
# you can query `db.load.avg` only.
|
635
703
|
# @return [String]
|
636
704
|
#
|
637
705
|
# @!attribute [rw] dimensions
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-pi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.25.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: 2020-
|
11
|
+
date: 2020-12-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|