aws-sdk-xray 1.89.0 → 1.90.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5869a4f3e052390b2ae813286b4412643b0fd8d7b1ccebbc1189e55fc8cc13d2
4
- data.tar.gz: bb34cc0e21955ad97f8c72ccd904fd1c7262159aabc5e91127169c14ea12ebe5
3
+ metadata.gz: 9f7d7adb627d69e0ddc5e58c4674599ab085324cef63c4dfe3a779be84585286
4
+ data.tar.gz: 1bc34c6db8e3fedf3e0ee99d296b6c057084e02d3691f05a9be872a2e41cf3ec
5
5
  SHA512:
6
- metadata.gz: b8a66024044556730867eaee4cd5317ea1d7bc0234f93b7c8709855df1d6e2090859f96a9eee4895ee75ea2848453f41cf798fc2f06838da28b1bc746f9bd885
7
- data.tar.gz: 3f7ebc64b0b314bfb04da4cc0ca93287f770ad10832ca6b5eb02adc7708596d45c20ee3184af5c73260122b2780557682072a56f4c903e879ec4780faf245cec
6
+ metadata.gz: e8ba138313e48829482dcf814ac972a03ec7a4ab59ed7dab5be9a4fbe9601b01b603188f7ba2c6ad82b02f99bcc2e7d443732d1e08c2bef9c71e4af2d197c0da
7
+ data.tar.gz: ca26716ab5378c3512ac41ca7227193703ac829cab902853ec29054897d003bdf5a8a516e8a3b4df5485ae63ed294739ee6bae01db3b95741d579a4f36115a07
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.90.0 (2025-08-29)
5
+ ------------------
6
+
7
+ * Feature - AWS X-Ray Features: Support Sampling Rate Boost On Anomaly
8
+
4
9
  1.89.0 (2025-08-28)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.89.0
1
+ 1.90.0
@@ -701,6 +701,10 @@ module Aws::XRay
701
701
  # attributes: {
702
702
  # "AttributeKey" => "AttributeValue",
703
703
  # },
704
+ # sampling_rate_boost: {
705
+ # max_rate: 1.0, # required
706
+ # cooldown_window_minutes: 1, # required
707
+ # },
704
708
  # },
705
709
  # tags: [
706
710
  # {
@@ -726,6 +730,8 @@ module Aws::XRay
726
730
  # resp.sampling_rule_record.sampling_rule.version #=> Integer
727
731
  # resp.sampling_rule_record.sampling_rule.attributes #=> Hash
728
732
  # resp.sampling_rule_record.sampling_rule.attributes["AttributeKey"] #=> <Hash,Array,String,Numeric,Boolean,IO,Set,nil>
733
+ # resp.sampling_rule_record.sampling_rule.sampling_rate_boost.max_rate #=> Float
734
+ # resp.sampling_rule_record.sampling_rule.sampling_rate_boost.cooldown_window_minutes #=> Integer
729
735
  # resp.sampling_rule_record.created_at #=> Time
730
736
  # resp.sampling_rule_record.modified_at #=> Time
731
737
  #
@@ -830,6 +836,8 @@ module Aws::XRay
830
836
  # resp.sampling_rule_record.sampling_rule.version #=> Integer
831
837
  # resp.sampling_rule_record.sampling_rule.attributes #=> Hash
832
838
  # resp.sampling_rule_record.sampling_rule.attributes["AttributeKey"] #=> <Hash,Array,String,Numeric,Boolean,IO,Set,nil>
839
+ # resp.sampling_rule_record.sampling_rule.sampling_rate_boost.max_rate #=> Float
840
+ # resp.sampling_rule_record.sampling_rule.sampling_rate_boost.cooldown_window_minutes #=> Integer
833
841
  # resp.sampling_rule_record.created_at #=> Time
834
842
  # resp.sampling_rule_record.modified_at #=> Time
835
843
  #
@@ -1398,6 +1406,8 @@ module Aws::XRay
1398
1406
  # resp.sampling_rule_records[0].sampling_rule.version #=> Integer
1399
1407
  # resp.sampling_rule_records[0].sampling_rule.attributes #=> Hash
1400
1408
  # resp.sampling_rule_records[0].sampling_rule.attributes["AttributeKey"] #=> <Hash,Array,String,Numeric,Boolean,IO,Set,nil>
1409
+ # resp.sampling_rule_records[0].sampling_rule.sampling_rate_boost.max_rate #=> Float
1410
+ # resp.sampling_rule_records[0].sampling_rule.sampling_rate_boost.cooldown_window_minutes #=> Integer
1401
1411
  # resp.sampling_rule_records[0].created_at #=> Time
1402
1412
  # resp.sampling_rule_records[0].modified_at #=> Time
1403
1413
  # resp.next_token #=> String
@@ -1455,11 +1465,16 @@ module Aws::XRay
1455
1465
  # @option params [required, Array<Types::SamplingStatisticsDocument>] :sampling_statistics_documents
1456
1466
  # Information about rules that the service is using to sample requests.
1457
1467
  #
1468
+ # @option params [Array<Types::SamplingBoostStatisticsDocument>] :sampling_boost_statistics_documents
1469
+ # Information about rules that the service is using to boost sampling
1470
+ # rate.
1471
+ #
1458
1472
  # @return [Types::GetSamplingTargetsResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1459
1473
  #
1460
1474
  # * {Types::GetSamplingTargetsResult#sampling_target_documents #sampling_target_documents} => Array&lt;Types::SamplingTargetDocument&gt;
1461
1475
  # * {Types::GetSamplingTargetsResult#last_rule_modification #last_rule_modification} => Time
1462
1476
  # * {Types::GetSamplingTargetsResult#unprocessed_statistics #unprocessed_statistics} => Array&lt;Types::UnprocessedStatistics&gt;
1477
+ # * {Types::GetSamplingTargetsResult#unprocessed_boost_statistics #unprocessed_boost_statistics} => Array&lt;Types::UnprocessedStatistics&gt;
1463
1478
  #
1464
1479
  # @example Request syntax with placeholder values
1465
1480
  #
@@ -1474,6 +1489,16 @@ module Aws::XRay
1474
1489
  # borrow_count: 1,
1475
1490
  # },
1476
1491
  # ],
1492
+ # sampling_boost_statistics_documents: [
1493
+ # {
1494
+ # rule_name: "RuleName", # required
1495
+ # service_name: "ServiceName", # required
1496
+ # timestamp: Time.now, # required
1497
+ # anomaly_count: 1, # required
1498
+ # total_count: 1, # required
1499
+ # sampled_anomaly_count: 1, # required
1500
+ # },
1501
+ # ],
1477
1502
  # })
1478
1503
  #
1479
1504
  # @example Response structure
@@ -1484,11 +1509,17 @@ module Aws::XRay
1484
1509
  # resp.sampling_target_documents[0].reservoir_quota #=> Integer
1485
1510
  # resp.sampling_target_documents[0].reservoir_quota_ttl #=> Time
1486
1511
  # resp.sampling_target_documents[0].interval #=> Integer
1512
+ # resp.sampling_target_documents[0].sampling_boost.boost_rate #=> Float
1513
+ # resp.sampling_target_documents[0].sampling_boost.boost_rate_ttl #=> Time
1487
1514
  # resp.last_rule_modification #=> Time
1488
1515
  # resp.unprocessed_statistics #=> Array
1489
1516
  # resp.unprocessed_statistics[0].rule_name #=> String
1490
1517
  # resp.unprocessed_statistics[0].error_code #=> String
1491
1518
  # resp.unprocessed_statistics[0].message #=> String
1519
+ # resp.unprocessed_boost_statistics #=> Array
1520
+ # resp.unprocessed_boost_statistics[0].rule_name #=> String
1521
+ # resp.unprocessed_boost_statistics[0].error_code #=> String
1522
+ # resp.unprocessed_boost_statistics[0].message #=> String
1492
1523
  #
1493
1524
  # @see http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/GetSamplingTargets AWS API Documentation
1494
1525
  #
@@ -1786,9 +1817,9 @@ module Aws::XRay
1786
1817
  end
1787
1818
 
1788
1819
  # Retrieves the current destination of data sent to `PutTraceSegments`
1789
- # and *OpenTelemetry* API. The Transaction Search feature requires a
1790
- # CloudWatchLogs destination. For more information, see [Transaction
1791
- # Search][1] and [OpenTelemetry][2].
1820
+ # and *OpenTelemetry protocol (OTLP)* endpoint. The Transaction Search
1821
+ # feature requires a CloudWatchLogs destination. For more information,
1822
+ # see [Transaction Search][1] and [OpenTelemetry][2].
1792
1823
  #
1793
1824
  #
1794
1825
  #
@@ -2038,7 +2069,7 @@ module Aws::XRay
2038
2069
  # CloudWatch log group generated by Transaction Search. For information
2039
2070
  # on what each trace returns, see [BatchGetTraces][1].
2040
2071
  #
2041
- # This API does not initiate a retrieval job. To start a trace
2072
+ # This API does not initiate a retrieval process. To start a trace
2042
2073
  # retrieval, use `StartTraceRetrieval`, which generates the required
2043
2074
  # `RetrievalToken`.
2044
2075
  #
@@ -2047,12 +2078,12 @@ module Aws::XRay
2047
2078
  # access the full list of traces.
2048
2079
  #
2049
2080
  # For cross-account observability, this API can retrieve traces from
2050
- # linked accounts when CloudWatch log is the destination across relevant
2051
- # accounts. For more details, see [CloudWatch cross-account
2081
+ # linked accounts when CloudWatch log is set as the destination across
2082
+ # relevant accounts. For more details, see [CloudWatch cross-account
2052
2083
  # observability][2].
2053
2084
  #
2054
- # For retrieving data from X-Ray directly as opposed to the
2055
- # Transaction-Search Log group, see [BatchGetTraces][1].
2085
+ # For retrieving data from X-Ray directly as opposed to the Transaction
2086
+ # Search generated log group, see [BatchGetTraces][1].
2056
2087
  #
2057
2088
  #
2058
2089
  #
@@ -2404,9 +2435,8 @@ module Aws::XRay
2404
2435
  end
2405
2436
 
2406
2437
  # Initiates a trace retrieval process using the specified time range and
2407
- # for the give trace IDs on Transaction Search generated by the
2408
- # CloudWatch log group. For more information, see [Transaction
2409
- # Search][1].
2438
+ # for the given trace IDs in the Transaction Search generated CloudWatch
2439
+ # log group. For more information, see [Transaction Search][1].
2410
2440
  #
2411
2441
  # API returns a `RetrievalToken`, which can be used with
2412
2442
  # `ListRetrievedTraces` or `GetRetrievedTracesGraph` to fetch results.
@@ -2678,6 +2708,10 @@ module Aws::XRay
2678
2708
  # attributes: {
2679
2709
  # "AttributeKey" => "AttributeValue",
2680
2710
  # },
2711
+ # sampling_rate_boost: {
2712
+ # max_rate: 1.0, # required
2713
+ # cooldown_window_minutes: 1, # required
2714
+ # },
2681
2715
  # },
2682
2716
  # })
2683
2717
  #
@@ -2697,6 +2731,8 @@ module Aws::XRay
2697
2731
  # resp.sampling_rule_record.sampling_rule.version #=> Integer
2698
2732
  # resp.sampling_rule_record.sampling_rule.attributes #=> Hash
2699
2733
  # resp.sampling_rule_record.sampling_rule.attributes["AttributeKey"] #=> <Hash,Array,String,Numeric,Boolean,IO,Set,nil>
2734
+ # resp.sampling_rule_record.sampling_rule.sampling_rate_boost.max_rate #=> Float
2735
+ # resp.sampling_rule_record.sampling_rule.sampling_rate_boost.cooldown_window_minutes #=> Integer
2700
2736
  # resp.sampling_rule_record.created_at #=> Time
2701
2737
  # resp.sampling_rule_record.modified_at #=> Time
2702
2738
  #
@@ -2763,7 +2799,7 @@ module Aws::XRay
2763
2799
  tracer: tracer
2764
2800
  )
2765
2801
  context[:gem_name] = 'aws-sdk-xray'
2766
- context[:gem_version] = '1.89.0'
2802
+ context[:gem_version] = '1.90.0'
2767
2803
  Seahorse::Client::Request.new(handlers, context)
2768
2804
  end
2769
2805
 
@@ -23,6 +23,7 @@ module Aws::XRay
23
23
  Annotations = Shapes::MapShape.new(name: 'Annotations')
24
24
  AnomalousService = Shapes::StructureShape.new(name: 'AnomalousService')
25
25
  AnomalousServiceList = Shapes::ListShape.new(name: 'AnomalousServiceList')
26
+ AnomalyCount = Shapes::IntegerShape.new(name: 'AnomalyCount')
26
27
  AttributeKey = Shapes::StringShape.new(name: 'AttributeKey')
27
28
  AttributeMap = Shapes::MapShape.new(name: 'AttributeMap')
28
29
  AttributeValue = Shapes::StringShape.new(name: 'AttributeValue')
@@ -35,6 +36,7 @@ module Aws::XRay
35
36
  CancelTraceRetrievalRequest = Shapes::StructureShape.new(name: 'CancelTraceRetrievalRequest')
36
37
  CancelTraceRetrievalResult = Shapes::StructureShape.new(name: 'CancelTraceRetrievalResult')
37
38
  ClientID = Shapes::StringShape.new(name: 'ClientID')
39
+ CooldownWindowMinutes = Shapes::IntegerShape.new(name: 'CooldownWindowMinutes')
38
40
  CreateGroupRequest = Shapes::StructureShape.new(name: 'CreateGroupRequest')
39
41
  CreateGroupResult = Shapes::StructureShape.new(name: 'CreateGroupResult')
40
42
  CreateSamplingRuleRequest = Shapes::StructureShape.new(name: 'CreateSamplingRuleRequest')
@@ -156,6 +158,7 @@ module Aws::XRay
156
158
  ListTagsForResourceResponse = Shapes::StructureShape.new(name: 'ListTagsForResourceResponse')
157
159
  LockoutPreventionException = Shapes::StructureShape.new(name: 'LockoutPreventionException')
158
160
  MalformedPolicyDocumentException = Shapes::StructureShape.new(name: 'MalformedPolicyDocumentException')
161
+ MaxRate = Shapes::FloatShape.new(name: 'MaxRate')
159
162
  NullableBoolean = Shapes::BooleanShape.new(name: 'NullableBoolean')
160
163
  NullableDouble = Shapes::FloatShape.new(name: 'NullableDouble')
161
164
  NullableInteger = Shapes::IntegerShape.new(name: 'NullableInteger')
@@ -200,7 +203,12 @@ module Aws::XRay
200
203
  RootCauseExceptions = Shapes::ListShape.new(name: 'RootCauseExceptions')
201
204
  RuleLimitExceededException = Shapes::StructureShape.new(name: 'RuleLimitExceededException')
202
205
  RuleName = Shapes::StringShape.new(name: 'RuleName')
206
+ SampledAnomalyCount = Shapes::IntegerShape.new(name: 'SampledAnomalyCount')
203
207
  SampledCount = Shapes::IntegerShape.new(name: 'SampledCount')
208
+ SamplingBoost = Shapes::StructureShape.new(name: 'SamplingBoost')
209
+ SamplingBoostStatisticsDocument = Shapes::StructureShape.new(name: 'SamplingBoostStatisticsDocument')
210
+ SamplingBoostStatisticsDocumentList = Shapes::ListShape.new(name: 'SamplingBoostStatisticsDocumentList')
211
+ SamplingRateBoost = Shapes::StructureShape.new(name: 'SamplingRateBoost')
204
212
  SamplingRule = Shapes::StructureShape.new(name: 'SamplingRule')
205
213
  SamplingRuleRecord = Shapes::StructureShape.new(name: 'SamplingRuleRecord')
206
214
  SamplingRuleRecordList = Shapes::ListShape.new(name: 'SamplingRuleRecordList')
@@ -248,6 +256,7 @@ module Aws::XRay
248
256
  Timestamp = Shapes::TimestampShape.new(name: 'Timestamp')
249
257
  Token = Shapes::StringShape.new(name: 'Token')
250
258
  TooManyTagsException = Shapes::StructureShape.new(name: 'TooManyTagsException')
259
+ TotalCount = Shapes::IntegerShape.new(name: 'TotalCount')
251
260
  Trace = Shapes::StructureShape.new(name: 'Trace')
252
261
  TraceAvailabilityZones = Shapes::ListShape.new(name: 'TraceAvailabilityZones')
253
262
  TraceFormatType = Shapes::StringShape.new(name: 'TraceFormatType')
@@ -547,11 +556,13 @@ module Aws::XRay
547
556
  GetSamplingStatisticSummariesResult.struct_class = Types::GetSamplingStatisticSummariesResult
548
557
 
549
558
  GetSamplingTargetsRequest.add_member(:sampling_statistics_documents, Shapes::ShapeRef.new(shape: SamplingStatisticsDocumentList, required: true, location_name: "SamplingStatisticsDocuments"))
559
+ GetSamplingTargetsRequest.add_member(:sampling_boost_statistics_documents, Shapes::ShapeRef.new(shape: SamplingBoostStatisticsDocumentList, location_name: "SamplingBoostStatisticsDocuments"))
550
560
  GetSamplingTargetsRequest.struct_class = Types::GetSamplingTargetsRequest
551
561
 
552
562
  GetSamplingTargetsResult.add_member(:sampling_target_documents, Shapes::ShapeRef.new(shape: SamplingTargetDocumentList, location_name: "SamplingTargetDocuments"))
553
563
  GetSamplingTargetsResult.add_member(:last_rule_modification, Shapes::ShapeRef.new(shape: Timestamp, location_name: "LastRuleModification"))
554
564
  GetSamplingTargetsResult.add_member(:unprocessed_statistics, Shapes::ShapeRef.new(shape: UnprocessedStatisticsList, location_name: "UnprocessedStatistics"))
565
+ GetSamplingTargetsResult.add_member(:unprocessed_boost_statistics, Shapes::ShapeRef.new(shape: UnprocessedStatisticsList, location_name: "UnprocessedBoostStatistics"))
555
566
  GetSamplingTargetsResult.struct_class = Types::GetSamplingTargetsResult
556
567
 
557
568
  GetServiceGraphRequest.add_member(:start_time, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "StartTime"))
@@ -875,6 +886,24 @@ module Aws::XRay
875
886
  RuleLimitExceededException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
876
887
  RuleLimitExceededException.struct_class = Types::RuleLimitExceededException
877
888
 
889
+ SamplingBoost.add_member(:boost_rate, Shapes::ShapeRef.new(shape: Double, required: true, location_name: "BoostRate"))
890
+ SamplingBoost.add_member(:boost_rate_ttl, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "BoostRateTTL"))
891
+ SamplingBoost.struct_class = Types::SamplingBoost
892
+
893
+ SamplingBoostStatisticsDocument.add_member(:rule_name, Shapes::ShapeRef.new(shape: RuleName, required: true, location_name: "RuleName"))
894
+ SamplingBoostStatisticsDocument.add_member(:service_name, Shapes::ShapeRef.new(shape: ServiceName, required: true, location_name: "ServiceName"))
895
+ SamplingBoostStatisticsDocument.add_member(:timestamp, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "Timestamp"))
896
+ SamplingBoostStatisticsDocument.add_member(:anomaly_count, Shapes::ShapeRef.new(shape: AnomalyCount, required: true, location_name: "AnomalyCount"))
897
+ SamplingBoostStatisticsDocument.add_member(:total_count, Shapes::ShapeRef.new(shape: TotalCount, required: true, location_name: "TotalCount"))
898
+ SamplingBoostStatisticsDocument.add_member(:sampled_anomaly_count, Shapes::ShapeRef.new(shape: SampledAnomalyCount, required: true, location_name: "SampledAnomalyCount"))
899
+ SamplingBoostStatisticsDocument.struct_class = Types::SamplingBoostStatisticsDocument
900
+
901
+ SamplingBoostStatisticsDocumentList.member = Shapes::ShapeRef.new(shape: SamplingBoostStatisticsDocument)
902
+
903
+ SamplingRateBoost.add_member(:max_rate, Shapes::ShapeRef.new(shape: MaxRate, required: true, location_name: "MaxRate"))
904
+ SamplingRateBoost.add_member(:cooldown_window_minutes, Shapes::ShapeRef.new(shape: CooldownWindowMinutes, required: true, location_name: "CooldownWindowMinutes"))
905
+ SamplingRateBoost.struct_class = Types::SamplingRateBoost
906
+
878
907
  SamplingRule.add_member(:rule_name, Shapes::ShapeRef.new(shape: RuleName, location_name: "RuleName"))
879
908
  SamplingRule.add_member(:rule_arn, Shapes::ShapeRef.new(shape: String, location_name: "RuleARN"))
880
909
  SamplingRule.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ResourceARN, required: true, location_name: "ResourceARN"))
@@ -888,6 +917,7 @@ module Aws::XRay
888
917
  SamplingRule.add_member(:url_path, Shapes::ShapeRef.new(shape: URLPath, required: true, location_name: "URLPath"))
889
918
  SamplingRule.add_member(:version, Shapes::ShapeRef.new(shape: Version, required: true, location_name: "Version"))
890
919
  SamplingRule.add_member(:attributes, Shapes::ShapeRef.new(shape: AttributeMap, location_name: "Attributes"))
920
+ SamplingRule.add_member(:sampling_rate_boost, Shapes::ShapeRef.new(shape: SamplingRateBoost, location_name: "SamplingRateBoost"))
891
921
  SamplingRule.struct_class = Types::SamplingRule
892
922
 
893
923
  SamplingRuleRecord.add_member(:sampling_rule, Shapes::ShapeRef.new(shape: SamplingRule, location_name: "SamplingRule"))
@@ -909,6 +939,7 @@ module Aws::XRay
909
939
  SamplingRuleUpdate.add_member(:http_method, Shapes::ShapeRef.new(shape: HTTPMethod, location_name: "HTTPMethod"))
910
940
  SamplingRuleUpdate.add_member(:url_path, Shapes::ShapeRef.new(shape: URLPath, location_name: "URLPath"))
911
941
  SamplingRuleUpdate.add_member(:attributes, Shapes::ShapeRef.new(shape: AttributeMap, location_name: "Attributes"))
942
+ SamplingRuleUpdate.add_member(:sampling_rate_boost, Shapes::ShapeRef.new(shape: SamplingRateBoost, location_name: "SamplingRateBoost"))
912
943
  SamplingRuleUpdate.struct_class = Types::SamplingRuleUpdate
913
944
 
914
945
  SamplingStatisticSummary.add_member(:rule_name, Shapes::ShapeRef.new(shape: String, location_name: "RuleName"))
@@ -939,6 +970,7 @@ module Aws::XRay
939
970
  SamplingTargetDocument.add_member(:reservoir_quota, Shapes::ShapeRef.new(shape: NullableInteger, location_name: "ReservoirQuota"))
940
971
  SamplingTargetDocument.add_member(:reservoir_quota_ttl, Shapes::ShapeRef.new(shape: Timestamp, location_name: "ReservoirQuotaTTL"))
941
972
  SamplingTargetDocument.add_member(:interval, Shapes::ShapeRef.new(shape: NullableInteger, location_name: "Interval"))
973
+ SamplingTargetDocument.add_member(:sampling_boost, Shapes::ShapeRef.new(shape: SamplingBoost, location_name: "SamplingBoost"))
942
974
  SamplingTargetDocument.struct_class = Types::SamplingTargetDocument
943
975
 
944
976
  SamplingTargetDocumentList.member = Shapes::ShapeRef.new(shape: SamplingTargetDocument)
@@ -1158,10 +1158,16 @@ module Aws::XRay
1158
1158
  # requests.
1159
1159
  # @return [Array<Types::SamplingStatisticsDocument>]
1160
1160
  #
1161
+ # @!attribute [rw] sampling_boost_statistics_documents
1162
+ # Information about rules that the service is using to boost sampling
1163
+ # rate.
1164
+ # @return [Array<Types::SamplingBoostStatisticsDocument>]
1165
+ #
1161
1166
  # @see http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/GetSamplingTargetsRequest AWS API Documentation
1162
1167
  #
1163
1168
  class GetSamplingTargetsRequest < Struct.new(
1164
- :sampling_statistics_documents)
1169
+ :sampling_statistics_documents,
1170
+ :sampling_boost_statistics_documents)
1165
1171
  SENSITIVE = []
1166
1172
  include Aws::Structure
1167
1173
  end
@@ -1190,12 +1196,22 @@ module Aws::XRay
1190
1196
  # [1]: https://docs.aws.amazon.com/xray/latest/api/API_SamplingStatisticsDocument.html
1191
1197
  # @return [Array<Types::UnprocessedStatistics>]
1192
1198
  #
1199
+ # @!attribute [rw] unprocessed_boost_statistics
1200
+ # Information about [SamplingBoostStatisticsDocument][1] that X-Ray
1201
+ # could not process.
1202
+ #
1203
+ #
1204
+ #
1205
+ # [1]: https://docs.aws.amazon.com/xray/latest/api/API_SamplingBoostStatisticsDocument.html
1206
+ # @return [Array<Types::UnprocessedStatistics>]
1207
+ #
1193
1208
  # @see http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/GetSamplingTargetsResult AWS API Documentation
1194
1209
  #
1195
1210
  class GetSamplingTargetsResult < Struct.new(
1196
1211
  :sampling_target_documents,
1197
1212
  :last_rule_modification,
1198
- :unprocessed_statistics)
1213
+ :unprocessed_statistics,
1214
+ :unprocessed_boost_statistics)
1199
1215
  SENSITIVE = []
1200
1216
  include Aws::Structure
1201
1217
  end
@@ -2652,6 +2668,101 @@ module Aws::XRay
2652
2668
  include Aws::Structure
2653
2669
  end
2654
2670
 
2671
+ # Temporary boost sampling rate. X-Ray calculates sampling boost for
2672
+ # each service based on the recent sampling boost stats of all services
2673
+ # that called [GetSamplingTargets][1].
2674
+ #
2675
+ #
2676
+ #
2677
+ # [1]: https://docs.aws.amazon.com/xray/latest/api/API_GetSamplingTargets.html
2678
+ #
2679
+ # @!attribute [rw] boost_rate
2680
+ # The calculated sampling boost rate for this service
2681
+ # @return [Float]
2682
+ #
2683
+ # @!attribute [rw] boost_rate_ttl
2684
+ # When the sampling boost expires.
2685
+ # @return [Time]
2686
+ #
2687
+ # @see http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/SamplingBoost AWS API Documentation
2688
+ #
2689
+ class SamplingBoost < Struct.new(
2690
+ :boost_rate,
2691
+ :boost_rate_ttl)
2692
+ SENSITIVE = []
2693
+ include Aws::Structure
2694
+ end
2695
+
2696
+ # Request anomaly stats for a single rule from a service. Results are
2697
+ # for the last 10 seconds unless the service has been assigned a longer
2698
+ # reporting interval after a previous call to [GetSamplingTargets][1].
2699
+ #
2700
+ #
2701
+ #
2702
+ # [1]: https://docs.aws.amazon.com/xray/latest/api/API_GetSamplingTargets.html
2703
+ #
2704
+ # @!attribute [rw] rule_name
2705
+ # The name of the sampling rule.
2706
+ # @return [String]
2707
+ #
2708
+ # @!attribute [rw] service_name
2709
+ # Matches the `name` that the service uses to identify itself in
2710
+ # segments.
2711
+ # @return [String]
2712
+ #
2713
+ # @!attribute [rw] timestamp
2714
+ # The current time.
2715
+ # @return [Time]
2716
+ #
2717
+ # @!attribute [rw] anomaly_count
2718
+ # The number of requests with anomaly.
2719
+ # @return [Integer]
2720
+ #
2721
+ # @!attribute [rw] total_count
2722
+ # The number of requests that associated to the rule.
2723
+ # @return [Integer]
2724
+ #
2725
+ # @!attribute [rw] sampled_anomaly_count
2726
+ # The number of requests with anomaly recorded.
2727
+ # @return [Integer]
2728
+ #
2729
+ # @see http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/SamplingBoostStatisticsDocument AWS API Documentation
2730
+ #
2731
+ class SamplingBoostStatisticsDocument < Struct.new(
2732
+ :rule_name,
2733
+ :service_name,
2734
+ :timestamp,
2735
+ :anomaly_count,
2736
+ :total_count,
2737
+ :sampled_anomaly_count)
2738
+ SENSITIVE = []
2739
+ include Aws::Structure
2740
+ end
2741
+
2742
+ # Enable temporary sampling rate increases when you detect anomalies to
2743
+ # improve visibility.
2744
+ #
2745
+ # @!attribute [rw] max_rate
2746
+ # Defines max temporary sampling rate to apply when a boost is
2747
+ # triggered. Calculated boost rate by X-Ray will be less than or equal
2748
+ # to this max rate.
2749
+ # @return [Float]
2750
+ #
2751
+ # @!attribute [rw] cooldown_window_minutes
2752
+ # Sets the time window (in minutes) in which only one sampling rate
2753
+ # boost can be triggered. After a boost occurs, no further boosts are
2754
+ # allowed until the next window.
2755
+ # @return [Integer]
2756
+ #
2757
+ # @see http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/SamplingRateBoost AWS API Documentation
2758
+ #
2759
+ class SamplingRateBoost < Struct.new(
2760
+ :max_rate,
2761
+ :cooldown_window_minutes)
2762
+ SENSITIVE = []
2763
+ include Aws::Structure
2764
+ end
2765
+
2655
2766
  # A sampling rule that services use to decide whether to instrument a
2656
2767
  # request. Rule fields can match properties of the service, or
2657
2768
  # properties of a request. The service can ignore rules that don't
@@ -2717,6 +2828,12 @@ module Aws::XRay
2717
2828
  # Matches attributes derived from the request.
2718
2829
  # @return [Hash<String,String>]
2719
2830
  #
2831
+ # @!attribute [rw] sampling_rate_boost
2832
+ # Specifies the multiplier applied to the base sampling rate. This
2833
+ # boost allows you to temporarily increase sampling without changing
2834
+ # the rule's configuration.
2835
+ # @return [Types::SamplingRateBoost]
2836
+ #
2720
2837
  # @see http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/SamplingRule AWS API Documentation
2721
2838
  #
2722
2839
  class SamplingRule < Struct.new(
@@ -2732,7 +2849,8 @@ module Aws::XRay
2732
2849
  :http_method,
2733
2850
  :url_path,
2734
2851
  :version,
2735
- :attributes)
2852
+ :attributes,
2853
+ :sampling_rate_boost)
2736
2854
  SENSITIVE = []
2737
2855
  include Aws::Structure
2738
2856
  end
@@ -2823,6 +2941,12 @@ module Aws::XRay
2823
2941
  # Matches attributes derived from the request.
2824
2942
  # @return [Hash<String,String>]
2825
2943
  #
2944
+ # @!attribute [rw] sampling_rate_boost
2945
+ # Specifies the multiplier applied to the base sampling rate. This
2946
+ # boost allows you to temporarily increase sampling without changing
2947
+ # the rule's configuration.
2948
+ # @return [Types::SamplingRateBoost]
2949
+ #
2826
2950
  # @see http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/SamplingRuleUpdate AWS API Documentation
2827
2951
  #
2828
2952
  class SamplingRuleUpdate < Struct.new(
@@ -2837,7 +2961,8 @@ module Aws::XRay
2837
2961
  :service_type,
2838
2962
  :http_method,
2839
2963
  :url_path,
2840
- :attributes)
2964
+ :attributes,
2965
+ :sampling_rate_boost)
2841
2966
  SENSITIVE = []
2842
2967
  include Aws::Structure
2843
2968
  end
@@ -2973,6 +3098,10 @@ module Aws::XRay
2973
3098
  # sampling targets again.
2974
3099
  # @return [Integer]
2975
3100
  #
3101
+ # @!attribute [rw] sampling_boost
3102
+ # The sampling boost that X-Ray allocated for this service.
3103
+ # @return [Types::SamplingBoost]
3104
+ #
2976
3105
  # @see http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/SamplingTargetDocument AWS API Documentation
2977
3106
  #
2978
3107
  class SamplingTargetDocument < Struct.new(
@@ -2980,7 +3109,8 @@ module Aws::XRay
2980
3109
  :fixed_rate,
2981
3110
  :reservoir_quota,
2982
3111
  :reservoir_quota_ttl,
2983
- :interval)
3112
+ :interval,
3113
+ :sampling_boost)
2984
3114
  SENSITIVE = []
2985
3115
  include Aws::Structure
2986
3116
  end
@@ -3418,8 +3548,9 @@ module Aws::XRay
3418
3548
  # @return [String]
3419
3549
  #
3420
3550
  # @!attribute [rw] duration
3421
- # The length of time in seconds between the start time of the root
3422
- # segment and the end time of the last segment that completed.
3551
+ # The length of time in seconds between the start time of the earliest
3552
+ # segment that started and the end time of the last segment that
3553
+ # completed.
3423
3554
  # @return [Float]
3424
3555
  #
3425
3556
  # @!attribute [rw] limit_exceeded
@@ -3462,8 +3593,9 @@ module Aws::XRay
3462
3593
  # @return [Time]
3463
3594
  #
3464
3595
  # @!attribute [rw] duration
3465
- # The length of time in seconds between the start time of the root
3466
- # segment and the end time of the last segment that completed.
3596
+ # The length of time in seconds between the start time of the earliest
3597
+ # segment that started and the end time of the last segment that
3598
+ # completed.
3467
3599
  # @return [Float]
3468
3600
  #
3469
3601
  # @!attribute [rw] response_time
data/lib/aws-sdk-xray.rb CHANGED
@@ -54,7 +54,7 @@ module Aws::XRay
54
54
  autoload :EndpointProvider, 'aws-sdk-xray/endpoint_provider'
55
55
  autoload :Endpoints, 'aws-sdk-xray/endpoints'
56
56
 
57
- GEM_VERSION = '1.89.0'
57
+ GEM_VERSION = '1.90.0'
58
58
 
59
59
  end
60
60
 
data/sig/client.rbs CHANGED
@@ -140,7 +140,11 @@ module Aws
140
140
  http_method: ::String,
141
141
  url_path: ::String,
142
142
  version: ::Integer,
143
- attributes: Hash[::String, ::String]?
143
+ attributes: Hash[::String, ::String]?,
144
+ sampling_rate_boost: {
145
+ max_rate: ::Float,
146
+ cooldown_window_minutes: ::Integer
147
+ }?
144
148
  },
145
149
  ?tags: Array[
146
150
  {
@@ -323,6 +327,7 @@ module Aws
323
327
  def sampling_target_documents: () -> ::Array[Types::SamplingTargetDocument]
324
328
  def last_rule_modification: () -> ::Time
325
329
  def unprocessed_statistics: () -> ::Array[Types::UnprocessedStatistics]
330
+ def unprocessed_boost_statistics: () -> ::Array[Types::UnprocessedStatistics]
326
331
  end
327
332
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/XRay/Client.html#get_sampling_targets-instance_method
328
333
  def get_sampling_targets: (
@@ -335,6 +340,16 @@ module Aws
335
340
  sampled_count: ::Integer,
336
341
  borrow_count: ::Integer?
337
342
  },
343
+ ],
344
+ ?sampling_boost_statistics_documents: Array[
345
+ {
346
+ rule_name: ::String,
347
+ service_name: ::String,
348
+ timestamp: ::Time,
349
+ anomaly_count: ::Integer,
350
+ total_count: ::Integer,
351
+ sampled_anomaly_count: ::Integer
352
+ },
338
353
  ]
339
354
  ) -> _GetSamplingTargetsResponseSuccess
340
355
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetSamplingTargetsResponseSuccess
@@ -606,7 +621,11 @@ module Aws
606
621
  service_type: ::String?,
607
622
  http_method: ::String?,
608
623
  url_path: ::String?,
609
- attributes: Hash[::String, ::String]?
624
+ attributes: Hash[::String, ::String]?,
625
+ sampling_rate_boost: {
626
+ max_rate: ::Float,
627
+ cooldown_window_minutes: ::Integer
628
+ }?
610
629
  }
611
630
  ) -> _UpdateSamplingRuleResponseSuccess
612
631
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateSamplingRuleResponseSuccess
data/sig/types.rbs CHANGED
@@ -346,6 +346,7 @@ module Aws::XRay
346
346
 
347
347
  class GetSamplingTargetsRequest
348
348
  attr_accessor sampling_statistics_documents: ::Array[Types::SamplingStatisticsDocument]
349
+ attr_accessor sampling_boost_statistics_documents: ::Array[Types::SamplingBoostStatisticsDocument]
349
350
  SENSITIVE: []
350
351
  end
351
352
 
@@ -353,6 +354,7 @@ module Aws::XRay
353
354
  attr_accessor sampling_target_documents: ::Array[Types::SamplingTargetDocument]
354
355
  attr_accessor last_rule_modification: ::Time
355
356
  attr_accessor unprocessed_statistics: ::Array[Types::UnprocessedStatistics]
357
+ attr_accessor unprocessed_boost_statistics: ::Array[Types::UnprocessedStatistics]
356
358
  SENSITIVE: []
357
359
  end
358
360
 
@@ -765,6 +767,28 @@ module Aws::XRay
765
767
  SENSITIVE: []
766
768
  end
767
769
 
770
+ class SamplingBoost
771
+ attr_accessor boost_rate: ::Float
772
+ attr_accessor boost_rate_ttl: ::Time
773
+ SENSITIVE: []
774
+ end
775
+
776
+ class SamplingBoostStatisticsDocument
777
+ attr_accessor rule_name: ::String
778
+ attr_accessor service_name: ::String
779
+ attr_accessor timestamp: ::Time
780
+ attr_accessor anomaly_count: ::Integer
781
+ attr_accessor total_count: ::Integer
782
+ attr_accessor sampled_anomaly_count: ::Integer
783
+ SENSITIVE: []
784
+ end
785
+
786
+ class SamplingRateBoost
787
+ attr_accessor max_rate: ::Float
788
+ attr_accessor cooldown_window_minutes: ::Integer
789
+ SENSITIVE: []
790
+ end
791
+
768
792
  class SamplingRule
769
793
  attr_accessor rule_name: ::String
770
794
  attr_accessor rule_arn: ::String
@@ -779,6 +803,7 @@ module Aws::XRay
779
803
  attr_accessor url_path: ::String
780
804
  attr_accessor version: ::Integer
781
805
  attr_accessor attributes: ::Hash[::String, ::String]
806
+ attr_accessor sampling_rate_boost: Types::SamplingRateBoost
782
807
  SENSITIVE: []
783
808
  end
784
809
 
@@ -802,6 +827,7 @@ module Aws::XRay
802
827
  attr_accessor http_method: ::String
803
828
  attr_accessor url_path: ::String
804
829
  attr_accessor attributes: ::Hash[::String, ::String]
830
+ attr_accessor sampling_rate_boost: Types::SamplingRateBoost
805
831
  SENSITIVE: []
806
832
  end
807
833
 
@@ -836,6 +862,7 @@ module Aws::XRay
836
862
  attr_accessor reservoir_quota: ::Integer
837
863
  attr_accessor reservoir_quota_ttl: ::Time
838
864
  attr_accessor interval: ::Integer
865
+ attr_accessor sampling_boost: Types::SamplingBoost
839
866
  SENSITIVE: []
840
867
  end
841
868
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-xray
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.89.0
4
+ version: 1.90.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services