-
Notifications
You must be signed in to change notification settings - Fork 623
/
api_types.go
2845 lines (2261 loc) · 78.7 KB
/
api_types.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package xray
import (
"time"
"github.com/aws/aws-sdk-go-v2/aws"
"github.com/aws/aws-sdk-go-v2/internal/awsutil"
"github.com/aws/aws-sdk-go-v2/private/protocol"
)
var _ aws.Config
var _ = awsutil.Prettify
// An alias for an edge.
type Alias struct {
_ struct{} `type:"structure"`
// The canonical name of the alias.
Name *string `type:"string"`
// A list of names for the alias, including the canonical name.
Names []string `type:"list"`
// The type of the alias.
Type *string `type:"string"`
}
// String returns the string representation
func (s Alias) String() string {
return awsutil.Prettify(s)
}
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s Alias) MarshalFields(e protocol.FieldEncoder) error {
if s.Name != nil {
v := *s.Name
metadata := protocol.Metadata{}
e.SetValue(protocol.BodyTarget, "Name", protocol.QuotedValue{ValueMarshaler: protocol.StringValue(v)}, metadata)
}
if s.Names != nil {
v := s.Names
metadata := protocol.Metadata{}
ls0 := e.List(protocol.BodyTarget, "Names", metadata)
ls0.Start()
for _, v1 := range v {
ls0.ListAddValue(protocol.QuotedValue{ValueMarshaler: protocol.StringValue(v1)})
}
ls0.End()
}
if s.Type != nil {
v := *s.Type
metadata := protocol.Metadata{}
e.SetValue(protocol.BodyTarget, "Type", protocol.QuotedValue{ValueMarshaler: protocol.StringValue(v)}, metadata)
}
return nil
}
// Value of a segment annotation. Has one of three value types: Number, Boolean
// or String.
type AnnotationValue struct {
_ struct{} `type:"structure"`
// Value for a Boolean annotation.
BooleanValue *bool `type:"boolean"`
// Value for a Number annotation.
NumberValue *float64 `type:"double"`
// Value for a String annotation.
StringValue *string `type:"string"`
}
// String returns the string representation
func (s AnnotationValue) String() string {
return awsutil.Prettify(s)
}
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s AnnotationValue) MarshalFields(e protocol.FieldEncoder) error {
if s.BooleanValue != nil {
v := *s.BooleanValue
metadata := protocol.Metadata{}
e.SetValue(protocol.BodyTarget, "BooleanValue", protocol.BoolValue(v), metadata)
}
if s.NumberValue != nil {
v := *s.NumberValue
metadata := protocol.Metadata{}
e.SetValue(protocol.BodyTarget, "NumberValue", protocol.Float64Value(v), metadata)
}
if s.StringValue != nil {
v := *s.StringValue
metadata := protocol.Metadata{}
e.SetValue(protocol.BodyTarget, "StringValue", protocol.QuotedValue{ValueMarshaler: protocol.StringValue(v)}, metadata)
}
return nil
}
// A list of availability zones corresponding to the segments in a trace.
type AvailabilityZoneDetail struct {
_ struct{} `type:"structure"`
// The name of a corresponding availability zone.
Name *string `type:"string"`
}
// String returns the string representation
func (s AvailabilityZoneDetail) String() string {
return awsutil.Prettify(s)
}
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s AvailabilityZoneDetail) MarshalFields(e protocol.FieldEncoder) error {
if s.Name != nil {
v := *s.Name
metadata := protocol.Metadata{}
e.SetValue(protocol.BodyTarget, "Name", protocol.QuotedValue{ValueMarshaler: protocol.StringValue(v)}, metadata)
}
return nil
}
type BackendConnectionErrors struct {
_ struct{} `type:"structure"`
ConnectionRefusedCount *int64 `type:"integer"`
HTTPCode4XXCount *int64 `type:"integer"`
HTTPCode5XXCount *int64 `type:"integer"`
OtherCount *int64 `type:"integer"`
TimeoutCount *int64 `type:"integer"`
UnknownHostCount *int64 `type:"integer"`
}
// String returns the string representation
func (s BackendConnectionErrors) String() string {
return awsutil.Prettify(s)
}
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s BackendConnectionErrors) MarshalFields(e protocol.FieldEncoder) error {
if s.ConnectionRefusedCount != nil {
v := *s.ConnectionRefusedCount
metadata := protocol.Metadata{}
e.SetValue(protocol.BodyTarget, "ConnectionRefusedCount", protocol.Int64Value(v), metadata)
}
if s.HTTPCode4XXCount != nil {
v := *s.HTTPCode4XXCount
metadata := protocol.Metadata{}
e.SetValue(protocol.BodyTarget, "HTTPCode4XXCount", protocol.Int64Value(v), metadata)
}
if s.HTTPCode5XXCount != nil {
v := *s.HTTPCode5XXCount
metadata := protocol.Metadata{}
e.SetValue(protocol.BodyTarget, "HTTPCode5XXCount", protocol.Int64Value(v), metadata)
}
if s.OtherCount != nil {
v := *s.OtherCount
metadata := protocol.Metadata{}
e.SetValue(protocol.BodyTarget, "OtherCount", protocol.Int64Value(v), metadata)
}
if s.TimeoutCount != nil {
v := *s.TimeoutCount
metadata := protocol.Metadata{}
e.SetValue(protocol.BodyTarget, "TimeoutCount", protocol.Int64Value(v), metadata)
}
if s.UnknownHostCount != nil {
v := *s.UnknownHostCount
metadata := protocol.Metadata{}
e.SetValue(protocol.BodyTarget, "UnknownHostCount", protocol.Int64Value(v), metadata)
}
return nil
}
// Information about a connection between two services.
type Edge struct {
_ struct{} `type:"structure"`
// Aliases for the edge.
Aliases []Alias `type:"list"`
// The end time of the last segment on the edge.
EndTime *time.Time `type:"timestamp"`
// Identifier of the edge. Unique within a service map.
ReferenceId *int64 `type:"integer"`
// A histogram that maps the spread of client response times on an edge.
ResponseTimeHistogram []HistogramEntry `type:"list"`
// The start time of the first segment on the edge.
StartTime *time.Time `type:"timestamp"`
// Response statistics for segments on the edge.
SummaryStatistics *EdgeStatistics `type:"structure"`
}
// String returns the string representation
func (s Edge) String() string {
return awsutil.Prettify(s)
}
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s Edge) MarshalFields(e protocol.FieldEncoder) error {
if s.Aliases != nil {
v := s.Aliases
metadata := protocol.Metadata{}
ls0 := e.List(protocol.BodyTarget, "Aliases", metadata)
ls0.Start()
for _, v1 := range v {
ls0.ListAddFields(v1)
}
ls0.End()
}
if s.EndTime != nil {
v := *s.EndTime
metadata := protocol.Metadata{}
e.SetValue(protocol.BodyTarget, "EndTime",
protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.ReferenceId != nil {
v := *s.ReferenceId
metadata := protocol.Metadata{}
e.SetValue(protocol.BodyTarget, "ReferenceId", protocol.Int64Value(v), metadata)
}
if s.ResponseTimeHistogram != nil {
v := s.ResponseTimeHistogram
metadata := protocol.Metadata{}
ls0 := e.List(protocol.BodyTarget, "ResponseTimeHistogram", metadata)
ls0.Start()
for _, v1 := range v {
ls0.ListAddFields(v1)
}
ls0.End()
}
if s.StartTime != nil {
v := *s.StartTime
metadata := protocol.Metadata{}
e.SetValue(protocol.BodyTarget, "StartTime",
protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.SummaryStatistics != nil {
v := s.SummaryStatistics
metadata := protocol.Metadata{}
e.SetFields(protocol.BodyTarget, "SummaryStatistics", v, metadata)
}
return nil
}
// Response statistics for an edge.
type EdgeStatistics struct {
_ struct{} `type:"structure"`
// Information about requests that failed with a 4xx Client Error status code.
ErrorStatistics *ErrorStatistics `type:"structure"`
// Information about requests that failed with a 5xx Server Error status code.
FaultStatistics *FaultStatistics `type:"structure"`
// The number of requests that completed with a 2xx Success status code.
OkCount *int64 `type:"long"`
// The total number of completed requests.
TotalCount *int64 `type:"long"`
// The aggregate response time of completed requests.
TotalResponseTime *float64 `type:"double"`
}
// String returns the string representation
func (s EdgeStatistics) String() string {
return awsutil.Prettify(s)
}
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s EdgeStatistics) MarshalFields(e protocol.FieldEncoder) error {
if s.ErrorStatistics != nil {
v := s.ErrorStatistics
metadata := protocol.Metadata{}
e.SetFields(protocol.BodyTarget, "ErrorStatistics", v, metadata)
}
if s.FaultStatistics != nil {
v := s.FaultStatistics
metadata := protocol.Metadata{}
e.SetFields(protocol.BodyTarget, "FaultStatistics", v, metadata)
}
if s.OkCount != nil {
v := *s.OkCount
metadata := protocol.Metadata{}
e.SetValue(protocol.BodyTarget, "OkCount", protocol.Int64Value(v), metadata)
}
if s.TotalCount != nil {
v := *s.TotalCount
metadata := protocol.Metadata{}
e.SetValue(protocol.BodyTarget, "TotalCount", protocol.Int64Value(v), metadata)
}
if s.TotalResponseTime != nil {
v := *s.TotalResponseTime
metadata := protocol.Metadata{}
e.SetValue(protocol.BodyTarget, "TotalResponseTime", protocol.Float64Value(v), metadata)
}
return nil
}
// A configuration document that specifies encryption configuration settings.
type EncryptionConfig struct {
_ struct{} `type:"structure"`
// The ID of the customer master key (CMK) used for encryption, if applicable.
KeyId *string `type:"string"`
// The encryption status. While the status is UPDATING, X-Ray may encrypt data
// with a combination of the new and old settings.
Status EncryptionStatus `type:"string" enum:"true"`
// The type of encryption. Set to KMS for encryption with CMKs. Set to NONE
// for default encryption.
Type EncryptionType `type:"string" enum:"true"`
}
// String returns the string representation
func (s EncryptionConfig) String() string {
return awsutil.Prettify(s)
}
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s EncryptionConfig) MarshalFields(e protocol.FieldEncoder) error {
if s.KeyId != nil {
v := *s.KeyId
metadata := protocol.Metadata{}
e.SetValue(protocol.BodyTarget, "KeyId", protocol.QuotedValue{ValueMarshaler: protocol.StringValue(v)}, metadata)
}
if len(s.Status) > 0 {
v := s.Status
metadata := protocol.Metadata{}
e.SetValue(protocol.BodyTarget, "Status", protocol.QuotedValue{ValueMarshaler: v}, metadata)
}
if len(s.Type) > 0 {
v := s.Type
metadata := protocol.Metadata{}
e.SetValue(protocol.BodyTarget, "Type", protocol.QuotedValue{ValueMarshaler: v}, metadata)
}
return nil
}
// The root cause of a trace summary error.
type ErrorRootCause struct {
_ struct{} `type:"structure"`
// A flag that denotes that the root cause impacts the trace client.
ClientImpacting *bool `type:"boolean"`
// A list of services corresponding to an error. A service identifies a segment
// and it contains a name, account ID, type, and inferred flag.
Services []ErrorRootCauseService `type:"list"`
}
// String returns the string representation
func (s ErrorRootCause) String() string {
return awsutil.Prettify(s)
}
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ErrorRootCause) MarshalFields(e protocol.FieldEncoder) error {
if s.ClientImpacting != nil {
v := *s.ClientImpacting
metadata := protocol.Metadata{}
e.SetValue(protocol.BodyTarget, "ClientImpacting", protocol.BoolValue(v), metadata)
}
if s.Services != nil {
v := s.Services
metadata := protocol.Metadata{}
ls0 := e.List(protocol.BodyTarget, "Services", metadata)
ls0.Start()
for _, v1 := range v {
ls0.ListAddFields(v1)
}
ls0.End()
}
return nil
}
// A collection of segments and corresponding subsegments associated to a trace
// summary error.
type ErrorRootCauseEntity struct {
_ struct{} `type:"structure"`
// The types and messages of the exceptions.
Exceptions []RootCauseException `type:"list"`
// The name of the entity.
Name *string `type:"string"`
// A flag that denotes a remote subsegment.
Remote *bool `type:"boolean"`
}
// String returns the string representation
func (s ErrorRootCauseEntity) String() string {
return awsutil.Prettify(s)
}
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ErrorRootCauseEntity) MarshalFields(e protocol.FieldEncoder) error {
if s.Exceptions != nil {
v := s.Exceptions
metadata := protocol.Metadata{}
ls0 := e.List(protocol.BodyTarget, "Exceptions", metadata)
ls0.Start()
for _, v1 := range v {
ls0.ListAddFields(v1)
}
ls0.End()
}
if s.Name != nil {
v := *s.Name
metadata := protocol.Metadata{}
e.SetValue(protocol.BodyTarget, "Name", protocol.QuotedValue{ValueMarshaler: protocol.StringValue(v)}, metadata)
}
if s.Remote != nil {
v := *s.Remote
metadata := protocol.Metadata{}
e.SetValue(protocol.BodyTarget, "Remote", protocol.BoolValue(v), metadata)
}
return nil
}
// A collection of fields identifying the services in a trace summary error.
type ErrorRootCauseService struct {
_ struct{} `type:"structure"`
// The account ID associated to the service.
AccountId *string `type:"string"`
// The path of root cause entities found on the service.
EntityPath []ErrorRootCauseEntity `type:"list"`
// A Boolean value indicating if the service is inferred from the trace.
Inferred *bool `type:"boolean"`
// The service name.
Name *string `type:"string"`
// A collection of associated service names.
Names []string `type:"list"`
// The type associated to the service.
Type *string `type:"string"`
}
// String returns the string representation
func (s ErrorRootCauseService) String() string {
return awsutil.Prettify(s)
}
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ErrorRootCauseService) MarshalFields(e protocol.FieldEncoder) error {
if s.AccountId != nil {
v := *s.AccountId
metadata := protocol.Metadata{}
e.SetValue(protocol.BodyTarget, "AccountId", protocol.QuotedValue{ValueMarshaler: protocol.StringValue(v)}, metadata)
}
if s.EntityPath != nil {
v := s.EntityPath
metadata := protocol.Metadata{}
ls0 := e.List(protocol.BodyTarget, "EntityPath", metadata)
ls0.Start()
for _, v1 := range v {
ls0.ListAddFields(v1)
}
ls0.End()
}
if s.Inferred != nil {
v := *s.Inferred
metadata := protocol.Metadata{}
e.SetValue(protocol.BodyTarget, "Inferred", protocol.BoolValue(v), metadata)
}
if s.Name != nil {
v := *s.Name
metadata := protocol.Metadata{}
e.SetValue(protocol.BodyTarget, "Name", protocol.QuotedValue{ValueMarshaler: protocol.StringValue(v)}, metadata)
}
if s.Names != nil {
v := s.Names
metadata := protocol.Metadata{}
ls0 := e.List(protocol.BodyTarget, "Names", metadata)
ls0.Start()
for _, v1 := range v {
ls0.ListAddValue(protocol.QuotedValue{ValueMarshaler: protocol.StringValue(v1)})
}
ls0.End()
}
if s.Type != nil {
v := *s.Type
metadata := protocol.Metadata{}
e.SetValue(protocol.BodyTarget, "Type", protocol.QuotedValue{ValueMarshaler: protocol.StringValue(v)}, metadata)
}
return nil
}
// Information about requests that failed with a 4xx Client Error status code.
type ErrorStatistics struct {
_ struct{} `type:"structure"`
// The number of requests that failed with untracked 4xx Client Error status
// codes.
OtherCount *int64 `type:"long"`
// The number of requests that failed with a 419 throttling status code.
ThrottleCount *int64 `type:"long"`
// The total number of requests that failed with a 4xx Client Error status code.
TotalCount *int64 `type:"long"`
}
// String returns the string representation
func (s ErrorStatistics) String() string {
return awsutil.Prettify(s)
}
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ErrorStatistics) MarshalFields(e protocol.FieldEncoder) error {
if s.OtherCount != nil {
v := *s.OtherCount
metadata := protocol.Metadata{}
e.SetValue(protocol.BodyTarget, "OtherCount", protocol.Int64Value(v), metadata)
}
if s.ThrottleCount != nil {
v := *s.ThrottleCount
metadata := protocol.Metadata{}
e.SetValue(protocol.BodyTarget, "ThrottleCount", protocol.Int64Value(v), metadata)
}
if s.TotalCount != nil {
v := *s.TotalCount
metadata := protocol.Metadata{}
e.SetValue(protocol.BodyTarget, "TotalCount", protocol.Int64Value(v), metadata)
}
return nil
}
// The root cause information for a trace summary fault.
type FaultRootCause struct {
_ struct{} `type:"structure"`
// A flag that denotes that the root cause impacts the trace client.
ClientImpacting *bool `type:"boolean"`
// A list of corresponding services. A service identifies a segment and it contains
// a name, account ID, type, and inferred flag.
Services []FaultRootCauseService `type:"list"`
}
// String returns the string representation
func (s FaultRootCause) String() string {
return awsutil.Prettify(s)
}
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s FaultRootCause) MarshalFields(e protocol.FieldEncoder) error {
if s.ClientImpacting != nil {
v := *s.ClientImpacting
metadata := protocol.Metadata{}
e.SetValue(protocol.BodyTarget, "ClientImpacting", protocol.BoolValue(v), metadata)
}
if s.Services != nil {
v := s.Services
metadata := protocol.Metadata{}
ls0 := e.List(protocol.BodyTarget, "Services", metadata)
ls0.Start()
for _, v1 := range v {
ls0.ListAddFields(v1)
}
ls0.End()
}
return nil
}
// A collection of segments and corresponding subsegments associated to a trace
// summary fault error.
type FaultRootCauseEntity struct {
_ struct{} `type:"structure"`
// The types and messages of the exceptions.
Exceptions []RootCauseException `type:"list"`
// The name of the entity.
Name *string `type:"string"`
// A flag that denotes a remote subsegment.
Remote *bool `type:"boolean"`
}
// String returns the string representation
func (s FaultRootCauseEntity) String() string {
return awsutil.Prettify(s)
}
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s FaultRootCauseEntity) MarshalFields(e protocol.FieldEncoder) error {
if s.Exceptions != nil {
v := s.Exceptions
metadata := protocol.Metadata{}
ls0 := e.List(protocol.BodyTarget, "Exceptions", metadata)
ls0.Start()
for _, v1 := range v {
ls0.ListAddFields(v1)
}
ls0.End()
}
if s.Name != nil {
v := *s.Name
metadata := protocol.Metadata{}
e.SetValue(protocol.BodyTarget, "Name", protocol.QuotedValue{ValueMarshaler: protocol.StringValue(v)}, metadata)
}
if s.Remote != nil {
v := *s.Remote
metadata := protocol.Metadata{}
e.SetValue(protocol.BodyTarget, "Remote", protocol.BoolValue(v), metadata)
}
return nil
}
// A collection of fields identifying the services in a trace summary fault.
type FaultRootCauseService struct {
_ struct{} `type:"structure"`
// The account ID associated to the service.
AccountId *string `type:"string"`
// The path of root cause entities found on the service.
EntityPath []FaultRootCauseEntity `type:"list"`
// A Boolean value indicating if the service is inferred from the trace.
Inferred *bool `type:"boolean"`
// The service name.
Name *string `type:"string"`
// A collection of associated service names.
Names []string `type:"list"`
// The type associated to the service.
Type *string `type:"string"`
}
// String returns the string representation
func (s FaultRootCauseService) String() string {
return awsutil.Prettify(s)
}
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s FaultRootCauseService) MarshalFields(e protocol.FieldEncoder) error {
if s.AccountId != nil {
v := *s.AccountId
metadata := protocol.Metadata{}
e.SetValue(protocol.BodyTarget, "AccountId", protocol.QuotedValue{ValueMarshaler: protocol.StringValue(v)}, metadata)
}
if s.EntityPath != nil {
v := s.EntityPath
metadata := protocol.Metadata{}
ls0 := e.List(protocol.BodyTarget, "EntityPath", metadata)
ls0.Start()
for _, v1 := range v {
ls0.ListAddFields(v1)
}
ls0.End()
}
if s.Inferred != nil {
v := *s.Inferred
metadata := protocol.Metadata{}
e.SetValue(protocol.BodyTarget, "Inferred", protocol.BoolValue(v), metadata)
}
if s.Name != nil {
v := *s.Name
metadata := protocol.Metadata{}
e.SetValue(protocol.BodyTarget, "Name", protocol.QuotedValue{ValueMarshaler: protocol.StringValue(v)}, metadata)
}
if s.Names != nil {
v := s.Names
metadata := protocol.Metadata{}
ls0 := e.List(protocol.BodyTarget, "Names", metadata)
ls0.Start()
for _, v1 := range v {
ls0.ListAddValue(protocol.QuotedValue{ValueMarshaler: protocol.StringValue(v1)})
}
ls0.End()
}
if s.Type != nil {
v := *s.Type
metadata := protocol.Metadata{}
e.SetValue(protocol.BodyTarget, "Type", protocol.QuotedValue{ValueMarshaler: protocol.StringValue(v)}, metadata)
}
return nil
}
// Information about requests that failed with a 5xx Server Error status code.
type FaultStatistics struct {
_ struct{} `type:"structure"`
// The number of requests that failed with untracked 5xx Server Error status
// codes.
OtherCount *int64 `type:"long"`
// The total number of requests that failed with a 5xx Server Error status code.
TotalCount *int64 `type:"long"`
}
// String returns the string representation
func (s FaultStatistics) String() string {
return awsutil.Prettify(s)
}
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s FaultStatistics) MarshalFields(e protocol.FieldEncoder) error {
if s.OtherCount != nil {
v := *s.OtherCount
metadata := protocol.Metadata{}
e.SetValue(protocol.BodyTarget, "OtherCount", protocol.Int64Value(v), metadata)
}
if s.TotalCount != nil {
v := *s.TotalCount
metadata := protocol.Metadata{}
e.SetValue(protocol.BodyTarget, "TotalCount", protocol.Int64Value(v), metadata)
}
return nil
}
// Details and metadata for a group.
type Group struct {
_ struct{} `type:"structure"`
// The filter expression defining the parameters to include traces.
FilterExpression *string `type:"string"`
// The ARN of the group generated based on the GroupName.
GroupARN *string `type:"string"`
// The unique case-sensitive name of the group.
GroupName *string `type:"string"`
}
// String returns the string representation
func (s Group) String() string {
return awsutil.Prettify(s)
}
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s Group) MarshalFields(e protocol.FieldEncoder) error {
if s.FilterExpression != nil {
v := *s.FilterExpression
metadata := protocol.Metadata{}
e.SetValue(protocol.BodyTarget, "FilterExpression", protocol.QuotedValue{ValueMarshaler: protocol.StringValue(v)}, metadata)
}
if s.GroupARN != nil {
v := *s.GroupARN
metadata := protocol.Metadata{}
e.SetValue(protocol.BodyTarget, "GroupARN", protocol.QuotedValue{ValueMarshaler: protocol.StringValue(v)}, metadata)
}
if s.GroupName != nil {
v := *s.GroupName
metadata := protocol.Metadata{}
e.SetValue(protocol.BodyTarget, "GroupName", protocol.QuotedValue{ValueMarshaler: protocol.StringValue(v)}, metadata)
}
return nil
}
// Details for a group without metadata.
type GroupSummary struct {
_ struct{} `type:"structure"`
// The filter expression defining the parameters to include traces.
FilterExpression *string `type:"string"`
// The ARN of the group generated based on the GroupName.
GroupARN *string `type:"string"`
// The unique case-sensitive name of the group.
GroupName *string `type:"string"`
}
// String returns the string representation
func (s GroupSummary) String() string {
return awsutil.Prettify(s)
}
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GroupSummary) MarshalFields(e protocol.FieldEncoder) error {
if s.FilterExpression != nil {
v := *s.FilterExpression
metadata := protocol.Metadata{}
e.SetValue(protocol.BodyTarget, "FilterExpression", protocol.QuotedValue{ValueMarshaler: protocol.StringValue(v)}, metadata)
}
if s.GroupARN != nil {
v := *s.GroupARN
metadata := protocol.Metadata{}
e.SetValue(protocol.BodyTarget, "GroupARN", protocol.QuotedValue{ValueMarshaler: protocol.StringValue(v)}, metadata)
}
if s.GroupName != nil {
v := *s.GroupName
metadata := protocol.Metadata{}
e.SetValue(protocol.BodyTarget, "GroupName", protocol.QuotedValue{ValueMarshaler: protocol.StringValue(v)}, metadata)
}
return nil
}
// An entry in a histogram for a statistic. A histogram maps the range of observed
// values on the X axis, and the prevalence of each value on the Y axis.
type HistogramEntry struct {
_ struct{} `type:"structure"`
// The prevalence of the entry.
Count *int64 `type:"integer"`
// The value of the entry.
Value *float64 `type:"double"`
}
// String returns the string representation
func (s HistogramEntry) String() string {
return awsutil.Prettify(s)
}
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s HistogramEntry) MarshalFields(e protocol.FieldEncoder) error {
if s.Count != nil {
v := *s.Count
metadata := protocol.Metadata{}
e.SetValue(protocol.BodyTarget, "Count", protocol.Int64Value(v), metadata)
}
if s.Value != nil {
v := *s.Value
metadata := protocol.Metadata{}
e.SetValue(protocol.BodyTarget, "Value", protocol.Float64Value(v), metadata)
}
return nil
}
// Information about an HTTP request.
type Http struct {
_ struct{} `type:"structure"`
// The IP address of the requestor.
ClientIp *string `type:"string"`
// The request method.
HttpMethod *string `type:"string"`
// The response status.
HttpStatus *int64 `type:"integer"`
// The request URL.
HttpURL *string `type:"string"`
// The request's user agent string.
UserAgent *string `type:"string"`
}
// String returns the string representation
func (s Http) String() string {
return awsutil.Prettify(s)
}
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s Http) MarshalFields(e protocol.FieldEncoder) error {
if s.ClientIp != nil {
v := *s.ClientIp
metadata := protocol.Metadata{}
e.SetValue(protocol.BodyTarget, "ClientIp", protocol.QuotedValue{ValueMarshaler: protocol.StringValue(v)}, metadata)
}
if s.HttpMethod != nil {
v := *s.HttpMethod
metadata := protocol.Metadata{}
e.SetValue(protocol.BodyTarget, "HttpMethod", protocol.QuotedValue{ValueMarshaler: protocol.StringValue(v)}, metadata)
}
if s.HttpStatus != nil {
v := *s.HttpStatus
metadata := protocol.Metadata{}
e.SetValue(protocol.BodyTarget, "HttpStatus", protocol.Int64Value(v), metadata)
}
if s.HttpURL != nil {
v := *s.HttpURL
metadata := protocol.Metadata{}
e.SetValue(protocol.BodyTarget, "HttpURL", protocol.QuotedValue{ValueMarshaler: protocol.StringValue(v)}, metadata)
}
if s.UserAgent != nil {
v := *s.UserAgent
metadata := protocol.Metadata{}
e.SetValue(protocol.BodyTarget, "UserAgent", protocol.QuotedValue{ValueMarshaler: protocol.StringValue(v)}, metadata)
}
return nil
}
// A list of EC2 instance IDs corresponding to the segments in a trace.
type InstanceIdDetail struct {
_ struct{} `type:"structure"`
// The ID of a corresponding EC2 instance.
Id *string `type:"string"`
}
// String returns the string representation
func (s InstanceIdDetail) String() string {
return awsutil.Prettify(s)
}
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s InstanceIdDetail) MarshalFields(e protocol.FieldEncoder) error {
if s.Id != nil {
v := *s.Id
metadata := protocol.Metadata{}
e.SetValue(protocol.BodyTarget, "Id", protocol.QuotedValue{ValueMarshaler: protocol.StringValue(v)}, metadata)
}
return nil
}
// A list of resources ARNs corresponding to the segments in a trace.
type ResourceARNDetail struct {