aws-sdk-xray 1.3.0 → 1.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws-sdk-xray.rb +1 -1
- data/lib/aws-sdk-xray/client.rb +306 -1
- data/lib/aws-sdk-xray/client_api.rb +218 -0
- data/lib/aws-sdk-xray/types.rb +620 -3
- metadata +2 -2
data/lib/aws-sdk-xray/types.rb
CHANGED
@@ -142,6 +142,88 @@ module Aws::XRay
|
|
142
142
|
include Aws::Structure
|
143
143
|
end
|
144
144
|
|
145
|
+
# @note When making an API call, you may pass CreateSamplingRuleRequest
|
146
|
+
# data as a hash:
|
147
|
+
#
|
148
|
+
# {
|
149
|
+
# sampling_rule: { # required
|
150
|
+
# rule_name: "RuleName",
|
151
|
+
# rule_arn: "String",
|
152
|
+
# resource_arn: "ResourceARN", # required
|
153
|
+
# priority: 1, # required
|
154
|
+
# fixed_rate: 1.0, # required
|
155
|
+
# reservoir_size: 1, # required
|
156
|
+
# service_name: "ServiceName", # required
|
157
|
+
# service_type: "ServiceType", # required
|
158
|
+
# host: "Host", # required
|
159
|
+
# http_method: "HTTPMethod", # required
|
160
|
+
# url_path: "URLPath", # required
|
161
|
+
# version: 1, # required
|
162
|
+
# attributes: {
|
163
|
+
# "AttributeKey" => "AttributeValue",
|
164
|
+
# },
|
165
|
+
# },
|
166
|
+
# }
|
167
|
+
#
|
168
|
+
# @!attribute [rw] sampling_rule
|
169
|
+
# The rule definition.
|
170
|
+
# @return [Types::SamplingRule]
|
171
|
+
#
|
172
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/CreateSamplingRuleRequest AWS API Documentation
|
173
|
+
#
|
174
|
+
class CreateSamplingRuleRequest < Struct.new(
|
175
|
+
:sampling_rule)
|
176
|
+
include Aws::Structure
|
177
|
+
end
|
178
|
+
|
179
|
+
# @!attribute [rw] sampling_rule_record
|
180
|
+
# The saved rule definition and metadata.
|
181
|
+
# @return [Types::SamplingRuleRecord]
|
182
|
+
#
|
183
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/CreateSamplingRuleResult AWS API Documentation
|
184
|
+
#
|
185
|
+
class CreateSamplingRuleResult < Struct.new(
|
186
|
+
:sampling_rule_record)
|
187
|
+
include Aws::Structure
|
188
|
+
end
|
189
|
+
|
190
|
+
# @note When making an API call, you may pass DeleteSamplingRuleRequest
|
191
|
+
# data as a hash:
|
192
|
+
#
|
193
|
+
# {
|
194
|
+
# rule_name: "String",
|
195
|
+
# rule_arn: "String",
|
196
|
+
# }
|
197
|
+
#
|
198
|
+
# @!attribute [rw] rule_name
|
199
|
+
# The name of the sampling rule. Specify a rule by either name or ARN,
|
200
|
+
# but not both.
|
201
|
+
# @return [String]
|
202
|
+
#
|
203
|
+
# @!attribute [rw] rule_arn
|
204
|
+
# The ARN of the sampling rule. Specify a rule by either name or ARN,
|
205
|
+
# but not both.
|
206
|
+
# @return [String]
|
207
|
+
#
|
208
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/DeleteSamplingRuleRequest AWS API Documentation
|
209
|
+
#
|
210
|
+
class DeleteSamplingRuleRequest < Struct.new(
|
211
|
+
:rule_name,
|
212
|
+
:rule_arn)
|
213
|
+
include Aws::Structure
|
214
|
+
end
|
215
|
+
|
216
|
+
# @!attribute [rw] sampling_rule_record
|
217
|
+
# The deleted rule definition and metadata.
|
218
|
+
# @return [Types::SamplingRuleRecord]
|
219
|
+
#
|
220
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/DeleteSamplingRuleResult AWS API Documentation
|
221
|
+
#
|
222
|
+
class DeleteSamplingRuleResult < Struct.new(
|
223
|
+
:sampling_rule_record)
|
224
|
+
include Aws::Structure
|
225
|
+
end
|
226
|
+
|
145
227
|
# Information about a connection between two services.
|
146
228
|
#
|
147
229
|
# @!attribute [rw] reference_id
|
@@ -226,9 +308,8 @@ module Aws::XRay
|
|
226
308
|
# @return [String]
|
227
309
|
#
|
228
310
|
# @!attribute [rw] status
|
229
|
-
# The encryption status.
|
230
|
-
#
|
231
|
-
# before X-Ray starts encrypting data with the new key.
|
311
|
+
# The encryption status. While the status is `UPDATING`, X-Ray may
|
312
|
+
# encrypt data with a combination of the new and old settings.
|
232
313
|
# @return [String]
|
233
314
|
#
|
234
315
|
# @!attribute [rw] type
|
@@ -310,6 +391,128 @@ module Aws::XRay
|
|
310
391
|
include Aws::Structure
|
311
392
|
end
|
312
393
|
|
394
|
+
# @note When making an API call, you may pass GetSamplingRulesRequest
|
395
|
+
# data as a hash:
|
396
|
+
#
|
397
|
+
# {
|
398
|
+
# next_token: "String",
|
399
|
+
# }
|
400
|
+
#
|
401
|
+
# @!attribute [rw] next_token
|
402
|
+
# Pagination token. Not used.
|
403
|
+
# @return [String]
|
404
|
+
#
|
405
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/GetSamplingRulesRequest AWS API Documentation
|
406
|
+
#
|
407
|
+
class GetSamplingRulesRequest < Struct.new(
|
408
|
+
:next_token)
|
409
|
+
include Aws::Structure
|
410
|
+
end
|
411
|
+
|
412
|
+
# @!attribute [rw] sampling_rule_records
|
413
|
+
# Rule definitions and metadata.
|
414
|
+
# @return [Array<Types::SamplingRuleRecord>]
|
415
|
+
#
|
416
|
+
# @!attribute [rw] next_token
|
417
|
+
# Pagination token. Not used.
|
418
|
+
# @return [String]
|
419
|
+
#
|
420
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/GetSamplingRulesResult AWS API Documentation
|
421
|
+
#
|
422
|
+
class GetSamplingRulesResult < Struct.new(
|
423
|
+
:sampling_rule_records,
|
424
|
+
:next_token)
|
425
|
+
include Aws::Structure
|
426
|
+
end
|
427
|
+
|
428
|
+
# @note When making an API call, you may pass GetSamplingStatisticSummariesRequest
|
429
|
+
# data as a hash:
|
430
|
+
#
|
431
|
+
# {
|
432
|
+
# next_token: "String",
|
433
|
+
# }
|
434
|
+
#
|
435
|
+
# @!attribute [rw] next_token
|
436
|
+
# Pagination token. Not used.
|
437
|
+
# @return [String]
|
438
|
+
#
|
439
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/GetSamplingStatisticSummariesRequest AWS API Documentation
|
440
|
+
#
|
441
|
+
class GetSamplingStatisticSummariesRequest < Struct.new(
|
442
|
+
:next_token)
|
443
|
+
include Aws::Structure
|
444
|
+
end
|
445
|
+
|
446
|
+
# @!attribute [rw] sampling_statistic_summaries
|
447
|
+
# Information about the number of requests instrumented for each
|
448
|
+
# sampling rule.
|
449
|
+
# @return [Array<Types::SamplingStatisticSummary>]
|
450
|
+
#
|
451
|
+
# @!attribute [rw] next_token
|
452
|
+
# Pagination token. Not used.
|
453
|
+
# @return [String]
|
454
|
+
#
|
455
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/GetSamplingStatisticSummariesResult AWS API Documentation
|
456
|
+
#
|
457
|
+
class GetSamplingStatisticSummariesResult < Struct.new(
|
458
|
+
:sampling_statistic_summaries,
|
459
|
+
:next_token)
|
460
|
+
include Aws::Structure
|
461
|
+
end
|
462
|
+
|
463
|
+
# @note When making an API call, you may pass GetSamplingTargetsRequest
|
464
|
+
# data as a hash:
|
465
|
+
#
|
466
|
+
# {
|
467
|
+
# sampling_statistics_documents: [ # required
|
468
|
+
# {
|
469
|
+
# rule_name: "RuleName", # required
|
470
|
+
# client_id: "ClientID", # required
|
471
|
+
# timestamp: Time.now, # required
|
472
|
+
# request_count: 1, # required
|
473
|
+
# sampled_count: 1, # required
|
474
|
+
# borrow_count: 1,
|
475
|
+
# },
|
476
|
+
# ],
|
477
|
+
# }
|
478
|
+
#
|
479
|
+
# @!attribute [rw] sampling_statistics_documents
|
480
|
+
# Information about rules that the service is using to sample
|
481
|
+
# requests.
|
482
|
+
# @return [Array<Types::SamplingStatisticsDocument>]
|
483
|
+
#
|
484
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/GetSamplingTargetsRequest AWS API Documentation
|
485
|
+
#
|
486
|
+
class GetSamplingTargetsRequest < Struct.new(
|
487
|
+
:sampling_statistics_documents)
|
488
|
+
include Aws::Structure
|
489
|
+
end
|
490
|
+
|
491
|
+
# @!attribute [rw] sampling_target_documents
|
492
|
+
# Updated rules that the service should use to sample requests.
|
493
|
+
# @return [Array<Types::SamplingTargetDocument>]
|
494
|
+
#
|
495
|
+
# @!attribute [rw] last_rule_modification
|
496
|
+
# The last time a user changed the sampling rule configuration. If the
|
497
|
+
# sampling rule configuration changed since the service last retrieved
|
498
|
+
# it, the service should call GetSamplingRules to get the latest
|
499
|
+
# version.
|
500
|
+
# @return [Time]
|
501
|
+
#
|
502
|
+
# @!attribute [rw] unprocessed_statistics
|
503
|
+
# Information about SamplingStatisticsDocument that X-Ray could not
|
504
|
+
# process.
|
505
|
+
# @return [Array<Types::UnprocessedStatistics>]
|
506
|
+
#
|
507
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/GetSamplingTargetsResult AWS API Documentation
|
508
|
+
#
|
509
|
+
class GetSamplingTargetsResult < Struct.new(
|
510
|
+
:sampling_target_documents,
|
511
|
+
:last_rule_modification,
|
512
|
+
:unprocessed_statistics)
|
513
|
+
include Aws::Structure
|
514
|
+
end
|
515
|
+
|
313
516
|
# @note When making an API call, you may pass GetServiceGraphRequest
|
314
517
|
# data as a hash:
|
315
518
|
#
|
@@ -667,6 +870,352 @@ module Aws::XRay
|
|
667
870
|
include Aws::Structure
|
668
871
|
end
|
669
872
|
|
873
|
+
# A sampling rule that services use to decide whether to instrument a
|
874
|
+
# request. Rule fields can match properties of the service, or
|
875
|
+
# properties of a request. The service can ignore rules that don't
|
876
|
+
# match its properties.
|
877
|
+
#
|
878
|
+
# @note When making an API call, you may pass SamplingRule
|
879
|
+
# data as a hash:
|
880
|
+
#
|
881
|
+
# {
|
882
|
+
# rule_name: "RuleName",
|
883
|
+
# rule_arn: "String",
|
884
|
+
# resource_arn: "ResourceARN", # required
|
885
|
+
# priority: 1, # required
|
886
|
+
# fixed_rate: 1.0, # required
|
887
|
+
# reservoir_size: 1, # required
|
888
|
+
# service_name: "ServiceName", # required
|
889
|
+
# service_type: "ServiceType", # required
|
890
|
+
# host: "Host", # required
|
891
|
+
# http_method: "HTTPMethod", # required
|
892
|
+
# url_path: "URLPath", # required
|
893
|
+
# version: 1, # required
|
894
|
+
# attributes: {
|
895
|
+
# "AttributeKey" => "AttributeValue",
|
896
|
+
# },
|
897
|
+
# }
|
898
|
+
#
|
899
|
+
# @!attribute [rw] rule_name
|
900
|
+
# The name of the sampling rule. Specify a rule by either name or ARN,
|
901
|
+
# but not both.
|
902
|
+
# @return [String]
|
903
|
+
#
|
904
|
+
# @!attribute [rw] rule_arn
|
905
|
+
# The ARN of the sampling rule. Specify a rule by either name or ARN,
|
906
|
+
# but not both.
|
907
|
+
# @return [String]
|
908
|
+
#
|
909
|
+
# @!attribute [rw] resource_arn
|
910
|
+
# Matches the ARN of the AWS resource on which the service runs.
|
911
|
+
# @return [String]
|
912
|
+
#
|
913
|
+
# @!attribute [rw] priority
|
914
|
+
# The priority of the sampling rule.
|
915
|
+
# @return [Integer]
|
916
|
+
#
|
917
|
+
# @!attribute [rw] fixed_rate
|
918
|
+
# The percentage of matching requests to instrument, after the
|
919
|
+
# reservoir is exhausted.
|
920
|
+
# @return [Float]
|
921
|
+
#
|
922
|
+
# @!attribute [rw] reservoir_size
|
923
|
+
# A fixed number of matching requests to instrument per second, prior
|
924
|
+
# to applying the fixed rate. The reservoir is not used directly by
|
925
|
+
# services, but applies to all services using the rule collectively.
|
926
|
+
# @return [Integer]
|
927
|
+
#
|
928
|
+
# @!attribute [rw] service_name
|
929
|
+
# Matches the `name` that the service uses to identify itself in
|
930
|
+
# segments.
|
931
|
+
# @return [String]
|
932
|
+
#
|
933
|
+
# @!attribute [rw] service_type
|
934
|
+
# Matches the `origin` that the service uses to identify its type in
|
935
|
+
# segments.
|
936
|
+
# @return [String]
|
937
|
+
#
|
938
|
+
# @!attribute [rw] host
|
939
|
+
# Matches the hostname from a request URL.
|
940
|
+
# @return [String]
|
941
|
+
#
|
942
|
+
# @!attribute [rw] http_method
|
943
|
+
# Matches the HTTP method of a request.
|
944
|
+
# @return [String]
|
945
|
+
#
|
946
|
+
# @!attribute [rw] url_path
|
947
|
+
# Matches the path from a request URL.
|
948
|
+
# @return [String]
|
949
|
+
#
|
950
|
+
# @!attribute [rw] version
|
951
|
+
# The version of the sampling rule format (`1`).
|
952
|
+
# @return [Integer]
|
953
|
+
#
|
954
|
+
# @!attribute [rw] attributes
|
955
|
+
# Matches attributes derived from the request.
|
956
|
+
# @return [Hash<String,String>]
|
957
|
+
#
|
958
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/SamplingRule AWS API Documentation
|
959
|
+
#
|
960
|
+
class SamplingRule < Struct.new(
|
961
|
+
:rule_name,
|
962
|
+
:rule_arn,
|
963
|
+
:resource_arn,
|
964
|
+
:priority,
|
965
|
+
:fixed_rate,
|
966
|
+
:reservoir_size,
|
967
|
+
:service_name,
|
968
|
+
:service_type,
|
969
|
+
:host,
|
970
|
+
:http_method,
|
971
|
+
:url_path,
|
972
|
+
:version,
|
973
|
+
:attributes)
|
974
|
+
include Aws::Structure
|
975
|
+
end
|
976
|
+
|
977
|
+
# A SamplingRule and its metadata.
|
978
|
+
#
|
979
|
+
# @!attribute [rw] sampling_rule
|
980
|
+
# The sampling rule.
|
981
|
+
# @return [Types::SamplingRule]
|
982
|
+
#
|
983
|
+
# @!attribute [rw] created_at
|
984
|
+
# When the rule was created.
|
985
|
+
# @return [Time]
|
986
|
+
#
|
987
|
+
# @!attribute [rw] modified_at
|
988
|
+
# When the rule was last modified.
|
989
|
+
# @return [Time]
|
990
|
+
#
|
991
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/SamplingRuleRecord AWS API Documentation
|
992
|
+
#
|
993
|
+
class SamplingRuleRecord < Struct.new(
|
994
|
+
:sampling_rule,
|
995
|
+
:created_at,
|
996
|
+
:modified_at)
|
997
|
+
include Aws::Structure
|
998
|
+
end
|
999
|
+
|
1000
|
+
# A document specifying changes to a sampling rule's configuration.
|
1001
|
+
#
|
1002
|
+
# @note When making an API call, you may pass SamplingRuleUpdate
|
1003
|
+
# data as a hash:
|
1004
|
+
#
|
1005
|
+
# {
|
1006
|
+
# rule_name: "RuleName",
|
1007
|
+
# rule_arn: "String",
|
1008
|
+
# resource_arn: "ResourceARN",
|
1009
|
+
# priority: 1,
|
1010
|
+
# fixed_rate: 1.0,
|
1011
|
+
# reservoir_size: 1,
|
1012
|
+
# host: "Host",
|
1013
|
+
# service_name: "ServiceName",
|
1014
|
+
# service_type: "ServiceType",
|
1015
|
+
# http_method: "HTTPMethod",
|
1016
|
+
# url_path: "URLPath",
|
1017
|
+
# attributes: {
|
1018
|
+
# "AttributeKey" => "AttributeValue",
|
1019
|
+
# },
|
1020
|
+
# }
|
1021
|
+
#
|
1022
|
+
# @!attribute [rw] rule_name
|
1023
|
+
# The name of the sampling rule. Specify a rule by either name or ARN,
|
1024
|
+
# but not both.
|
1025
|
+
# @return [String]
|
1026
|
+
#
|
1027
|
+
# @!attribute [rw] rule_arn
|
1028
|
+
# The ARN of the sampling rule. Specify a rule by either name or ARN,
|
1029
|
+
# but not both.
|
1030
|
+
# @return [String]
|
1031
|
+
#
|
1032
|
+
# @!attribute [rw] resource_arn
|
1033
|
+
# Matches the ARN of the AWS resource on which the service runs.
|
1034
|
+
# @return [String]
|
1035
|
+
#
|
1036
|
+
# @!attribute [rw] priority
|
1037
|
+
# The priority of the sampling rule.
|
1038
|
+
# @return [Integer]
|
1039
|
+
#
|
1040
|
+
# @!attribute [rw] fixed_rate
|
1041
|
+
# The percentage of matching requests to instrument, after the
|
1042
|
+
# reservoir is exhausted.
|
1043
|
+
# @return [Float]
|
1044
|
+
#
|
1045
|
+
# @!attribute [rw] reservoir_size
|
1046
|
+
# A fixed number of matching requests to instrument per second, prior
|
1047
|
+
# to applying the fixed rate. The reservoir is not used directly by
|
1048
|
+
# services, but applies to all services using the rule collectively.
|
1049
|
+
# @return [Integer]
|
1050
|
+
#
|
1051
|
+
# @!attribute [rw] host
|
1052
|
+
# Matches the hostname from a request URL.
|
1053
|
+
# @return [String]
|
1054
|
+
#
|
1055
|
+
# @!attribute [rw] service_name
|
1056
|
+
# Matches the `name` that the service uses to identify itself in
|
1057
|
+
# segments.
|
1058
|
+
# @return [String]
|
1059
|
+
#
|
1060
|
+
# @!attribute [rw] service_type
|
1061
|
+
# Matches the `origin` that the service uses to identify its type in
|
1062
|
+
# segments.
|
1063
|
+
# @return [String]
|
1064
|
+
#
|
1065
|
+
# @!attribute [rw] http_method
|
1066
|
+
# Matches the HTTP method of a request.
|
1067
|
+
# @return [String]
|
1068
|
+
#
|
1069
|
+
# @!attribute [rw] url_path
|
1070
|
+
# Matches the path from a request URL.
|
1071
|
+
# @return [String]
|
1072
|
+
#
|
1073
|
+
# @!attribute [rw] attributes
|
1074
|
+
# Matches attributes derived from the request.
|
1075
|
+
# @return [Hash<String,String>]
|
1076
|
+
#
|
1077
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/SamplingRuleUpdate AWS API Documentation
|
1078
|
+
#
|
1079
|
+
class SamplingRuleUpdate < Struct.new(
|
1080
|
+
:rule_name,
|
1081
|
+
:rule_arn,
|
1082
|
+
:resource_arn,
|
1083
|
+
:priority,
|
1084
|
+
:fixed_rate,
|
1085
|
+
:reservoir_size,
|
1086
|
+
:host,
|
1087
|
+
:service_name,
|
1088
|
+
:service_type,
|
1089
|
+
:http_method,
|
1090
|
+
:url_path,
|
1091
|
+
:attributes)
|
1092
|
+
include Aws::Structure
|
1093
|
+
end
|
1094
|
+
|
1095
|
+
# Aggregated request sampling data for a sampling rule across all
|
1096
|
+
# services for a 10 second window.
|
1097
|
+
#
|
1098
|
+
# @!attribute [rw] rule_name
|
1099
|
+
# The name of the sampling rule.
|
1100
|
+
# @return [String]
|
1101
|
+
#
|
1102
|
+
# @!attribute [rw] timestamp
|
1103
|
+
# The start time of the reporting window.
|
1104
|
+
# @return [Time]
|
1105
|
+
#
|
1106
|
+
# @!attribute [rw] request_count
|
1107
|
+
# The number of requests that matched the rule.
|
1108
|
+
# @return [Integer]
|
1109
|
+
#
|
1110
|
+
# @!attribute [rw] borrow_count
|
1111
|
+
# The number of requests recorded with borrowed reservoir quota.
|
1112
|
+
# @return [Integer]
|
1113
|
+
#
|
1114
|
+
# @!attribute [rw] sampled_count
|
1115
|
+
# The number of requests recorded.
|
1116
|
+
# @return [Integer]
|
1117
|
+
#
|
1118
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/SamplingStatisticSummary AWS API Documentation
|
1119
|
+
#
|
1120
|
+
class SamplingStatisticSummary < Struct.new(
|
1121
|
+
:rule_name,
|
1122
|
+
:timestamp,
|
1123
|
+
:request_count,
|
1124
|
+
:borrow_count,
|
1125
|
+
:sampled_count)
|
1126
|
+
include Aws::Structure
|
1127
|
+
end
|
1128
|
+
|
1129
|
+
# Request sampling results for a single rule from a service. Results are
|
1130
|
+
# for the last 10 seconds unless the service has been assigned a longer
|
1131
|
+
# reporting interval after a previous call to GetSamplingTargets.
|
1132
|
+
#
|
1133
|
+
# @note When making an API call, you may pass SamplingStatisticsDocument
|
1134
|
+
# data as a hash:
|
1135
|
+
#
|
1136
|
+
# {
|
1137
|
+
# rule_name: "RuleName", # required
|
1138
|
+
# client_id: "ClientID", # required
|
1139
|
+
# timestamp: Time.now, # required
|
1140
|
+
# request_count: 1, # required
|
1141
|
+
# sampled_count: 1, # required
|
1142
|
+
# borrow_count: 1,
|
1143
|
+
# }
|
1144
|
+
#
|
1145
|
+
# @!attribute [rw] rule_name
|
1146
|
+
# The name of the sampling rule.
|
1147
|
+
# @return [String]
|
1148
|
+
#
|
1149
|
+
# @!attribute [rw] client_id
|
1150
|
+
# A unique identifier for the service in hexadecimal.
|
1151
|
+
# @return [String]
|
1152
|
+
#
|
1153
|
+
# @!attribute [rw] timestamp
|
1154
|
+
# The current time.
|
1155
|
+
# @return [Time]
|
1156
|
+
#
|
1157
|
+
# @!attribute [rw] request_count
|
1158
|
+
# The number of requests that matched the rule.
|
1159
|
+
# @return [Integer]
|
1160
|
+
#
|
1161
|
+
# @!attribute [rw] sampled_count
|
1162
|
+
# The number of requests recorded.
|
1163
|
+
# @return [Integer]
|
1164
|
+
#
|
1165
|
+
# @!attribute [rw] borrow_count
|
1166
|
+
# The number of requests recorded with borrowed reservoir quota.
|
1167
|
+
# @return [Integer]
|
1168
|
+
#
|
1169
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/SamplingStatisticsDocument AWS API Documentation
|
1170
|
+
#
|
1171
|
+
class SamplingStatisticsDocument < Struct.new(
|
1172
|
+
:rule_name,
|
1173
|
+
:client_id,
|
1174
|
+
:timestamp,
|
1175
|
+
:request_count,
|
1176
|
+
:sampled_count,
|
1177
|
+
:borrow_count)
|
1178
|
+
include Aws::Structure
|
1179
|
+
end
|
1180
|
+
|
1181
|
+
# Temporary changes to a sampling rule configuration. To meet the global
|
1182
|
+
# sampling target for a rule, X-Ray calculates a new reservoir for each
|
1183
|
+
# service based on the recent sampling results of all services that
|
1184
|
+
# called GetSamplingTargets.
|
1185
|
+
#
|
1186
|
+
# @!attribute [rw] rule_name
|
1187
|
+
# The name of the sampling rule.
|
1188
|
+
# @return [String]
|
1189
|
+
#
|
1190
|
+
# @!attribute [rw] fixed_rate
|
1191
|
+
# The percentage of matching requests to instrument, after the
|
1192
|
+
# reservoir is exhausted.
|
1193
|
+
# @return [Float]
|
1194
|
+
#
|
1195
|
+
# @!attribute [rw] reservoir_quota
|
1196
|
+
# The number of requests per second that X-Ray allocated this service.
|
1197
|
+
# @return [Integer]
|
1198
|
+
#
|
1199
|
+
# @!attribute [rw] reservoir_quota_ttl
|
1200
|
+
# When the reservoir quota expires.
|
1201
|
+
# @return [Time]
|
1202
|
+
#
|
1203
|
+
# @!attribute [rw] interval
|
1204
|
+
# The number of seconds for the service to wait before getting
|
1205
|
+
# sampling targets again.
|
1206
|
+
# @return [Integer]
|
1207
|
+
#
|
1208
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/SamplingTargetDocument AWS API Documentation
|
1209
|
+
#
|
1210
|
+
class SamplingTargetDocument < Struct.new(
|
1211
|
+
:rule_name,
|
1212
|
+
:fixed_rate,
|
1213
|
+
:reservoir_quota,
|
1214
|
+
:reservoir_quota_ttl,
|
1215
|
+
:interval)
|
1216
|
+
include Aws::Structure
|
1217
|
+
end
|
1218
|
+
|
670
1219
|
# A segment from a trace that has been ingested by the X-Ray service.
|
671
1220
|
# The segment can be compiled from documents uploaded with
|
672
1221
|
# PutTraceSegments, or an `inferred` segment for a downstream service,
|
@@ -1005,6 +1554,30 @@ module Aws::XRay
|
|
1005
1554
|
include Aws::Structure
|
1006
1555
|
end
|
1007
1556
|
|
1557
|
+
# Sampling statistics from a call to GetSamplingTargets that X-Ray could
|
1558
|
+
# not process.
|
1559
|
+
#
|
1560
|
+
# @!attribute [rw] rule_name
|
1561
|
+
# The name of the sampling rule.
|
1562
|
+
# @return [String]
|
1563
|
+
#
|
1564
|
+
# @!attribute [rw] error_code
|
1565
|
+
# The error code.
|
1566
|
+
# @return [String]
|
1567
|
+
#
|
1568
|
+
# @!attribute [rw] message
|
1569
|
+
# The error message.
|
1570
|
+
# @return [String]
|
1571
|
+
#
|
1572
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/UnprocessedStatistics AWS API Documentation
|
1573
|
+
#
|
1574
|
+
class UnprocessedStatistics < Struct.new(
|
1575
|
+
:rule_name,
|
1576
|
+
:error_code,
|
1577
|
+
:message)
|
1578
|
+
include Aws::Structure
|
1579
|
+
end
|
1580
|
+
|
1008
1581
|
# Information about a segment that failed processing.
|
1009
1582
|
#
|
1010
1583
|
# @!attribute [rw] id
|
@@ -1028,6 +1601,50 @@ module Aws::XRay
|
|
1028
1601
|
include Aws::Structure
|
1029
1602
|
end
|
1030
1603
|
|
1604
|
+
# @note When making an API call, you may pass UpdateSamplingRuleRequest
|
1605
|
+
# data as a hash:
|
1606
|
+
#
|
1607
|
+
# {
|
1608
|
+
# sampling_rule_update: { # required
|
1609
|
+
# rule_name: "RuleName",
|
1610
|
+
# rule_arn: "String",
|
1611
|
+
# resource_arn: "ResourceARN",
|
1612
|
+
# priority: 1,
|
1613
|
+
# fixed_rate: 1.0,
|
1614
|
+
# reservoir_size: 1,
|
1615
|
+
# host: "Host",
|
1616
|
+
# service_name: "ServiceName",
|
1617
|
+
# service_type: "ServiceType",
|
1618
|
+
# http_method: "HTTPMethod",
|
1619
|
+
# url_path: "URLPath",
|
1620
|
+
# attributes: {
|
1621
|
+
# "AttributeKey" => "AttributeValue",
|
1622
|
+
# },
|
1623
|
+
# },
|
1624
|
+
# }
|
1625
|
+
#
|
1626
|
+
# @!attribute [rw] sampling_rule_update
|
1627
|
+
# The rule and fields to change.
|
1628
|
+
# @return [Types::SamplingRuleUpdate]
|
1629
|
+
#
|
1630
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/UpdateSamplingRuleRequest AWS API Documentation
|
1631
|
+
#
|
1632
|
+
class UpdateSamplingRuleRequest < Struct.new(
|
1633
|
+
:sampling_rule_update)
|
1634
|
+
include Aws::Structure
|
1635
|
+
end
|
1636
|
+
|
1637
|
+
# @!attribute [rw] sampling_rule_record
|
1638
|
+
# The updated rule definition and metadata.
|
1639
|
+
# @return [Types::SamplingRuleRecord]
|
1640
|
+
#
|
1641
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/UpdateSamplingRuleResult AWS API Documentation
|
1642
|
+
#
|
1643
|
+
class UpdateSamplingRuleResult < Struct.new(
|
1644
|
+
:sampling_rule_record)
|
1645
|
+
include Aws::Structure
|
1646
|
+
end
|
1647
|
+
|
1031
1648
|
# Information about a segment annotation.
|
1032
1649
|
#
|
1033
1650
|
# @!attribute [rw] annotation_value
|