aws-sdk-xray 1.0.0.rc2

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,372 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing for info on making contributions:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws
9
+ module XRay
10
+ # @api private
11
+ module ClientApi
12
+
13
+ include Seahorse::Model
14
+
15
+ Alias = Shapes::StructureShape.new(name: 'Alias')
16
+ AliasList = Shapes::ListShape.new(name: 'AliasList')
17
+ AliasNames = Shapes::ListShape.new(name: 'AliasNames')
18
+ AnnotationKey = Shapes::StringShape.new(name: 'AnnotationKey')
19
+ AnnotationValue = Shapes::StructureShape.new(name: 'AnnotationValue')
20
+ Annotations = Shapes::MapShape.new(name: 'Annotations')
21
+ BackendConnectionErrors = Shapes::StructureShape.new(name: 'BackendConnectionErrors')
22
+ BatchGetTracesRequest = Shapes::StructureShape.new(name: 'BatchGetTracesRequest')
23
+ BatchGetTracesResult = Shapes::StructureShape.new(name: 'BatchGetTracesResult')
24
+ Double = Shapes::FloatShape.new(name: 'Double')
25
+ Edge = Shapes::StructureShape.new(name: 'Edge')
26
+ EdgeList = Shapes::ListShape.new(name: 'EdgeList')
27
+ EdgeStatistics = Shapes::StructureShape.new(name: 'EdgeStatistics')
28
+ ErrorStatistics = Shapes::StructureShape.new(name: 'ErrorStatistics')
29
+ FaultStatistics = Shapes::StructureShape.new(name: 'FaultStatistics')
30
+ FilterExpression = Shapes::StringShape.new(name: 'FilterExpression')
31
+ GetServiceGraphRequest = Shapes::StructureShape.new(name: 'GetServiceGraphRequest')
32
+ GetServiceGraphResult = Shapes::StructureShape.new(name: 'GetServiceGraphResult')
33
+ GetTraceGraphRequest = Shapes::StructureShape.new(name: 'GetTraceGraphRequest')
34
+ GetTraceGraphResult = Shapes::StructureShape.new(name: 'GetTraceGraphResult')
35
+ GetTraceSummariesRequest = Shapes::StructureShape.new(name: 'GetTraceSummariesRequest')
36
+ GetTraceSummariesResult = Shapes::StructureShape.new(name: 'GetTraceSummariesResult')
37
+ Histogram = Shapes::ListShape.new(name: 'Histogram')
38
+ HistogramEntry = Shapes::StructureShape.new(name: 'HistogramEntry')
39
+ Http = Shapes::StructureShape.new(name: 'Http')
40
+ Integer = Shapes::IntegerShape.new(name: 'Integer')
41
+ InvalidRequestException = Shapes::StructureShape.new(name: 'InvalidRequestException')
42
+ NullableBoolean = Shapes::BooleanShape.new(name: 'NullableBoolean')
43
+ NullableDouble = Shapes::FloatShape.new(name: 'NullableDouble')
44
+ NullableInteger = Shapes::IntegerShape.new(name: 'NullableInteger')
45
+ NullableLong = Shapes::IntegerShape.new(name: 'NullableLong')
46
+ PutTelemetryRecordsRequest = Shapes::StructureShape.new(name: 'PutTelemetryRecordsRequest')
47
+ PutTelemetryRecordsResult = Shapes::StructureShape.new(name: 'PutTelemetryRecordsResult')
48
+ PutTraceSegmentsRequest = Shapes::StructureShape.new(name: 'PutTraceSegmentsRequest')
49
+ PutTraceSegmentsResult = Shapes::StructureShape.new(name: 'PutTraceSegmentsResult')
50
+ Segment = Shapes::StructureShape.new(name: 'Segment')
51
+ SegmentDocument = Shapes::StringShape.new(name: 'SegmentDocument')
52
+ SegmentId = Shapes::StringShape.new(name: 'SegmentId')
53
+ SegmentList = Shapes::ListShape.new(name: 'SegmentList')
54
+ Service = Shapes::StructureShape.new(name: 'Service')
55
+ ServiceId = Shapes::StructureShape.new(name: 'ServiceId')
56
+ ServiceIds = Shapes::ListShape.new(name: 'ServiceIds')
57
+ ServiceList = Shapes::ListShape.new(name: 'ServiceList')
58
+ ServiceNames = Shapes::ListShape.new(name: 'ServiceNames')
59
+ ServiceStatistics = Shapes::StructureShape.new(name: 'ServiceStatistics')
60
+ String = Shapes::StringShape.new(name: 'String')
61
+ TelemetryRecord = Shapes::StructureShape.new(name: 'TelemetryRecord')
62
+ TelemetryRecordList = Shapes::ListShape.new(name: 'TelemetryRecordList')
63
+ ThrottledException = Shapes::StructureShape.new(name: 'ThrottledException')
64
+ Timestamp = Shapes::TimestampShape.new(name: 'Timestamp')
65
+ Trace = Shapes::StructureShape.new(name: 'Trace')
66
+ TraceId = Shapes::StringShape.new(name: 'TraceId')
67
+ TraceIdList = Shapes::ListShape.new(name: 'TraceIdList')
68
+ TraceList = Shapes::ListShape.new(name: 'TraceList')
69
+ TraceSegmentDocument = Shapes::StringShape.new(name: 'TraceSegmentDocument')
70
+ TraceSegmentDocumentList = Shapes::ListShape.new(name: 'TraceSegmentDocumentList')
71
+ TraceSummary = Shapes::StructureShape.new(name: 'TraceSummary')
72
+ TraceSummaryList = Shapes::ListShape.new(name: 'TraceSummaryList')
73
+ TraceUser = Shapes::StructureShape.new(name: 'TraceUser')
74
+ TraceUsers = Shapes::ListShape.new(name: 'TraceUsers')
75
+ UnprocessedTraceIdList = Shapes::ListShape.new(name: 'UnprocessedTraceIdList')
76
+ UnprocessedTraceSegment = Shapes::StructureShape.new(name: 'UnprocessedTraceSegment')
77
+ UnprocessedTraceSegmentList = Shapes::ListShape.new(name: 'UnprocessedTraceSegmentList')
78
+ ValueWithServiceIds = Shapes::StructureShape.new(name: 'ValueWithServiceIds')
79
+ ValuesWithServiceIds = Shapes::ListShape.new(name: 'ValuesWithServiceIds')
80
+
81
+ Alias.add_member(:name, Shapes::ShapeRef.new(shape: String, location_name: "Name"))
82
+ Alias.add_member(:names, Shapes::ShapeRef.new(shape: AliasNames, location_name: "Names"))
83
+ Alias.add_member(:type, Shapes::ShapeRef.new(shape: String, location_name: "Type"))
84
+ Alias.struct_class = Types::Alias
85
+
86
+ AliasList.member = Shapes::ShapeRef.new(shape: Alias)
87
+
88
+ AliasNames.member = Shapes::ShapeRef.new(shape: String)
89
+
90
+ AnnotationValue.add_member(:number_value, Shapes::ShapeRef.new(shape: NullableDouble, location_name: "NumberValue"))
91
+ AnnotationValue.add_member(:boolean_value, Shapes::ShapeRef.new(shape: NullableBoolean, location_name: "BooleanValue"))
92
+ AnnotationValue.add_member(:string_value, Shapes::ShapeRef.new(shape: String, location_name: "StringValue"))
93
+ AnnotationValue.struct_class = Types::AnnotationValue
94
+
95
+ Annotations.key = Shapes::ShapeRef.new(shape: AnnotationKey)
96
+ Annotations.value = Shapes::ShapeRef.new(shape: ValuesWithServiceIds)
97
+
98
+ BackendConnectionErrors.add_member(:timeout_count, Shapes::ShapeRef.new(shape: NullableInteger, location_name: "TimeoutCount"))
99
+ BackendConnectionErrors.add_member(:connection_refused_count, Shapes::ShapeRef.new(shape: NullableInteger, location_name: "ConnectionRefusedCount"))
100
+ BackendConnectionErrors.add_member(:http_code_4_xx_count, Shapes::ShapeRef.new(shape: NullableInteger, location_name: "HTTPCode4XXCount"))
101
+ BackendConnectionErrors.add_member(:http_code_5_xx_count, Shapes::ShapeRef.new(shape: NullableInteger, location_name: "HTTPCode5XXCount"))
102
+ BackendConnectionErrors.add_member(:unknown_host_count, Shapes::ShapeRef.new(shape: NullableInteger, location_name: "UnknownHostCount"))
103
+ BackendConnectionErrors.add_member(:other_count, Shapes::ShapeRef.new(shape: NullableInteger, location_name: "OtherCount"))
104
+ BackendConnectionErrors.struct_class = Types::BackendConnectionErrors
105
+
106
+ BatchGetTracesRequest.add_member(:trace_ids, Shapes::ShapeRef.new(shape: TraceIdList, required: true, location_name: "TraceIds"))
107
+ BatchGetTracesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
108
+ BatchGetTracesRequest.struct_class = Types::BatchGetTracesRequest
109
+
110
+ BatchGetTracesResult.add_member(:traces, Shapes::ShapeRef.new(shape: TraceList, location_name: "Traces"))
111
+ BatchGetTracesResult.add_member(:unprocessed_trace_ids, Shapes::ShapeRef.new(shape: UnprocessedTraceIdList, location_name: "UnprocessedTraceIds"))
112
+ BatchGetTracesResult.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
113
+ BatchGetTracesResult.struct_class = Types::BatchGetTracesResult
114
+
115
+ Edge.add_member(:reference_id, Shapes::ShapeRef.new(shape: NullableInteger, location_name: "ReferenceId"))
116
+ Edge.add_member(:start_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "StartTime"))
117
+ Edge.add_member(:end_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "EndTime"))
118
+ Edge.add_member(:summary_statistics, Shapes::ShapeRef.new(shape: EdgeStatistics, location_name: "SummaryStatistics"))
119
+ Edge.add_member(:response_time_histogram, Shapes::ShapeRef.new(shape: Histogram, location_name: "ResponseTimeHistogram"))
120
+ Edge.add_member(:aliases, Shapes::ShapeRef.new(shape: AliasList, location_name: "Aliases"))
121
+ Edge.struct_class = Types::Edge
122
+
123
+ EdgeList.member = Shapes::ShapeRef.new(shape: Edge)
124
+
125
+ EdgeStatistics.add_member(:ok_count, Shapes::ShapeRef.new(shape: NullableLong, location_name: "OkCount"))
126
+ EdgeStatistics.add_member(:error_statistics, Shapes::ShapeRef.new(shape: ErrorStatistics, location_name: "ErrorStatistics"))
127
+ EdgeStatistics.add_member(:fault_statistics, Shapes::ShapeRef.new(shape: FaultStatistics, location_name: "FaultStatistics"))
128
+ EdgeStatistics.add_member(:total_count, Shapes::ShapeRef.new(shape: NullableLong, location_name: "TotalCount"))
129
+ EdgeStatistics.add_member(:total_response_time, Shapes::ShapeRef.new(shape: NullableDouble, location_name: "TotalResponseTime"))
130
+ EdgeStatistics.struct_class = Types::EdgeStatistics
131
+
132
+ ErrorStatistics.add_member(:throttle_count, Shapes::ShapeRef.new(shape: NullableLong, location_name: "ThrottleCount"))
133
+ ErrorStatistics.add_member(:other_count, Shapes::ShapeRef.new(shape: NullableLong, location_name: "OtherCount"))
134
+ ErrorStatistics.add_member(:total_count, Shapes::ShapeRef.new(shape: NullableLong, location_name: "TotalCount"))
135
+ ErrorStatistics.struct_class = Types::ErrorStatistics
136
+
137
+ FaultStatistics.add_member(:other_count, Shapes::ShapeRef.new(shape: NullableLong, location_name: "OtherCount"))
138
+ FaultStatistics.add_member(:total_count, Shapes::ShapeRef.new(shape: NullableLong, location_name: "TotalCount"))
139
+ FaultStatistics.struct_class = Types::FaultStatistics
140
+
141
+ GetServiceGraphRequest.add_member(:start_time, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "StartTime"))
142
+ GetServiceGraphRequest.add_member(:end_time, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "EndTime"))
143
+ GetServiceGraphRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
144
+ GetServiceGraphRequest.struct_class = Types::GetServiceGraphRequest
145
+
146
+ GetServiceGraphResult.add_member(:start_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "StartTime"))
147
+ GetServiceGraphResult.add_member(:end_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "EndTime"))
148
+ GetServiceGraphResult.add_member(:services, Shapes::ShapeRef.new(shape: ServiceList, location_name: "Services"))
149
+ GetServiceGraphResult.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
150
+ GetServiceGraphResult.struct_class = Types::GetServiceGraphResult
151
+
152
+ GetTraceGraphRequest.add_member(:trace_ids, Shapes::ShapeRef.new(shape: TraceIdList, required: true, location_name: "TraceIds"))
153
+ GetTraceGraphRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
154
+ GetTraceGraphRequest.struct_class = Types::GetTraceGraphRequest
155
+
156
+ GetTraceGraphResult.add_member(:services, Shapes::ShapeRef.new(shape: ServiceList, location_name: "Services"))
157
+ GetTraceGraphResult.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
158
+ GetTraceGraphResult.struct_class = Types::GetTraceGraphResult
159
+
160
+ GetTraceSummariesRequest.add_member(:start_time, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "StartTime"))
161
+ GetTraceSummariesRequest.add_member(:end_time, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "EndTime"))
162
+ GetTraceSummariesRequest.add_member(:sampling, Shapes::ShapeRef.new(shape: NullableBoolean, location_name: "Sampling"))
163
+ GetTraceSummariesRequest.add_member(:filter_expression, Shapes::ShapeRef.new(shape: FilterExpression, location_name: "FilterExpression"))
164
+ GetTraceSummariesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
165
+ GetTraceSummariesRequest.struct_class = Types::GetTraceSummariesRequest
166
+
167
+ GetTraceSummariesResult.add_member(:trace_summaries, Shapes::ShapeRef.new(shape: TraceSummaryList, location_name: "TraceSummaries"))
168
+ GetTraceSummariesResult.add_member(:approximate_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "ApproximateTime"))
169
+ GetTraceSummariesResult.add_member(:traces_processed_count, Shapes::ShapeRef.new(shape: NullableLong, location_name: "TracesProcessedCount"))
170
+ GetTraceSummariesResult.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
171
+ GetTraceSummariesResult.struct_class = Types::GetTraceSummariesResult
172
+
173
+ Histogram.member = Shapes::ShapeRef.new(shape: HistogramEntry)
174
+
175
+ HistogramEntry.add_member(:value, Shapes::ShapeRef.new(shape: Double, location_name: "Value"))
176
+ HistogramEntry.add_member(:count, Shapes::ShapeRef.new(shape: Integer, location_name: "Count"))
177
+ HistogramEntry.struct_class = Types::HistogramEntry
178
+
179
+ Http.add_member(:http_url, Shapes::ShapeRef.new(shape: String, location_name: "HttpURL"))
180
+ Http.add_member(:http_status, Shapes::ShapeRef.new(shape: NullableInteger, location_name: "HttpStatus"))
181
+ Http.add_member(:http_method, Shapes::ShapeRef.new(shape: String, location_name: "HttpMethod"))
182
+ Http.add_member(:user_agent, Shapes::ShapeRef.new(shape: String, location_name: "UserAgent"))
183
+ Http.add_member(:client_ip, Shapes::ShapeRef.new(shape: String, location_name: "ClientIp"))
184
+ Http.struct_class = Types::Http
185
+
186
+ PutTelemetryRecordsRequest.add_member(:telemetry_records, Shapes::ShapeRef.new(shape: TelemetryRecordList, required: true, location_name: "TelemetryRecords"))
187
+ PutTelemetryRecordsRequest.add_member(:ec2_instance_id, Shapes::ShapeRef.new(shape: String, location_name: "EC2InstanceId"))
188
+ PutTelemetryRecordsRequest.add_member(:hostname, Shapes::ShapeRef.new(shape: String, location_name: "Hostname"))
189
+ PutTelemetryRecordsRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: String, location_name: "ResourceARN"))
190
+ PutTelemetryRecordsRequest.struct_class = Types::PutTelemetryRecordsRequest
191
+
192
+ PutTelemetryRecordsResult.struct_class = Types::PutTelemetryRecordsResult
193
+
194
+ PutTraceSegmentsRequest.add_member(:trace_segment_documents, Shapes::ShapeRef.new(shape: TraceSegmentDocumentList, required: true, location_name: "TraceSegmentDocuments"))
195
+ PutTraceSegmentsRequest.struct_class = Types::PutTraceSegmentsRequest
196
+
197
+ PutTraceSegmentsResult.add_member(:unprocessed_trace_segments, Shapes::ShapeRef.new(shape: UnprocessedTraceSegmentList, location_name: "UnprocessedTraceSegments"))
198
+ PutTraceSegmentsResult.struct_class = Types::PutTraceSegmentsResult
199
+
200
+ Segment.add_member(:id, Shapes::ShapeRef.new(shape: SegmentId, location_name: "Id"))
201
+ Segment.add_member(:document, Shapes::ShapeRef.new(shape: SegmentDocument, location_name: "Document"))
202
+ Segment.struct_class = Types::Segment
203
+
204
+ SegmentList.member = Shapes::ShapeRef.new(shape: Segment)
205
+
206
+ Service.add_member(:reference_id, Shapes::ShapeRef.new(shape: NullableInteger, location_name: "ReferenceId"))
207
+ Service.add_member(:name, Shapes::ShapeRef.new(shape: String, location_name: "Name"))
208
+ Service.add_member(:names, Shapes::ShapeRef.new(shape: ServiceNames, location_name: "Names"))
209
+ Service.add_member(:root, Shapes::ShapeRef.new(shape: NullableBoolean, location_name: "Root"))
210
+ Service.add_member(:account_id, Shapes::ShapeRef.new(shape: String, location_name: "AccountId"))
211
+ Service.add_member(:type, Shapes::ShapeRef.new(shape: String, location_name: "Type"))
212
+ Service.add_member(:state, Shapes::ShapeRef.new(shape: String, location_name: "State"))
213
+ Service.add_member(:start_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "StartTime"))
214
+ Service.add_member(:end_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "EndTime"))
215
+ Service.add_member(:edges, Shapes::ShapeRef.new(shape: EdgeList, location_name: "Edges"))
216
+ Service.add_member(:summary_statistics, Shapes::ShapeRef.new(shape: ServiceStatistics, location_name: "SummaryStatistics"))
217
+ Service.add_member(:duration_histogram, Shapes::ShapeRef.new(shape: Histogram, location_name: "DurationHistogram"))
218
+ Service.struct_class = Types::Service
219
+
220
+ ServiceId.add_member(:name, Shapes::ShapeRef.new(shape: String, location_name: "Name"))
221
+ ServiceId.add_member(:names, Shapes::ShapeRef.new(shape: ServiceNames, location_name: "Names"))
222
+ ServiceId.add_member(:account_id, Shapes::ShapeRef.new(shape: String, location_name: "AccountId"))
223
+ ServiceId.add_member(:type, Shapes::ShapeRef.new(shape: String, location_name: "Type"))
224
+ ServiceId.struct_class = Types::ServiceId
225
+
226
+ ServiceIds.member = Shapes::ShapeRef.new(shape: ServiceId)
227
+
228
+ ServiceList.member = Shapes::ShapeRef.new(shape: Service)
229
+
230
+ ServiceNames.member = Shapes::ShapeRef.new(shape: String)
231
+
232
+ ServiceStatistics.add_member(:ok_count, Shapes::ShapeRef.new(shape: NullableLong, location_name: "OkCount"))
233
+ ServiceStatistics.add_member(:error_statistics, Shapes::ShapeRef.new(shape: ErrorStatistics, location_name: "ErrorStatistics"))
234
+ ServiceStatistics.add_member(:fault_statistics, Shapes::ShapeRef.new(shape: FaultStatistics, location_name: "FaultStatistics"))
235
+ ServiceStatistics.add_member(:total_count, Shapes::ShapeRef.new(shape: NullableLong, location_name: "TotalCount"))
236
+ ServiceStatistics.add_member(:total_response_time, Shapes::ShapeRef.new(shape: NullableDouble, location_name: "TotalResponseTime"))
237
+ ServiceStatistics.struct_class = Types::ServiceStatistics
238
+
239
+ TelemetryRecord.add_member(:timestamp, Shapes::ShapeRef.new(shape: Timestamp, location_name: "Timestamp"))
240
+ TelemetryRecord.add_member(:segments_received_count, Shapes::ShapeRef.new(shape: NullableInteger, location_name: "SegmentsReceivedCount"))
241
+ TelemetryRecord.add_member(:segments_sent_count, Shapes::ShapeRef.new(shape: NullableInteger, location_name: "SegmentsSentCount"))
242
+ TelemetryRecord.add_member(:segments_spillover_count, Shapes::ShapeRef.new(shape: NullableInteger, location_name: "SegmentsSpilloverCount"))
243
+ TelemetryRecord.add_member(:segments_rejected_count, Shapes::ShapeRef.new(shape: NullableInteger, location_name: "SegmentsRejectedCount"))
244
+ TelemetryRecord.add_member(:backend_connection_errors, Shapes::ShapeRef.new(shape: BackendConnectionErrors, location_name: "BackendConnectionErrors"))
245
+ TelemetryRecord.struct_class = Types::TelemetryRecord
246
+
247
+ TelemetryRecordList.member = Shapes::ShapeRef.new(shape: TelemetryRecord)
248
+
249
+ Trace.add_member(:id, Shapes::ShapeRef.new(shape: TraceId, location_name: "Id"))
250
+ Trace.add_member(:duration, Shapes::ShapeRef.new(shape: NullableDouble, location_name: "Duration"))
251
+ Trace.add_member(:segments, Shapes::ShapeRef.new(shape: SegmentList, location_name: "Segments"))
252
+ Trace.struct_class = Types::Trace
253
+
254
+ TraceIdList.member = Shapes::ShapeRef.new(shape: TraceId)
255
+
256
+ TraceList.member = Shapes::ShapeRef.new(shape: Trace)
257
+
258
+ TraceSegmentDocumentList.member = Shapes::ShapeRef.new(shape: TraceSegmentDocument)
259
+
260
+ TraceSummary.add_member(:id, Shapes::ShapeRef.new(shape: TraceId, location_name: "Id"))
261
+ TraceSummary.add_member(:duration, Shapes::ShapeRef.new(shape: NullableDouble, location_name: "Duration"))
262
+ TraceSummary.add_member(:response_time, Shapes::ShapeRef.new(shape: NullableDouble, location_name: "ResponseTime"))
263
+ TraceSummary.add_member(:has_fault, Shapes::ShapeRef.new(shape: NullableBoolean, location_name: "HasFault"))
264
+ TraceSummary.add_member(:has_error, Shapes::ShapeRef.new(shape: NullableBoolean, location_name: "HasError"))
265
+ TraceSummary.add_member(:has_throttle, Shapes::ShapeRef.new(shape: NullableBoolean, location_name: "HasThrottle"))
266
+ TraceSummary.add_member(:is_partial, Shapes::ShapeRef.new(shape: NullableBoolean, location_name: "IsPartial"))
267
+ TraceSummary.add_member(:http, Shapes::ShapeRef.new(shape: Http, location_name: "Http"))
268
+ TraceSummary.add_member(:annotations, Shapes::ShapeRef.new(shape: Annotations, location_name: "Annotations"))
269
+ TraceSummary.add_member(:users, Shapes::ShapeRef.new(shape: TraceUsers, location_name: "Users"))
270
+ TraceSummary.add_member(:service_ids, Shapes::ShapeRef.new(shape: ServiceIds, location_name: "ServiceIds"))
271
+ TraceSummary.struct_class = Types::TraceSummary
272
+
273
+ TraceSummaryList.member = Shapes::ShapeRef.new(shape: TraceSummary)
274
+
275
+ TraceUser.add_member(:user_name, Shapes::ShapeRef.new(shape: String, location_name: "UserName"))
276
+ TraceUser.add_member(:service_ids, Shapes::ShapeRef.new(shape: ServiceIds, location_name: "ServiceIds"))
277
+ TraceUser.struct_class = Types::TraceUser
278
+
279
+ TraceUsers.member = Shapes::ShapeRef.new(shape: TraceUser)
280
+
281
+ UnprocessedTraceIdList.member = Shapes::ShapeRef.new(shape: TraceId)
282
+
283
+ UnprocessedTraceSegment.add_member(:id, Shapes::ShapeRef.new(shape: String, location_name: "Id"))
284
+ UnprocessedTraceSegment.add_member(:error_code, Shapes::ShapeRef.new(shape: String, location_name: "ErrorCode"))
285
+ UnprocessedTraceSegment.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
286
+ UnprocessedTraceSegment.struct_class = Types::UnprocessedTraceSegment
287
+
288
+ UnprocessedTraceSegmentList.member = Shapes::ShapeRef.new(shape: UnprocessedTraceSegment)
289
+
290
+ ValueWithServiceIds.add_member(:annotation_value, Shapes::ShapeRef.new(shape: AnnotationValue, location_name: "AnnotationValue"))
291
+ ValueWithServiceIds.add_member(:service_ids, Shapes::ShapeRef.new(shape: ServiceIds, location_name: "ServiceIds"))
292
+ ValueWithServiceIds.struct_class = Types::ValueWithServiceIds
293
+
294
+ ValuesWithServiceIds.member = Shapes::ShapeRef.new(shape: ValueWithServiceIds)
295
+
296
+
297
+ # @api private
298
+ API = Seahorse::Model::Api.new.tap do |api|
299
+
300
+ api.version = "2016-04-12"
301
+
302
+ api.metadata = {
303
+ "endpointPrefix" => "xray",
304
+ "protocol" => "rest-json",
305
+ "serviceFullName" => "AWS X-Ray",
306
+ "signatureVersion" => "v4",
307
+ }
308
+
309
+ api.add_operation(:batch_get_traces, Seahorse::Model::Operation.new.tap do |o|
310
+ o.name = "BatchGetTraces"
311
+ o.http_method = "POST"
312
+ o.http_request_uri = "/Traces"
313
+ o.input = Shapes::ShapeRef.new(shape: BatchGetTracesRequest)
314
+ o.output = Shapes::ShapeRef.new(shape: BatchGetTracesResult)
315
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
316
+ o.errors << Shapes::ShapeRef.new(shape: ThrottledException)
317
+ end)
318
+
319
+ api.add_operation(:get_service_graph, Seahorse::Model::Operation.new.tap do |o|
320
+ o.name = "GetServiceGraph"
321
+ o.http_method = "POST"
322
+ o.http_request_uri = "/ServiceGraph"
323
+ o.input = Shapes::ShapeRef.new(shape: GetServiceGraphRequest)
324
+ o.output = Shapes::ShapeRef.new(shape: GetServiceGraphResult)
325
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
326
+ o.errors << Shapes::ShapeRef.new(shape: ThrottledException)
327
+ end)
328
+
329
+ api.add_operation(:get_trace_graph, Seahorse::Model::Operation.new.tap do |o|
330
+ o.name = "GetTraceGraph"
331
+ o.http_method = "POST"
332
+ o.http_request_uri = "/TraceGraph"
333
+ o.input = Shapes::ShapeRef.new(shape: GetTraceGraphRequest)
334
+ o.output = Shapes::ShapeRef.new(shape: GetTraceGraphResult)
335
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
336
+ o.errors << Shapes::ShapeRef.new(shape: ThrottledException)
337
+ end)
338
+
339
+ api.add_operation(:get_trace_summaries, Seahorse::Model::Operation.new.tap do |o|
340
+ o.name = "GetTraceSummaries"
341
+ o.http_method = "POST"
342
+ o.http_request_uri = "/TraceSummaries"
343
+ o.input = Shapes::ShapeRef.new(shape: GetTraceSummariesRequest)
344
+ o.output = Shapes::ShapeRef.new(shape: GetTraceSummariesResult)
345
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
346
+ o.errors << Shapes::ShapeRef.new(shape: ThrottledException)
347
+ end)
348
+
349
+ api.add_operation(:put_telemetry_records, Seahorse::Model::Operation.new.tap do |o|
350
+ o.name = "PutTelemetryRecords"
351
+ o.http_method = "POST"
352
+ o.http_request_uri = "/TelemetryRecords"
353
+ o.input = Shapes::ShapeRef.new(shape: PutTelemetryRecordsRequest)
354
+ o.output = Shapes::ShapeRef.new(shape: PutTelemetryRecordsResult)
355
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
356
+ o.errors << Shapes::ShapeRef.new(shape: ThrottledException)
357
+ end)
358
+
359
+ api.add_operation(:put_trace_segments, Seahorse::Model::Operation.new.tap do |o|
360
+ o.name = "PutTraceSegments"
361
+ o.http_method = "POST"
362
+ o.http_request_uri = "/TraceSegments"
363
+ o.input = Shapes::ShapeRef.new(shape: PutTraceSegmentsRequest)
364
+ o.output = Shapes::ShapeRef.new(shape: PutTraceSegmentsResult)
365
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
366
+ o.errors << Shapes::ShapeRef.new(shape: ThrottledException)
367
+ end)
368
+ end
369
+
370
+ end
371
+ end
372
+ end
File without changes
@@ -0,0 +1,23 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing for info on making contributions:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws
9
+ module XRay
10
+ module Errors
11
+
12
+ extend Aws::Errors::DynamicErrors
13
+
14
+ # Raised when calling #load or #data on a resource class that can not be
15
+ # loaded. This can happen when:
16
+ #
17
+ # * A resource class has identifiers, but no data attributes.
18
+ # * Resource data is only available when making an API call that
19
+ # enumerates all resources of that type.
20
+ class ResourceNotLoadable < RuntimeError; end
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,25 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing for info on making contributions:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws
9
+ module XRay
10
+ class Resource
11
+
12
+ # @param options ({})
13
+ # @option options [Client] :client
14
+ def initialize(options = {})
15
+ @client = options[:client] || Client.new(options)
16
+ end
17
+
18
+ # @return [Client]
19
+ def client
20
+ @client
21
+ end
22
+
23
+ end
24
+ end
25
+ end
@@ -0,0 +1,865 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing for info on making contributions:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws
9
+ module XRay
10
+ module Types
11
+
12
+ # An alias for an edge.
13
+ # @!attribute [rw] name
14
+ # The canonical name of the alias.
15
+ # @return [String]
16
+ #
17
+ # @!attribute [rw] names
18
+ # A list of names for the alias, including the canonical name.
19
+ # @return [Array<String>]
20
+ #
21
+ # @!attribute [rw] type
22
+ # The type of the alias.
23
+ # @return [String]
24
+ class Alias < Struct.new(
25
+ :name,
26
+ :names,
27
+ :type)
28
+ include Aws::Structure
29
+ end
30
+
31
+ # Value of a segment annotation. Has one of three value types: Number,
32
+ # Boolean or String.
33
+ # @!attribute [rw] number_value
34
+ # Value for a Number annotation.
35
+ # @return [Float]
36
+ #
37
+ # @!attribute [rw] boolean_value
38
+ # Value for a Boolean annotation.
39
+ # @return [Boolean]
40
+ #
41
+ # @!attribute [rw] string_value
42
+ # Value for a String annotation.
43
+ # @return [String]
44
+ class AnnotationValue < Struct.new(
45
+ :number_value,
46
+ :boolean_value,
47
+ :string_value)
48
+ include Aws::Structure
49
+ end
50
+
51
+ # @note When making an API call, pass BackendConnectionErrors
52
+ # data as a hash:
53
+ #
54
+ # {
55
+ # timeout_count: 1,
56
+ # connection_refused_count: 1,
57
+ # http_code_4_xx_count: 1,
58
+ # http_code_5_xx_count: 1,
59
+ # unknown_host_count: 1,
60
+ # other_count: 1,
61
+ # }
62
+ # @!attribute [rw] timeout_count
63
+ # @return [Integer]
64
+ #
65
+ # @!attribute [rw] connection_refused_count
66
+ # @return [Integer]
67
+ #
68
+ # @!attribute [rw] http_code_4_xx_count
69
+ # @return [Integer]
70
+ #
71
+ # @!attribute [rw] http_code_5_xx_count
72
+ # @return [Integer]
73
+ #
74
+ # @!attribute [rw] unknown_host_count
75
+ # @return [Integer]
76
+ #
77
+ # @!attribute [rw] other_count
78
+ # @return [Integer]
79
+ class BackendConnectionErrors < Struct.new(
80
+ :timeout_count,
81
+ :connection_refused_count,
82
+ :http_code_4_xx_count,
83
+ :http_code_5_xx_count,
84
+ :unknown_host_count,
85
+ :other_count)
86
+ include Aws::Structure
87
+ end
88
+
89
+ # @note When making an API call, pass BatchGetTracesRequest
90
+ # data as a hash:
91
+ #
92
+ # {
93
+ # trace_ids: ["TraceId"], # required
94
+ # next_token: "String",
95
+ # }
96
+ # @!attribute [rw] trace_ids
97
+ # Specify the trace IDs of requests for which to retrieve segments.
98
+ # @return [Array<String>]
99
+ #
100
+ # @!attribute [rw] next_token
101
+ # Pagination token. Not used.
102
+ # @return [String]
103
+ class BatchGetTracesRequest < Struct.new(
104
+ :trace_ids,
105
+ :next_token)
106
+ include Aws::Structure
107
+ end
108
+
109
+ # @!attribute [rw] traces
110
+ # Full traces for the specified requests.
111
+ # @return [Array<Types::Trace>]
112
+ #
113
+ # @!attribute [rw] unprocessed_trace_ids
114
+ # Trace IDs of requests that haven't been processed.
115
+ # @return [Array<String>]
116
+ #
117
+ # @!attribute [rw] next_token
118
+ # Pagination token. Not used.
119
+ # @return [String]
120
+ class BatchGetTracesResult < Struct.new(
121
+ :traces,
122
+ :unprocessed_trace_ids,
123
+ :next_token)
124
+ include Aws::Structure
125
+ end
126
+
127
+ # Information about a connection between two services.
128
+ # @!attribute [rw] reference_id
129
+ # Identifier of the edge. Unique within a service map.
130
+ # @return [Integer]
131
+ #
132
+ # @!attribute [rw] start_time
133
+ # The start time of the first segment on the edge.
134
+ # @return [Time]
135
+ #
136
+ # @!attribute [rw] end_time
137
+ # The end time of the last segment on the edge.
138
+ # @return [Time]
139
+ #
140
+ # @!attribute [rw] summary_statistics
141
+ # Response statistics for segments on the edge.
142
+ # @return [Types::EdgeStatistics]
143
+ #
144
+ # @!attribute [rw] response_time_histogram
145
+ # Histogram describing the prominence of response times on the edge.
146
+ # @return [Array<Types::HistogramEntry>]
147
+ #
148
+ # @!attribute [rw] aliases
149
+ # Aliases for the edge.
150
+ # @return [Array<Types::Alias>]
151
+ class Edge < Struct.new(
152
+ :reference_id,
153
+ :start_time,
154
+ :end_time,
155
+ :summary_statistics,
156
+ :response_time_histogram,
157
+ :aliases)
158
+ include Aws::Structure
159
+ end
160
+
161
+ # Response statistics for an edge.
162
+ # @!attribute [rw] ok_count
163
+ # The number of requests that completed with a 2xx Success status
164
+ # code.
165
+ # @return [Integer]
166
+ #
167
+ # @!attribute [rw] error_statistics
168
+ # Information about requests that failed with a 4xx Client Error
169
+ # status code.
170
+ # @return [Types::ErrorStatistics]
171
+ #
172
+ # @!attribute [rw] fault_statistics
173
+ # Information about requests that failed with a 5xx Server Error
174
+ # status code.
175
+ # @return [Types::FaultStatistics]
176
+ #
177
+ # @!attribute [rw] total_count
178
+ # The total number of completed requests.
179
+ # @return [Integer]
180
+ #
181
+ # @!attribute [rw] total_response_time
182
+ # The aggregate response time of completed requests.
183
+ # @return [Float]
184
+ class EdgeStatistics < Struct.new(
185
+ :ok_count,
186
+ :error_statistics,
187
+ :fault_statistics,
188
+ :total_count,
189
+ :total_response_time)
190
+ include Aws::Structure
191
+ end
192
+
193
+ # Information about requests that failed with a 4xx Client Error status
194
+ # code.
195
+ # @!attribute [rw] throttle_count
196
+ # The number of requests that failed with a 419 throttling status
197
+ # code.
198
+ # @return [Integer]
199
+ #
200
+ # @!attribute [rw] other_count
201
+ # The number of requests that failed with untracked 4xx Client Error
202
+ # status codes.
203
+ # @return [Integer]
204
+ #
205
+ # @!attribute [rw] total_count
206
+ # The total number of requests that failed with a 4xx Client Error
207
+ # status code.
208
+ # @return [Integer]
209
+ class ErrorStatistics < Struct.new(
210
+ :throttle_count,
211
+ :other_count,
212
+ :total_count)
213
+ include Aws::Structure
214
+ end
215
+
216
+ # Information about requests that failed with a 5xx Server Error status
217
+ # code.
218
+ # @!attribute [rw] other_count
219
+ # The number of requests that failed with untracked 5xx Server Error
220
+ # status codes.
221
+ # @return [Integer]
222
+ #
223
+ # @!attribute [rw] total_count
224
+ # The total number of requests that failed with a 5xx Server Error
225
+ # status code.
226
+ # @return [Integer]
227
+ class FaultStatistics < Struct.new(
228
+ :other_count,
229
+ :total_count)
230
+ include Aws::Structure
231
+ end
232
+
233
+ # @note When making an API call, pass GetServiceGraphRequest
234
+ # data as a hash:
235
+ #
236
+ # {
237
+ # start_time: Time.now, # required
238
+ # end_time: Time.now, # required
239
+ # next_token: "String",
240
+ # }
241
+ # @!attribute [rw] start_time
242
+ # The start of the time frame for which to generate a graph.
243
+ # @return [Time]
244
+ #
245
+ # @!attribute [rw] end_time
246
+ # The end of the time frame for which to generate a graph.
247
+ # @return [Time]
248
+ #
249
+ # @!attribute [rw] next_token
250
+ # Pagination token. Not used.
251
+ # @return [String]
252
+ class GetServiceGraphRequest < Struct.new(
253
+ :start_time,
254
+ :end_time,
255
+ :next_token)
256
+ include Aws::Structure
257
+ end
258
+
259
+ # @!attribute [rw] start_time
260
+ # The start of the time frame for which the graph was generated.
261
+ # @return [Time]
262
+ #
263
+ # @!attribute [rw] end_time
264
+ # The end of the time frame for which the graph was generated.
265
+ # @return [Time]
266
+ #
267
+ # @!attribute [rw] services
268
+ # The services that have processed a traced request during the
269
+ # specified time frame.
270
+ # @return [Array<Types::Service>]
271
+ #
272
+ # @!attribute [rw] next_token
273
+ # Pagination token. Not used.
274
+ # @return [String]
275
+ class GetServiceGraphResult < Struct.new(
276
+ :start_time,
277
+ :end_time,
278
+ :services,
279
+ :next_token)
280
+ include Aws::Structure
281
+ end
282
+
283
+ # @note When making an API call, pass GetTraceGraphRequest
284
+ # data as a hash:
285
+ #
286
+ # {
287
+ # trace_ids: ["TraceId"], # required
288
+ # next_token: "String",
289
+ # }
290
+ # @!attribute [rw] trace_ids
291
+ # Trace IDs of requests for which to generate a service graph.
292
+ # @return [Array<String>]
293
+ #
294
+ # @!attribute [rw] next_token
295
+ # Pagination token. Not used.
296
+ # @return [String]
297
+ class GetTraceGraphRequest < Struct.new(
298
+ :trace_ids,
299
+ :next_token)
300
+ include Aws::Structure
301
+ end
302
+
303
+ # @!attribute [rw] services
304
+ # The services that have processed one of the specified requests.
305
+ # @return [Array<Types::Service>]
306
+ #
307
+ # @!attribute [rw] next_token
308
+ # Pagination token. Not used.
309
+ # @return [String]
310
+ class GetTraceGraphResult < Struct.new(
311
+ :services,
312
+ :next_token)
313
+ include Aws::Structure
314
+ end
315
+
316
+ # @note When making an API call, pass GetTraceSummariesRequest
317
+ # data as a hash:
318
+ #
319
+ # {
320
+ # start_time: Time.now, # required
321
+ # end_time: Time.now, # required
322
+ # sampling: false,
323
+ # filter_expression: "FilterExpression",
324
+ # next_token: "String",
325
+ # }
326
+ # @!attribute [rw] start_time
327
+ # The start of the time frame for which to retrieve traces.
328
+ # @return [Time]
329
+ #
330
+ # @!attribute [rw] end_time
331
+ # The end of the time frame for which to retrieve traces.
332
+ # @return [Time]
333
+ #
334
+ # @!attribute [rw] sampling
335
+ # Set to `true` to get summaries for only a subset of available
336
+ # traces.
337
+ # @return [Boolean]
338
+ #
339
+ # @!attribute [rw] filter_expression
340
+ # Specify a filter expression to retrieve trace summaries for services
341
+ # or requests that meet certain requirements.
342
+ # @return [String]
343
+ #
344
+ # @!attribute [rw] next_token
345
+ # Specify the pagination token returned by a previous request to
346
+ # retrieve the next page of results.
347
+ # @return [String]
348
+ class GetTraceSummariesRequest < Struct.new(
349
+ :start_time,
350
+ :end_time,
351
+ :sampling,
352
+ :filter_expression,
353
+ :next_token)
354
+ include Aws::Structure
355
+ end
356
+
357
+ # @!attribute [rw] trace_summaries
358
+ # Trace IDs and metadata for traces that were found in the specified
359
+ # time frame.
360
+ # @return [Array<Types::TraceSummary>]
361
+ #
362
+ # @!attribute [rw] approximate_time
363
+ # The start time of this page of results.
364
+ # @return [Time]
365
+ #
366
+ # @!attribute [rw] traces_processed_count
367
+ # The number of traces that were processed to get this set of
368
+ # summaries.
369
+ # @return [Integer]
370
+ #
371
+ # @!attribute [rw] next_token
372
+ # If the requested time frame contained more than one page of results,
373
+ # you can use this token to retrieve the next page. The first page
374
+ # contains the most most recent results, closest to the end of the
375
+ # time frame.
376
+ # @return [String]
377
+ class GetTraceSummariesResult < Struct.new(
378
+ :trace_summaries,
379
+ :approximate_time,
380
+ :traces_processed_count,
381
+ :next_token)
382
+ include Aws::Structure
383
+ end
384
+
385
+ # An entry in a histogram for a statistic. A histogram maps the range of
386
+ # observed values on the X axis, and the prevalence of each value on the
387
+ # Y axis.
388
+ # @!attribute [rw] value
389
+ # The value of the entry.
390
+ # @return [Float]
391
+ #
392
+ # @!attribute [rw] count
393
+ # The prevalence of the entry.
394
+ # @return [Integer]
395
+ class HistogramEntry < Struct.new(
396
+ :value,
397
+ :count)
398
+ include Aws::Structure
399
+ end
400
+
401
+ # Information about an HTTP request.
402
+ # @!attribute [rw] http_url
403
+ # The request URL.
404
+ # @return [String]
405
+ #
406
+ # @!attribute [rw] http_status
407
+ # The response status.
408
+ # @return [Integer]
409
+ #
410
+ # @!attribute [rw] http_method
411
+ # The request method.
412
+ # @return [String]
413
+ #
414
+ # @!attribute [rw] user_agent
415
+ # The request's user agent string.
416
+ # @return [String]
417
+ #
418
+ # @!attribute [rw] client_ip
419
+ # The IP address of the requestor.
420
+ # @return [String]
421
+ class Http < Struct.new(
422
+ :http_url,
423
+ :http_status,
424
+ :http_method,
425
+ :user_agent,
426
+ :client_ip)
427
+ include Aws::Structure
428
+ end
429
+
430
+ # @note When making an API call, pass PutTelemetryRecordsRequest
431
+ # data as a hash:
432
+ #
433
+ # {
434
+ # telemetry_records: [ # required
435
+ # {
436
+ # timestamp: Time.now,
437
+ # segments_received_count: 1,
438
+ # segments_sent_count: 1,
439
+ # segments_spillover_count: 1,
440
+ # segments_rejected_count: 1,
441
+ # backend_connection_errors: {
442
+ # timeout_count: 1,
443
+ # connection_refused_count: 1,
444
+ # http_code_4_xx_count: 1,
445
+ # http_code_5_xx_count: 1,
446
+ # unknown_host_count: 1,
447
+ # other_count: 1,
448
+ # },
449
+ # },
450
+ # ],
451
+ # ec2_instance_id: "String",
452
+ # hostname: "String",
453
+ # resource_arn: "String",
454
+ # }
455
+ # @!attribute [rw] telemetry_records
456
+ # @return [Array<Types::TelemetryRecord>]
457
+ #
458
+ # @!attribute [rw] ec2_instance_id
459
+ # @return [String]
460
+ #
461
+ # @!attribute [rw] hostname
462
+ # @return [String]
463
+ #
464
+ # @!attribute [rw] resource_arn
465
+ # @return [String]
466
+ class PutTelemetryRecordsRequest < Struct.new(
467
+ :telemetry_records,
468
+ :ec2_instance_id,
469
+ :hostname,
470
+ :resource_arn)
471
+ include Aws::Structure
472
+ end
473
+
474
+ class PutTelemetryRecordsResult < Aws::EmptyStructure; end
475
+
476
+ # @note When making an API call, pass PutTraceSegmentsRequest
477
+ # data as a hash:
478
+ #
479
+ # {
480
+ # trace_segment_documents: ["TraceSegmentDocument"], # required
481
+ # }
482
+ # @!attribute [rw] trace_segment_documents
483
+ # A JSON document defining one or more segments or subsegments.
484
+ # Segments must include the following fields.
485
+ #
486
+ # **Required Segment Document Fields**
487
+ #
488
+ # * `name` - The name of the service that handled the request.
489
+ #
490
+ # * `id` - A 64-bit identifier for the segment, unique among segments
491
+ # in the same trace, in 16 hexadecimal digits.
492
+ #
493
+ # * `trace_id` - A unique identifier that connects all segments and
494
+ # subsegments originating from a single client request.
495
+ #
496
+ # * `start_time` - Time the segment or subsegment was created, in
497
+ # floating point seconds in epoch time, accurate to milliseconds.
498
+ # For example, `1480615200.010` or `1.480615200010E9`.
499
+ #
500
+ # * `end_time` - Time the segment or subsegment was closed. For
501
+ # example, `1480615200.090` or `1.480615200090E9`. Specify either an
502
+ # `end_time` or `in_progress`.
503
+ #
504
+ # * `in_progress` - Set to `true` instead of specifying an `end_time`
505
+ # to record that a segment has been started, but is not complete.
506
+ # Send an in progress segment when your application receives a
507
+ # request that will take a long time to serve, to trace the fact
508
+ # that the request was received. When the response is sent, send the
509
+ # complete segment to overwrite the in-progress segment.
510
+ #
511
+ # A `trace_id` consists of three numbers separated by hyphens. For
512
+ # example, 1-58406520-a006649127e371903a2de979. This includes:
513
+ #
514
+ # **Trace ID Format**
515
+ #
516
+ # * The version number, i.e. `1`.
517
+ #
518
+ # * The time of the original request, in Unix epoch time, in 8
519
+ # hexadecimal digits. For example, 10:00AM December 2nd, 2016 PST in
520
+ # epoch time is `1480615200` seconds, or `58406520` in hexadecimal.
521
+ #
522
+ # * A 96-bit identifier for the trace, globally unique, in 24
523
+ # hexadecimal digits.
524
+ # @return [Array<String>]
525
+ class PutTraceSegmentsRequest < Struct.new(
526
+ :trace_segment_documents)
527
+ include Aws::Structure
528
+ end
529
+
530
+ # @!attribute [rw] unprocessed_trace_segments
531
+ # Segments that failed processing.
532
+ # @return [Array<Types::UnprocessedTraceSegment>]
533
+ class PutTraceSegmentsResult < Struct.new(
534
+ :unprocessed_trace_segments)
535
+ include Aws::Structure
536
+ end
537
+
538
+ # Information about a segment
539
+ # @!attribute [rw] id
540
+ # The segment's ID.
541
+ # @return [String]
542
+ #
543
+ # @!attribute [rw] document
544
+ # The segment document.
545
+ # @return [String]
546
+ class Segment < Struct.new(
547
+ :id,
548
+ :document)
549
+ include Aws::Structure
550
+ end
551
+
552
+ # Information about an application that processed requests, users that
553
+ # made requests, or downstream services, resources and applications that
554
+ # an application used.
555
+ # @!attribute [rw] reference_id
556
+ # Identifier for the service. Unique within the service map.
557
+ # @return [Integer]
558
+ #
559
+ # @!attribute [rw] name
560
+ # The canonical name of the service.
561
+ # @return [String]
562
+ #
563
+ # @!attribute [rw] names
564
+ # A list of names for the service, including the canonical name.
565
+ # @return [Array<String>]
566
+ #
567
+ # @!attribute [rw] root
568
+ # Indicates that the service was the first service to process a
569
+ # request.
570
+ # @return [Boolean]
571
+ #
572
+ # @!attribute [rw] account_id
573
+ # Identifier of the AWS account in which the service runs.
574
+ # @return [String]
575
+ #
576
+ # @!attribute [rw] type
577
+ # The type of service.
578
+ #
579
+ # * AWS Resource - The type of an AWS resource. For example,
580
+ # `AWS::EC2::Instance` for a application running on Amazon EC2 or
581
+ # `AWS::DynamoDB::Table` for an Amazon DynamoDB table that the
582
+ # application used.
583
+ #
584
+ # * AWS Service - The type of an AWS service. For example,
585
+ # `AWS::DynamoDB` for downstream calls to Amazon DynamoDB that
586
+ # didn't target a specific table.
587
+ #
588
+ # * `client` - Represents the clients that sent requests to a root
589
+ # service.
590
+ #
591
+ # * `remote` - A downstream service of indeterminate type.
592
+ # @return [String]
593
+ #
594
+ # @!attribute [rw] state
595
+ # The service's state.
596
+ # @return [String]
597
+ #
598
+ # @!attribute [rw] start_time
599
+ # The start time of the first segment that the service generated.
600
+ # @return [Time]
601
+ #
602
+ # @!attribute [rw] end_time
603
+ # The end time of the last segment that the service generated.
604
+ # @return [Time]
605
+ #
606
+ # @!attribute [rw] edges
607
+ # Connections to downstream services.
608
+ # @return [Array<Types::Edge>]
609
+ #
610
+ # @!attribute [rw] summary_statistics
611
+ # Aggregated statistics for the service.
612
+ # @return [Types::ServiceStatistics]
613
+ #
614
+ # @!attribute [rw] duration_histogram
615
+ # Histogram mapping the spread of trace durations
616
+ # @return [Array<Types::HistogramEntry>]
617
+ class Service < Struct.new(
618
+ :reference_id,
619
+ :name,
620
+ :names,
621
+ :root,
622
+ :account_id,
623
+ :type,
624
+ :state,
625
+ :start_time,
626
+ :end_time,
627
+ :edges,
628
+ :summary_statistics,
629
+ :duration_histogram)
630
+ include Aws::Structure
631
+ end
632
+
633
+ # @!attribute [rw] name
634
+ # @return [String]
635
+ #
636
+ # @!attribute [rw] names
637
+ # @return [Array<String>]
638
+ #
639
+ # @!attribute [rw] account_id
640
+ # @return [String]
641
+ #
642
+ # @!attribute [rw] type
643
+ # @return [String]
644
+ class ServiceId < Struct.new(
645
+ :name,
646
+ :names,
647
+ :account_id,
648
+ :type)
649
+ include Aws::Structure
650
+ end
651
+
652
+ # Response statistics for a service.
653
+ # @!attribute [rw] ok_count
654
+ # The number of requests that completed with a 2xx Success status
655
+ # code.
656
+ # @return [Integer]
657
+ #
658
+ # @!attribute [rw] error_statistics
659
+ # Information about requests that failed with a 4xx Client Error
660
+ # status code.
661
+ # @return [Types::ErrorStatistics]
662
+ #
663
+ # @!attribute [rw] fault_statistics
664
+ # Information about requests that failed with a 5xx Server Error
665
+ # status code.
666
+ # @return [Types::FaultStatistics]
667
+ #
668
+ # @!attribute [rw] total_count
669
+ # The total number of completed requests.
670
+ # @return [Integer]
671
+ #
672
+ # @!attribute [rw] total_response_time
673
+ # The aggregate response time of completed requests.
674
+ # @return [Float]
675
+ class ServiceStatistics < Struct.new(
676
+ :ok_count,
677
+ :error_statistics,
678
+ :fault_statistics,
679
+ :total_count,
680
+ :total_response_time)
681
+ include Aws::Structure
682
+ end
683
+
684
+ # @note When making an API call, pass TelemetryRecord
685
+ # data as a hash:
686
+ #
687
+ # {
688
+ # timestamp: Time.now,
689
+ # segments_received_count: 1,
690
+ # segments_sent_count: 1,
691
+ # segments_spillover_count: 1,
692
+ # segments_rejected_count: 1,
693
+ # backend_connection_errors: {
694
+ # timeout_count: 1,
695
+ # connection_refused_count: 1,
696
+ # http_code_4_xx_count: 1,
697
+ # http_code_5_xx_count: 1,
698
+ # unknown_host_count: 1,
699
+ # other_count: 1,
700
+ # },
701
+ # }
702
+ # @!attribute [rw] timestamp
703
+ # @return [Time]
704
+ #
705
+ # @!attribute [rw] segments_received_count
706
+ # @return [Integer]
707
+ #
708
+ # @!attribute [rw] segments_sent_count
709
+ # @return [Integer]
710
+ #
711
+ # @!attribute [rw] segments_spillover_count
712
+ # @return [Integer]
713
+ #
714
+ # @!attribute [rw] segments_rejected_count
715
+ # @return [Integer]
716
+ #
717
+ # @!attribute [rw] backend_connection_errors
718
+ # @return [Types::BackendConnectionErrors]
719
+ class TelemetryRecord < Struct.new(
720
+ :timestamp,
721
+ :segments_received_count,
722
+ :segments_sent_count,
723
+ :segments_spillover_count,
724
+ :segments_rejected_count,
725
+ :backend_connection_errors)
726
+ include Aws::Structure
727
+ end
728
+
729
+ # A collection of segment documents with matching trace IDs.
730
+ # @!attribute [rw] id
731
+ # The unique identifier for the request that generated the trace's
732
+ # segments and subsegments.
733
+ # @return [String]
734
+ #
735
+ # @!attribute [rw] duration
736
+ # The length of time in seconds between the start time of the root
737
+ # segment and the end time of the last segment that completed.
738
+ # @return [Float]
739
+ #
740
+ # @!attribute [rw] segments
741
+ # Segment documents for the segments and subsegments that comprise the
742
+ # trace.
743
+ # @return [Array<Types::Segment>]
744
+ class Trace < Struct.new(
745
+ :id,
746
+ :duration,
747
+ :segments)
748
+ include Aws::Structure
749
+ end
750
+
751
+ # Metadata generated from the segment documents in a trace.
752
+ # @!attribute [rw] id
753
+ # The unique identifier for the request that generated the trace's
754
+ # segments and subsegments.
755
+ # @return [String]
756
+ #
757
+ # @!attribute [rw] duration
758
+ # The length of time in seconds between the start time of the root
759
+ # segment and the end time of the last segment that completed.
760
+ # @return [Float]
761
+ #
762
+ # @!attribute [rw] response_time
763
+ # The length of time in seconds between the start and end times of the
764
+ # root segment. If the service performs work asynchronously, the
765
+ # response time measures the time before the response is sent to the
766
+ # user, while the duration measures the amount of time before the last
767
+ # traced activity completes.
768
+ # @return [Float]
769
+ #
770
+ # @!attribute [rw] has_fault
771
+ # One or more of the segment documents has a 500 series error.
772
+ # @return [Boolean]
773
+ #
774
+ # @!attribute [rw] has_error
775
+ # One or more of the segment documents has a 400 series error.
776
+ # @return [Boolean]
777
+ #
778
+ # @!attribute [rw] has_throttle
779
+ # One or more of the segment documents has a 429 throttling error.
780
+ # @return [Boolean]
781
+ #
782
+ # @!attribute [rw] is_partial
783
+ # One or more of the segment documents is in progress.
784
+ # @return [Boolean]
785
+ #
786
+ # @!attribute [rw] http
787
+ # Information about the HTTP request served by the trace.
788
+ # @return [Types::Http]
789
+ #
790
+ # @!attribute [rw] annotations
791
+ # Annotations from the trace's segment documents.
792
+ # @return [Hash<String,Array<Types::ValueWithServiceIds>>]
793
+ #
794
+ # @!attribute [rw] users
795
+ # Users from the trace's segment documents.
796
+ # @return [Array<Types::TraceUser>]
797
+ #
798
+ # @!attribute [rw] service_ids
799
+ # Service IDs from the trace's segment documents.
800
+ # @return [Array<Types::ServiceId>]
801
+ class TraceSummary < Struct.new(
802
+ :id,
803
+ :duration,
804
+ :response_time,
805
+ :has_fault,
806
+ :has_error,
807
+ :has_throttle,
808
+ :is_partial,
809
+ :http,
810
+ :annotations,
811
+ :users,
812
+ :service_ids)
813
+ include Aws::Structure
814
+ end
815
+
816
+ # Information about a user recorded in segment documents.
817
+ # @!attribute [rw] user_name
818
+ # The user's name.
819
+ # @return [String]
820
+ #
821
+ # @!attribute [rw] service_ids
822
+ # Services that the user's request hit.
823
+ # @return [Array<Types::ServiceId>]
824
+ class TraceUser < Struct.new(
825
+ :user_name,
826
+ :service_ids)
827
+ include Aws::Structure
828
+ end
829
+
830
+ # Information about a segment that failed processing.
831
+ # @!attribute [rw] id
832
+ # The segment's ID.
833
+ # @return [String]
834
+ #
835
+ # @!attribute [rw] error_code
836
+ # The error that caused processing to fail.
837
+ # @return [String]
838
+ #
839
+ # @!attribute [rw] message
840
+ # The error message.
841
+ # @return [String]
842
+ class UnprocessedTraceSegment < Struct.new(
843
+ :id,
844
+ :error_code,
845
+ :message)
846
+ include Aws::Structure
847
+ end
848
+
849
+ # Information about a segment annotation.
850
+ # @!attribute [rw] annotation_value
851
+ # Values of the annotation.
852
+ # @return [Types::AnnotationValue]
853
+ #
854
+ # @!attribute [rw] service_ids
855
+ # Services to which the annotation applies.
856
+ # @return [Array<Types::ServiceId>]
857
+ class ValueWithServiceIds < Struct.new(
858
+ :annotation_value,
859
+ :service_ids)
860
+ include Aws::Structure
861
+ end
862
+
863
+ end
864
+ end
865
+ end