aws-sdk-pi 1.35.0 → 1.38.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9573ecce16a0e206aff0e9ab5b1dca6d254e23786cb2cee4aa6c2413d78e9e77
4
- data.tar.gz: f904eb04a29a62622636aebb11ae98d2239216043a232ccbb4cd942e89645ea3
3
+ metadata.gz: 4416004eafc05fb5fc789b176493e9c2a5e9d9731449e574b4004634cd255d47
4
+ data.tar.gz: 2eb9e832146adee0784edccfa67460f8ba0922ecef7f8f38288a4a488d4d051b
5
5
  SHA512:
6
- metadata.gz: f2fba31f68e24be0252b6a6f08a9e369615dc975abf301d66bc31bbd5dc3cb9819c036467373e02e06b6b91a2a8ecacb830b11e3f145cbb901220247bb19f182
7
- data.tar.gz: d7e5f4b50b050f6b832213d05b7d54f95bc2747cc7c075363a7c7afa0756d59462b3487224d91857be54ab06678c5cac3cca9481c69edf87ce0963ee42a372fc
6
+ metadata.gz: 74f1718a960b67323c1ee667864c4b53a44618028268bccb983da1226392147757dadbb4bcba140a7dfafc56fa138ffae21c077e5d2fa3ecca3eb415deb7a606
7
+ data.tar.gz: 03740cf2f8b61731d39bcf627d6d45b5d9a73eaa60ccfbb2c7a905a3e985ca9d00cfbc4c6376ded968ce10efc79f61b17d07fa57d856b8ee6f8933d190dc5af4
data/CHANGELOG.md CHANGED
@@ -1,6 +1,21 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.38.0 (2022-02-24)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ 1.37.0 (2022-02-03)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
14
+ 1.36.0 (2022-01-12)
15
+ ------------------
16
+
17
+ * Feature - This release adds three Performance Insights APIs. Use ListAvailableResourceMetrics to get available metrics, GetResourceMetadata to get feature metadata, and ListAvailableResourceDimensions to list available dimensions. The AdditionalMetrics field in DescribeDimensionKeys retrieves per-SQL metrics.
18
+
4
19
  1.35.0 (2021-12-21)
5
20
  ------------------
6
21
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.35.0
1
+ 1.38.0
@@ -27,7 +27,9 @@ require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
27
27
  require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
28
28
  require 'aws-sdk-core/plugins/transfer_encoding.rb'
29
29
  require 'aws-sdk-core/plugins/http_checksum.rb'
30
+ require 'aws-sdk-core/plugins/checksum_algorithm.rb'
30
31
  require 'aws-sdk-core/plugins/defaults_mode.rb'
32
+ require 'aws-sdk-core/plugins/recursion_detection.rb'
31
33
  require 'aws-sdk-core/plugins/signature_v4.rb'
32
34
  require 'aws-sdk-core/plugins/protocols/json_rpc.rb'
33
35
 
@@ -74,7 +76,9 @@ module Aws::PI
74
76
  add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
75
77
  add_plugin(Aws::Plugins::TransferEncoding)
76
78
  add_plugin(Aws::Plugins::HttpChecksum)
79
+ add_plugin(Aws::Plugins::ChecksumAlgorithm)
77
80
  add_plugin(Aws::Plugins::DefaultsMode)
81
+ add_plugin(Aws::Plugins::RecursionDetection)
78
82
  add_plugin(Aws::Plugins::SignatureV4)
79
83
  add_plugin(Aws::Plugins::Protocols::JsonRpc)
80
84
 
@@ -367,16 +371,16 @@ module Aws::PI
367
371
  # </note>
368
372
  #
369
373
  # @option params [required, String] :service_type
370
- # The AWS service for which Performance Insights will return metrics.
371
- # The only valid value for *ServiceType* is `RDS`.
374
+ # The Amazon Web Services service for which Performance Insights will
375
+ # return metrics. The only valid value for *ServiceType* is `RDS`.
372
376
  #
373
377
  # @option params [required, String] :identifier
374
- # An immutable, AWS Region-unique identifier for a data source.
375
- # Performance Insights gathers metrics from this data source.
378
+ # An immutable, Amazon Web Services Region-unique identifier for a data
379
+ # source. Performance Insights gathers metrics from this data source.
376
380
  #
377
381
  # To use an Amazon RDS instance as a data source, you specify its
378
382
  # `DbiResourceId` value. For example, specify
379
- # `db-FAIHNTYBKTGAUSUZQYPDS2GW4A`
383
+ # `db-FAIHNTYBKTGAUSUZQYPDS2GW4A`.
380
384
  #
381
385
  # @option params [required, Time,DateTime,Date,Integer,String] :start_time
382
386
  # The date and time specifying the beginning of the requested time
@@ -440,6 +444,13 @@ module Aws::PI
440
444
  # Performance Insights return a limited number of values for a
441
445
  # dimension.
442
446
  #
447
+ # @option params [Array<String>] :additional_metrics
448
+ # Additional metrics for the top `N` dimension keys. If the specified
449
+ # dimension group in the `GroupBy` parameter is `db.sql_tokenized`, you
450
+ # can specify per-SQL metrics to get the values for the top `N` SQL
451
+ # digests. The response syntax is `"AdditionalMetrics" : \{ "string" :
452
+ # "string" \}`.
453
+ #
443
454
  # @option params [Types::DimensionGroup] :partition_by
444
455
  # For each dimension specified in `GroupBy`, specify a secondary
445
456
  # dimension to further subdivide the partition keys in the response.
@@ -471,10 +482,12 @@ module Aws::PI
471
482
  # * {Types::DescribeDimensionKeysResponse#keys #keys} => Array&lt;Types::DimensionKeyDescription&gt;
472
483
  # * {Types::DescribeDimensionKeysResponse#next_token #next_token} => String
473
484
  #
485
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
486
+ #
474
487
  # @example Request syntax with placeholder values
475
488
  #
476
489
  # resp = client.describe_dimension_keys({
477
- # service_type: "RDS", # required, accepts RDS
490
+ # service_type: "RDS", # required, accepts RDS, DOCDB
478
491
  # identifier: "RequestString", # required
479
492
  # start_time: Time.now, # required
480
493
  # end_time: Time.now, # required
@@ -485,6 +498,7 @@ module Aws::PI
485
498
  # dimensions: ["RequestString"],
486
499
  # limit: 1,
487
500
  # },
501
+ # additional_metrics: ["RequestString"],
488
502
  # partition_by: {
489
503
  # group: "RequestString", # required
490
504
  # dimensions: ["RequestString"],
@@ -508,6 +522,8 @@ module Aws::PI
508
522
  # resp.keys[0].dimensions #=> Hash
509
523
  # resp.keys[0].dimensions["RequestString"] #=> String
510
524
  # resp.keys[0].total #=> Float
525
+ # resp.keys[0].additional_metrics #=> Hash
526
+ # resp.keys[0].additional_metrics["RequestString"] #=> Float
511
527
  # resp.keys[0].partitions #=> Array
512
528
  # resp.keys[0].partitions[0] #=> Float
513
529
  # resp.next_token #=> String
@@ -524,19 +540,19 @@ module Aws::PI
524
540
  # Get the attributes of the specified dimension group for a DB instance
525
541
  # or data source. For example, if you specify a SQL ID,
526
542
  # `GetDimensionKeyDetails` retrieves the full text of the dimension
527
- # `db.sql.statement` associated with this ID. This operation is useful
543
+ # `db.sql.statement`cassociated with this ID. This operation is useful
528
544
  # because `GetResourceMetrics` and `DescribeDimensionKeys` don't
529
545
  # support retrieval of large SQL statement text.
530
546
  #
531
547
  # @option params [required, String] :service_type
532
- # The AWS service for which Performance Insights returns data. The only
533
- # valid value is `RDS`.
548
+ # The Amazon Web Services service for which Performance Insights returns
549
+ # data. The only valid value is `RDS`.
534
550
  #
535
551
  # @option params [required, String] :identifier
536
552
  # The ID for a data source from which to gather dimension data. This ID
537
- # must be immutable and unique within an AWS Region. When a DB instance
538
- # is the data source, specify its `DbiResourceId` value. For example,
539
- # specify `db-ABCDEFGHIJKLMNOPQRSTU1VW2X`.
553
+ # must be immutable and unique within an Amazon Web Services Region.
554
+ # When a DB instance is the data source, specify its `DbiResourceId`
555
+ # value. For example, specify `db-ABCDEFGHIJKLMNOPQRSTU1VW2X`.
540
556
  #
541
557
  # @option params [required, String] :group
542
558
  # The name of the dimension group. The only valid value is `db.sql`.
@@ -562,7 +578,7 @@ module Aws::PI
562
578
  # @example Request syntax with placeholder values
563
579
  #
564
580
  # resp = client.get_dimension_key_details({
565
- # service_type: "RDS", # required, accepts RDS
581
+ # service_type: "RDS", # required, accepts RDS, DOCDB
566
582
  # identifier: "IdentifierString", # required
567
583
  # group: "RequestString", # required
568
584
  # group_identifier: "RequestString", # required
@@ -585,6 +601,48 @@ module Aws::PI
585
601
  req.send_request(options)
586
602
  end
587
603
 
604
+ # Retrieve the metadata for different features. For example, the
605
+ # metadata might indicate that a feature is turned on or off on a
606
+ # specific DB instance.
607
+ #
608
+ # @option params [required, String] :service_type
609
+ # The Amazon Web Services service for which Performance Insights returns
610
+ # metrics.
611
+ #
612
+ # @option params [required, String] :identifier
613
+ # An immutable identifier for a data source that is unique for an Amazon
614
+ # Web Services Region. Performance Insights gathers metrics from this
615
+ # data source. To use a DB instance as a data source, specify its
616
+ # `DbiResourceId` value. For example, specify
617
+ # `db-ABCDEFGHIJKLMNOPQRSTU1VW2X`.
618
+ #
619
+ # @return [Types::GetResourceMetadataResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
620
+ #
621
+ # * {Types::GetResourceMetadataResponse#identifier #identifier} => String
622
+ # * {Types::GetResourceMetadataResponse#features #features} => Hash&lt;String,Types::FeatureMetadata&gt;
623
+ #
624
+ # @example Request syntax with placeholder values
625
+ #
626
+ # resp = client.get_resource_metadata({
627
+ # service_type: "RDS", # required, accepts RDS, DOCDB
628
+ # identifier: "RequestString", # required
629
+ # })
630
+ #
631
+ # @example Response structure
632
+ #
633
+ # resp.identifier #=> String
634
+ # resp.features #=> Hash
635
+ # resp.features["String"].status #=> String, one of "ENABLED", "DISABLED", "UNSUPPORTED", "ENABLED_PENDING_REBOOT", "DISABLED_PENDING_REBOOT", "UNKNOWN"
636
+ #
637
+ # @see http://docs.aws.amazon.com/goto/WebAPI/pi-2018-02-27/GetResourceMetadata AWS API Documentation
638
+ #
639
+ # @overload get_resource_metadata(params = {})
640
+ # @param [Hash] params ({})
641
+ def get_resource_metadata(params = {}, options = {})
642
+ req = build_request(:get_resource_metadata, params)
643
+ req.send_request(options)
644
+ end
645
+
588
646
  # Retrieve Performance Insights metrics for a set of data sources, over
589
647
  # a time period. You can provide specific dimension groups and
590
648
  # dimensions, and provide aggregation and filtering criteria for each
@@ -597,12 +655,12 @@ module Aws::PI
597
655
  # </note>
598
656
  #
599
657
  # @option params [required, String] :service_type
600
- # The AWS service for which Performance Insights returns metrics. The
601
- # only valid value for *ServiceType* is `RDS`.
658
+ # The Amazon Web Services service for which Performance Insights returns
659
+ # metrics. The only valid value for *ServiceType* is `RDS`.
602
660
  #
603
661
  # @option params [required, String] :identifier
604
- # An immutable, AWS Region-unique identifier for a data source.
605
- # Performance Insights gathers metrics from this data source.
662
+ # An immutable, Amazon Web Services Region-unique identifier for a data
663
+ # source. Performance Insights gathers metrics from this data source.
606
664
  #
607
665
  # To use a DB instance as a data source, specify its `DbiResourceId`
608
666
  # value. For example, specify `db-FAIHNTYBKTGAUSUZQYPDS2GW4A`.
@@ -666,10 +724,12 @@ module Aws::PI
666
724
  # * {Types::GetResourceMetricsResponse#metric_list #metric_list} => Array&lt;Types::MetricKeyDataPoints&gt;
667
725
  # * {Types::GetResourceMetricsResponse#next_token #next_token} => String
668
726
  #
727
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
728
+ #
669
729
  # @example Request syntax with placeholder values
670
730
  #
671
731
  # resp = client.get_resource_metrics({
672
- # service_type: "RDS", # required, accepts RDS
732
+ # service_type: "RDS", # required, accepts RDS, DOCDB
673
733
  # identifier: "RequestString", # required
674
734
  # metric_queries: [ # required
675
735
  # {
@@ -714,6 +774,141 @@ module Aws::PI
714
774
  req.send_request(options)
715
775
  end
716
776
 
777
+ # Retrieve the dimensions that can be queried for each specified metric
778
+ # type on a specified DB instance.
779
+ #
780
+ # @option params [required, String] :service_type
781
+ # The Amazon Web Services service for which Performance Insights returns
782
+ # metrics.
783
+ #
784
+ # @option params [required, String] :identifier
785
+ # An immutable identifier for a data source that is unique within an
786
+ # Amazon Web Services Region. Performance Insights gathers metrics from
787
+ # this data source. To use an Amazon RDS DB instance as a data source,
788
+ # specify its `DbiResourceId` value. For example, specify
789
+ # `db-ABCDEFGHIJKLMNOPQRSTU1VWZ`.
790
+ #
791
+ # @option params [required, Array<String>] :metrics
792
+ # The types of metrics for which to retrieve dimensions. Valid values
793
+ # include `db.load`.
794
+ #
795
+ # @option params [Integer] :max_results
796
+ # The maximum number of items to return in the response. If more items
797
+ # exist than the specified `MaxRecords` value, a pagination token is
798
+ # included in the response so that the remaining results can be
799
+ # retrieved.
800
+ #
801
+ # @option params [String] :next_token
802
+ # An optional pagination token provided by a previous request. If this
803
+ # parameter is specified, the response includes only records beyond the
804
+ # token, up to the value specified by `MaxRecords`.
805
+ #
806
+ # @return [Types::ListAvailableResourceDimensionsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
807
+ #
808
+ # * {Types::ListAvailableResourceDimensionsResponse#metric_dimensions #metric_dimensions} => Array&lt;Types::MetricDimensionGroups&gt;
809
+ # * {Types::ListAvailableResourceDimensionsResponse#next_token #next_token} => String
810
+ #
811
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
812
+ #
813
+ # @example Request syntax with placeholder values
814
+ #
815
+ # resp = client.list_available_resource_dimensions({
816
+ # service_type: "RDS", # required, accepts RDS, DOCDB
817
+ # identifier: "RequestString", # required
818
+ # metrics: ["RequestString"], # required
819
+ # max_results: 1,
820
+ # next_token: "NextToken",
821
+ # })
822
+ #
823
+ # @example Response structure
824
+ #
825
+ # resp.metric_dimensions #=> Array
826
+ # resp.metric_dimensions[0].metric #=> String
827
+ # resp.metric_dimensions[0].groups #=> Array
828
+ # resp.metric_dimensions[0].groups[0].group #=> String
829
+ # resp.metric_dimensions[0].groups[0].dimensions #=> Array
830
+ # resp.metric_dimensions[0].groups[0].dimensions[0].identifier #=> String
831
+ # resp.next_token #=> String
832
+ #
833
+ # @see http://docs.aws.amazon.com/goto/WebAPI/pi-2018-02-27/ListAvailableResourceDimensions AWS API Documentation
834
+ #
835
+ # @overload list_available_resource_dimensions(params = {})
836
+ # @param [Hash] params ({})
837
+ def list_available_resource_dimensions(params = {}, options = {})
838
+ req = build_request(:list_available_resource_dimensions, params)
839
+ req.send_request(options)
840
+ end
841
+
842
+ # Retrieve metrics of the specified types that can be queried for a
843
+ # specified DB instance.
844
+ #
845
+ # @option params [required, String] :service_type
846
+ # The Amazon Web Services service for which Performance Insights returns
847
+ # metrics.
848
+ #
849
+ # @option params [required, String] :identifier
850
+ # An immutable identifier for a data source that is unique within an
851
+ # Amazon Web Services Region. Performance Insights gathers metrics from
852
+ # this data source. To use an Amazon RDS DB instance as a data source,
853
+ # specify its `DbiResourceId` value. For example, specify
854
+ # `db-ABCDEFGHIJKLMNOPQRSTU1VWZ`.
855
+ #
856
+ # @option params [required, Array<String>] :metric_types
857
+ # The types of metrics to return in the response. Valid values in the
858
+ # array include the following:
859
+ #
860
+ # * `os` (OS counter metrics)
861
+ #
862
+ # * `db` (DB load metrics)
863
+ #
864
+ # * `db.sql.stats` (per-SQL metrics)
865
+ #
866
+ # * `db.sql_tokenized.stats` (per-SQL digest metrics)
867
+ #
868
+ # @option params [String] :next_token
869
+ # An optional pagination token provided by a previous request. If this
870
+ # parameter is specified, the response includes only records beyond the
871
+ # token, up to the value specified by `MaxRecords`.
872
+ #
873
+ # @option params [Integer] :max_results
874
+ # The maximum number of items to return. If the `MaxRecords` value is
875
+ # less than the number of existing items, the response includes a
876
+ # pagination token.
877
+ #
878
+ # @return [Types::ListAvailableResourceMetricsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
879
+ #
880
+ # * {Types::ListAvailableResourceMetricsResponse#metrics #metrics} => Array&lt;Types::ResponseResourceMetric&gt;
881
+ # * {Types::ListAvailableResourceMetricsResponse#next_token #next_token} => String
882
+ #
883
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
884
+ #
885
+ # @example Request syntax with placeholder values
886
+ #
887
+ # resp = client.list_available_resource_metrics({
888
+ # service_type: "RDS", # required, accepts RDS, DOCDB
889
+ # identifier: "RequestString", # required
890
+ # metric_types: ["RequestString"], # required
891
+ # next_token: "NextToken",
892
+ # max_results: 1,
893
+ # })
894
+ #
895
+ # @example Response structure
896
+ #
897
+ # resp.metrics #=> Array
898
+ # resp.metrics[0].metric #=> String
899
+ # resp.metrics[0].description #=> String
900
+ # resp.metrics[0].unit #=> String
901
+ # resp.next_token #=> String
902
+ #
903
+ # @see http://docs.aws.amazon.com/goto/WebAPI/pi-2018-02-27/ListAvailableResourceMetrics AWS API Documentation
904
+ #
905
+ # @overload list_available_resource_metrics(params = {})
906
+ # @param [Hash] params ({})
907
+ def list_available_resource_metrics(params = {}, options = {})
908
+ req = build_request(:list_available_resource_metrics, params)
909
+ req.send_request(options)
910
+ end
911
+
717
912
  # @!endgroup
718
913
 
719
914
  # @param params ({})
@@ -727,7 +922,7 @@ module Aws::PI
727
922
  params: params,
728
923
  config: config)
729
924
  context[:gem_name] = 'aws-sdk-pi'
730
- context[:gem_version] = '1.35.0'
925
+ context[:gem_version] = '1.38.0'
731
926
  Seahorse::Client::Request.new(handlers, context)
732
927
  end
733
928
 
@@ -13,21 +13,34 @@ module Aws::PI
13
13
 
14
14
  include Seahorse::Model
15
15
 
16
+ AdditionalMetricsList = Shapes::ListShape.new(name: 'AdditionalMetricsList')
17
+ AdditionalMetricsMap = Shapes::MapShape.new(name: 'AdditionalMetricsMap')
16
18
  DataPoint = Shapes::StructureShape.new(name: 'DataPoint')
17
19
  DataPointsList = Shapes::ListShape.new(name: 'DataPointsList')
18
20
  DescribeDimensionKeysRequest = Shapes::StructureShape.new(name: 'DescribeDimensionKeysRequest')
19
21
  DescribeDimensionKeysResponse = Shapes::StructureShape.new(name: 'DescribeDimensionKeysResponse')
22
+ Description = Shapes::StringShape.new(name: 'Description')
20
23
  DetailStatus = Shapes::StringShape.new(name: 'DetailStatus')
24
+ DimensionDetail = Shapes::StructureShape.new(name: 'DimensionDetail')
25
+ DimensionDetailList = Shapes::ListShape.new(name: 'DimensionDetailList')
21
26
  DimensionGroup = Shapes::StructureShape.new(name: 'DimensionGroup')
27
+ DimensionGroupDetail = Shapes::StructureShape.new(name: 'DimensionGroupDetail')
28
+ DimensionGroupDetailList = Shapes::ListShape.new(name: 'DimensionGroupDetailList')
22
29
  DimensionKeyDescription = Shapes::StructureShape.new(name: 'DimensionKeyDescription')
23
30
  DimensionKeyDescriptionList = Shapes::ListShape.new(name: 'DimensionKeyDescriptionList')
24
31
  DimensionKeyDetail = Shapes::StructureShape.new(name: 'DimensionKeyDetail')
25
32
  DimensionKeyDetailList = Shapes::ListShape.new(name: 'DimensionKeyDetailList')
26
33
  DimensionMap = Shapes::MapShape.new(name: 'DimensionMap')
34
+ DimensionsMetricList = Shapes::ListShape.new(name: 'DimensionsMetricList')
27
35
  Double = Shapes::FloatShape.new(name: 'Double')
28
36
  ErrorString = Shapes::StringShape.new(name: 'ErrorString')
37
+ FeatureMetadata = Shapes::StructureShape.new(name: 'FeatureMetadata')
38
+ FeatureMetadataMap = Shapes::MapShape.new(name: 'FeatureMetadataMap')
39
+ FeatureStatus = Shapes::StringShape.new(name: 'FeatureStatus')
29
40
  GetDimensionKeyDetailsRequest = Shapes::StructureShape.new(name: 'GetDimensionKeyDetailsRequest')
30
41
  GetDimensionKeyDetailsResponse = Shapes::StructureShape.new(name: 'GetDimensionKeyDetailsResponse')
42
+ GetResourceMetadataRequest = Shapes::StructureShape.new(name: 'GetResourceMetadataRequest')
43
+ GetResourceMetadataResponse = Shapes::StructureShape.new(name: 'GetResourceMetadataResponse')
31
44
  GetResourceMetricsRequest = Shapes::StructureShape.new(name: 'GetResourceMetricsRequest')
32
45
  GetResourceMetricsResponse = Shapes::StructureShape.new(name: 'GetResourceMetricsResponse')
33
46
  ISOTimestamp = Shapes::TimestampShape.new(name: 'ISOTimestamp')
@@ -36,12 +49,19 @@ module Aws::PI
36
49
  InternalServiceError = Shapes::StructureShape.new(name: 'InternalServiceError')
37
50
  InvalidArgumentException = Shapes::StructureShape.new(name: 'InvalidArgumentException')
38
51
  Limit = Shapes::IntegerShape.new(name: 'Limit')
52
+ ListAvailableResourceDimensionsRequest = Shapes::StructureShape.new(name: 'ListAvailableResourceDimensionsRequest')
53
+ ListAvailableResourceDimensionsResponse = Shapes::StructureShape.new(name: 'ListAvailableResourceDimensionsResponse')
54
+ ListAvailableResourceMetricsRequest = Shapes::StructureShape.new(name: 'ListAvailableResourceMetricsRequest')
55
+ ListAvailableResourceMetricsResponse = Shapes::StructureShape.new(name: 'ListAvailableResourceMetricsResponse')
39
56
  MaxResults = Shapes::IntegerShape.new(name: 'MaxResults')
57
+ MetricDimensionGroups = Shapes::StructureShape.new(name: 'MetricDimensionGroups')
58
+ MetricDimensionsList = Shapes::ListShape.new(name: 'MetricDimensionsList')
40
59
  MetricKeyDataPoints = Shapes::StructureShape.new(name: 'MetricKeyDataPoints')
41
60
  MetricKeyDataPointsList = Shapes::ListShape.new(name: 'MetricKeyDataPointsList')
42
61
  MetricQuery = Shapes::StructureShape.new(name: 'MetricQuery')
43
62
  MetricQueryFilterMap = Shapes::MapShape.new(name: 'MetricQueryFilterMap')
44
63
  MetricQueryList = Shapes::ListShape.new(name: 'MetricQueryList')
64
+ MetricTypeList = Shapes::ListShape.new(name: 'MetricTypeList')
45
65
  MetricValuesList = Shapes::ListShape.new(name: 'MetricValuesList')
46
66
  NextToken = Shapes::StringShape.new(name: 'NextToken')
47
67
  NotAuthorizedException = Shapes::StructureShape.new(name: 'NotAuthorizedException')
@@ -50,10 +70,17 @@ module Aws::PI
50
70
  RequestedDimensionList = Shapes::ListShape.new(name: 'RequestedDimensionList')
51
71
  ResponsePartitionKey = Shapes::StructureShape.new(name: 'ResponsePartitionKey')
52
72
  ResponsePartitionKeyList = Shapes::ListShape.new(name: 'ResponsePartitionKeyList')
73
+ ResponseResourceMetric = Shapes::StructureShape.new(name: 'ResponseResourceMetric')
53
74
  ResponseResourceMetricKey = Shapes::StructureShape.new(name: 'ResponseResourceMetricKey')
75
+ ResponseResourceMetricList = Shapes::ListShape.new(name: 'ResponseResourceMetricList')
54
76
  ServiceType = Shapes::StringShape.new(name: 'ServiceType')
55
77
  String = Shapes::StringShape.new(name: 'String')
56
78
 
79
+ AdditionalMetricsList.member = Shapes::ShapeRef.new(shape: RequestString)
80
+
81
+ AdditionalMetricsMap.key = Shapes::ShapeRef.new(shape: RequestString)
82
+ AdditionalMetricsMap.value = Shapes::ShapeRef.new(shape: Double)
83
+
57
84
  DataPoint.add_member(:timestamp, Shapes::ShapeRef.new(shape: ISOTimestamp, required: true, location_name: "Timestamp"))
58
85
  DataPoint.add_member(:value, Shapes::ShapeRef.new(shape: Double, required: true, location_name: "Value"))
59
86
  DataPoint.struct_class = Types::DataPoint
@@ -67,6 +94,7 @@ module Aws::PI
67
94
  DescribeDimensionKeysRequest.add_member(:metric, Shapes::ShapeRef.new(shape: RequestString, required: true, location_name: "Metric"))
68
95
  DescribeDimensionKeysRequest.add_member(:period_in_seconds, Shapes::ShapeRef.new(shape: Integer, location_name: "PeriodInSeconds"))
69
96
  DescribeDimensionKeysRequest.add_member(:group_by, Shapes::ShapeRef.new(shape: DimensionGroup, required: true, location_name: "GroupBy"))
97
+ DescribeDimensionKeysRequest.add_member(:additional_metrics, Shapes::ShapeRef.new(shape: AdditionalMetricsList, location_name: "AdditionalMetrics"))
70
98
  DescribeDimensionKeysRequest.add_member(:partition_by, Shapes::ShapeRef.new(shape: DimensionGroup, location_name: "PartitionBy"))
71
99
  DescribeDimensionKeysRequest.add_member(:filter, Shapes::ShapeRef.new(shape: MetricQueryFilterMap, location_name: "Filter"))
72
100
  DescribeDimensionKeysRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "MaxResults"))
@@ -80,13 +108,25 @@ module Aws::PI
80
108
  DescribeDimensionKeysResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
81
109
  DescribeDimensionKeysResponse.struct_class = Types::DescribeDimensionKeysResponse
82
110
 
111
+ DimensionDetail.add_member(:identifier, Shapes::ShapeRef.new(shape: String, location_name: "Identifier"))
112
+ DimensionDetail.struct_class = Types::DimensionDetail
113
+
114
+ DimensionDetailList.member = Shapes::ShapeRef.new(shape: DimensionDetail)
115
+
83
116
  DimensionGroup.add_member(:group, Shapes::ShapeRef.new(shape: RequestString, required: true, location_name: "Group"))
84
117
  DimensionGroup.add_member(:dimensions, Shapes::ShapeRef.new(shape: RequestStringList, location_name: "Dimensions"))
85
118
  DimensionGroup.add_member(:limit, Shapes::ShapeRef.new(shape: Limit, location_name: "Limit"))
86
119
  DimensionGroup.struct_class = Types::DimensionGroup
87
120
 
121
+ DimensionGroupDetail.add_member(:group, Shapes::ShapeRef.new(shape: String, location_name: "Group"))
122
+ DimensionGroupDetail.add_member(:dimensions, Shapes::ShapeRef.new(shape: DimensionDetailList, location_name: "Dimensions"))
123
+ DimensionGroupDetail.struct_class = Types::DimensionGroupDetail
124
+
125
+ DimensionGroupDetailList.member = Shapes::ShapeRef.new(shape: DimensionGroupDetail)
126
+
88
127
  DimensionKeyDescription.add_member(:dimensions, Shapes::ShapeRef.new(shape: DimensionMap, location_name: "Dimensions"))
89
128
  DimensionKeyDescription.add_member(:total, Shapes::ShapeRef.new(shape: Double, location_name: "Total"))
129
+ DimensionKeyDescription.add_member(:additional_metrics, Shapes::ShapeRef.new(shape: AdditionalMetricsMap, location_name: "AdditionalMetrics"))
90
130
  DimensionKeyDescription.add_member(:partitions, Shapes::ShapeRef.new(shape: MetricValuesList, location_name: "Partitions"))
91
131
  DimensionKeyDescription.struct_class = Types::DimensionKeyDescription
92
132
 
@@ -102,6 +142,14 @@ module Aws::PI
102
142
  DimensionMap.key = Shapes::ShapeRef.new(shape: RequestString)
103
143
  DimensionMap.value = Shapes::ShapeRef.new(shape: RequestString)
104
144
 
145
+ DimensionsMetricList.member = Shapes::ShapeRef.new(shape: RequestString)
146
+
147
+ FeatureMetadata.add_member(:status, Shapes::ShapeRef.new(shape: FeatureStatus, location_name: "Status"))
148
+ FeatureMetadata.struct_class = Types::FeatureMetadata
149
+
150
+ FeatureMetadataMap.key = Shapes::ShapeRef.new(shape: String)
151
+ FeatureMetadataMap.value = Shapes::ShapeRef.new(shape: FeatureMetadata)
152
+
105
153
  GetDimensionKeyDetailsRequest.add_member(:service_type, Shapes::ShapeRef.new(shape: ServiceType, required: true, location_name: "ServiceType"))
106
154
  GetDimensionKeyDetailsRequest.add_member(:identifier, Shapes::ShapeRef.new(shape: IdentifierString, required: true, location_name: "Identifier"))
107
155
  GetDimensionKeyDetailsRequest.add_member(:group, Shapes::ShapeRef.new(shape: RequestString, required: true, location_name: "Group"))
@@ -112,6 +160,14 @@ module Aws::PI
112
160
  GetDimensionKeyDetailsResponse.add_member(:dimensions, Shapes::ShapeRef.new(shape: DimensionKeyDetailList, location_name: "Dimensions"))
113
161
  GetDimensionKeyDetailsResponse.struct_class = Types::GetDimensionKeyDetailsResponse
114
162
 
163
+ GetResourceMetadataRequest.add_member(:service_type, Shapes::ShapeRef.new(shape: ServiceType, required: true, location_name: "ServiceType"))
164
+ GetResourceMetadataRequest.add_member(:identifier, Shapes::ShapeRef.new(shape: RequestString, required: true, location_name: "Identifier"))
165
+ GetResourceMetadataRequest.struct_class = Types::GetResourceMetadataRequest
166
+
167
+ GetResourceMetadataResponse.add_member(:identifier, Shapes::ShapeRef.new(shape: String, location_name: "Identifier"))
168
+ GetResourceMetadataResponse.add_member(:features, Shapes::ShapeRef.new(shape: FeatureMetadataMap, location_name: "Features"))
169
+ GetResourceMetadataResponse.struct_class = Types::GetResourceMetadataResponse
170
+
115
171
  GetResourceMetricsRequest.add_member(:service_type, Shapes::ShapeRef.new(shape: ServiceType, required: true, location_name: "ServiceType"))
116
172
  GetResourceMetricsRequest.add_member(:identifier, Shapes::ShapeRef.new(shape: RequestString, required: true, location_name: "Identifier"))
117
173
  GetResourceMetricsRequest.add_member(:metric_queries, Shapes::ShapeRef.new(shape: MetricQueryList, required: true, location_name: "MetricQueries"))
@@ -135,6 +191,34 @@ module Aws::PI
135
191
  InvalidArgumentException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorString, location_name: "Message"))
136
192
  InvalidArgumentException.struct_class = Types::InvalidArgumentException
137
193
 
194
+ ListAvailableResourceDimensionsRequest.add_member(:service_type, Shapes::ShapeRef.new(shape: ServiceType, required: true, location_name: "ServiceType"))
195
+ ListAvailableResourceDimensionsRequest.add_member(:identifier, Shapes::ShapeRef.new(shape: RequestString, required: true, location_name: "Identifier"))
196
+ ListAvailableResourceDimensionsRequest.add_member(:metrics, Shapes::ShapeRef.new(shape: DimensionsMetricList, required: true, location_name: "Metrics"))
197
+ ListAvailableResourceDimensionsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "MaxResults"))
198
+ ListAvailableResourceDimensionsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
199
+ ListAvailableResourceDimensionsRequest.struct_class = Types::ListAvailableResourceDimensionsRequest
200
+
201
+ ListAvailableResourceDimensionsResponse.add_member(:metric_dimensions, Shapes::ShapeRef.new(shape: MetricDimensionsList, location_name: "MetricDimensions"))
202
+ ListAvailableResourceDimensionsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
203
+ ListAvailableResourceDimensionsResponse.struct_class = Types::ListAvailableResourceDimensionsResponse
204
+
205
+ ListAvailableResourceMetricsRequest.add_member(:service_type, Shapes::ShapeRef.new(shape: ServiceType, required: true, location_name: "ServiceType"))
206
+ ListAvailableResourceMetricsRequest.add_member(:identifier, Shapes::ShapeRef.new(shape: RequestString, required: true, location_name: "Identifier"))
207
+ ListAvailableResourceMetricsRequest.add_member(:metric_types, Shapes::ShapeRef.new(shape: MetricTypeList, required: true, location_name: "MetricTypes"))
208
+ ListAvailableResourceMetricsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
209
+ ListAvailableResourceMetricsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "MaxResults"))
210
+ ListAvailableResourceMetricsRequest.struct_class = Types::ListAvailableResourceMetricsRequest
211
+
212
+ ListAvailableResourceMetricsResponse.add_member(:metrics, Shapes::ShapeRef.new(shape: ResponseResourceMetricList, location_name: "Metrics"))
213
+ ListAvailableResourceMetricsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
214
+ ListAvailableResourceMetricsResponse.struct_class = Types::ListAvailableResourceMetricsResponse
215
+
216
+ MetricDimensionGroups.add_member(:metric, Shapes::ShapeRef.new(shape: String, location_name: "Metric"))
217
+ MetricDimensionGroups.add_member(:groups, Shapes::ShapeRef.new(shape: DimensionGroupDetailList, location_name: "Groups"))
218
+ MetricDimensionGroups.struct_class = Types::MetricDimensionGroups
219
+
220
+ MetricDimensionsList.member = Shapes::ShapeRef.new(shape: MetricDimensionGroups)
221
+
138
222
  MetricKeyDataPoints.add_member(:key, Shapes::ShapeRef.new(shape: ResponseResourceMetricKey, location_name: "Key"))
139
223
  MetricKeyDataPoints.add_member(:data_points, Shapes::ShapeRef.new(shape: DataPointsList, location_name: "DataPoints"))
140
224
  MetricKeyDataPoints.struct_class = Types::MetricKeyDataPoints
@@ -151,6 +235,8 @@ module Aws::PI
151
235
 
152
236
  MetricQueryList.member = Shapes::ShapeRef.new(shape: MetricQuery)
153
237
 
238
+ MetricTypeList.member = Shapes::ShapeRef.new(shape: RequestString)
239
+
154
240
  MetricValuesList.member = Shapes::ShapeRef.new(shape: Double)
155
241
 
156
242
  NotAuthorizedException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorString, location_name: "Message"))
@@ -165,10 +251,17 @@ module Aws::PI
165
251
 
166
252
  ResponsePartitionKeyList.member = Shapes::ShapeRef.new(shape: ResponsePartitionKey)
167
253
 
254
+ ResponseResourceMetric.add_member(:metric, Shapes::ShapeRef.new(shape: String, location_name: "Metric"))
255
+ ResponseResourceMetric.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "Description"))
256
+ ResponseResourceMetric.add_member(:unit, Shapes::ShapeRef.new(shape: String, location_name: "Unit"))
257
+ ResponseResourceMetric.struct_class = Types::ResponseResourceMetric
258
+
168
259
  ResponseResourceMetricKey.add_member(:metric, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Metric"))
169
260
  ResponseResourceMetricKey.add_member(:dimensions, Shapes::ShapeRef.new(shape: DimensionMap, location_name: "Dimensions"))
170
261
  ResponseResourceMetricKey.struct_class = Types::ResponseResourceMetricKey
171
262
 
263
+ ResponseResourceMetricList.member = Shapes::ShapeRef.new(shape: ResponseResourceMetric)
264
+
172
265
 
173
266
  # @api private
174
267
  API = Seahorse::Model::Api.new.tap do |api|
@@ -198,6 +291,12 @@ module Aws::PI
198
291
  o.errors << Shapes::ShapeRef.new(shape: InvalidArgumentException)
199
292
  o.errors << Shapes::ShapeRef.new(shape: InternalServiceError)
200
293
  o.errors << Shapes::ShapeRef.new(shape: NotAuthorizedException)
294
+ o[:pager] = Aws::Pager.new(
295
+ limit_key: "max_results",
296
+ tokens: {
297
+ "next_token" => "next_token"
298
+ }
299
+ )
201
300
  end)
202
301
 
203
302
  api.add_operation(:get_dimension_key_details, Seahorse::Model::Operation.new.tap do |o|
@@ -211,6 +310,17 @@ module Aws::PI
211
310
  o.errors << Shapes::ShapeRef.new(shape: NotAuthorizedException)
212
311
  end)
213
312
 
313
+ api.add_operation(:get_resource_metadata, Seahorse::Model::Operation.new.tap do |o|
314
+ o.name = "GetResourceMetadata"
315
+ o.http_method = "POST"
316
+ o.http_request_uri = "/"
317
+ o.input = Shapes::ShapeRef.new(shape: GetResourceMetadataRequest)
318
+ o.output = Shapes::ShapeRef.new(shape: GetResourceMetadataResponse)
319
+ o.errors << Shapes::ShapeRef.new(shape: InvalidArgumentException)
320
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceError)
321
+ o.errors << Shapes::ShapeRef.new(shape: NotAuthorizedException)
322
+ end)
323
+
214
324
  api.add_operation(:get_resource_metrics, Seahorse::Model::Operation.new.tap do |o|
215
325
  o.name = "GetResourceMetrics"
216
326
  o.http_method = "POST"
@@ -220,6 +330,46 @@ module Aws::PI
220
330
  o.errors << Shapes::ShapeRef.new(shape: InvalidArgumentException)
221
331
  o.errors << Shapes::ShapeRef.new(shape: InternalServiceError)
222
332
  o.errors << Shapes::ShapeRef.new(shape: NotAuthorizedException)
333
+ o[:pager] = Aws::Pager.new(
334
+ limit_key: "max_results",
335
+ tokens: {
336
+ "next_token" => "next_token"
337
+ }
338
+ )
339
+ end)
340
+
341
+ api.add_operation(:list_available_resource_dimensions, Seahorse::Model::Operation.new.tap do |o|
342
+ o.name = "ListAvailableResourceDimensions"
343
+ o.http_method = "POST"
344
+ o.http_request_uri = "/"
345
+ o.input = Shapes::ShapeRef.new(shape: ListAvailableResourceDimensionsRequest)
346
+ o.output = Shapes::ShapeRef.new(shape: ListAvailableResourceDimensionsResponse)
347
+ o.errors << Shapes::ShapeRef.new(shape: InvalidArgumentException)
348
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceError)
349
+ o.errors << Shapes::ShapeRef.new(shape: NotAuthorizedException)
350
+ o[:pager] = Aws::Pager.new(
351
+ limit_key: "max_results",
352
+ tokens: {
353
+ "next_token" => "next_token"
354
+ }
355
+ )
356
+ end)
357
+
358
+ api.add_operation(:list_available_resource_metrics, Seahorse::Model::Operation.new.tap do |o|
359
+ o.name = "ListAvailableResourceMetrics"
360
+ o.http_method = "POST"
361
+ o.http_request_uri = "/"
362
+ o.input = Shapes::ShapeRef.new(shape: ListAvailableResourceMetricsRequest)
363
+ o.output = Shapes::ShapeRef.new(shape: ListAvailableResourceMetricsResponse)
364
+ o.errors << Shapes::ShapeRef.new(shape: InvalidArgumentException)
365
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceError)
366
+ o.errors << Shapes::ShapeRef.new(shape: NotAuthorizedException)
367
+ o[:pager] = Aws::Pager.new(
368
+ limit_key: "max_results",
369
+ tokens: {
370
+ "next_token" => "next_token"
371
+ }
372
+ )
223
373
  end)
224
374
  end
225
375
 
@@ -34,7 +34,7 @@ module Aws::PI
34
34
  # data as a hash:
35
35
  #
36
36
  # {
37
- # service_type: "RDS", # required, accepts RDS
37
+ # service_type: "RDS", # required, accepts RDS, DOCDB
38
38
  # identifier: "RequestString", # required
39
39
  # start_time: Time.now, # required
40
40
  # end_time: Time.now, # required
@@ -45,6 +45,7 @@ module Aws::PI
45
45
  # dimensions: ["RequestString"],
46
46
  # limit: 1,
47
47
  # },
48
+ # additional_metrics: ["RequestString"],
48
49
  # partition_by: {
49
50
  # group: "RequestString", # required
50
51
  # dimensions: ["RequestString"],
@@ -58,17 +59,18 @@ module Aws::PI
58
59
  # }
59
60
  #
60
61
  # @!attribute [rw] service_type
61
- # The AWS service for which Performance Insights will return metrics.
62
- # The only valid value for *ServiceType* is `RDS`.
62
+ # The Amazon Web Services service for which Performance Insights will
63
+ # return metrics. The only valid value for *ServiceType* is `RDS`.
63
64
  # @return [String]
64
65
  #
65
66
  # @!attribute [rw] identifier
66
- # An immutable, AWS Region-unique identifier for a data source.
67
- # Performance Insights gathers metrics from this data source.
67
+ # An immutable, Amazon Web Services Region-unique identifier for a
68
+ # data source. Performance Insights gathers metrics from this data
69
+ # source.
68
70
  #
69
71
  # To use an Amazon RDS instance as a data source, you specify its
70
72
  # `DbiResourceId` value. For example, specify
71
- # `db-FAIHNTYBKTGAUSUZQYPDS2GW4A`
73
+ # `db-FAIHNTYBKTGAUSUZQYPDS2GW4A`.
72
74
  # @return [String]
73
75
  #
74
76
  # @!attribute [rw] start_time
@@ -140,6 +142,14 @@ module Aws::PI
140
142
  # values for a dimension.
141
143
  # @return [Types::DimensionGroup]
142
144
  #
145
+ # @!attribute [rw] additional_metrics
146
+ # Additional metrics for the top `N` dimension keys. If the specified
147
+ # dimension group in the `GroupBy` parameter is `db.sql_tokenized`,
148
+ # you can specify per-SQL metrics to get the values for the top `N`
149
+ # SQL digests. The response syntax is `"AdditionalMetrics" : \{
150
+ # "string" : "string" \}`.
151
+ # @return [Array<String>]
152
+ #
143
153
  # @!attribute [rw] partition_by
144
154
  # For each dimension specified in `GroupBy`, specify a secondary
145
155
  # dimension to further subdivide the partition keys in the response.
@@ -177,6 +187,7 @@ module Aws::PI
177
187
  :metric,
178
188
  :period_in_seconds,
179
189
  :group_by,
190
+ :additional_metrics,
180
191
  :partition_by,
181
192
  :filter,
182
193
  :max_results,
@@ -210,9 +221,10 @@ module Aws::PI
210
221
  # @return [Array<Types::DimensionKeyDescription>]
211
222
  #
212
223
  # @!attribute [rw] next_token
213
- # An optional pagination token provided by a previous request. If this
214
- # parameter is specified, the response includes only records beyond
215
- # the token, up to the value specified by `MaxRecords`.
224
+ # A pagination token that indicates the response didn’t return all
225
+ # available records because `MaxRecords` was specified in the previous
226
+ # request. To get the remaining records, specify `NextToken` in a
227
+ # separate request with this value.
216
228
  # @return [String]
217
229
  #
218
230
  # @see http://docs.aws.amazon.com/goto/WebAPI/pi-2018-02-27/DescribeDimensionKeysResponse AWS API Documentation
@@ -227,6 +239,20 @@ module Aws::PI
227
239
  include Aws::Structure
228
240
  end
229
241
 
242
+ # The information about a dimension.
243
+ #
244
+ # @!attribute [rw] identifier
245
+ # The identifier of a dimension.
246
+ # @return [String]
247
+ #
248
+ # @see http://docs.aws.amazon.com/goto/WebAPI/pi-2018-02-27/DimensionDetail AWS API Documentation
249
+ #
250
+ class DimensionDetail < Struct.new(
251
+ :identifier)
252
+ SENSITIVE = []
253
+ include Aws::Structure
254
+ end
255
+
230
256
  # A logical grouping of Performance Insights metrics for a related
231
257
  # subject area. For example, the `db.sql` dimension group consists of
232
258
  # the following dimensions: `db.sql.id`, `db.sql.db_id`,
@@ -251,8 +277,8 @@ module Aws::PI
251
277
  # The name of the dimension group. Valid values are:
252
278
  #
253
279
  # * `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)
280
+ # (only Aurora PostgreSQL, Amazon RDS PostgreSQL, Aurora MySQL,
281
+ # Amazon RDS MySQL, and MariaDB)
256
282
  #
257
283
  # * `db.application` - The name of the application that is connected
258
284
  # to the database (only Aurora PostgreSQL and RDS PostgreSQL)
@@ -293,8 +319,8 @@ module Aws::PI
293
319
  # engines)
294
320
  #
295
321
  # * `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)
322
+ # connected (only Aurora PostgreSQL, Amazon RDS PostgreSQL, Aurora
323
+ # MySQL, Amazon RDS MySQL, and MariaDB)
298
324
  #
299
325
  # * `db.session_type.name` - The type of the current session (only
300
326
  # Aurora PostgreSQL and RDS PostgreSQL)
@@ -348,18 +374,41 @@ module Aws::PI
348
374
  include Aws::Structure
349
375
  end
350
376
 
351
- # An array of descriptions and aggregated values for each dimension
352
- # within a dimension group.
377
+ # Information about dimensions within a dimension group.
378
+ #
379
+ # @!attribute [rw] group
380
+ # The name of the dimension group.
381
+ # @return [String]
382
+ #
383
+ # @!attribute [rw] dimensions
384
+ # The dimensions within a dimension group.
385
+ # @return [Array<Types::DimensionDetail>]
386
+ #
387
+ # @see http://docs.aws.amazon.com/goto/WebAPI/pi-2018-02-27/DimensionGroupDetail AWS API Documentation
388
+ #
389
+ class DimensionGroupDetail < Struct.new(
390
+ :group,
391
+ :dimensions)
392
+ SENSITIVE = []
393
+ include Aws::Structure
394
+ end
395
+
396
+ # An object that includes the requested dimension key values and
397
+ # aggregated metric values within a dimension group.
353
398
  #
354
399
  # @!attribute [rw] dimensions
355
400
  # A map of name-value pairs for the dimensions in the group.
356
401
  # @return [Hash<String,String>]
357
402
  #
358
403
  # @!attribute [rw] total
359
- # The aggregated metric value for the dimension(s), over the requested
404
+ # The aggregated metric value for the dimensions, over the requested
360
405
  # time range.
361
406
  # @return [Float]
362
407
  #
408
+ # @!attribute [rw] additional_metrics
409
+ # A map that contains the value for each additional metric.
410
+ # @return [Hash<String,Float>]
411
+ #
363
412
  # @!attribute [rw] partitions
364
413
  # If `PartitionBy` was specified, `PartitionKeys` contains the
365
414
  # dimensions that were.
@@ -370,6 +419,7 @@ module Aws::PI
370
419
  class DimensionKeyDescription < Struct.new(
371
420
  :dimensions,
372
421
  :total,
422
+ :additional_metrics,
373
423
  :partitions)
374
424
  SENSITIVE = []
375
425
  include Aws::Structure
@@ -413,11 +463,41 @@ module Aws::PI
413
463
  include Aws::Structure
414
464
  end
415
465
 
466
+ # The metadata for a feature. For example, the metadata might indicate
467
+ # that a feature is turned on or off on a specific DB instance.
468
+ #
469
+ # @!attribute [rw] status
470
+ # The status of the feature on the DB instance. Possible values
471
+ # include the following:
472
+ #
473
+ # * `ENABLED`\: the feature is enabled on the instance.
474
+ #
475
+ # * `DISABLED`\: the feature is disabled on the instance.
476
+ #
477
+ # * `UNSUPPORTED`\: the feature isn't supported on the instance.
478
+ #
479
+ # * `ENABLED_PENDING_REBOOT`\: the feature is enabled on the instance
480
+ # but requires a reboot to take effect.
481
+ #
482
+ # * `DISABLED_PENDING_REBOOT`\: the feature is disabled on the
483
+ # instance but requires a reboot to take effect.
484
+ #
485
+ # * `UNKNOWN`\: the feature status couldn't be determined.
486
+ # @return [String]
487
+ #
488
+ # @see http://docs.aws.amazon.com/goto/WebAPI/pi-2018-02-27/FeatureMetadata AWS API Documentation
489
+ #
490
+ class FeatureMetadata < Struct.new(
491
+ :status)
492
+ SENSITIVE = []
493
+ include Aws::Structure
494
+ end
495
+
416
496
  # @note When making an API call, you may pass GetDimensionKeyDetailsRequest
417
497
  # data as a hash:
418
498
  #
419
499
  # {
420
- # service_type: "RDS", # required, accepts RDS
500
+ # service_type: "RDS", # required, accepts RDS, DOCDB
421
501
  # identifier: "IdentifierString", # required
422
502
  # group: "RequestString", # required
423
503
  # group_identifier: "RequestString", # required
@@ -425,15 +505,16 @@ module Aws::PI
425
505
  # }
426
506
  #
427
507
  # @!attribute [rw] service_type
428
- # The AWS service for which Performance Insights returns data. The
429
- # only valid value is `RDS`.
508
+ # The Amazon Web Services service for which Performance Insights
509
+ # returns data. The only valid value is `RDS`.
430
510
  # @return [String]
431
511
  #
432
512
  # @!attribute [rw] identifier
433
513
  # The ID for a data source from which to gather dimension data. This
434
- # ID must be immutable and unique within an AWS Region. When a DB
435
- # instance is the data source, specify its `DbiResourceId` value. For
436
- # example, specify `db-ABCDEFGHIJKLMNOPQRSTU1VW2X`.
514
+ # ID must be immutable and unique within an Amazon Web Services
515
+ # Region. When a DB instance is the data source, specify its
516
+ # `DbiResourceId` value. For example, specify
517
+ # `db-ABCDEFGHIJKLMNOPQRSTU1VW2X`.
437
518
  # @return [String]
438
519
  #
439
520
  # @!attribute [rw] group
@@ -480,11 +561,64 @@ module Aws::PI
480
561
  include Aws::Structure
481
562
  end
482
563
 
564
+ # @note When making an API call, you may pass GetResourceMetadataRequest
565
+ # data as a hash:
566
+ #
567
+ # {
568
+ # service_type: "RDS", # required, accepts RDS, DOCDB
569
+ # identifier: "RequestString", # required
570
+ # }
571
+ #
572
+ # @!attribute [rw] service_type
573
+ # The Amazon Web Services service for which Performance Insights
574
+ # returns metrics.
575
+ # @return [String]
576
+ #
577
+ # @!attribute [rw] identifier
578
+ # An immutable identifier for a data source that is unique for an
579
+ # Amazon Web Services Region. Performance Insights gathers metrics
580
+ # from this data source. To use a DB instance as a data source,
581
+ # specify its `DbiResourceId` value. For example, specify
582
+ # `db-ABCDEFGHIJKLMNOPQRSTU1VW2X`.
583
+ # @return [String]
584
+ #
585
+ # @see http://docs.aws.amazon.com/goto/WebAPI/pi-2018-02-27/GetResourceMetadataRequest AWS API Documentation
586
+ #
587
+ class GetResourceMetadataRequest < Struct.new(
588
+ :service_type,
589
+ :identifier)
590
+ SENSITIVE = []
591
+ include Aws::Structure
592
+ end
593
+
594
+ # @!attribute [rw] identifier
595
+ # An immutable identifier for a data source that is unique for an
596
+ # Amazon Web Services Region. Performance Insights gathers metrics
597
+ # from this data source. To use a DB instance as a data source,
598
+ # specify its `DbiResourceId` value. For example, specify
599
+ # `db-ABCDEFGHIJKLMNOPQRSTU1VW2X`.
600
+ # @return [String]
601
+ #
602
+ # @!attribute [rw] features
603
+ # The metadata for different features. For example, the metadata might
604
+ # indicate that a feature is turned on or off on a specific DB
605
+ # instance.
606
+ # @return [Hash<String,Types::FeatureMetadata>]
607
+ #
608
+ # @see http://docs.aws.amazon.com/goto/WebAPI/pi-2018-02-27/GetResourceMetadataResponse AWS API Documentation
609
+ #
610
+ class GetResourceMetadataResponse < Struct.new(
611
+ :identifier,
612
+ :features)
613
+ SENSITIVE = []
614
+ include Aws::Structure
615
+ end
616
+
483
617
  # @note When making an API call, you may pass GetResourceMetricsRequest
484
618
  # data as a hash:
485
619
  #
486
620
  # {
487
- # service_type: "RDS", # required, accepts RDS
621
+ # service_type: "RDS", # required, accepts RDS, DOCDB
488
622
  # identifier: "RequestString", # required
489
623
  # metric_queries: [ # required
490
624
  # {
@@ -507,13 +641,14 @@ module Aws::PI
507
641
  # }
508
642
  #
509
643
  # @!attribute [rw] service_type
510
- # The AWS service for which Performance Insights returns metrics. The
511
- # only valid value for *ServiceType* is `RDS`.
644
+ # The Amazon Web Services service for which Performance Insights
645
+ # returns metrics. The only valid value for *ServiceType* is `RDS`.
512
646
  # @return [String]
513
647
  #
514
648
  # @!attribute [rw] identifier
515
- # An immutable, AWS Region-unique identifier for a data source.
516
- # Performance Insights gathers metrics from this data source.
649
+ # An immutable, Amazon Web Services Region-unique identifier for a
650
+ # data source. Performance Insights gathers metrics from this data
651
+ # source.
517
652
  #
518
653
  # To use a DB instance as a data source, specify its `DbiResourceId`
519
654
  # value. For example, specify `db-FAIHNTYBKTGAUSUZQYPDS2GW4A`.
@@ -607,8 +742,9 @@ module Aws::PI
607
742
  # @return [Time]
608
743
  #
609
744
  # @!attribute [rw] identifier
610
- # An immutable, AWS Region-unique identifier for a data source.
611
- # Performance Insights gathers metrics from this data source.
745
+ # An immutable, Amazon Web Services Region-unique identifier for a
746
+ # data source. Performance Insights gathers metrics from this data
747
+ # source.
612
748
  #
613
749
  # To use a DB instance as a data source, you specify its
614
750
  # `DbiResourceId` value - for example: `db-FAIHNTYBKTGAUSUZQYPDS2GW4A`
@@ -663,11 +799,185 @@ module Aws::PI
663
799
  include Aws::Structure
664
800
  end
665
801
 
802
+ # @note When making an API call, you may pass ListAvailableResourceDimensionsRequest
803
+ # data as a hash:
804
+ #
805
+ # {
806
+ # service_type: "RDS", # required, accepts RDS, DOCDB
807
+ # identifier: "RequestString", # required
808
+ # metrics: ["RequestString"], # required
809
+ # max_results: 1,
810
+ # next_token: "NextToken",
811
+ # }
812
+ #
813
+ # @!attribute [rw] service_type
814
+ # The Amazon Web Services service for which Performance Insights
815
+ # returns metrics.
816
+ # @return [String]
817
+ #
818
+ # @!attribute [rw] identifier
819
+ # An immutable identifier for a data source that is unique within an
820
+ # Amazon Web Services Region. Performance Insights gathers metrics
821
+ # from this data source. To use an Amazon RDS DB instance as a data
822
+ # source, specify its `DbiResourceId` value. For example, specify
823
+ # `db-ABCDEFGHIJKLMNOPQRSTU1VWZ`.
824
+ # @return [String]
825
+ #
826
+ # @!attribute [rw] metrics
827
+ # The types of metrics for which to retrieve dimensions. Valid values
828
+ # include `db.load`.
829
+ # @return [Array<String>]
830
+ #
831
+ # @!attribute [rw] max_results
832
+ # The maximum number of items to return in the response. If more items
833
+ # exist than the specified `MaxRecords` value, a pagination token is
834
+ # included in the response so that the remaining results can be
835
+ # retrieved.
836
+ # @return [Integer]
837
+ #
838
+ # @!attribute [rw] next_token
839
+ # An optional pagination token provided by a previous request. If this
840
+ # parameter is specified, the response includes only records beyond
841
+ # the token, up to the value specified by `MaxRecords`.
842
+ # @return [String]
843
+ #
844
+ # @see http://docs.aws.amazon.com/goto/WebAPI/pi-2018-02-27/ListAvailableResourceDimensionsRequest AWS API Documentation
845
+ #
846
+ class ListAvailableResourceDimensionsRequest < Struct.new(
847
+ :service_type,
848
+ :identifier,
849
+ :metrics,
850
+ :max_results,
851
+ :next_token)
852
+ SENSITIVE = []
853
+ include Aws::Structure
854
+ end
855
+
856
+ # @!attribute [rw] metric_dimensions
857
+ # The dimension information returned for requested metric types.
858
+ # @return [Array<Types::MetricDimensionGroups>]
859
+ #
860
+ # @!attribute [rw] next_token
861
+ # An optional pagination token provided by a previous request. If this
862
+ # parameter is specified, the response includes only records beyond
863
+ # the token, up to the value specified by `MaxRecords`.
864
+ # @return [String]
865
+ #
866
+ # @see http://docs.aws.amazon.com/goto/WebAPI/pi-2018-02-27/ListAvailableResourceDimensionsResponse AWS API Documentation
867
+ #
868
+ class ListAvailableResourceDimensionsResponse < Struct.new(
869
+ :metric_dimensions,
870
+ :next_token)
871
+ SENSITIVE = []
872
+ include Aws::Structure
873
+ end
874
+
875
+ # @note When making an API call, you may pass ListAvailableResourceMetricsRequest
876
+ # data as a hash:
877
+ #
878
+ # {
879
+ # service_type: "RDS", # required, accepts RDS, DOCDB
880
+ # identifier: "RequestString", # required
881
+ # metric_types: ["RequestString"], # required
882
+ # next_token: "NextToken",
883
+ # max_results: 1,
884
+ # }
885
+ #
886
+ # @!attribute [rw] service_type
887
+ # The Amazon Web Services service for which Performance Insights
888
+ # returns metrics.
889
+ # @return [String]
890
+ #
891
+ # @!attribute [rw] identifier
892
+ # An immutable identifier for a data source that is unique within an
893
+ # Amazon Web Services Region. Performance Insights gathers metrics
894
+ # from this data source. To use an Amazon RDS DB instance as a data
895
+ # source, specify its `DbiResourceId` value. For example, specify
896
+ # `db-ABCDEFGHIJKLMNOPQRSTU1VWZ`.
897
+ # @return [String]
898
+ #
899
+ # @!attribute [rw] metric_types
900
+ # The types of metrics to return in the response. Valid values in the
901
+ # array include the following:
902
+ #
903
+ # * `os` (OS counter metrics)
904
+ #
905
+ # * `db` (DB load metrics)
906
+ #
907
+ # * `db.sql.stats` (per-SQL metrics)
908
+ #
909
+ # * `db.sql_tokenized.stats` (per-SQL digest metrics)
910
+ # @return [Array<String>]
911
+ #
912
+ # @!attribute [rw] next_token
913
+ # An optional pagination token provided by a previous request. If this
914
+ # parameter is specified, the response includes only records beyond
915
+ # the token, up to the value specified by `MaxRecords`.
916
+ # @return [String]
917
+ #
918
+ # @!attribute [rw] max_results
919
+ # The maximum number of items to return. If the `MaxRecords` value is
920
+ # less than the number of existing items, the response includes a
921
+ # pagination token.
922
+ # @return [Integer]
923
+ #
924
+ # @see http://docs.aws.amazon.com/goto/WebAPI/pi-2018-02-27/ListAvailableResourceMetricsRequest AWS API Documentation
925
+ #
926
+ class ListAvailableResourceMetricsRequest < Struct.new(
927
+ :service_type,
928
+ :identifier,
929
+ :metric_types,
930
+ :next_token,
931
+ :max_results)
932
+ SENSITIVE = []
933
+ include Aws::Structure
934
+ end
935
+
936
+ # @!attribute [rw] metrics
937
+ # An array of metrics available to query. Each array element contains
938
+ # the full name, description, and unit of the metric.
939
+ # @return [Array<Types::ResponseResourceMetric>]
940
+ #
941
+ # @!attribute [rw] next_token
942
+ # A pagination token that indicates the response didn’t return all
943
+ # available records because `MaxRecords` was specified in the previous
944
+ # request. To get the remaining records, specify `NextToken` in a
945
+ # separate request with this value.
946
+ # @return [String]
947
+ #
948
+ # @see http://docs.aws.amazon.com/goto/WebAPI/pi-2018-02-27/ListAvailableResourceMetricsResponse AWS API Documentation
949
+ #
950
+ class ListAvailableResourceMetricsResponse < Struct.new(
951
+ :metrics,
952
+ :next_token)
953
+ SENSITIVE = []
954
+ include Aws::Structure
955
+ end
956
+
957
+ # The available dimension information for a metric type.
958
+ #
959
+ # @!attribute [rw] metric
960
+ # The metric type to which the dimension information belongs.
961
+ # @return [String]
962
+ #
963
+ # @!attribute [rw] groups
964
+ # The available dimension groups for a metric type.
965
+ # @return [Array<Types::DimensionGroupDetail>]
966
+ #
967
+ # @see http://docs.aws.amazon.com/goto/WebAPI/pi-2018-02-27/MetricDimensionGroups AWS API Documentation
968
+ #
969
+ class MetricDimensionGroups < Struct.new(
970
+ :metric,
971
+ :groups)
972
+ SENSITIVE = []
973
+ include Aws::Structure
974
+ end
975
+
666
976
  # A time-ordered series of data points, corresponding to a dimension of
667
977
  # a Performance Insights metric.
668
978
  #
669
979
  # @!attribute [rw] key
670
- # The dimension(s) to which the data points apply.
980
+ # The dimensions to which the data points apply.
671
981
  # @return [Types::ResponseResourceMetricKey]
672
982
  #
673
983
  # @!attribute [rw] data_points
@@ -686,8 +996,8 @@ module Aws::PI
686
996
 
687
997
  # A single query to be processed. You must provide the metric to query.
688
998
  # If no other parameters are specified, Performance Insights returns all
689
- # of the data points for that metric. You can optionally request that
690
- # the data points be aggregated by dimension group ( `GroupBy`), and
999
+ # data points for the specified metric. Optionally, you can request that
1000
+ # the data points be aggregated by dimension group (`GroupBy`), and
691
1001
  # return only those data points that match your criteria (`Filter`).
692
1002
  #
693
1003
  # @note When making an API call, you may pass MetricQuery
@@ -772,7 +1082,7 @@ module Aws::PI
772
1082
  # specifies one dimension.
773
1083
  #
774
1084
  # @!attribute [rw] dimensions
775
- # A dimension map that contains the dimension(s) for this partition.
1085
+ # A dimension map that contains the dimensions for this partition.
776
1086
  # @return [Hash<String,String>]
777
1087
  #
778
1088
  # @see http://docs.aws.amazon.com/goto/WebAPI/pi-2018-02-27/ResponsePartitionKey AWS API Documentation
@@ -783,6 +1093,31 @@ module Aws::PI
783
1093
  include Aws::Structure
784
1094
  end
785
1095
 
1096
+ # An object that contains the full name, description, and unit of a
1097
+ # metric.
1098
+ #
1099
+ # @!attribute [rw] metric
1100
+ # The full name of the metric.
1101
+ # @return [String]
1102
+ #
1103
+ # @!attribute [rw] description
1104
+ # The description of the metric.
1105
+ # @return [String]
1106
+ #
1107
+ # @!attribute [rw] unit
1108
+ # The unit of the metric.
1109
+ # @return [String]
1110
+ #
1111
+ # @see http://docs.aws.amazon.com/goto/WebAPI/pi-2018-02-27/ResponseResourceMetric AWS API Documentation
1112
+ #
1113
+ class ResponseResourceMetric < Struct.new(
1114
+ :metric,
1115
+ :description,
1116
+ :unit)
1117
+ SENSITIVE = []
1118
+ include Aws::Structure
1119
+ end
1120
+
786
1121
  # An object describing a Performance Insights metric and one or more
787
1122
  # dimensions for that metric.
788
1123
  #
data/lib/aws-sdk-pi.rb CHANGED
@@ -48,6 +48,6 @@ require_relative 'aws-sdk-pi/customizations'
48
48
  # @!group service
49
49
  module Aws::PI
50
50
 
51
- GEM_VERSION = '1.35.0'
51
+ GEM_VERSION = '1.38.0'
52
52
 
53
53
  end
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.35.0
4
+ version: 1.38.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: 2021-12-21 00:00:00.000000000 Z
11
+ date: 2022-02-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '3'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 3.125.0
22
+ version: 3.127.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '3'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 3.125.0
32
+ version: 3.127.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement