aws-sdk-pi 1.35.0 → 1.36.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-pi/client.rb +210 -19
- data/lib/aws-sdk-pi/client_api.rb +150 -0
- data/lib/aws-sdk-pi/types.rb +368 -33
- data/lib/aws-sdk-pi.rb +1 -1
- 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: e1961cdcfefa80c8d50268757a7f8d51e771a34cf464bfc5ed46d4082c989fc5
|
4
|
+
data.tar.gz: e86a6863d98873e28eaabd8f019f5daa976ea2644d4b2d29400258be7568a965
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fdb3994bc906623bbefb891a191faee141af08d4422f7b8efda06448110d9ea590d4009ff4ea884c246f965d93a755402fc488737f6d00620121d0fb753a12c4
|
7
|
+
data.tar.gz: 7a4bce220062f21eb962cbba68e37ef52239f9ec765711885abd6b3b199c3ea83bc224fb97b4d0910f14c33dfff4f3b6755fdaa3ad825fa397d1e7bb1da63503
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.36.0 (2022-01-12)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* 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.
|
8
|
+
|
4
9
|
1.35.0 (2021-12-21)
|
5
10
|
------------------
|
6
11
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.36.0
|
data/lib/aws-sdk-pi/client.rb
CHANGED
@@ -367,16 +367,16 @@ module Aws::PI
|
|
367
367
|
# </note>
|
368
368
|
#
|
369
369
|
# @option params [required, String] :service_type
|
370
|
-
# The
|
371
|
-
# The only valid value for *ServiceType* is `RDS`.
|
370
|
+
# The Amazon Web Services service for which Performance Insights will
|
371
|
+
# return metrics. The only valid value for *ServiceType* is `RDS`.
|
372
372
|
#
|
373
373
|
# @option params [required, String] :identifier
|
374
|
-
# An immutable,
|
375
|
-
# Performance Insights gathers metrics from this data source.
|
374
|
+
# An immutable, Amazon Web Services Region-unique identifier for a data
|
375
|
+
# source. Performance Insights gathers metrics from this data source.
|
376
376
|
#
|
377
377
|
# To use an Amazon RDS instance as a data source, you specify its
|
378
378
|
# `DbiResourceId` value. For example, specify
|
379
|
-
# `db-FAIHNTYBKTGAUSUZQYPDS2GW4A
|
379
|
+
# `db-FAIHNTYBKTGAUSUZQYPDS2GW4A`.
|
380
380
|
#
|
381
381
|
# @option params [required, Time,DateTime,Date,Integer,String] :start_time
|
382
382
|
# The date and time specifying the beginning of the requested time
|
@@ -440,6 +440,13 @@ module Aws::PI
|
|
440
440
|
# Performance Insights return a limited number of values for a
|
441
441
|
# dimension.
|
442
442
|
#
|
443
|
+
# @option params [Array<String>] :additional_metrics
|
444
|
+
# Additional metrics for the top `N` dimension keys. If the specified
|
445
|
+
# dimension group in the `GroupBy` parameter is `db.sql_tokenized`, you
|
446
|
+
# can specify per-SQL metrics to get the values for the top `N` SQL
|
447
|
+
# digests. The response syntax is `"AdditionalMetrics" : \{ "string" :
|
448
|
+
# "string" \}`.
|
449
|
+
#
|
443
450
|
# @option params [Types::DimensionGroup] :partition_by
|
444
451
|
# For each dimension specified in `GroupBy`, specify a secondary
|
445
452
|
# dimension to further subdivide the partition keys in the response.
|
@@ -471,10 +478,12 @@ module Aws::PI
|
|
471
478
|
# * {Types::DescribeDimensionKeysResponse#keys #keys} => Array<Types::DimensionKeyDescription>
|
472
479
|
# * {Types::DescribeDimensionKeysResponse#next_token #next_token} => String
|
473
480
|
#
|
481
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
482
|
+
#
|
474
483
|
# @example Request syntax with placeholder values
|
475
484
|
#
|
476
485
|
# resp = client.describe_dimension_keys({
|
477
|
-
# service_type: "RDS", # required, accepts RDS
|
486
|
+
# service_type: "RDS", # required, accepts RDS, DOCDB
|
478
487
|
# identifier: "RequestString", # required
|
479
488
|
# start_time: Time.now, # required
|
480
489
|
# end_time: Time.now, # required
|
@@ -485,6 +494,7 @@ module Aws::PI
|
|
485
494
|
# dimensions: ["RequestString"],
|
486
495
|
# limit: 1,
|
487
496
|
# },
|
497
|
+
# additional_metrics: ["RequestString"],
|
488
498
|
# partition_by: {
|
489
499
|
# group: "RequestString", # required
|
490
500
|
# dimensions: ["RequestString"],
|
@@ -508,6 +518,8 @@ module Aws::PI
|
|
508
518
|
# resp.keys[0].dimensions #=> Hash
|
509
519
|
# resp.keys[0].dimensions["RequestString"] #=> String
|
510
520
|
# resp.keys[0].total #=> Float
|
521
|
+
# resp.keys[0].additional_metrics #=> Hash
|
522
|
+
# resp.keys[0].additional_metrics["RequestString"] #=> Float
|
511
523
|
# resp.keys[0].partitions #=> Array
|
512
524
|
# resp.keys[0].partitions[0] #=> Float
|
513
525
|
# resp.next_token #=> String
|
@@ -524,19 +536,19 @@ module Aws::PI
|
|
524
536
|
# Get the attributes of the specified dimension group for a DB instance
|
525
537
|
# or data source. For example, if you specify a SQL ID,
|
526
538
|
# `GetDimensionKeyDetails` retrieves the full text of the dimension
|
527
|
-
# `db.sql.statement`
|
539
|
+
# `db.sql.statement`cassociated with this ID. This operation is useful
|
528
540
|
# because `GetResourceMetrics` and `DescribeDimensionKeys` don't
|
529
541
|
# support retrieval of large SQL statement text.
|
530
542
|
#
|
531
543
|
# @option params [required, String] :service_type
|
532
|
-
# The
|
533
|
-
# valid value is `RDS`.
|
544
|
+
# The Amazon Web Services service for which Performance Insights returns
|
545
|
+
# data. The only valid value is `RDS`.
|
534
546
|
#
|
535
547
|
# @option params [required, String] :identifier
|
536
548
|
# The ID for a data source from which to gather dimension data. This ID
|
537
|
-
# must be immutable and unique within an
|
538
|
-
# is the data source, specify its `DbiResourceId`
|
539
|
-
# specify `db-ABCDEFGHIJKLMNOPQRSTU1VW2X`.
|
549
|
+
# must be immutable and unique within an Amazon Web Services Region.
|
550
|
+
# When a DB instance is the data source, specify its `DbiResourceId`
|
551
|
+
# value. For example, specify `db-ABCDEFGHIJKLMNOPQRSTU1VW2X`.
|
540
552
|
#
|
541
553
|
# @option params [required, String] :group
|
542
554
|
# The name of the dimension group. The only valid value is `db.sql`.
|
@@ -562,7 +574,7 @@ module Aws::PI
|
|
562
574
|
# @example Request syntax with placeholder values
|
563
575
|
#
|
564
576
|
# resp = client.get_dimension_key_details({
|
565
|
-
# service_type: "RDS", # required, accepts RDS
|
577
|
+
# service_type: "RDS", # required, accepts RDS, DOCDB
|
566
578
|
# identifier: "IdentifierString", # required
|
567
579
|
# group: "RequestString", # required
|
568
580
|
# group_identifier: "RequestString", # required
|
@@ -585,6 +597,48 @@ module Aws::PI
|
|
585
597
|
req.send_request(options)
|
586
598
|
end
|
587
599
|
|
600
|
+
# Retrieve the metadata for different features. For example, the
|
601
|
+
# metadata might indicate that a feature is turned on or off on a
|
602
|
+
# specific DB instance.
|
603
|
+
#
|
604
|
+
# @option params [required, String] :service_type
|
605
|
+
# The Amazon Web Services service for which Performance Insights returns
|
606
|
+
# metrics.
|
607
|
+
#
|
608
|
+
# @option params [required, String] :identifier
|
609
|
+
# An immutable identifier for a data source that is unique for an Amazon
|
610
|
+
# Web Services Region. Performance Insights gathers metrics from this
|
611
|
+
# data source. To use a DB instance as a data source, specify its
|
612
|
+
# `DbiResourceId` value. For example, specify
|
613
|
+
# `db-ABCDEFGHIJKLMNOPQRSTU1VW2X`.
|
614
|
+
#
|
615
|
+
# @return [Types::GetResourceMetadataResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
616
|
+
#
|
617
|
+
# * {Types::GetResourceMetadataResponse#identifier #identifier} => String
|
618
|
+
# * {Types::GetResourceMetadataResponse#features #features} => Hash<String,Types::FeatureMetadata>
|
619
|
+
#
|
620
|
+
# @example Request syntax with placeholder values
|
621
|
+
#
|
622
|
+
# resp = client.get_resource_metadata({
|
623
|
+
# service_type: "RDS", # required, accepts RDS, DOCDB
|
624
|
+
# identifier: "RequestString", # required
|
625
|
+
# })
|
626
|
+
#
|
627
|
+
# @example Response structure
|
628
|
+
#
|
629
|
+
# resp.identifier #=> String
|
630
|
+
# resp.features #=> Hash
|
631
|
+
# resp.features["String"].status #=> String, one of "ENABLED", "DISABLED", "UNSUPPORTED", "ENABLED_PENDING_REBOOT", "DISABLED_PENDING_REBOOT", "UNKNOWN"
|
632
|
+
#
|
633
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/pi-2018-02-27/GetResourceMetadata AWS API Documentation
|
634
|
+
#
|
635
|
+
# @overload get_resource_metadata(params = {})
|
636
|
+
# @param [Hash] params ({})
|
637
|
+
def get_resource_metadata(params = {}, options = {})
|
638
|
+
req = build_request(:get_resource_metadata, params)
|
639
|
+
req.send_request(options)
|
640
|
+
end
|
641
|
+
|
588
642
|
# Retrieve Performance Insights metrics for a set of data sources, over
|
589
643
|
# a time period. You can provide specific dimension groups and
|
590
644
|
# dimensions, and provide aggregation and filtering criteria for each
|
@@ -597,12 +651,12 @@ module Aws::PI
|
|
597
651
|
# </note>
|
598
652
|
#
|
599
653
|
# @option params [required, String] :service_type
|
600
|
-
# The
|
601
|
-
# only valid value for *ServiceType* is `RDS`.
|
654
|
+
# The Amazon Web Services service for which Performance Insights returns
|
655
|
+
# metrics. The only valid value for *ServiceType* is `RDS`.
|
602
656
|
#
|
603
657
|
# @option params [required, String] :identifier
|
604
|
-
# An immutable,
|
605
|
-
# Performance Insights gathers metrics from this data source.
|
658
|
+
# An immutable, Amazon Web Services Region-unique identifier for a data
|
659
|
+
# source. Performance Insights gathers metrics from this data source.
|
606
660
|
#
|
607
661
|
# To use a DB instance as a data source, specify its `DbiResourceId`
|
608
662
|
# value. For example, specify `db-FAIHNTYBKTGAUSUZQYPDS2GW4A`.
|
@@ -666,10 +720,12 @@ module Aws::PI
|
|
666
720
|
# * {Types::GetResourceMetricsResponse#metric_list #metric_list} => Array<Types::MetricKeyDataPoints>
|
667
721
|
# * {Types::GetResourceMetricsResponse#next_token #next_token} => String
|
668
722
|
#
|
723
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
724
|
+
#
|
669
725
|
# @example Request syntax with placeholder values
|
670
726
|
#
|
671
727
|
# resp = client.get_resource_metrics({
|
672
|
-
# service_type: "RDS", # required, accepts RDS
|
728
|
+
# service_type: "RDS", # required, accepts RDS, DOCDB
|
673
729
|
# identifier: "RequestString", # required
|
674
730
|
# metric_queries: [ # required
|
675
731
|
# {
|
@@ -714,6 +770,141 @@ module Aws::PI
|
|
714
770
|
req.send_request(options)
|
715
771
|
end
|
716
772
|
|
773
|
+
# Retrieve the dimensions that can be queried for each specified metric
|
774
|
+
# type on a specified DB instance.
|
775
|
+
#
|
776
|
+
# @option params [required, String] :service_type
|
777
|
+
# The Amazon Web Services service for which Performance Insights returns
|
778
|
+
# metrics.
|
779
|
+
#
|
780
|
+
# @option params [required, String] :identifier
|
781
|
+
# An immutable identifier for a data source that is unique within an
|
782
|
+
# Amazon Web Services Region. Performance Insights gathers metrics from
|
783
|
+
# this data source. To use an Amazon RDS DB instance as a data source,
|
784
|
+
# specify its `DbiResourceId` value. For example, specify
|
785
|
+
# `db-ABCDEFGHIJKLMNOPQRSTU1VWZ`.
|
786
|
+
#
|
787
|
+
# @option params [required, Array<String>] :metrics
|
788
|
+
# The types of metrics for which to retrieve dimensions. Valid values
|
789
|
+
# include `db.load`.
|
790
|
+
#
|
791
|
+
# @option params [Integer] :max_results
|
792
|
+
# The maximum number of items to return in the response. If more items
|
793
|
+
# exist than the specified `MaxRecords` value, a pagination token is
|
794
|
+
# included in the response so that the remaining results can be
|
795
|
+
# retrieved.
|
796
|
+
#
|
797
|
+
# @option params [String] :next_token
|
798
|
+
# An optional pagination token provided by a previous request. If this
|
799
|
+
# parameter is specified, the response includes only records beyond the
|
800
|
+
# token, up to the value specified by `MaxRecords`.
|
801
|
+
#
|
802
|
+
# @return [Types::ListAvailableResourceDimensionsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
803
|
+
#
|
804
|
+
# * {Types::ListAvailableResourceDimensionsResponse#metric_dimensions #metric_dimensions} => Array<Types::MetricDimensionGroups>
|
805
|
+
# * {Types::ListAvailableResourceDimensionsResponse#next_token #next_token} => String
|
806
|
+
#
|
807
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
808
|
+
#
|
809
|
+
# @example Request syntax with placeholder values
|
810
|
+
#
|
811
|
+
# resp = client.list_available_resource_dimensions({
|
812
|
+
# service_type: "RDS", # required, accepts RDS, DOCDB
|
813
|
+
# identifier: "RequestString", # required
|
814
|
+
# metrics: ["RequestString"], # required
|
815
|
+
# max_results: 1,
|
816
|
+
# next_token: "NextToken",
|
817
|
+
# })
|
818
|
+
#
|
819
|
+
# @example Response structure
|
820
|
+
#
|
821
|
+
# resp.metric_dimensions #=> Array
|
822
|
+
# resp.metric_dimensions[0].metric #=> String
|
823
|
+
# resp.metric_dimensions[0].groups #=> Array
|
824
|
+
# resp.metric_dimensions[0].groups[0].group #=> String
|
825
|
+
# resp.metric_dimensions[0].groups[0].dimensions #=> Array
|
826
|
+
# resp.metric_dimensions[0].groups[0].dimensions[0].identifier #=> String
|
827
|
+
# resp.next_token #=> String
|
828
|
+
#
|
829
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/pi-2018-02-27/ListAvailableResourceDimensions AWS API Documentation
|
830
|
+
#
|
831
|
+
# @overload list_available_resource_dimensions(params = {})
|
832
|
+
# @param [Hash] params ({})
|
833
|
+
def list_available_resource_dimensions(params = {}, options = {})
|
834
|
+
req = build_request(:list_available_resource_dimensions, params)
|
835
|
+
req.send_request(options)
|
836
|
+
end
|
837
|
+
|
838
|
+
# Retrieve metrics of the specified types that can be queried for a
|
839
|
+
# specified DB instance.
|
840
|
+
#
|
841
|
+
# @option params [required, String] :service_type
|
842
|
+
# The Amazon Web Services service for which Performance Insights returns
|
843
|
+
# metrics.
|
844
|
+
#
|
845
|
+
# @option params [required, String] :identifier
|
846
|
+
# An immutable identifier for a data source that is unique within an
|
847
|
+
# Amazon Web Services Region. Performance Insights gathers metrics from
|
848
|
+
# this data source. To use an Amazon RDS DB instance as a data source,
|
849
|
+
# specify its `DbiResourceId` value. For example, specify
|
850
|
+
# `db-ABCDEFGHIJKLMNOPQRSTU1VWZ`.
|
851
|
+
#
|
852
|
+
# @option params [required, Array<String>] :metric_types
|
853
|
+
# The types of metrics to return in the response. Valid values in the
|
854
|
+
# array include the following:
|
855
|
+
#
|
856
|
+
# * `os` (OS counter metrics)
|
857
|
+
#
|
858
|
+
# * `db` (DB load metrics)
|
859
|
+
#
|
860
|
+
# * `db.sql.stats` (per-SQL metrics)
|
861
|
+
#
|
862
|
+
# * `db.sql_tokenized.stats` (per-SQL digest metrics)
|
863
|
+
#
|
864
|
+
# @option params [String] :next_token
|
865
|
+
# An optional pagination token provided by a previous request. If this
|
866
|
+
# parameter is specified, the response includes only records beyond the
|
867
|
+
# token, up to the value specified by `MaxRecords`.
|
868
|
+
#
|
869
|
+
# @option params [Integer] :max_results
|
870
|
+
# The maximum number of items to return. If the `MaxRecords` value is
|
871
|
+
# less than the number of existing items, the response includes a
|
872
|
+
# pagination token.
|
873
|
+
#
|
874
|
+
# @return [Types::ListAvailableResourceMetricsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
875
|
+
#
|
876
|
+
# * {Types::ListAvailableResourceMetricsResponse#metrics #metrics} => Array<Types::ResponseResourceMetric>
|
877
|
+
# * {Types::ListAvailableResourceMetricsResponse#next_token #next_token} => String
|
878
|
+
#
|
879
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
880
|
+
#
|
881
|
+
# @example Request syntax with placeholder values
|
882
|
+
#
|
883
|
+
# resp = client.list_available_resource_metrics({
|
884
|
+
# service_type: "RDS", # required, accepts RDS, DOCDB
|
885
|
+
# identifier: "RequestString", # required
|
886
|
+
# metric_types: ["RequestString"], # required
|
887
|
+
# next_token: "NextToken",
|
888
|
+
# max_results: 1,
|
889
|
+
# })
|
890
|
+
#
|
891
|
+
# @example Response structure
|
892
|
+
#
|
893
|
+
# resp.metrics #=> Array
|
894
|
+
# resp.metrics[0].metric #=> String
|
895
|
+
# resp.metrics[0].description #=> String
|
896
|
+
# resp.metrics[0].unit #=> String
|
897
|
+
# resp.next_token #=> String
|
898
|
+
#
|
899
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/pi-2018-02-27/ListAvailableResourceMetrics AWS API Documentation
|
900
|
+
#
|
901
|
+
# @overload list_available_resource_metrics(params = {})
|
902
|
+
# @param [Hash] params ({})
|
903
|
+
def list_available_resource_metrics(params = {}, options = {})
|
904
|
+
req = build_request(:list_available_resource_metrics, params)
|
905
|
+
req.send_request(options)
|
906
|
+
end
|
907
|
+
|
717
908
|
# @!endgroup
|
718
909
|
|
719
910
|
# @param params ({})
|
@@ -727,7 +918,7 @@ module Aws::PI
|
|
727
918
|
params: params,
|
728
919
|
config: config)
|
729
920
|
context[:gem_name] = 'aws-sdk-pi'
|
730
|
-
context[:gem_version] = '1.
|
921
|
+
context[:gem_version] = '1.36.0'
|
731
922
|
Seahorse::Client::Request.new(handlers, context)
|
732
923
|
end
|
733
924
|
|
@@ -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
|
|
data/lib/aws-sdk-pi/types.rb
CHANGED
@@ -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
|
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,
|
67
|
-
# Performance Insights gathers metrics from this data
|
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
|
-
#
|
214
|
-
#
|
215
|
-
#
|
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,
|
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
|
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
|
-
#
|
352
|
-
#
|
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
|
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
|
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
|
435
|
-
# instance is the data source, specify its
|
436
|
-
# example, specify
|
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
|
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,
|
516
|
-
# Performance Insights gathers metrics from this data
|
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,
|
611
|
-
# Performance Insights gathers metrics from this data
|
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
|
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
|
-
#
|
690
|
-
# the data points be aggregated by dimension group (
|
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
|
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
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.36.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:
|
11
|
+
date: 2022-01-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|