-
Notifications
You must be signed in to change notification settings - Fork 682
/
accesslog.pb.go
2063 lines (1866 loc) · 99.2 KB
/
accesslog.pb.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 protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.1
// protoc v3.19.4
// source: envoy/data/accesslog/v2/accesslog.proto
package accesslogv2
import (
_ "github.com/cncf/xds/go/udpa/annotations"
core "github.com/emissary-ingress/emissary/v3/pkg/api/envoy/api/v2/core"
_ "github.com/envoyproxy/protoc-gen-validate/validate"
any "github.com/golang/protobuf/ptypes/any"
duration "github.com/golang/protobuf/ptypes/duration"
timestamp "github.com/golang/protobuf/ptypes/timestamp"
wrappers "github.com/golang/protobuf/ptypes/wrappers"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// HTTP version
type HTTPAccessLogEntry_HTTPVersion int32
const (
HTTPAccessLogEntry_PROTOCOL_UNSPECIFIED HTTPAccessLogEntry_HTTPVersion = 0
HTTPAccessLogEntry_HTTP10 HTTPAccessLogEntry_HTTPVersion = 1
HTTPAccessLogEntry_HTTP11 HTTPAccessLogEntry_HTTPVersion = 2
HTTPAccessLogEntry_HTTP2 HTTPAccessLogEntry_HTTPVersion = 3
HTTPAccessLogEntry_HTTP3 HTTPAccessLogEntry_HTTPVersion = 4
)
// Enum value maps for HTTPAccessLogEntry_HTTPVersion.
var (
HTTPAccessLogEntry_HTTPVersion_name = map[int32]string{
0: "PROTOCOL_UNSPECIFIED",
1: "HTTP10",
2: "HTTP11",
3: "HTTP2",
4: "HTTP3",
}
HTTPAccessLogEntry_HTTPVersion_value = map[string]int32{
"PROTOCOL_UNSPECIFIED": 0,
"HTTP10": 1,
"HTTP11": 2,
"HTTP2": 3,
"HTTP3": 4,
}
)
func (x HTTPAccessLogEntry_HTTPVersion) Enum() *HTTPAccessLogEntry_HTTPVersion {
p := new(HTTPAccessLogEntry_HTTPVersion)
*p = x
return p
}
func (x HTTPAccessLogEntry_HTTPVersion) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (HTTPAccessLogEntry_HTTPVersion) Descriptor() protoreflect.EnumDescriptor {
return file_envoy_data_accesslog_v2_accesslog_proto_enumTypes[0].Descriptor()
}
func (HTTPAccessLogEntry_HTTPVersion) Type() protoreflect.EnumType {
return &file_envoy_data_accesslog_v2_accesslog_proto_enumTypes[0]
}
func (x HTTPAccessLogEntry_HTTPVersion) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use HTTPAccessLogEntry_HTTPVersion.Descriptor instead.
func (HTTPAccessLogEntry_HTTPVersion) EnumDescriptor() ([]byte, []int) {
return file_envoy_data_accesslog_v2_accesslog_proto_rawDescGZIP(), []int{1, 0}
}
// Reasons why the request was unauthorized
type ResponseFlags_Unauthorized_Reason int32
const (
ResponseFlags_Unauthorized_REASON_UNSPECIFIED ResponseFlags_Unauthorized_Reason = 0
// The request was denied by the external authorization service.
ResponseFlags_Unauthorized_EXTERNAL_SERVICE ResponseFlags_Unauthorized_Reason = 1
)
// Enum value maps for ResponseFlags_Unauthorized_Reason.
var (
ResponseFlags_Unauthorized_Reason_name = map[int32]string{
0: "REASON_UNSPECIFIED",
1: "EXTERNAL_SERVICE",
}
ResponseFlags_Unauthorized_Reason_value = map[string]int32{
"REASON_UNSPECIFIED": 0,
"EXTERNAL_SERVICE": 1,
}
)
func (x ResponseFlags_Unauthorized_Reason) Enum() *ResponseFlags_Unauthorized_Reason {
p := new(ResponseFlags_Unauthorized_Reason)
*p = x
return p
}
func (x ResponseFlags_Unauthorized_Reason) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (ResponseFlags_Unauthorized_Reason) Descriptor() protoreflect.EnumDescriptor {
return file_envoy_data_accesslog_v2_accesslog_proto_enumTypes[1].Descriptor()
}
func (ResponseFlags_Unauthorized_Reason) Type() protoreflect.EnumType {
return &file_envoy_data_accesslog_v2_accesslog_proto_enumTypes[1]
}
func (x ResponseFlags_Unauthorized_Reason) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use ResponseFlags_Unauthorized_Reason.Descriptor instead.
func (ResponseFlags_Unauthorized_Reason) EnumDescriptor() ([]byte, []int) {
return file_envoy_data_accesslog_v2_accesslog_proto_rawDescGZIP(), []int{4, 0, 0}
}
type TLSProperties_TLSVersion int32
const (
TLSProperties_VERSION_UNSPECIFIED TLSProperties_TLSVersion = 0
TLSProperties_TLSv1 TLSProperties_TLSVersion = 1
TLSProperties_TLSv1_1 TLSProperties_TLSVersion = 2
TLSProperties_TLSv1_2 TLSProperties_TLSVersion = 3
TLSProperties_TLSv1_3 TLSProperties_TLSVersion = 4
)
// Enum value maps for TLSProperties_TLSVersion.
var (
TLSProperties_TLSVersion_name = map[int32]string{
0: "VERSION_UNSPECIFIED",
1: "TLSv1",
2: "TLSv1_1",
3: "TLSv1_2",
4: "TLSv1_3",
}
TLSProperties_TLSVersion_value = map[string]int32{
"VERSION_UNSPECIFIED": 0,
"TLSv1": 1,
"TLSv1_1": 2,
"TLSv1_2": 3,
"TLSv1_3": 4,
}
)
func (x TLSProperties_TLSVersion) Enum() *TLSProperties_TLSVersion {
p := new(TLSProperties_TLSVersion)
*p = x
return p
}
func (x TLSProperties_TLSVersion) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (TLSProperties_TLSVersion) Descriptor() protoreflect.EnumDescriptor {
return file_envoy_data_accesslog_v2_accesslog_proto_enumTypes[2].Descriptor()
}
func (TLSProperties_TLSVersion) Type() protoreflect.EnumType {
return &file_envoy_data_accesslog_v2_accesslog_proto_enumTypes[2]
}
func (x TLSProperties_TLSVersion) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use TLSProperties_TLSVersion.Descriptor instead.
func (TLSProperties_TLSVersion) EnumDescriptor() ([]byte, []int) {
return file_envoy_data_accesslog_v2_accesslog_proto_rawDescGZIP(), []int{5, 0}
}
type TCPAccessLogEntry struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Common properties shared by all Envoy access logs.
CommonProperties *AccessLogCommon `protobuf:"bytes,1,opt,name=common_properties,json=commonProperties,proto3" json:"common_properties,omitempty"`
// Properties of the TCP connection.
ConnectionProperties *ConnectionProperties `protobuf:"bytes,2,opt,name=connection_properties,json=connectionProperties,proto3" json:"connection_properties,omitempty"`
}
func (x *TCPAccessLogEntry) Reset() {
*x = TCPAccessLogEntry{}
if protoimpl.UnsafeEnabled {
mi := &file_envoy_data_accesslog_v2_accesslog_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *TCPAccessLogEntry) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TCPAccessLogEntry) ProtoMessage() {}
func (x *TCPAccessLogEntry) ProtoReflect() protoreflect.Message {
mi := &file_envoy_data_accesslog_v2_accesslog_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use TCPAccessLogEntry.ProtoReflect.Descriptor instead.
func (*TCPAccessLogEntry) Descriptor() ([]byte, []int) {
return file_envoy_data_accesslog_v2_accesslog_proto_rawDescGZIP(), []int{0}
}
func (x *TCPAccessLogEntry) GetCommonProperties() *AccessLogCommon {
if x != nil {
return x.CommonProperties
}
return nil
}
func (x *TCPAccessLogEntry) GetConnectionProperties() *ConnectionProperties {
if x != nil {
return x.ConnectionProperties
}
return nil
}
type HTTPAccessLogEntry struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Common properties shared by all Envoy access logs.
CommonProperties *AccessLogCommon `protobuf:"bytes,1,opt,name=common_properties,json=commonProperties,proto3" json:"common_properties,omitempty"`
ProtocolVersion HTTPAccessLogEntry_HTTPVersion `protobuf:"varint,2,opt,name=protocol_version,json=protocolVersion,proto3,enum=envoy.data.accesslog.v2.HTTPAccessLogEntry_HTTPVersion" json:"protocol_version,omitempty"`
// Description of the incoming HTTP request.
Request *HTTPRequestProperties `protobuf:"bytes,3,opt,name=request,proto3" json:"request,omitempty"`
// Description of the outgoing HTTP response.
Response *HTTPResponseProperties `protobuf:"bytes,4,opt,name=response,proto3" json:"response,omitempty"`
}
func (x *HTTPAccessLogEntry) Reset() {
*x = HTTPAccessLogEntry{}
if protoimpl.UnsafeEnabled {
mi := &file_envoy_data_accesslog_v2_accesslog_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *HTTPAccessLogEntry) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*HTTPAccessLogEntry) ProtoMessage() {}
func (x *HTTPAccessLogEntry) ProtoReflect() protoreflect.Message {
mi := &file_envoy_data_accesslog_v2_accesslog_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use HTTPAccessLogEntry.ProtoReflect.Descriptor instead.
func (*HTTPAccessLogEntry) Descriptor() ([]byte, []int) {
return file_envoy_data_accesslog_v2_accesslog_proto_rawDescGZIP(), []int{1}
}
func (x *HTTPAccessLogEntry) GetCommonProperties() *AccessLogCommon {
if x != nil {
return x.CommonProperties
}
return nil
}
func (x *HTTPAccessLogEntry) GetProtocolVersion() HTTPAccessLogEntry_HTTPVersion {
if x != nil {
return x.ProtocolVersion
}
return HTTPAccessLogEntry_PROTOCOL_UNSPECIFIED
}
func (x *HTTPAccessLogEntry) GetRequest() *HTTPRequestProperties {
if x != nil {
return x.Request
}
return nil
}
func (x *HTTPAccessLogEntry) GetResponse() *HTTPResponseProperties {
if x != nil {
return x.Response
}
return nil
}
// Defines fields for a connection
type ConnectionProperties struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Number of bytes received from downstream.
ReceivedBytes uint64 `protobuf:"varint,1,opt,name=received_bytes,json=receivedBytes,proto3" json:"received_bytes,omitempty"`
// Number of bytes sent to downstream.
SentBytes uint64 `protobuf:"varint,2,opt,name=sent_bytes,json=sentBytes,proto3" json:"sent_bytes,omitempty"`
}
func (x *ConnectionProperties) Reset() {
*x = ConnectionProperties{}
if protoimpl.UnsafeEnabled {
mi := &file_envoy_data_accesslog_v2_accesslog_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ConnectionProperties) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ConnectionProperties) ProtoMessage() {}
func (x *ConnectionProperties) ProtoReflect() protoreflect.Message {
mi := &file_envoy_data_accesslog_v2_accesslog_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ConnectionProperties.ProtoReflect.Descriptor instead.
func (*ConnectionProperties) Descriptor() ([]byte, []int) {
return file_envoy_data_accesslog_v2_accesslog_proto_rawDescGZIP(), []int{2}
}
func (x *ConnectionProperties) GetReceivedBytes() uint64 {
if x != nil {
return x.ReceivedBytes
}
return 0
}
func (x *ConnectionProperties) GetSentBytes() uint64 {
if x != nil {
return x.SentBytes
}
return 0
}
// Defines fields that are shared by all Envoy access logs.
// [#next-free-field: 22]
type AccessLogCommon struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// [#not-implemented-hide:]
// This field indicates the rate at which this log entry was sampled.
// Valid range is (0.0, 1.0].
SampleRate float64 `protobuf:"fixed64,1,opt,name=sample_rate,json=sampleRate,proto3" json:"sample_rate,omitempty"`
// This field is the remote/origin address on which the request from the user was received.
// Note: This may not be the physical peer. E.g, if the remote address is inferred from for
// example the x-forwarder-for header, proxy protocol, etc.
DownstreamRemoteAddress *core.Address `protobuf:"bytes,2,opt,name=downstream_remote_address,json=downstreamRemoteAddress,proto3" json:"downstream_remote_address,omitempty"`
// This field is the local/destination address on which the request from the user was received.
DownstreamLocalAddress *core.Address `protobuf:"bytes,3,opt,name=downstream_local_address,json=downstreamLocalAddress,proto3" json:"downstream_local_address,omitempty"`
// If the connection is secure,S this field will contain TLS properties.
TlsProperties *TLSProperties `protobuf:"bytes,4,opt,name=tls_properties,json=tlsProperties,proto3" json:"tls_properties,omitempty"`
// The time that Envoy started servicing this request. This is effectively the time that the first
// downstream byte is received.
StartTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
// Interval between the first downstream byte received and the last
// downstream byte received (i.e. time it takes to receive a request).
TimeToLastRxByte *duration.Duration `protobuf:"bytes,6,opt,name=time_to_last_rx_byte,json=timeToLastRxByte,proto3" json:"time_to_last_rx_byte,omitempty"`
// Interval between the first downstream byte received and the first upstream byte sent. There may
// by considerable delta between *time_to_last_rx_byte* and this value due to filters.
// Additionally, the same caveats apply as documented in *time_to_last_downstream_tx_byte* about
// not accounting for kernel socket buffer time, etc.
TimeToFirstUpstreamTxByte *duration.Duration `protobuf:"bytes,7,opt,name=time_to_first_upstream_tx_byte,json=timeToFirstUpstreamTxByte,proto3" json:"time_to_first_upstream_tx_byte,omitempty"`
// Interval between the first downstream byte received and the last upstream byte sent. There may
// by considerable delta between *time_to_last_rx_byte* and this value due to filters.
// Additionally, the same caveats apply as documented in *time_to_last_downstream_tx_byte* about
// not accounting for kernel socket buffer time, etc.
TimeToLastUpstreamTxByte *duration.Duration `protobuf:"bytes,8,opt,name=time_to_last_upstream_tx_byte,json=timeToLastUpstreamTxByte,proto3" json:"time_to_last_upstream_tx_byte,omitempty"`
// Interval between the first downstream byte received and the first upstream
// byte received (i.e. time it takes to start receiving a response).
TimeToFirstUpstreamRxByte *duration.Duration `protobuf:"bytes,9,opt,name=time_to_first_upstream_rx_byte,json=timeToFirstUpstreamRxByte,proto3" json:"time_to_first_upstream_rx_byte,omitempty"`
// Interval between the first downstream byte received and the last upstream
// byte received (i.e. time it takes to receive a complete response).
TimeToLastUpstreamRxByte *duration.Duration `protobuf:"bytes,10,opt,name=time_to_last_upstream_rx_byte,json=timeToLastUpstreamRxByte,proto3" json:"time_to_last_upstream_rx_byte,omitempty"`
// Interval between the first downstream byte received and the first downstream byte sent.
// There may be a considerable delta between the *time_to_first_upstream_rx_byte* and this field
// due to filters. Additionally, the same caveats apply as documented in
// *time_to_last_downstream_tx_byte* about not accounting for kernel socket buffer time, etc.
TimeToFirstDownstreamTxByte *duration.Duration `protobuf:"bytes,11,opt,name=time_to_first_downstream_tx_byte,json=timeToFirstDownstreamTxByte,proto3" json:"time_to_first_downstream_tx_byte,omitempty"`
// Interval between the first downstream byte received and the last downstream byte sent.
// Depending on protocol, buffering, windowing, filters, etc. there may be a considerable delta
// between *time_to_last_upstream_rx_byte* and this field. Note also that this is an approximate
// time. In the current implementation it does not include kernel socket buffer time. In the
// current implementation it also does not include send window buffering inside the HTTP/2 codec.
// In the future it is likely that work will be done to make this duration more accurate.
TimeToLastDownstreamTxByte *duration.Duration `protobuf:"bytes,12,opt,name=time_to_last_downstream_tx_byte,json=timeToLastDownstreamTxByte,proto3" json:"time_to_last_downstream_tx_byte,omitempty"`
// The upstream remote/destination address that handles this exchange. This does not include
// retries.
UpstreamRemoteAddress *core.Address `protobuf:"bytes,13,opt,name=upstream_remote_address,json=upstreamRemoteAddress,proto3" json:"upstream_remote_address,omitempty"`
// The upstream local/origin address that handles this exchange. This does not include retries.
UpstreamLocalAddress *core.Address `protobuf:"bytes,14,opt,name=upstream_local_address,json=upstreamLocalAddress,proto3" json:"upstream_local_address,omitempty"`
// The upstream cluster that *upstream_remote_address* belongs to.
UpstreamCluster string `protobuf:"bytes,15,opt,name=upstream_cluster,json=upstreamCluster,proto3" json:"upstream_cluster,omitempty"`
// Flags indicating occurrences during request/response processing.
ResponseFlags *ResponseFlags `protobuf:"bytes,16,opt,name=response_flags,json=responseFlags,proto3" json:"response_flags,omitempty"`
// All metadata encountered during request processing, including endpoint
// selection.
//
// This can be used to associate IDs attached to the various configurations
// used to process this request with the access log entry. For example, a
// route created from a higher level forwarding rule with some ID can place
// that ID in this field and cross reference later. It can also be used to
// determine if a canary endpoint was used or not.
Metadata *core.Metadata `protobuf:"bytes,17,opt,name=metadata,proto3" json:"metadata,omitempty"`
// If upstream connection failed due to transport socket (e.g. TLS handshake), provides the
// failure reason from the transport socket. The format of this field depends on the configured
// upstream transport socket. Common TLS failures are in
// :ref:`TLS trouble shooting <arch_overview_ssl_trouble_shooting>`.
UpstreamTransportFailureReason string `protobuf:"bytes,18,opt,name=upstream_transport_failure_reason,json=upstreamTransportFailureReason,proto3" json:"upstream_transport_failure_reason,omitempty"`
// The name of the route
RouteName string `protobuf:"bytes,19,opt,name=route_name,json=routeName,proto3" json:"route_name,omitempty"`
// This field is the downstream direct remote address on which the request from the user was
// received. Note: This is always the physical peer, even if the remote address is inferred from
// for example the x-forwarder-for header, proxy protocol, etc.
DownstreamDirectRemoteAddress *core.Address `protobuf:"bytes,20,opt,name=downstream_direct_remote_address,json=downstreamDirectRemoteAddress,proto3" json:"downstream_direct_remote_address,omitempty"`
// Map of filter state in stream info that have been configured to be logged. If the filter
// state serialized to any message other than `google.protobuf.Any` it will be packed into
// `google.protobuf.Any`.
FilterStateObjects map[string]*any.Any `protobuf:"bytes,21,rep,name=filter_state_objects,json=filterStateObjects,proto3" json:"filter_state_objects,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
}
func (x *AccessLogCommon) Reset() {
*x = AccessLogCommon{}
if protoimpl.UnsafeEnabled {
mi := &file_envoy_data_accesslog_v2_accesslog_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *AccessLogCommon) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AccessLogCommon) ProtoMessage() {}
func (x *AccessLogCommon) ProtoReflect() protoreflect.Message {
mi := &file_envoy_data_accesslog_v2_accesslog_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use AccessLogCommon.ProtoReflect.Descriptor instead.
func (*AccessLogCommon) Descriptor() ([]byte, []int) {
return file_envoy_data_accesslog_v2_accesslog_proto_rawDescGZIP(), []int{3}
}
func (x *AccessLogCommon) GetSampleRate() float64 {
if x != nil {
return x.SampleRate
}
return 0
}
func (x *AccessLogCommon) GetDownstreamRemoteAddress() *core.Address {
if x != nil {
return x.DownstreamRemoteAddress
}
return nil
}
func (x *AccessLogCommon) GetDownstreamLocalAddress() *core.Address {
if x != nil {
return x.DownstreamLocalAddress
}
return nil
}
func (x *AccessLogCommon) GetTlsProperties() *TLSProperties {
if x != nil {
return x.TlsProperties
}
return nil
}
func (x *AccessLogCommon) GetStartTime() *timestamp.Timestamp {
if x != nil {
return x.StartTime
}
return nil
}
func (x *AccessLogCommon) GetTimeToLastRxByte() *duration.Duration {
if x != nil {
return x.TimeToLastRxByte
}
return nil
}
func (x *AccessLogCommon) GetTimeToFirstUpstreamTxByte() *duration.Duration {
if x != nil {
return x.TimeToFirstUpstreamTxByte
}
return nil
}
func (x *AccessLogCommon) GetTimeToLastUpstreamTxByte() *duration.Duration {
if x != nil {
return x.TimeToLastUpstreamTxByte
}
return nil
}
func (x *AccessLogCommon) GetTimeToFirstUpstreamRxByte() *duration.Duration {
if x != nil {
return x.TimeToFirstUpstreamRxByte
}
return nil
}
func (x *AccessLogCommon) GetTimeToLastUpstreamRxByte() *duration.Duration {
if x != nil {
return x.TimeToLastUpstreamRxByte
}
return nil
}
func (x *AccessLogCommon) GetTimeToFirstDownstreamTxByte() *duration.Duration {
if x != nil {
return x.TimeToFirstDownstreamTxByte
}
return nil
}
func (x *AccessLogCommon) GetTimeToLastDownstreamTxByte() *duration.Duration {
if x != nil {
return x.TimeToLastDownstreamTxByte
}
return nil
}
func (x *AccessLogCommon) GetUpstreamRemoteAddress() *core.Address {
if x != nil {
return x.UpstreamRemoteAddress
}
return nil
}
func (x *AccessLogCommon) GetUpstreamLocalAddress() *core.Address {
if x != nil {
return x.UpstreamLocalAddress
}
return nil
}
func (x *AccessLogCommon) GetUpstreamCluster() string {
if x != nil {
return x.UpstreamCluster
}
return ""
}
func (x *AccessLogCommon) GetResponseFlags() *ResponseFlags {
if x != nil {
return x.ResponseFlags
}
return nil
}
func (x *AccessLogCommon) GetMetadata() *core.Metadata {
if x != nil {
return x.Metadata
}
return nil
}
func (x *AccessLogCommon) GetUpstreamTransportFailureReason() string {
if x != nil {
return x.UpstreamTransportFailureReason
}
return ""
}
func (x *AccessLogCommon) GetRouteName() string {
if x != nil {
return x.RouteName
}
return ""
}
func (x *AccessLogCommon) GetDownstreamDirectRemoteAddress() *core.Address {
if x != nil {
return x.DownstreamDirectRemoteAddress
}
return nil
}
func (x *AccessLogCommon) GetFilterStateObjects() map[string]*any.Any {
if x != nil {
return x.FilterStateObjects
}
return nil
}
// Flags indicating occurrences during request/response processing.
// [#next-free-field: 20]
type ResponseFlags struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Indicates local server healthcheck failed.
FailedLocalHealthcheck bool `protobuf:"varint,1,opt,name=failed_local_healthcheck,json=failedLocalHealthcheck,proto3" json:"failed_local_healthcheck,omitempty"`
// Indicates there was no healthy upstream.
NoHealthyUpstream bool `protobuf:"varint,2,opt,name=no_healthy_upstream,json=noHealthyUpstream,proto3" json:"no_healthy_upstream,omitempty"`
// Indicates an there was an upstream request timeout.
UpstreamRequestTimeout bool `protobuf:"varint,3,opt,name=upstream_request_timeout,json=upstreamRequestTimeout,proto3" json:"upstream_request_timeout,omitempty"`
// Indicates local codec level reset was sent on the stream.
LocalReset bool `protobuf:"varint,4,opt,name=local_reset,json=localReset,proto3" json:"local_reset,omitempty"`
// Indicates remote codec level reset was received on the stream.
UpstreamRemoteReset bool `protobuf:"varint,5,opt,name=upstream_remote_reset,json=upstreamRemoteReset,proto3" json:"upstream_remote_reset,omitempty"`
// Indicates there was a local reset by a connection pool due to an initial connection failure.
UpstreamConnectionFailure bool `protobuf:"varint,6,opt,name=upstream_connection_failure,json=upstreamConnectionFailure,proto3" json:"upstream_connection_failure,omitempty"`
// Indicates the stream was reset due to an upstream connection termination.
UpstreamConnectionTermination bool `protobuf:"varint,7,opt,name=upstream_connection_termination,json=upstreamConnectionTermination,proto3" json:"upstream_connection_termination,omitempty"`
// Indicates the stream was reset because of a resource overflow.
UpstreamOverflow bool `protobuf:"varint,8,opt,name=upstream_overflow,json=upstreamOverflow,proto3" json:"upstream_overflow,omitempty"`
// Indicates no route was found for the request.
NoRouteFound bool `protobuf:"varint,9,opt,name=no_route_found,json=noRouteFound,proto3" json:"no_route_found,omitempty"`
// Indicates that the request was delayed before proxying.
DelayInjected bool `protobuf:"varint,10,opt,name=delay_injected,json=delayInjected,proto3" json:"delay_injected,omitempty"`
// Indicates that the request was aborted with an injected error code.
FaultInjected bool `protobuf:"varint,11,opt,name=fault_injected,json=faultInjected,proto3" json:"fault_injected,omitempty"`
// Indicates that the request was rate-limited locally.
RateLimited bool `protobuf:"varint,12,opt,name=rate_limited,json=rateLimited,proto3" json:"rate_limited,omitempty"`
// Indicates if the request was deemed unauthorized and the reason for it.
UnauthorizedDetails *ResponseFlags_Unauthorized `protobuf:"bytes,13,opt,name=unauthorized_details,json=unauthorizedDetails,proto3" json:"unauthorized_details,omitempty"`
// Indicates that the request was rejected because there was an error in rate limit service.
RateLimitServiceError bool `protobuf:"varint,14,opt,name=rate_limit_service_error,json=rateLimitServiceError,proto3" json:"rate_limit_service_error,omitempty"`
// Indicates the stream was reset due to a downstream connection termination.
DownstreamConnectionTermination bool `protobuf:"varint,15,opt,name=downstream_connection_termination,json=downstreamConnectionTermination,proto3" json:"downstream_connection_termination,omitempty"`
// Indicates that the upstream retry limit was exceeded, resulting in a downstream error.
UpstreamRetryLimitExceeded bool `protobuf:"varint,16,opt,name=upstream_retry_limit_exceeded,json=upstreamRetryLimitExceeded,proto3" json:"upstream_retry_limit_exceeded,omitempty"`
// Indicates that the stream idle timeout was hit, resulting in a downstream 408.
StreamIdleTimeout bool `protobuf:"varint,17,opt,name=stream_idle_timeout,json=streamIdleTimeout,proto3" json:"stream_idle_timeout,omitempty"`
// Indicates that the request was rejected because an envoy request header failed strict
// validation.
InvalidEnvoyRequestHeaders bool `protobuf:"varint,18,opt,name=invalid_envoy_request_headers,json=invalidEnvoyRequestHeaders,proto3" json:"invalid_envoy_request_headers,omitempty"`
// Indicates there was an HTTP protocol error on the downstream request.
DownstreamProtocolError bool `protobuf:"varint,19,opt,name=downstream_protocol_error,json=downstreamProtocolError,proto3" json:"downstream_protocol_error,omitempty"`
}
func (x *ResponseFlags) Reset() {
*x = ResponseFlags{}
if protoimpl.UnsafeEnabled {
mi := &file_envoy_data_accesslog_v2_accesslog_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ResponseFlags) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ResponseFlags) ProtoMessage() {}
func (x *ResponseFlags) ProtoReflect() protoreflect.Message {
mi := &file_envoy_data_accesslog_v2_accesslog_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ResponseFlags.ProtoReflect.Descriptor instead.
func (*ResponseFlags) Descriptor() ([]byte, []int) {
return file_envoy_data_accesslog_v2_accesslog_proto_rawDescGZIP(), []int{4}
}
func (x *ResponseFlags) GetFailedLocalHealthcheck() bool {
if x != nil {
return x.FailedLocalHealthcheck
}
return false
}
func (x *ResponseFlags) GetNoHealthyUpstream() bool {
if x != nil {
return x.NoHealthyUpstream
}
return false
}
func (x *ResponseFlags) GetUpstreamRequestTimeout() bool {
if x != nil {
return x.UpstreamRequestTimeout
}
return false
}
func (x *ResponseFlags) GetLocalReset() bool {
if x != nil {
return x.LocalReset
}
return false
}
func (x *ResponseFlags) GetUpstreamRemoteReset() bool {
if x != nil {
return x.UpstreamRemoteReset
}
return false
}
func (x *ResponseFlags) GetUpstreamConnectionFailure() bool {
if x != nil {
return x.UpstreamConnectionFailure
}
return false
}
func (x *ResponseFlags) GetUpstreamConnectionTermination() bool {
if x != nil {
return x.UpstreamConnectionTermination
}
return false
}
func (x *ResponseFlags) GetUpstreamOverflow() bool {
if x != nil {
return x.UpstreamOverflow
}
return false
}
func (x *ResponseFlags) GetNoRouteFound() bool {
if x != nil {
return x.NoRouteFound
}
return false
}
func (x *ResponseFlags) GetDelayInjected() bool {
if x != nil {
return x.DelayInjected
}
return false
}
func (x *ResponseFlags) GetFaultInjected() bool {
if x != nil {
return x.FaultInjected
}
return false
}
func (x *ResponseFlags) GetRateLimited() bool {
if x != nil {
return x.RateLimited
}
return false
}
func (x *ResponseFlags) GetUnauthorizedDetails() *ResponseFlags_Unauthorized {
if x != nil {
return x.UnauthorizedDetails
}
return nil
}
func (x *ResponseFlags) GetRateLimitServiceError() bool {
if x != nil {
return x.RateLimitServiceError
}
return false
}
func (x *ResponseFlags) GetDownstreamConnectionTermination() bool {
if x != nil {
return x.DownstreamConnectionTermination
}
return false
}
func (x *ResponseFlags) GetUpstreamRetryLimitExceeded() bool {
if x != nil {
return x.UpstreamRetryLimitExceeded
}
return false
}
func (x *ResponseFlags) GetStreamIdleTimeout() bool {
if x != nil {
return x.StreamIdleTimeout
}
return false
}
func (x *ResponseFlags) GetInvalidEnvoyRequestHeaders() bool {
if x != nil {
return x.InvalidEnvoyRequestHeaders
}
return false
}
func (x *ResponseFlags) GetDownstreamProtocolError() bool {
if x != nil {
return x.DownstreamProtocolError
}
return false
}
// Properties of a negotiated TLS connection.
// [#next-free-field: 7]
type TLSProperties struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Version of TLS that was negotiated.
TlsVersion TLSProperties_TLSVersion `protobuf:"varint,1,opt,name=tls_version,json=tlsVersion,proto3,enum=envoy.data.accesslog.v2.TLSProperties_TLSVersion" json:"tls_version,omitempty"`
// TLS cipher suite negotiated during handshake. The value is a
// four-digit hex code defined by the IANA TLS Cipher Suite Registry
// (e.g. ``009C`` for ``TLS_RSA_WITH_AES_128_GCM_SHA256``).
//
// Here it is expressed as an integer.
TlsCipherSuite *wrappers.UInt32Value `protobuf:"bytes,2,opt,name=tls_cipher_suite,json=tlsCipherSuite,proto3" json:"tls_cipher_suite,omitempty"`
// SNI hostname from handshake.
TlsSniHostname string `protobuf:"bytes,3,opt,name=tls_sni_hostname,json=tlsSniHostname,proto3" json:"tls_sni_hostname,omitempty"`
// Properties of the local certificate used to negotiate TLS.
LocalCertificateProperties *TLSProperties_CertificateProperties `protobuf:"bytes,4,opt,name=local_certificate_properties,json=localCertificateProperties,proto3" json:"local_certificate_properties,omitempty"`
// Properties of the peer certificate used to negotiate TLS.
PeerCertificateProperties *TLSProperties_CertificateProperties `protobuf:"bytes,5,opt,name=peer_certificate_properties,json=peerCertificateProperties,proto3" json:"peer_certificate_properties,omitempty"`
// The TLS session ID.
TlsSessionId string `protobuf:"bytes,6,opt,name=tls_session_id,json=tlsSessionId,proto3" json:"tls_session_id,omitempty"`
}
func (x *TLSProperties) Reset() {
*x = TLSProperties{}
if protoimpl.UnsafeEnabled {
mi := &file_envoy_data_accesslog_v2_accesslog_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *TLSProperties) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TLSProperties) ProtoMessage() {}
func (x *TLSProperties) ProtoReflect() protoreflect.Message {
mi := &file_envoy_data_accesslog_v2_accesslog_proto_msgTypes[5]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use TLSProperties.ProtoReflect.Descriptor instead.
func (*TLSProperties) Descriptor() ([]byte, []int) {
return file_envoy_data_accesslog_v2_accesslog_proto_rawDescGZIP(), []int{5}
}
func (x *TLSProperties) GetTlsVersion() TLSProperties_TLSVersion {
if x != nil {
return x.TlsVersion
}
return TLSProperties_VERSION_UNSPECIFIED
}
func (x *TLSProperties) GetTlsCipherSuite() *wrappers.UInt32Value {
if x != nil {
return x.TlsCipherSuite
}
return nil
}
func (x *TLSProperties) GetTlsSniHostname() string {
if x != nil {
return x.TlsSniHostname
}
return ""
}
func (x *TLSProperties) GetLocalCertificateProperties() *TLSProperties_CertificateProperties {
if x != nil {
return x.LocalCertificateProperties
}
return nil
}
func (x *TLSProperties) GetPeerCertificateProperties() *TLSProperties_CertificateProperties {
if x != nil {
return x.PeerCertificateProperties
}
return nil
}
func (x *TLSProperties) GetTlsSessionId() string {
if x != nil {
return x.TlsSessionId
}
return ""
}
// [#next-free-field: 14]
type HTTPRequestProperties struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The request method (RFC 7231/2616).
RequestMethod core.RequestMethod `protobuf:"varint,1,opt,name=request_method,json=requestMethod,proto3,enum=envoy.api.v2.core.RequestMethod" json:"request_method,omitempty"`
// The scheme portion of the incoming request URI.
Scheme string `protobuf:"bytes,2,opt,name=scheme,proto3" json:"scheme,omitempty"`
// HTTP/2 ``:authority`` or HTTP/1.1 ``Host`` header value.
Authority string `protobuf:"bytes,3,opt,name=authority,proto3" json:"authority,omitempty"`
// The port of the incoming request URI
// (unused currently, as port is composed onto authority).
Port *wrappers.UInt32Value `protobuf:"bytes,4,opt,name=port,proto3" json:"port,omitempty"`
// The path portion from the incoming request URI.
Path string `protobuf:"bytes,5,opt,name=path,proto3" json:"path,omitempty"`
// Value of the ``User-Agent`` request header.
UserAgent string `protobuf:"bytes,6,opt,name=user_agent,json=userAgent,proto3" json:"user_agent,omitempty"`
// Value of the ``Referer`` request header.
Referer string `protobuf:"bytes,7,opt,name=referer,proto3" json:"referer,omitempty"`
// Value of the ``X-Forwarded-For`` request header.
ForwardedFor string `protobuf:"bytes,8,opt,name=forwarded_for,json=forwardedFor,proto3" json:"forwarded_for,omitempty"`
// Value of the ``X-Request-Id`` request header
//
// This header is used by Envoy to uniquely identify a request.
// It will be generated for all external requests and internal requests that
// do not already have a request ID.
RequestId string `protobuf:"bytes,9,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
// Value of the ``X-Envoy-Original-Path`` request header.
OriginalPath string `protobuf:"bytes,10,opt,name=original_path,json=originalPath,proto3" json:"original_path,omitempty"`
// Size of the HTTP request headers in bytes.
//
// This value is captured from the OSI layer 7 perspective, i.e. it does not
// include overhead from framing or encoding at other networking layers.
RequestHeadersBytes uint64 `protobuf:"varint,11,opt,name=request_headers_bytes,json=requestHeadersBytes,proto3" json:"request_headers_bytes,omitempty"`
// Size of the HTTP request body in bytes.
//
// This value is captured from the OSI layer 7 perspective, i.e. it does not
// include overhead from framing or encoding at other networking layers.
RequestBodyBytes uint64 `protobuf:"varint,12,opt,name=request_body_bytes,json=requestBodyBytes,proto3" json:"request_body_bytes,omitempty"`
// Map of additional headers that have been configured to be logged.
RequestHeaders map[string]string `protobuf:"bytes,13,rep,name=request_headers,json=requestHeaders,proto3" json:"request_headers,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
}