aws-sdk-pi 1.27.0 → 1.28.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.rb +1 -1
- data/lib/aws-sdk-pi/client.rb +82 -18
- data/lib/aws-sdk-pi/client_api.rb +60 -20
- data/lib/aws-sdk-pi/types.rb +125 -20
- metadata +5 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 25dcb295e09e1f2ea9d024ac90c6353a18442f093ec9c2a109acd4ef0ccf3176
|
4
|
+
data.tar.gz: 4529ba140949f6462c8f89ba33b2d756923ac0cee4ded5832c7e1a1402564f8e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d7b2a5b8647eea83018601a423c7bedc613655b6c181f61d271d8cf36ad676ee5ee45d887c9df746c5f7a28a4a1f022d89641fa248e50198b7004e9f7a4cf1b4
|
7
|
+
data.tar.gz: f14db988b4b4c32fbba856680cf3f6ccf6b5ae94e134f4d472f3bee0d5194f2e956a41967124c36791cf612b14f9e2aa02446384f6d753c2deab75daea998267
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.28.0 (2021-06-04)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - The new GetDimensionKeyDetails action retrieves the attributes of the specified dimension group for a DB instance or data source.
|
8
|
+
|
4
9
|
1.27.0 (2021-03-10)
|
5
10
|
------------------
|
6
11
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.28.0
|
data/lib/aws-sdk-pi.rb
CHANGED
data/lib/aws-sdk-pi/client.rb
CHANGED
@@ -455,26 +455,26 @@ module Aws::PI
|
|
455
455
|
#
|
456
456
|
# resp = client.describe_dimension_keys({
|
457
457
|
# service_type: "RDS", # required, accepts RDS
|
458
|
-
# identifier: "
|
458
|
+
# identifier: "RequestString", # required
|
459
459
|
# start_time: Time.now, # required
|
460
460
|
# end_time: Time.now, # required
|
461
|
-
# metric: "
|
461
|
+
# metric: "RequestString", # required
|
462
462
|
# period_in_seconds: 1,
|
463
463
|
# group_by: { # required
|
464
|
-
# group: "
|
465
|
-
# dimensions: ["
|
464
|
+
# group: "RequestString", # required
|
465
|
+
# dimensions: ["RequestString"],
|
466
466
|
# limit: 1,
|
467
467
|
# },
|
468
468
|
# partition_by: {
|
469
|
-
# group: "
|
470
|
-
# dimensions: ["
|
469
|
+
# group: "RequestString", # required
|
470
|
+
# dimensions: ["RequestString"],
|
471
471
|
# limit: 1,
|
472
472
|
# },
|
473
473
|
# filter: {
|
474
|
-
# "
|
474
|
+
# "RequestString" => "RequestString",
|
475
475
|
# },
|
476
476
|
# max_results: 1,
|
477
|
-
# next_token: "
|
477
|
+
# next_token: "NextToken",
|
478
478
|
# })
|
479
479
|
#
|
480
480
|
# @example Response structure
|
@@ -483,10 +483,10 @@ module Aws::PI
|
|
483
483
|
# resp.aligned_end_time #=> Time
|
484
484
|
# resp.partition_keys #=> Array
|
485
485
|
# resp.partition_keys[0].dimensions #=> Hash
|
486
|
-
# resp.partition_keys[0].dimensions["
|
486
|
+
# resp.partition_keys[0].dimensions["RequestString"] #=> String
|
487
487
|
# resp.keys #=> Array
|
488
488
|
# resp.keys[0].dimensions #=> Hash
|
489
|
-
# resp.keys[0].dimensions["
|
489
|
+
# resp.keys[0].dimensions["RequestString"] #=> String
|
490
490
|
# resp.keys[0].total #=> Float
|
491
491
|
# resp.keys[0].partitions #=> Array
|
492
492
|
# resp.keys[0].partitions[0] #=> Float
|
@@ -501,6 +501,70 @@ module Aws::PI
|
|
501
501
|
req.send_request(options)
|
502
502
|
end
|
503
503
|
|
504
|
+
# Get the attributes of the specified dimension group for a DB instance
|
505
|
+
# or data source. For example, if you specify a SQL ID,
|
506
|
+
# `GetDimensionKeyDetails` retrieves the full text of the dimension
|
507
|
+
# `db.sql.statement` associated with this ID. This operation is useful
|
508
|
+
# because `GetResourceMetrics` and `DescribeDimensionKeys` don't
|
509
|
+
# support retrieval of large SQL statement text.
|
510
|
+
#
|
511
|
+
# @option params [required, String] :service_type
|
512
|
+
# The AWS service for which Performance Insights returns data. The only
|
513
|
+
# valid value is `RDS`.
|
514
|
+
#
|
515
|
+
# @option params [required, String] :identifier
|
516
|
+
# The ID for a data source from which to gather dimension data. This ID
|
517
|
+
# must be immutable and unique within an AWS Region. When a DB instance
|
518
|
+
# is the data source, specify its `DbiResourceId` value. For example,
|
519
|
+
# specify `db-ABCDEFGHIJKLMNOPQRSTU1VW2X`.
|
520
|
+
#
|
521
|
+
# @option params [required, String] :group
|
522
|
+
# The name of the dimension group. The only valid value is `db.sql`.
|
523
|
+
# Performance Insights searches the specified group for the dimension
|
524
|
+
# group ID.
|
525
|
+
#
|
526
|
+
# @option params [required, String] :group_identifier
|
527
|
+
# The ID of the dimension group from which to retrieve dimension
|
528
|
+
# details. For dimension group `db.sql`, the group ID is `db.sql.id`.
|
529
|
+
#
|
530
|
+
# @option params [Array<String>] :requested_dimensions
|
531
|
+
# A list of dimensions to retrieve the detail data for within the given
|
532
|
+
# dimension group. For the dimension group `db.sql`, specify either the
|
533
|
+
# full dimension name `db.sql.statement` or the short dimension name
|
534
|
+
# `statement`. If you don't specify this parameter, Performance
|
535
|
+
# Insights returns all dimension data within the specified dimension
|
536
|
+
# group.
|
537
|
+
#
|
538
|
+
# @return [Types::GetDimensionKeyDetailsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
539
|
+
#
|
540
|
+
# * {Types::GetDimensionKeyDetailsResponse#dimensions #dimensions} => Array<Types::DimensionKeyDetail>
|
541
|
+
#
|
542
|
+
# @example Request syntax with placeholder values
|
543
|
+
#
|
544
|
+
# resp = client.get_dimension_key_details({
|
545
|
+
# service_type: "RDS", # required, accepts RDS
|
546
|
+
# identifier: "IdentifierString", # required
|
547
|
+
# group: "RequestString", # required
|
548
|
+
# group_identifier: "RequestString", # required
|
549
|
+
# requested_dimensions: ["RequestString"],
|
550
|
+
# })
|
551
|
+
#
|
552
|
+
# @example Response structure
|
553
|
+
#
|
554
|
+
# resp.dimensions #=> Array
|
555
|
+
# resp.dimensions[0].value #=> String
|
556
|
+
# resp.dimensions[0].dimension #=> String
|
557
|
+
# resp.dimensions[0].status #=> String, one of "AVAILABLE", "PROCESSING", "UNAVAILABLE"
|
558
|
+
#
|
559
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/pi-2018-02-27/GetDimensionKeyDetails AWS API Documentation
|
560
|
+
#
|
561
|
+
# @overload get_dimension_key_details(params = {})
|
562
|
+
# @param [Hash] params ({})
|
563
|
+
def get_dimension_key_details(params = {}, options = {})
|
564
|
+
req = build_request(:get_dimension_key_details, params)
|
565
|
+
req.send_request(options)
|
566
|
+
end
|
567
|
+
|
504
568
|
# Retrieve Performance Insights metrics for a set of data sources, over
|
505
569
|
# a time period. You can provide specific dimension groups and
|
506
570
|
# dimensions, and provide aggregation and filtering criteria for each
|
@@ -586,17 +650,17 @@ module Aws::PI
|
|
586
650
|
#
|
587
651
|
# resp = client.get_resource_metrics({
|
588
652
|
# service_type: "RDS", # required, accepts RDS
|
589
|
-
# identifier: "
|
653
|
+
# identifier: "RequestString", # required
|
590
654
|
# metric_queries: [ # required
|
591
655
|
# {
|
592
|
-
# metric: "
|
656
|
+
# metric: "RequestString", # required
|
593
657
|
# group_by: {
|
594
|
-
# group: "
|
595
|
-
# dimensions: ["
|
658
|
+
# group: "RequestString", # required
|
659
|
+
# dimensions: ["RequestString"],
|
596
660
|
# limit: 1,
|
597
661
|
# },
|
598
662
|
# filter: {
|
599
|
-
# "
|
663
|
+
# "RequestString" => "RequestString",
|
600
664
|
# },
|
601
665
|
# },
|
602
666
|
# ],
|
@@ -604,7 +668,7 @@ module Aws::PI
|
|
604
668
|
# end_time: Time.now, # required
|
605
669
|
# period_in_seconds: 1,
|
606
670
|
# max_results: 1,
|
607
|
-
# next_token: "
|
671
|
+
# next_token: "NextToken",
|
608
672
|
# })
|
609
673
|
#
|
610
674
|
# @example Response structure
|
@@ -615,7 +679,7 @@ module Aws::PI
|
|
615
679
|
# resp.metric_list #=> Array
|
616
680
|
# resp.metric_list[0].key.metric #=> String
|
617
681
|
# resp.metric_list[0].key.dimensions #=> Hash
|
618
|
-
# resp.metric_list[0].key.dimensions["
|
682
|
+
# resp.metric_list[0].key.dimensions["RequestString"] #=> String
|
619
683
|
# resp.metric_list[0].data_points #=> Array
|
620
684
|
# resp.metric_list[0].data_points[0].timestamp #=> Time
|
621
685
|
# resp.metric_list[0].data_points[0].value #=> Float
|
@@ -643,7 +707,7 @@ module Aws::PI
|
|
643
707
|
params: params,
|
644
708
|
config: config)
|
645
709
|
context[:gem_name] = 'aws-sdk-pi'
|
646
|
-
context[:gem_version] = '1.
|
710
|
+
context[:gem_version] = '1.28.0'
|
647
711
|
Seahorse::Client::Request.new(handlers, context)
|
648
712
|
end
|
649
713
|
|
@@ -17,14 +17,21 @@ module Aws::PI
|
|
17
17
|
DataPointsList = Shapes::ListShape.new(name: 'DataPointsList')
|
18
18
|
DescribeDimensionKeysRequest = Shapes::StructureShape.new(name: 'DescribeDimensionKeysRequest')
|
19
19
|
DescribeDimensionKeysResponse = Shapes::StructureShape.new(name: 'DescribeDimensionKeysResponse')
|
20
|
+
DetailStatus = Shapes::StringShape.new(name: 'DetailStatus')
|
20
21
|
DimensionGroup = Shapes::StructureShape.new(name: 'DimensionGroup')
|
21
22
|
DimensionKeyDescription = Shapes::StructureShape.new(name: 'DimensionKeyDescription')
|
22
23
|
DimensionKeyDescriptionList = Shapes::ListShape.new(name: 'DimensionKeyDescriptionList')
|
24
|
+
DimensionKeyDetail = Shapes::StructureShape.new(name: 'DimensionKeyDetail')
|
25
|
+
DimensionKeyDetailList = Shapes::ListShape.new(name: 'DimensionKeyDetailList')
|
23
26
|
DimensionMap = Shapes::MapShape.new(name: 'DimensionMap')
|
24
27
|
Double = Shapes::FloatShape.new(name: 'Double')
|
28
|
+
ErrorString = Shapes::StringShape.new(name: 'ErrorString')
|
29
|
+
GetDimensionKeyDetailsRequest = Shapes::StructureShape.new(name: 'GetDimensionKeyDetailsRequest')
|
30
|
+
GetDimensionKeyDetailsResponse = Shapes::StructureShape.new(name: 'GetDimensionKeyDetailsResponse')
|
25
31
|
GetResourceMetricsRequest = Shapes::StructureShape.new(name: 'GetResourceMetricsRequest')
|
26
32
|
GetResourceMetricsResponse = Shapes::StructureShape.new(name: 'GetResourceMetricsResponse')
|
27
33
|
ISOTimestamp = Shapes::TimestampShape.new(name: 'ISOTimestamp')
|
34
|
+
IdentifierString = Shapes::StringShape.new(name: 'IdentifierString')
|
28
35
|
Integer = Shapes::IntegerShape.new(name: 'Integer')
|
29
36
|
InternalServiceError = Shapes::StructureShape.new(name: 'InternalServiceError')
|
30
37
|
InvalidArgumentException = Shapes::StructureShape.new(name: 'InvalidArgumentException')
|
@@ -36,13 +43,16 @@ module Aws::PI
|
|
36
43
|
MetricQueryFilterMap = Shapes::MapShape.new(name: 'MetricQueryFilterMap')
|
37
44
|
MetricQueryList = Shapes::ListShape.new(name: 'MetricQueryList')
|
38
45
|
MetricValuesList = Shapes::ListShape.new(name: 'MetricValuesList')
|
46
|
+
NextToken = Shapes::StringShape.new(name: 'NextToken')
|
39
47
|
NotAuthorizedException = Shapes::StructureShape.new(name: 'NotAuthorizedException')
|
48
|
+
RequestString = Shapes::StringShape.new(name: 'RequestString')
|
49
|
+
RequestStringList = Shapes::ListShape.new(name: 'RequestStringList')
|
50
|
+
RequestedDimensionList = Shapes::ListShape.new(name: 'RequestedDimensionList')
|
40
51
|
ResponsePartitionKey = Shapes::StructureShape.new(name: 'ResponsePartitionKey')
|
41
52
|
ResponsePartitionKeyList = Shapes::ListShape.new(name: 'ResponsePartitionKeyList')
|
42
53
|
ResponseResourceMetricKey = Shapes::StructureShape.new(name: 'ResponseResourceMetricKey')
|
43
54
|
ServiceType = Shapes::StringShape.new(name: 'ServiceType')
|
44
55
|
String = Shapes::StringShape.new(name: 'String')
|
45
|
-
StringList = Shapes::ListShape.new(name: 'StringList')
|
46
56
|
|
47
57
|
DataPoint.add_member(:timestamp, Shapes::ShapeRef.new(shape: ISOTimestamp, required: true, location_name: "Timestamp"))
|
48
58
|
DataPoint.add_member(:value, Shapes::ShapeRef.new(shape: Double, required: true, location_name: "Value"))
|
@@ -51,27 +61,27 @@ module Aws::PI
|
|
51
61
|
DataPointsList.member = Shapes::ShapeRef.new(shape: DataPoint)
|
52
62
|
|
53
63
|
DescribeDimensionKeysRequest.add_member(:service_type, Shapes::ShapeRef.new(shape: ServiceType, required: true, location_name: "ServiceType"))
|
54
|
-
DescribeDimensionKeysRequest.add_member(:identifier, Shapes::ShapeRef.new(shape:
|
64
|
+
DescribeDimensionKeysRequest.add_member(:identifier, Shapes::ShapeRef.new(shape: RequestString, required: true, location_name: "Identifier"))
|
55
65
|
DescribeDimensionKeysRequest.add_member(:start_time, Shapes::ShapeRef.new(shape: ISOTimestamp, required: true, location_name: "StartTime"))
|
56
66
|
DescribeDimensionKeysRequest.add_member(:end_time, Shapes::ShapeRef.new(shape: ISOTimestamp, required: true, location_name: "EndTime"))
|
57
|
-
DescribeDimensionKeysRequest.add_member(:metric, Shapes::ShapeRef.new(shape:
|
67
|
+
DescribeDimensionKeysRequest.add_member(:metric, Shapes::ShapeRef.new(shape: RequestString, required: true, location_name: "Metric"))
|
58
68
|
DescribeDimensionKeysRequest.add_member(:period_in_seconds, Shapes::ShapeRef.new(shape: Integer, location_name: "PeriodInSeconds"))
|
59
69
|
DescribeDimensionKeysRequest.add_member(:group_by, Shapes::ShapeRef.new(shape: DimensionGroup, required: true, location_name: "GroupBy"))
|
60
70
|
DescribeDimensionKeysRequest.add_member(:partition_by, Shapes::ShapeRef.new(shape: DimensionGroup, location_name: "PartitionBy"))
|
61
71
|
DescribeDimensionKeysRequest.add_member(:filter, Shapes::ShapeRef.new(shape: MetricQueryFilterMap, location_name: "Filter"))
|
62
72
|
DescribeDimensionKeysRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "MaxResults"))
|
63
|
-
DescribeDimensionKeysRequest.add_member(:next_token, Shapes::ShapeRef.new(shape:
|
73
|
+
DescribeDimensionKeysRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
|
64
74
|
DescribeDimensionKeysRequest.struct_class = Types::DescribeDimensionKeysRequest
|
65
75
|
|
66
76
|
DescribeDimensionKeysResponse.add_member(:aligned_start_time, Shapes::ShapeRef.new(shape: ISOTimestamp, location_name: "AlignedStartTime"))
|
67
77
|
DescribeDimensionKeysResponse.add_member(:aligned_end_time, Shapes::ShapeRef.new(shape: ISOTimestamp, location_name: "AlignedEndTime"))
|
68
78
|
DescribeDimensionKeysResponse.add_member(:partition_keys, Shapes::ShapeRef.new(shape: ResponsePartitionKeyList, location_name: "PartitionKeys"))
|
69
79
|
DescribeDimensionKeysResponse.add_member(:keys, Shapes::ShapeRef.new(shape: DimensionKeyDescriptionList, location_name: "Keys"))
|
70
|
-
DescribeDimensionKeysResponse.add_member(:next_token, Shapes::ShapeRef.new(shape:
|
80
|
+
DescribeDimensionKeysResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
|
71
81
|
DescribeDimensionKeysResponse.struct_class = Types::DescribeDimensionKeysResponse
|
72
82
|
|
73
|
-
DimensionGroup.add_member(:group, Shapes::ShapeRef.new(shape:
|
74
|
-
DimensionGroup.add_member(:dimensions, Shapes::ShapeRef.new(shape:
|
83
|
+
DimensionGroup.add_member(:group, Shapes::ShapeRef.new(shape: RequestString, required: true, location_name: "Group"))
|
84
|
+
DimensionGroup.add_member(:dimensions, Shapes::ShapeRef.new(shape: RequestStringList, location_name: "Dimensions"))
|
75
85
|
DimensionGroup.add_member(:limit, Shapes::ShapeRef.new(shape: Limit, location_name: "Limit"))
|
76
86
|
DimensionGroup.struct_class = Types::DimensionGroup
|
77
87
|
|
@@ -82,30 +92,47 @@ module Aws::PI
|
|
82
92
|
|
83
93
|
DimensionKeyDescriptionList.member = Shapes::ShapeRef.new(shape: DimensionKeyDescription)
|
84
94
|
|
85
|
-
|
86
|
-
|
95
|
+
DimensionKeyDetail.add_member(:value, Shapes::ShapeRef.new(shape: String, location_name: "Value"))
|
96
|
+
DimensionKeyDetail.add_member(:dimension, Shapes::ShapeRef.new(shape: String, location_name: "Dimension"))
|
97
|
+
DimensionKeyDetail.add_member(:status, Shapes::ShapeRef.new(shape: DetailStatus, location_name: "Status"))
|
98
|
+
DimensionKeyDetail.struct_class = Types::DimensionKeyDetail
|
99
|
+
|
100
|
+
DimensionKeyDetailList.member = Shapes::ShapeRef.new(shape: DimensionKeyDetail)
|
101
|
+
|
102
|
+
DimensionMap.key = Shapes::ShapeRef.new(shape: RequestString)
|
103
|
+
DimensionMap.value = Shapes::ShapeRef.new(shape: RequestString)
|
104
|
+
|
105
|
+
GetDimensionKeyDetailsRequest.add_member(:service_type, Shapes::ShapeRef.new(shape: ServiceType, required: true, location_name: "ServiceType"))
|
106
|
+
GetDimensionKeyDetailsRequest.add_member(:identifier, Shapes::ShapeRef.new(shape: IdentifierString, required: true, location_name: "Identifier"))
|
107
|
+
GetDimensionKeyDetailsRequest.add_member(:group, Shapes::ShapeRef.new(shape: RequestString, required: true, location_name: "Group"))
|
108
|
+
GetDimensionKeyDetailsRequest.add_member(:group_identifier, Shapes::ShapeRef.new(shape: RequestString, required: true, location_name: "GroupIdentifier"))
|
109
|
+
GetDimensionKeyDetailsRequest.add_member(:requested_dimensions, Shapes::ShapeRef.new(shape: RequestedDimensionList, location_name: "RequestedDimensions"))
|
110
|
+
GetDimensionKeyDetailsRequest.struct_class = Types::GetDimensionKeyDetailsRequest
|
111
|
+
|
112
|
+
GetDimensionKeyDetailsResponse.add_member(:dimensions, Shapes::ShapeRef.new(shape: DimensionKeyDetailList, location_name: "Dimensions"))
|
113
|
+
GetDimensionKeyDetailsResponse.struct_class = Types::GetDimensionKeyDetailsResponse
|
87
114
|
|
88
115
|
GetResourceMetricsRequest.add_member(:service_type, Shapes::ShapeRef.new(shape: ServiceType, required: true, location_name: "ServiceType"))
|
89
|
-
GetResourceMetricsRequest.add_member(:identifier, Shapes::ShapeRef.new(shape:
|
116
|
+
GetResourceMetricsRequest.add_member(:identifier, Shapes::ShapeRef.new(shape: RequestString, required: true, location_name: "Identifier"))
|
90
117
|
GetResourceMetricsRequest.add_member(:metric_queries, Shapes::ShapeRef.new(shape: MetricQueryList, required: true, location_name: "MetricQueries"))
|
91
118
|
GetResourceMetricsRequest.add_member(:start_time, Shapes::ShapeRef.new(shape: ISOTimestamp, required: true, location_name: "StartTime"))
|
92
119
|
GetResourceMetricsRequest.add_member(:end_time, Shapes::ShapeRef.new(shape: ISOTimestamp, required: true, location_name: "EndTime"))
|
93
120
|
GetResourceMetricsRequest.add_member(:period_in_seconds, Shapes::ShapeRef.new(shape: Integer, location_name: "PeriodInSeconds"))
|
94
121
|
GetResourceMetricsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "MaxResults"))
|
95
|
-
GetResourceMetricsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape:
|
122
|
+
GetResourceMetricsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
|
96
123
|
GetResourceMetricsRequest.struct_class = Types::GetResourceMetricsRequest
|
97
124
|
|
98
125
|
GetResourceMetricsResponse.add_member(:aligned_start_time, Shapes::ShapeRef.new(shape: ISOTimestamp, location_name: "AlignedStartTime"))
|
99
126
|
GetResourceMetricsResponse.add_member(:aligned_end_time, Shapes::ShapeRef.new(shape: ISOTimestamp, location_name: "AlignedEndTime"))
|
100
127
|
GetResourceMetricsResponse.add_member(:identifier, Shapes::ShapeRef.new(shape: String, location_name: "Identifier"))
|
101
128
|
GetResourceMetricsResponse.add_member(:metric_list, Shapes::ShapeRef.new(shape: MetricKeyDataPointsList, location_name: "MetricList"))
|
102
|
-
GetResourceMetricsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape:
|
129
|
+
GetResourceMetricsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
|
103
130
|
GetResourceMetricsResponse.struct_class = Types::GetResourceMetricsResponse
|
104
131
|
|
105
|
-
InternalServiceError.add_member(:message, Shapes::ShapeRef.new(shape:
|
132
|
+
InternalServiceError.add_member(:message, Shapes::ShapeRef.new(shape: ErrorString, location_name: "Message"))
|
106
133
|
InternalServiceError.struct_class = Types::InternalServiceError
|
107
134
|
|
108
|
-
InvalidArgumentException.add_member(:message, Shapes::ShapeRef.new(shape:
|
135
|
+
InvalidArgumentException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorString, location_name: "Message"))
|
109
136
|
InvalidArgumentException.struct_class = Types::InvalidArgumentException
|
110
137
|
|
111
138
|
MetricKeyDataPoints.add_member(:key, Shapes::ShapeRef.new(shape: ResponseResourceMetricKey, location_name: "Key"))
|
@@ -114,21 +141,25 @@ module Aws::PI
|
|
114
141
|
|
115
142
|
MetricKeyDataPointsList.member = Shapes::ShapeRef.new(shape: MetricKeyDataPoints)
|
116
143
|
|
117
|
-
MetricQuery.add_member(:metric, Shapes::ShapeRef.new(shape:
|
144
|
+
MetricQuery.add_member(:metric, Shapes::ShapeRef.new(shape: RequestString, required: true, location_name: "Metric"))
|
118
145
|
MetricQuery.add_member(:group_by, Shapes::ShapeRef.new(shape: DimensionGroup, location_name: "GroupBy"))
|
119
146
|
MetricQuery.add_member(:filter, Shapes::ShapeRef.new(shape: MetricQueryFilterMap, location_name: "Filter"))
|
120
147
|
MetricQuery.struct_class = Types::MetricQuery
|
121
148
|
|
122
|
-
MetricQueryFilterMap.key = Shapes::ShapeRef.new(shape:
|
123
|
-
MetricQueryFilterMap.value = Shapes::ShapeRef.new(shape:
|
149
|
+
MetricQueryFilterMap.key = Shapes::ShapeRef.new(shape: RequestString)
|
150
|
+
MetricQueryFilterMap.value = Shapes::ShapeRef.new(shape: RequestString)
|
124
151
|
|
125
152
|
MetricQueryList.member = Shapes::ShapeRef.new(shape: MetricQuery)
|
126
153
|
|
127
154
|
MetricValuesList.member = Shapes::ShapeRef.new(shape: Double)
|
128
155
|
|
129
|
-
NotAuthorizedException.add_member(:message, Shapes::ShapeRef.new(shape:
|
156
|
+
NotAuthorizedException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorString, location_name: "Message"))
|
130
157
|
NotAuthorizedException.struct_class = Types::NotAuthorizedException
|
131
158
|
|
159
|
+
RequestStringList.member = Shapes::ShapeRef.new(shape: RequestString)
|
160
|
+
|
161
|
+
RequestedDimensionList.member = Shapes::ShapeRef.new(shape: RequestString)
|
162
|
+
|
132
163
|
ResponsePartitionKey.add_member(:dimensions, Shapes::ShapeRef.new(shape: DimensionMap, required: true, location_name: "Dimensions"))
|
133
164
|
ResponsePartitionKey.struct_class = Types::ResponsePartitionKey
|
134
165
|
|
@@ -138,8 +169,6 @@ module Aws::PI
|
|
138
169
|
ResponseResourceMetricKey.add_member(:dimensions, Shapes::ShapeRef.new(shape: DimensionMap, location_name: "Dimensions"))
|
139
170
|
ResponseResourceMetricKey.struct_class = Types::ResponseResourceMetricKey
|
140
171
|
|
141
|
-
StringList.member = Shapes::ShapeRef.new(shape: String)
|
142
|
-
|
143
172
|
|
144
173
|
# @api private
|
145
174
|
API = Seahorse::Model::Api.new.tap do |api|
|
@@ -171,6 +200,17 @@ module Aws::PI
|
|
171
200
|
o.errors << Shapes::ShapeRef.new(shape: NotAuthorizedException)
|
172
201
|
end)
|
173
202
|
|
203
|
+
api.add_operation(:get_dimension_key_details, Seahorse::Model::Operation.new.tap do |o|
|
204
|
+
o.name = "GetDimensionKeyDetails"
|
205
|
+
o.http_method = "POST"
|
206
|
+
o.http_request_uri = "/"
|
207
|
+
o.input = Shapes::ShapeRef.new(shape: GetDimensionKeyDetailsRequest)
|
208
|
+
o.output = Shapes::ShapeRef.new(shape: GetDimensionKeyDetailsResponse)
|
209
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidArgumentException)
|
210
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServiceError)
|
211
|
+
o.errors << Shapes::ShapeRef.new(shape: NotAuthorizedException)
|
212
|
+
end)
|
213
|
+
|
174
214
|
api.add_operation(:get_resource_metrics, Seahorse::Model::Operation.new.tap do |o|
|
175
215
|
o.name = "GetResourceMetrics"
|
176
216
|
o.http_method = "POST"
|
data/lib/aws-sdk-pi/types.rb
CHANGED
@@ -35,26 +35,26 @@ module Aws::PI
|
|
35
35
|
#
|
36
36
|
# {
|
37
37
|
# service_type: "RDS", # required, accepts RDS
|
38
|
-
# identifier: "
|
38
|
+
# identifier: "RequestString", # required
|
39
39
|
# start_time: Time.now, # required
|
40
40
|
# end_time: Time.now, # required
|
41
|
-
# metric: "
|
41
|
+
# metric: "RequestString", # required
|
42
42
|
# period_in_seconds: 1,
|
43
43
|
# group_by: { # required
|
44
|
-
# group: "
|
45
|
-
# dimensions: ["
|
44
|
+
# group: "RequestString", # required
|
45
|
+
# dimensions: ["RequestString"],
|
46
46
|
# limit: 1,
|
47
47
|
# },
|
48
48
|
# partition_by: {
|
49
|
-
# group: "
|
50
|
-
# dimensions: ["
|
49
|
+
# group: "RequestString", # required
|
50
|
+
# dimensions: ["RequestString"],
|
51
51
|
# limit: 1,
|
52
52
|
# },
|
53
53
|
# filter: {
|
54
|
-
# "
|
54
|
+
# "RequestString" => "RequestString",
|
55
55
|
# },
|
56
56
|
# max_results: 1,
|
57
|
-
# next_token: "
|
57
|
+
# next_token: "NextToken",
|
58
58
|
# }
|
59
59
|
#
|
60
60
|
# @!attribute [rw] service_type
|
@@ -242,8 +242,8 @@ module Aws::PI
|
|
242
242
|
# data as a hash:
|
243
243
|
#
|
244
244
|
# {
|
245
|
-
# group: "
|
246
|
-
# dimensions: ["
|
245
|
+
# group: "RequestString", # required
|
246
|
+
# dimensions: ["RequestString"],
|
247
247
|
# limit: 1,
|
248
248
|
# }
|
249
249
|
#
|
@@ -375,22 +375,127 @@ module Aws::PI
|
|
375
375
|
include Aws::Structure
|
376
376
|
end
|
377
377
|
|
378
|
+
# An object that describes the details for a specified dimension.
|
379
|
+
#
|
380
|
+
# @!attribute [rw] value
|
381
|
+
# The value of the dimension detail data. For the `db.sql.statement`
|
382
|
+
# dimension, this value is either the full or truncated SQL query,
|
383
|
+
# depending on the return status.
|
384
|
+
# @return [String]
|
385
|
+
#
|
386
|
+
# @!attribute [rw] dimension
|
387
|
+
# The full name of the dimension. The full name includes the group
|
388
|
+
# name and key name. The only valid value is `db.sql.statement`.
|
389
|
+
# @return [String]
|
390
|
+
#
|
391
|
+
# @!attribute [rw] status
|
392
|
+
# The status of the dimension detail data. Possible values include the
|
393
|
+
# following:
|
394
|
+
#
|
395
|
+
# * `AVAILABLE` - The dimension detail data is ready to be retrieved.
|
396
|
+
#
|
397
|
+
# * `PROCESSING` - The dimension detail data isn't ready to be
|
398
|
+
# retrieved because more processing time is required. If the
|
399
|
+
# requested detail data for `db.sql.statement` has the status
|
400
|
+
# `PROCESSING`, Performance Insights returns the truncated query.
|
401
|
+
#
|
402
|
+
# * `UNAVAILABLE` - The dimension detail data could not be collected
|
403
|
+
# successfully.
|
404
|
+
# @return [String]
|
405
|
+
#
|
406
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/pi-2018-02-27/DimensionKeyDetail AWS API Documentation
|
407
|
+
#
|
408
|
+
class DimensionKeyDetail < Struct.new(
|
409
|
+
:value,
|
410
|
+
:dimension,
|
411
|
+
:status)
|
412
|
+
SENSITIVE = []
|
413
|
+
include Aws::Structure
|
414
|
+
end
|
415
|
+
|
416
|
+
# @note When making an API call, you may pass GetDimensionKeyDetailsRequest
|
417
|
+
# data as a hash:
|
418
|
+
#
|
419
|
+
# {
|
420
|
+
# service_type: "RDS", # required, accepts RDS
|
421
|
+
# identifier: "IdentifierString", # required
|
422
|
+
# group: "RequestString", # required
|
423
|
+
# group_identifier: "RequestString", # required
|
424
|
+
# requested_dimensions: ["RequestString"],
|
425
|
+
# }
|
426
|
+
#
|
427
|
+
# @!attribute [rw] service_type
|
428
|
+
# The AWS service for which Performance Insights returns data. The
|
429
|
+
# only valid value is `RDS`.
|
430
|
+
# @return [String]
|
431
|
+
#
|
432
|
+
# @!attribute [rw] identifier
|
433
|
+
# 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`.
|
437
|
+
# @return [String]
|
438
|
+
#
|
439
|
+
# @!attribute [rw] group
|
440
|
+
# The name of the dimension group. The only valid value is `db.sql`.
|
441
|
+
# Performance Insights searches the specified group for the dimension
|
442
|
+
# group ID.
|
443
|
+
# @return [String]
|
444
|
+
#
|
445
|
+
# @!attribute [rw] group_identifier
|
446
|
+
# The ID of the dimension group from which to retrieve dimension
|
447
|
+
# details. For dimension group `db.sql`, the group ID is `db.sql.id`.
|
448
|
+
# @return [String]
|
449
|
+
#
|
450
|
+
# @!attribute [rw] requested_dimensions
|
451
|
+
# A list of dimensions to retrieve the detail data for within the
|
452
|
+
# given dimension group. For the dimension group `db.sql`, specify
|
453
|
+
# either the full dimension name `db.sql.statement` or the short
|
454
|
+
# dimension name `statement`. If you don't specify this parameter,
|
455
|
+
# Performance Insights returns all dimension data within the specified
|
456
|
+
# dimension group.
|
457
|
+
# @return [Array<String>]
|
458
|
+
#
|
459
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/pi-2018-02-27/GetDimensionKeyDetailsRequest AWS API Documentation
|
460
|
+
#
|
461
|
+
class GetDimensionKeyDetailsRequest < Struct.new(
|
462
|
+
:service_type,
|
463
|
+
:identifier,
|
464
|
+
:group,
|
465
|
+
:group_identifier,
|
466
|
+
:requested_dimensions)
|
467
|
+
SENSITIVE = []
|
468
|
+
include Aws::Structure
|
469
|
+
end
|
470
|
+
|
471
|
+
# @!attribute [rw] dimensions
|
472
|
+
# The details for the requested dimensions.
|
473
|
+
# @return [Array<Types::DimensionKeyDetail>]
|
474
|
+
#
|
475
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/pi-2018-02-27/GetDimensionKeyDetailsResponse AWS API Documentation
|
476
|
+
#
|
477
|
+
class GetDimensionKeyDetailsResponse < Struct.new(
|
478
|
+
:dimensions)
|
479
|
+
SENSITIVE = []
|
480
|
+
include Aws::Structure
|
481
|
+
end
|
482
|
+
|
378
483
|
# @note When making an API call, you may pass GetResourceMetricsRequest
|
379
484
|
# data as a hash:
|
380
485
|
#
|
381
486
|
# {
|
382
487
|
# service_type: "RDS", # required, accepts RDS
|
383
|
-
# identifier: "
|
488
|
+
# identifier: "RequestString", # required
|
384
489
|
# metric_queries: [ # required
|
385
490
|
# {
|
386
|
-
# metric: "
|
491
|
+
# metric: "RequestString", # required
|
387
492
|
# group_by: {
|
388
|
-
# group: "
|
389
|
-
# dimensions: ["
|
493
|
+
# group: "RequestString", # required
|
494
|
+
# dimensions: ["RequestString"],
|
390
495
|
# limit: 1,
|
391
496
|
# },
|
392
497
|
# filter: {
|
393
|
-
# "
|
498
|
+
# "RequestString" => "RequestString",
|
394
499
|
# },
|
395
500
|
# },
|
396
501
|
# ],
|
@@ -398,7 +503,7 @@ module Aws::PI
|
|
398
503
|
# end_time: Time.now, # required
|
399
504
|
# period_in_seconds: 1,
|
400
505
|
# max_results: 1,
|
401
|
-
# next_token: "
|
506
|
+
# next_token: "NextToken",
|
402
507
|
# }
|
403
508
|
#
|
404
509
|
# @!attribute [rw] service_type
|
@@ -589,14 +694,14 @@ module Aws::PI
|
|
589
694
|
# data as a hash:
|
590
695
|
#
|
591
696
|
# {
|
592
|
-
# metric: "
|
697
|
+
# metric: "RequestString", # required
|
593
698
|
# group_by: {
|
594
|
-
# group: "
|
595
|
-
# dimensions: ["
|
699
|
+
# group: "RequestString", # required
|
700
|
+
# dimensions: ["RequestString"],
|
596
701
|
# limit: 1,
|
597
702
|
# },
|
598
703
|
# filter: {
|
599
|
-
# "
|
704
|
+
# "RequestString" => "RequestString",
|
600
705
|
# },
|
601
706
|
# }
|
602
707
|
#
|
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.28.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-
|
11
|
+
date: 2021-06-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -66,8 +66,8 @@ homepage: https://github.com/aws/aws-sdk-ruby
|
|
66
66
|
licenses:
|
67
67
|
- Apache-2.0
|
68
68
|
metadata:
|
69
|
-
source_code_uri: https://github.com/aws/aws-sdk-ruby/tree/
|
70
|
-
changelog_uri: https://github.com/aws/aws-sdk-ruby/tree/
|
69
|
+
source_code_uri: https://github.com/aws/aws-sdk-ruby/tree/version-3/gems/aws-sdk-pi
|
70
|
+
changelog_uri: https://github.com/aws/aws-sdk-ruby/tree/version-3/gems/aws-sdk-pi/CHANGELOG.md
|
71
71
|
post_install_message:
|
72
72
|
rdoc_options: []
|
73
73
|
require_paths:
|
@@ -83,8 +83,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
83
83
|
- !ruby/object:Gem::Version
|
84
84
|
version: '0'
|
85
85
|
requirements: []
|
86
|
-
|
87
|
-
rubygems_version: 2.7.6.2
|
86
|
+
rubygems_version: 3.1.6
|
88
87
|
signing_key:
|
89
88
|
specification_version: 4
|
90
89
|
summary: AWS SDK for Ruby - AWS PI
|