aws-sdk-xray 1.13.0 → 1.14.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 +139 -2
- data/lib/aws-sdk-xray/client_api.rb +67 -0
- data/lib/aws-sdk-xray/types.rb +157 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '0239fbea09767fe839097eac0abb2141e7c52e1f'
|
4
|
+
data.tar.gz: 241ca405e493a25866fecdd85c3abedd9dadaf5d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cb76b09050bb553e728dc990cfe8ff5de7432655db0b2bdadb3d9ef1d0d03999df0d440c07808e5f409cbdd680ccd8327a914f7c7e51e828f625e0312be14084
|
7
|
+
data.tar.gz: fd4193cd8afe58d0e9b9144443b6ec797a861e369b7b04be82bc489f0835e6bc5abaae89430c8f8b248eb746c9fb24f3d2258ff1b4a3d83832b4e9d81a8594cd
|
data/lib/aws-sdk-xray.rb
CHANGED
data/lib/aws-sdk-xray/client.rb
CHANGED
@@ -199,6 +199,49 @@ module Aws::XRay
|
|
199
199
|
# When `true`, request parameters are validated before
|
200
200
|
# sending the request.
|
201
201
|
#
|
202
|
+
# @option options [URI::HTTP,String] :http_proxy A proxy to send
|
203
|
+
# requests through. Formatted like 'http://proxy.com:123'.
|
204
|
+
#
|
205
|
+
# @option options [Float] :http_open_timeout (15) The number of
|
206
|
+
# seconds to wait when opening a HTTP session before rasing a
|
207
|
+
# `Timeout::Error`.
|
208
|
+
#
|
209
|
+
# @option options [Integer] :http_read_timeout (60) The default
|
210
|
+
# number of seconds to wait for response data. This value can
|
211
|
+
# safely be set
|
212
|
+
# per-request on the session yeidled by {#session_for}.
|
213
|
+
#
|
214
|
+
# @option options [Float] :http_idle_timeout (5) The number of
|
215
|
+
# seconds a connection is allowed to sit idble before it is
|
216
|
+
# considered stale. Stale connections are closed and removed
|
217
|
+
# from the pool before making a request.
|
218
|
+
#
|
219
|
+
# @option options [Float] :http_continue_timeout (1) The number of
|
220
|
+
# seconds to wait for a 100-continue response before sending the
|
221
|
+
# request body. This option has no effect unless the request has
|
222
|
+
# "Expect" header set to "100-continue". Defaults to `nil` which
|
223
|
+
# disables this behaviour. This value can safely be set per
|
224
|
+
# request on the session yeidled by {#session_for}.
|
225
|
+
#
|
226
|
+
# @option options [Boolean] :http_wire_trace (false) When `true`,
|
227
|
+
# HTTP debug output will be sent to the `:logger`.
|
228
|
+
#
|
229
|
+
# @option options [Boolean] :ssl_verify_peer (true) When `true`,
|
230
|
+
# SSL peer certificates are verified when establishing a
|
231
|
+
# connection.
|
232
|
+
#
|
233
|
+
# @option options [String] :ssl_ca_bundle Full path to the SSL
|
234
|
+
# certificate authority bundle file that should be used when
|
235
|
+
# verifying peer certificates. If you do not pass
|
236
|
+
# `:ssl_ca_bundle` or `:ssl_ca_directory` the the system default
|
237
|
+
# will be used if available.
|
238
|
+
#
|
239
|
+
# @option options [String] :ssl_ca_directory Full path of the
|
240
|
+
# directory that contains the unbundled SSL certificate
|
241
|
+
# authority files for verifying peer certificates. If you do
|
242
|
+
# not pass `:ssl_ca_bundle` or `:ssl_ca_directory` the the
|
243
|
+
# system default will be used if available.
|
244
|
+
#
|
202
245
|
def initialize(*args)
|
203
246
|
super
|
204
247
|
end
|
@@ -746,6 +789,86 @@ module Aws::XRay
|
|
746
789
|
req.send_request(options)
|
747
790
|
end
|
748
791
|
|
792
|
+
# Get an aggregation of service statistics defined by a specific time
|
793
|
+
# range.
|
794
|
+
#
|
795
|
+
# @option params [required, Time,DateTime,Date,Integer,String] :start_time
|
796
|
+
# The start of the time frame for which to aggregate statistics.
|
797
|
+
#
|
798
|
+
# @option params [required, Time,DateTime,Date,Integer,String] :end_time
|
799
|
+
# The end of the time frame for which to aggregate statistics.
|
800
|
+
#
|
801
|
+
# @option params [String] :group_name
|
802
|
+
# The case-sensitive name of the group for which to pull statistics
|
803
|
+
# from.
|
804
|
+
#
|
805
|
+
# @option params [String] :group_arn
|
806
|
+
# The ARN of the group for which to pull statistics from.
|
807
|
+
#
|
808
|
+
# @option params [String] :entity_selector_expression
|
809
|
+
# A filter expression defining entities that will be aggregated for
|
810
|
+
# statistics. Supports ID, service, and edge functions. If no selector
|
811
|
+
# expression is specified, edge statistics are returned.
|
812
|
+
#
|
813
|
+
# @option params [Integer] :period
|
814
|
+
# Aggregation period in seconds.
|
815
|
+
#
|
816
|
+
# @option params [String] :next_token
|
817
|
+
# Pagination token. Not used.
|
818
|
+
#
|
819
|
+
# @return [Types::GetTimeSeriesServiceStatisticsResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
820
|
+
#
|
821
|
+
# * {Types::GetTimeSeriesServiceStatisticsResult#time_series_service_statistics #time_series_service_statistics} => Array<Types::TimeSeriesServiceStatistics>
|
822
|
+
# * {Types::GetTimeSeriesServiceStatisticsResult#contains_old_group_versions #contains_old_group_versions} => Boolean
|
823
|
+
# * {Types::GetTimeSeriesServiceStatisticsResult#next_token #next_token} => String
|
824
|
+
#
|
825
|
+
# @example Request syntax with placeholder values
|
826
|
+
#
|
827
|
+
# resp = client.get_time_series_service_statistics({
|
828
|
+
# start_time: Time.now, # required
|
829
|
+
# end_time: Time.now, # required
|
830
|
+
# group_name: "GroupName",
|
831
|
+
# group_arn: "GroupARN",
|
832
|
+
# entity_selector_expression: "EntitySelectorExpression",
|
833
|
+
# period: 1,
|
834
|
+
# next_token: "String",
|
835
|
+
# })
|
836
|
+
#
|
837
|
+
# @example Response structure
|
838
|
+
#
|
839
|
+
# resp.time_series_service_statistics #=> Array
|
840
|
+
# resp.time_series_service_statistics[0].timestamp #=> Time
|
841
|
+
# resp.time_series_service_statistics[0].edge_summary_statistics.ok_count #=> Integer
|
842
|
+
# resp.time_series_service_statistics[0].edge_summary_statistics.error_statistics.throttle_count #=> Integer
|
843
|
+
# resp.time_series_service_statistics[0].edge_summary_statistics.error_statistics.other_count #=> Integer
|
844
|
+
# resp.time_series_service_statistics[0].edge_summary_statistics.error_statistics.total_count #=> Integer
|
845
|
+
# resp.time_series_service_statistics[0].edge_summary_statistics.fault_statistics.other_count #=> Integer
|
846
|
+
# resp.time_series_service_statistics[0].edge_summary_statistics.fault_statistics.total_count #=> Integer
|
847
|
+
# resp.time_series_service_statistics[0].edge_summary_statistics.total_count #=> Integer
|
848
|
+
# resp.time_series_service_statistics[0].edge_summary_statistics.total_response_time #=> Float
|
849
|
+
# resp.time_series_service_statistics[0].service_summary_statistics.ok_count #=> Integer
|
850
|
+
# resp.time_series_service_statistics[0].service_summary_statistics.error_statistics.throttle_count #=> Integer
|
851
|
+
# resp.time_series_service_statistics[0].service_summary_statistics.error_statistics.other_count #=> Integer
|
852
|
+
# resp.time_series_service_statistics[0].service_summary_statistics.error_statistics.total_count #=> Integer
|
853
|
+
# resp.time_series_service_statistics[0].service_summary_statistics.fault_statistics.other_count #=> Integer
|
854
|
+
# resp.time_series_service_statistics[0].service_summary_statistics.fault_statistics.total_count #=> Integer
|
855
|
+
# resp.time_series_service_statistics[0].service_summary_statistics.total_count #=> Integer
|
856
|
+
# resp.time_series_service_statistics[0].service_summary_statistics.total_response_time #=> Float
|
857
|
+
# resp.time_series_service_statistics[0].response_time_histogram #=> Array
|
858
|
+
# resp.time_series_service_statistics[0].response_time_histogram[0].value #=> Float
|
859
|
+
# resp.time_series_service_statistics[0].response_time_histogram[0].count #=> Integer
|
860
|
+
# resp.contains_old_group_versions #=> Boolean
|
861
|
+
# resp.next_token #=> String
|
862
|
+
#
|
863
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/GetTimeSeriesServiceStatistics AWS API Documentation
|
864
|
+
#
|
865
|
+
# @overload get_time_series_service_statistics(params = {})
|
866
|
+
# @param [Hash] params ({})
|
867
|
+
def get_time_series_service_statistics(params = {}, options = {})
|
868
|
+
req = build_request(:get_time_series_service_statistics, params)
|
869
|
+
req.send_request(options)
|
870
|
+
end
|
871
|
+
|
749
872
|
# Retrieves a service graph for one or more specific trace IDs.
|
750
873
|
#
|
751
874
|
# @option params [required, Array<String>] :trace_ids
|
@@ -846,7 +969,7 @@ module Aws::XRay
|
|
846
969
|
#
|
847
970
|
#
|
848
971
|
#
|
849
|
-
# [1]:
|
972
|
+
# [1]: https://docs.aws.amazon.com/xray/latest/devguide/xray-console-filters.html
|
850
973
|
#
|
851
974
|
# @option params [required, Time,DateTime,Date,Integer,String] :start_time
|
852
975
|
# The start of the time frame for which to retrieve traces.
|
@@ -854,9 +977,17 @@ module Aws::XRay
|
|
854
977
|
# @option params [required, Time,DateTime,Date,Integer,String] :end_time
|
855
978
|
# The end of the time frame for which to retrieve traces.
|
856
979
|
#
|
980
|
+
# @option params [String] :time_range_type
|
981
|
+
# A parameter to indicate whether to query trace summaries by TraceId or
|
982
|
+
# Event time.
|
983
|
+
#
|
857
984
|
# @option params [Boolean] :sampling
|
858
985
|
# Set to `true` to get summaries for only a subset of available traces.
|
859
986
|
#
|
987
|
+
# @option params [Types::SamplingStrategy] :sampling_strategy
|
988
|
+
# A paramater to indicate whether to enable sampling on trace summaries.
|
989
|
+
# Input parameters are Name and Value.
|
990
|
+
#
|
860
991
|
# @option params [String] :filter_expression
|
861
992
|
# Specify a filter expression to retrieve trace summaries for services
|
862
993
|
# or requests that meet certain requirements.
|
@@ -877,7 +1008,12 @@ module Aws::XRay
|
|
877
1008
|
# resp = client.get_trace_summaries({
|
878
1009
|
# start_time: Time.now, # required
|
879
1010
|
# end_time: Time.now, # required
|
1011
|
+
# time_range_type: "TraceId", # accepts TraceId, Event
|
880
1012
|
# sampling: false,
|
1013
|
+
# sampling_strategy: {
|
1014
|
+
# name: "PartialScan", # accepts PartialScan, FixedRate
|
1015
|
+
# value: 1.0,
|
1016
|
+
# },
|
881
1017
|
# filter_expression: "FilterExpression",
|
882
1018
|
# next_token: "String",
|
883
1019
|
# })
|
@@ -974,6 +1110,7 @@ module Aws::XRay
|
|
974
1110
|
# resp.trace_summaries[0].response_time_root_causes[0].services[0].entity_path[0].remote #=> Boolean
|
975
1111
|
# resp.trace_summaries[0].response_time_root_causes[0].services[0].inferred #=> Boolean
|
976
1112
|
# resp.trace_summaries[0].revision #=> Integer
|
1113
|
+
# resp.trace_summaries[0].matched_event_time #=> Time
|
977
1114
|
# resp.approximate_time #=> Time
|
978
1115
|
# resp.traces_processed_count #=> Integer
|
979
1116
|
# resp.next_token #=> String
|
@@ -1272,7 +1409,7 @@ module Aws::XRay
|
|
1272
1409
|
params: params,
|
1273
1410
|
config: config)
|
1274
1411
|
context[:gem_name] = 'aws-sdk-xray'
|
1275
|
-
context[:gem_version] = '1.
|
1412
|
+
context[:gem_version] = '1.14.0'
|
1276
1413
|
Seahorse::Client::Request.new(handlers, context)
|
1277
1414
|
end
|
1278
1415
|
|
@@ -44,6 +44,7 @@ module Aws::XRay
|
|
44
44
|
EncryptionKeyId = Shapes::StringShape.new(name: 'EncryptionKeyId')
|
45
45
|
EncryptionStatus = Shapes::StringShape.new(name: 'EncryptionStatus')
|
46
46
|
EncryptionType = Shapes::StringShape.new(name: 'EncryptionType')
|
47
|
+
EntitySelectorExpression = Shapes::StringShape.new(name: 'EntitySelectorExpression')
|
47
48
|
ErrorMessage = Shapes::StringShape.new(name: 'ErrorMessage')
|
48
49
|
ErrorRootCause = Shapes::StructureShape.new(name: 'ErrorRootCause')
|
49
50
|
ErrorRootCauseEntity = Shapes::StructureShape.new(name: 'ErrorRootCauseEntity')
|
@@ -76,6 +77,8 @@ module Aws::XRay
|
|
76
77
|
GetSamplingTargetsResult = Shapes::StructureShape.new(name: 'GetSamplingTargetsResult')
|
77
78
|
GetServiceGraphRequest = Shapes::StructureShape.new(name: 'GetServiceGraphRequest')
|
78
79
|
GetServiceGraphResult = Shapes::StructureShape.new(name: 'GetServiceGraphResult')
|
80
|
+
GetTimeSeriesServiceStatisticsRequest = Shapes::StructureShape.new(name: 'GetTimeSeriesServiceStatisticsRequest')
|
81
|
+
GetTimeSeriesServiceStatisticsResult = Shapes::StructureShape.new(name: 'GetTimeSeriesServiceStatisticsResult')
|
79
82
|
GetTraceGraphRequest = Shapes::StructureShape.new(name: 'GetTraceGraphRequest')
|
80
83
|
GetTraceGraphResult = Shapes::StructureShape.new(name: 'GetTraceGraphResult')
|
81
84
|
GetTraceSummariesRequest = Shapes::StructureShape.new(name: 'GetTraceSummariesRequest')
|
@@ -128,6 +131,8 @@ module Aws::XRay
|
|
128
131
|
SamplingStatisticSummaryList = Shapes::ListShape.new(name: 'SamplingStatisticSummaryList')
|
129
132
|
SamplingStatisticsDocument = Shapes::StructureShape.new(name: 'SamplingStatisticsDocument')
|
130
133
|
SamplingStatisticsDocumentList = Shapes::ListShape.new(name: 'SamplingStatisticsDocumentList')
|
134
|
+
SamplingStrategy = Shapes::StructureShape.new(name: 'SamplingStrategy')
|
135
|
+
SamplingStrategyName = Shapes::StringShape.new(name: 'SamplingStrategyName')
|
131
136
|
SamplingTargetDocument = Shapes::StructureShape.new(name: 'SamplingTargetDocument')
|
132
137
|
SamplingTargetDocumentList = Shapes::ListShape.new(name: 'SamplingTargetDocumentList')
|
133
138
|
Segment = Shapes::StructureShape.new(name: 'Segment')
|
@@ -146,6 +151,9 @@ module Aws::XRay
|
|
146
151
|
TelemetryRecord = Shapes::StructureShape.new(name: 'TelemetryRecord')
|
147
152
|
TelemetryRecordList = Shapes::ListShape.new(name: 'TelemetryRecordList')
|
148
153
|
ThrottledException = Shapes::StructureShape.new(name: 'ThrottledException')
|
154
|
+
TimeRangeType = Shapes::StringShape.new(name: 'TimeRangeType')
|
155
|
+
TimeSeriesServiceStatistics = Shapes::StructureShape.new(name: 'TimeSeriesServiceStatistics')
|
156
|
+
TimeSeriesServiceStatisticsList = Shapes::ListShape.new(name: 'TimeSeriesServiceStatisticsList')
|
149
157
|
Timestamp = Shapes::TimestampShape.new(name: 'Timestamp')
|
150
158
|
Trace = Shapes::StructureShape.new(name: 'Trace')
|
151
159
|
TraceAvailabilityZones = Shapes::ListShape.new(name: 'TraceAvailabilityZones')
|
@@ -370,6 +378,20 @@ module Aws::XRay
|
|
370
378
|
GetServiceGraphResult.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
|
371
379
|
GetServiceGraphResult.struct_class = Types::GetServiceGraphResult
|
372
380
|
|
381
|
+
GetTimeSeriesServiceStatisticsRequest.add_member(:start_time, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "StartTime"))
|
382
|
+
GetTimeSeriesServiceStatisticsRequest.add_member(:end_time, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "EndTime"))
|
383
|
+
GetTimeSeriesServiceStatisticsRequest.add_member(:group_name, Shapes::ShapeRef.new(shape: GroupName, location_name: "GroupName"))
|
384
|
+
GetTimeSeriesServiceStatisticsRequest.add_member(:group_arn, Shapes::ShapeRef.new(shape: GroupARN, location_name: "GroupARN"))
|
385
|
+
GetTimeSeriesServiceStatisticsRequest.add_member(:entity_selector_expression, Shapes::ShapeRef.new(shape: EntitySelectorExpression, location_name: "EntitySelectorExpression"))
|
386
|
+
GetTimeSeriesServiceStatisticsRequest.add_member(:period, Shapes::ShapeRef.new(shape: NullableInteger, location_name: "Period"))
|
387
|
+
GetTimeSeriesServiceStatisticsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
|
388
|
+
GetTimeSeriesServiceStatisticsRequest.struct_class = Types::GetTimeSeriesServiceStatisticsRequest
|
389
|
+
|
390
|
+
GetTimeSeriesServiceStatisticsResult.add_member(:time_series_service_statistics, Shapes::ShapeRef.new(shape: TimeSeriesServiceStatisticsList, location_name: "TimeSeriesServiceStatistics"))
|
391
|
+
GetTimeSeriesServiceStatisticsResult.add_member(:contains_old_group_versions, Shapes::ShapeRef.new(shape: Boolean, location_name: "ContainsOldGroupVersions"))
|
392
|
+
GetTimeSeriesServiceStatisticsResult.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
|
393
|
+
GetTimeSeriesServiceStatisticsResult.struct_class = Types::GetTimeSeriesServiceStatisticsResult
|
394
|
+
|
373
395
|
GetTraceGraphRequest.add_member(:trace_ids, Shapes::ShapeRef.new(shape: TraceIdList, required: true, location_name: "TraceIds"))
|
374
396
|
GetTraceGraphRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
|
375
397
|
GetTraceGraphRequest.struct_class = Types::GetTraceGraphRequest
|
@@ -380,7 +402,9 @@ module Aws::XRay
|
|
380
402
|
|
381
403
|
GetTraceSummariesRequest.add_member(:start_time, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "StartTime"))
|
382
404
|
GetTraceSummariesRequest.add_member(:end_time, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "EndTime"))
|
405
|
+
GetTraceSummariesRequest.add_member(:time_range_type, Shapes::ShapeRef.new(shape: TimeRangeType, location_name: "TimeRangeType"))
|
383
406
|
GetTraceSummariesRequest.add_member(:sampling, Shapes::ShapeRef.new(shape: NullableBoolean, location_name: "Sampling"))
|
407
|
+
GetTraceSummariesRequest.add_member(:sampling_strategy, Shapes::ShapeRef.new(shape: SamplingStrategy, location_name: "SamplingStrategy"))
|
384
408
|
GetTraceSummariesRequest.add_member(:filter_expression, Shapes::ShapeRef.new(shape: FilterExpression, location_name: "FilterExpression"))
|
385
409
|
GetTraceSummariesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
|
386
410
|
GetTraceSummariesRequest.struct_class = Types::GetTraceSummariesRequest
|
@@ -526,6 +550,10 @@ module Aws::XRay
|
|
526
550
|
|
527
551
|
SamplingStatisticsDocumentList.member = Shapes::ShapeRef.new(shape: SamplingStatisticsDocument)
|
528
552
|
|
553
|
+
SamplingStrategy.add_member(:name, Shapes::ShapeRef.new(shape: SamplingStrategyName, location_name: "Name"))
|
554
|
+
SamplingStrategy.add_member(:value, Shapes::ShapeRef.new(shape: NullableDouble, location_name: "Value"))
|
555
|
+
SamplingStrategy.struct_class = Types::SamplingStrategy
|
556
|
+
|
529
557
|
SamplingTargetDocument.add_member(:rule_name, Shapes::ShapeRef.new(shape: String, location_name: "RuleName"))
|
530
558
|
SamplingTargetDocument.add_member(:fixed_rate, Shapes::ShapeRef.new(shape: Double, location_name: "FixedRate"))
|
531
559
|
SamplingTargetDocument.add_member(:reservoir_quota, Shapes::ShapeRef.new(shape: NullableInteger, location_name: "ReservoirQuota"))
|
@@ -585,6 +613,14 @@ module Aws::XRay
|
|
585
613
|
|
586
614
|
TelemetryRecordList.member = Shapes::ShapeRef.new(shape: TelemetryRecord)
|
587
615
|
|
616
|
+
TimeSeriesServiceStatistics.add_member(:timestamp, Shapes::ShapeRef.new(shape: Timestamp, location_name: "Timestamp"))
|
617
|
+
TimeSeriesServiceStatistics.add_member(:edge_summary_statistics, Shapes::ShapeRef.new(shape: EdgeStatistics, location_name: "EdgeSummaryStatistics"))
|
618
|
+
TimeSeriesServiceStatistics.add_member(:service_summary_statistics, Shapes::ShapeRef.new(shape: ServiceStatistics, location_name: "ServiceSummaryStatistics"))
|
619
|
+
TimeSeriesServiceStatistics.add_member(:response_time_histogram, Shapes::ShapeRef.new(shape: Histogram, location_name: "ResponseTimeHistogram"))
|
620
|
+
TimeSeriesServiceStatistics.struct_class = Types::TimeSeriesServiceStatistics
|
621
|
+
|
622
|
+
TimeSeriesServiceStatisticsList.member = Shapes::ShapeRef.new(shape: TimeSeriesServiceStatistics)
|
623
|
+
|
588
624
|
Trace.add_member(:id, Shapes::ShapeRef.new(shape: TraceId, location_name: "Id"))
|
589
625
|
Trace.add_member(:duration, Shapes::ShapeRef.new(shape: NullableDouble, location_name: "Duration"))
|
590
626
|
Trace.add_member(:segments, Shapes::ShapeRef.new(shape: SegmentList, location_name: "Segments"))
|
@@ -621,6 +657,7 @@ module Aws::XRay
|
|
621
657
|
TraceSummary.add_member(:error_root_causes, Shapes::ShapeRef.new(shape: ErrorRootCauses, location_name: "ErrorRootCauses"))
|
622
658
|
TraceSummary.add_member(:response_time_root_causes, Shapes::ShapeRef.new(shape: ResponseTimeRootCauses, location_name: "ResponseTimeRootCauses"))
|
623
659
|
TraceSummary.add_member(:revision, Shapes::ShapeRef.new(shape: Integer, location_name: "Revision"))
|
660
|
+
TraceSummary.add_member(:matched_event_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "MatchedEventTime"))
|
624
661
|
TraceSummary.struct_class = Types::TraceSummary
|
625
662
|
|
626
663
|
TraceSummaryList.member = Shapes::ShapeRef.new(shape: TraceSummary)
|
@@ -767,6 +804,11 @@ module Aws::XRay
|
|
767
804
|
o.output = Shapes::ShapeRef.new(shape: GetGroupsResult)
|
768
805
|
o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
|
769
806
|
o.errors << Shapes::ShapeRef.new(shape: ThrottledException)
|
807
|
+
o[:pager] = Aws::Pager.new(
|
808
|
+
tokens: {
|
809
|
+
"next_token" => "next_token"
|
810
|
+
}
|
811
|
+
)
|
770
812
|
end)
|
771
813
|
|
772
814
|
api.add_operation(:get_sampling_rules, Seahorse::Model::Operation.new.tap do |o|
|
@@ -777,6 +819,11 @@ module Aws::XRay
|
|
777
819
|
o.output = Shapes::ShapeRef.new(shape: GetSamplingRulesResult)
|
778
820
|
o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
|
779
821
|
o.errors << Shapes::ShapeRef.new(shape: ThrottledException)
|
822
|
+
o[:pager] = Aws::Pager.new(
|
823
|
+
tokens: {
|
824
|
+
"next_token" => "next_token"
|
825
|
+
}
|
826
|
+
)
|
780
827
|
end)
|
781
828
|
|
782
829
|
api.add_operation(:get_sampling_statistic_summaries, Seahorse::Model::Operation.new.tap do |o|
|
@@ -787,6 +834,11 @@ module Aws::XRay
|
|
787
834
|
o.output = Shapes::ShapeRef.new(shape: GetSamplingStatisticSummariesResult)
|
788
835
|
o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
|
789
836
|
o.errors << Shapes::ShapeRef.new(shape: ThrottledException)
|
837
|
+
o[:pager] = Aws::Pager.new(
|
838
|
+
tokens: {
|
839
|
+
"next_token" => "next_token"
|
840
|
+
}
|
841
|
+
)
|
790
842
|
end)
|
791
843
|
|
792
844
|
api.add_operation(:get_sampling_targets, Seahorse::Model::Operation.new.tap do |o|
|
@@ -814,6 +866,21 @@ module Aws::XRay
|
|
814
866
|
)
|
815
867
|
end)
|
816
868
|
|
869
|
+
api.add_operation(:get_time_series_service_statistics, Seahorse::Model::Operation.new.tap do |o|
|
870
|
+
o.name = "GetTimeSeriesServiceStatistics"
|
871
|
+
o.http_method = "POST"
|
872
|
+
o.http_request_uri = "/TimeSeriesServiceStatistics"
|
873
|
+
o.input = Shapes::ShapeRef.new(shape: GetTimeSeriesServiceStatisticsRequest)
|
874
|
+
o.output = Shapes::ShapeRef.new(shape: GetTimeSeriesServiceStatisticsResult)
|
875
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
|
876
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottledException)
|
877
|
+
o[:pager] = Aws::Pager.new(
|
878
|
+
tokens: {
|
879
|
+
"next_token" => "next_token"
|
880
|
+
}
|
881
|
+
)
|
882
|
+
end)
|
883
|
+
|
817
884
|
api.add_operation(:get_trace_graph, Seahorse::Model::Operation.new.tap do |o|
|
818
885
|
o.name = "GetTraceGraph"
|
819
886
|
o.http_method = "POST"
|
data/lib/aws-sdk-xray/types.rb
CHANGED
@@ -895,6 +895,86 @@ module Aws::XRay
|
|
895
895
|
include Aws::Structure
|
896
896
|
end
|
897
897
|
|
898
|
+
# @note When making an API call, you may pass GetTimeSeriesServiceStatisticsRequest
|
899
|
+
# data as a hash:
|
900
|
+
#
|
901
|
+
# {
|
902
|
+
# start_time: Time.now, # required
|
903
|
+
# end_time: Time.now, # required
|
904
|
+
# group_name: "GroupName",
|
905
|
+
# group_arn: "GroupARN",
|
906
|
+
# entity_selector_expression: "EntitySelectorExpression",
|
907
|
+
# period: 1,
|
908
|
+
# next_token: "String",
|
909
|
+
# }
|
910
|
+
#
|
911
|
+
# @!attribute [rw] start_time
|
912
|
+
# The start of the time frame for which to aggregate statistics.
|
913
|
+
# @return [Time]
|
914
|
+
#
|
915
|
+
# @!attribute [rw] end_time
|
916
|
+
# The end of the time frame for which to aggregate statistics.
|
917
|
+
# @return [Time]
|
918
|
+
#
|
919
|
+
# @!attribute [rw] group_name
|
920
|
+
# The case-sensitive name of the group for which to pull statistics
|
921
|
+
# from.
|
922
|
+
# @return [String]
|
923
|
+
#
|
924
|
+
# @!attribute [rw] group_arn
|
925
|
+
# The ARN of the group for which to pull statistics from.
|
926
|
+
# @return [String]
|
927
|
+
#
|
928
|
+
# @!attribute [rw] entity_selector_expression
|
929
|
+
# A filter expression defining entities that will be aggregated for
|
930
|
+
# statistics. Supports ID, service, and edge functions. If no selector
|
931
|
+
# expression is specified, edge statistics are returned.
|
932
|
+
# @return [String]
|
933
|
+
#
|
934
|
+
# @!attribute [rw] period
|
935
|
+
# Aggregation period in seconds.
|
936
|
+
# @return [Integer]
|
937
|
+
#
|
938
|
+
# @!attribute [rw] next_token
|
939
|
+
# Pagination token. Not used.
|
940
|
+
# @return [String]
|
941
|
+
#
|
942
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/GetTimeSeriesServiceStatisticsRequest AWS API Documentation
|
943
|
+
#
|
944
|
+
class GetTimeSeriesServiceStatisticsRequest < Struct.new(
|
945
|
+
:start_time,
|
946
|
+
:end_time,
|
947
|
+
:group_name,
|
948
|
+
:group_arn,
|
949
|
+
:entity_selector_expression,
|
950
|
+
:period,
|
951
|
+
:next_token)
|
952
|
+
include Aws::Structure
|
953
|
+
end
|
954
|
+
|
955
|
+
# @!attribute [rw] time_series_service_statistics
|
956
|
+
# The collection of statistics.
|
957
|
+
# @return [Array<Types::TimeSeriesServiceStatistics>]
|
958
|
+
#
|
959
|
+
# @!attribute [rw] contains_old_group_versions
|
960
|
+
# A flag indicating whether or not a group's filter expression has
|
961
|
+
# been consistent, or if a returned aggregation may show statistics
|
962
|
+
# from an older version of the group's filter expression.
|
963
|
+
# @return [Boolean]
|
964
|
+
#
|
965
|
+
# @!attribute [rw] next_token
|
966
|
+
# Pagination token. Not used.
|
967
|
+
# @return [String]
|
968
|
+
#
|
969
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/GetTimeSeriesServiceStatisticsResult AWS API Documentation
|
970
|
+
#
|
971
|
+
class GetTimeSeriesServiceStatisticsResult < Struct.new(
|
972
|
+
:time_series_service_statistics,
|
973
|
+
:contains_old_group_versions,
|
974
|
+
:next_token)
|
975
|
+
include Aws::Structure
|
976
|
+
end
|
977
|
+
|
898
978
|
# @note When making an API call, you may pass GetTraceGraphRequest
|
899
979
|
# data as a hash:
|
900
980
|
#
|
@@ -941,7 +1021,12 @@ module Aws::XRay
|
|
941
1021
|
# {
|
942
1022
|
# start_time: Time.now, # required
|
943
1023
|
# end_time: Time.now, # required
|
1024
|
+
# time_range_type: "TraceId", # accepts TraceId, Event
|
944
1025
|
# sampling: false,
|
1026
|
+
# sampling_strategy: {
|
1027
|
+
# name: "PartialScan", # accepts PartialScan, FixedRate
|
1028
|
+
# value: 1.0,
|
1029
|
+
# },
|
945
1030
|
# filter_expression: "FilterExpression",
|
946
1031
|
# next_token: "String",
|
947
1032
|
# }
|
@@ -954,11 +1039,21 @@ module Aws::XRay
|
|
954
1039
|
# The end of the time frame for which to retrieve traces.
|
955
1040
|
# @return [Time]
|
956
1041
|
#
|
1042
|
+
# @!attribute [rw] time_range_type
|
1043
|
+
# A parameter to indicate whether to query trace summaries by TraceId
|
1044
|
+
# or Event time.
|
1045
|
+
# @return [String]
|
1046
|
+
#
|
957
1047
|
# @!attribute [rw] sampling
|
958
1048
|
# Set to `true` to get summaries for only a subset of available
|
959
1049
|
# traces.
|
960
1050
|
# @return [Boolean]
|
961
1051
|
#
|
1052
|
+
# @!attribute [rw] sampling_strategy
|
1053
|
+
# A paramater to indicate whether to enable sampling on trace
|
1054
|
+
# summaries. Input parameters are Name and Value.
|
1055
|
+
# @return [Types::SamplingStrategy]
|
1056
|
+
#
|
962
1057
|
# @!attribute [rw] filter_expression
|
963
1058
|
# Specify a filter expression to retrieve trace summaries for services
|
964
1059
|
# or requests that meet certain requirements.
|
@@ -974,7 +1069,9 @@ module Aws::XRay
|
|
974
1069
|
class GetTraceSummariesRequest < Struct.new(
|
975
1070
|
:start_time,
|
976
1071
|
:end_time,
|
1072
|
+
:time_range_type,
|
977
1073
|
:sampling,
|
1074
|
+
:sampling_strategy,
|
978
1075
|
:filter_expression,
|
979
1076
|
:next_token)
|
980
1077
|
include Aws::Structure
|
@@ -1671,6 +1768,32 @@ module Aws::XRay
|
|
1671
1768
|
include Aws::Structure
|
1672
1769
|
end
|
1673
1770
|
|
1771
|
+
# The name and value of a sampling rule to apply to a trace summary.
|
1772
|
+
#
|
1773
|
+
# @note When making an API call, you may pass SamplingStrategy
|
1774
|
+
# data as a hash:
|
1775
|
+
#
|
1776
|
+
# {
|
1777
|
+
# name: "PartialScan", # accepts PartialScan, FixedRate
|
1778
|
+
# value: 1.0,
|
1779
|
+
# }
|
1780
|
+
#
|
1781
|
+
# @!attribute [rw] name
|
1782
|
+
# The name of a sampling rule.
|
1783
|
+
# @return [String]
|
1784
|
+
#
|
1785
|
+
# @!attribute [rw] value
|
1786
|
+
# The value of a sampling rule.
|
1787
|
+
# @return [Float]
|
1788
|
+
#
|
1789
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/SamplingStrategy AWS API Documentation
|
1790
|
+
#
|
1791
|
+
class SamplingStrategy < Struct.new(
|
1792
|
+
:name,
|
1793
|
+
:value)
|
1794
|
+
include Aws::Structure
|
1795
|
+
end
|
1796
|
+
|
1674
1797
|
# Temporary changes to a sampling rule configuration. To meet the global
|
1675
1798
|
# sampling target for a rule, X-Ray calculates a new reservoir for each
|
1676
1799
|
# service based on the recent sampling results of all services that
|
@@ -1934,6 +2057,34 @@ module Aws::XRay
|
|
1934
2057
|
include Aws::Structure
|
1935
2058
|
end
|
1936
2059
|
|
2060
|
+
# A list of TimeSeriesStatistic structures.
|
2061
|
+
#
|
2062
|
+
# @!attribute [rw] timestamp
|
2063
|
+
# Timestamp of the window for which statistics are aggregated.
|
2064
|
+
# @return [Time]
|
2065
|
+
#
|
2066
|
+
# @!attribute [rw] edge_summary_statistics
|
2067
|
+
# Response statistics for an edge.
|
2068
|
+
# @return [Types::EdgeStatistics]
|
2069
|
+
#
|
2070
|
+
# @!attribute [rw] service_summary_statistics
|
2071
|
+
# Response statistics for a service.
|
2072
|
+
# @return [Types::ServiceStatistics]
|
2073
|
+
#
|
2074
|
+
# @!attribute [rw] response_time_histogram
|
2075
|
+
# The response time histogram for the selected entities.
|
2076
|
+
# @return [Array<Types::HistogramEntry>]
|
2077
|
+
#
|
2078
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/TimeSeriesServiceStatistics AWS API Documentation
|
2079
|
+
#
|
2080
|
+
class TimeSeriesServiceStatistics < Struct.new(
|
2081
|
+
:timestamp,
|
2082
|
+
:edge_summary_statistics,
|
2083
|
+
:service_summary_statistics,
|
2084
|
+
:response_time_histogram)
|
2085
|
+
include Aws::Structure
|
2086
|
+
end
|
2087
|
+
|
1937
2088
|
# A collection of segment documents with matching trace IDs.
|
1938
2089
|
#
|
1939
2090
|
# @!attribute [rw] id
|
@@ -2050,6 +2201,10 @@ module Aws::XRay
|
|
2050
2201
|
# The revision number of a trace.
|
2051
2202
|
# @return [Integer]
|
2052
2203
|
#
|
2204
|
+
# @!attribute [rw] matched_event_time
|
2205
|
+
# The matched time stamp of a defined event.
|
2206
|
+
# @return [Time]
|
2207
|
+
#
|
2053
2208
|
# @see http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/TraceSummary AWS API Documentation
|
2054
2209
|
#
|
2055
2210
|
class TraceSummary < Struct.new(
|
@@ -2071,7 +2226,8 @@ module Aws::XRay
|
|
2071
2226
|
:fault_root_causes,
|
2072
2227
|
:error_root_causes,
|
2073
2228
|
:response_time_root_causes,
|
2074
|
-
:revision
|
2229
|
+
:revision,
|
2230
|
+
:matched_event_time)
|
2075
2231
|
include Aws::Structure
|
2076
2232
|
end
|
2077
2233
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-xray
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.14.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: 2019-
|
11
|
+
date: 2019-05-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -59,7 +59,7 @@ files:
|
|
59
59
|
- lib/aws-sdk-xray/errors.rb
|
60
60
|
- lib/aws-sdk-xray/resource.rb
|
61
61
|
- lib/aws-sdk-xray/types.rb
|
62
|
-
homepage:
|
62
|
+
homepage: https://github.com/aws/aws-sdk-ruby
|
63
63
|
licenses:
|
64
64
|
- Apache-2.0
|
65
65
|
metadata:
|