-
Notifications
You must be signed in to change notification settings - Fork 682
/
health_check.pb.go
1483 lines (1346 loc) · 70.9 KB
/
health_check.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.25.0
// protoc v3.14.0
// source: envoy/config/core/v4alpha/health_check.proto
package envoy_config_core_v4alpha
import (
_ "github.com/cncf/udpa/go/udpa/annotations"
_ "github.com/datawire/ambassador/v2/pkg/api/envoy/annotations"
v4alpha "github.com/datawire/ambassador/v2/pkg/api/envoy/type/matcher/v4alpha"
v3 "github.com/datawire/ambassador/v2/pkg/api/envoy/type/v3"
_ "github.com/envoyproxy/protoc-gen-validate/validate"
proto "github.com/golang/protobuf/proto"
any "github.com/golang/protobuf/ptypes/any"
duration "github.com/golang/protobuf/ptypes/duration"
_struct "github.com/golang/protobuf/ptypes/struct"
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)
)
// This is a compile-time assertion that a sufficiently up-to-date version
// of the legacy proto package is being used.
const _ = proto.ProtoPackageIsVersion4
// Endpoint health status.
type HealthStatus int32
const (
// The health status is not known. This is interpreted by Envoy as *HEALTHY*.
HealthStatus_UNKNOWN HealthStatus = 0
// Healthy.
HealthStatus_HEALTHY HealthStatus = 1
// Unhealthy.
HealthStatus_UNHEALTHY HealthStatus = 2
// Connection draining in progress. E.g.,
// `<https://aws.amazon.com/blogs/aws/elb-connection-draining-remove-instances-from-service-with-care/>`_
// or
// `<https://cloud.google.com/compute/docs/load-balancing/enabling-connection-draining>`_.
// This is interpreted by Envoy as *UNHEALTHY*.
HealthStatus_DRAINING HealthStatus = 3
// Health check timed out. This is part of HDS and is interpreted by Envoy as
// *UNHEALTHY*.
HealthStatus_TIMEOUT HealthStatus = 4
// Degraded.
HealthStatus_DEGRADED HealthStatus = 5
)
// Enum value maps for HealthStatus.
var (
HealthStatus_name = map[int32]string{
0: "UNKNOWN",
1: "HEALTHY",
2: "UNHEALTHY",
3: "DRAINING",
4: "TIMEOUT",
5: "DEGRADED",
}
HealthStatus_value = map[string]int32{
"UNKNOWN": 0,
"HEALTHY": 1,
"UNHEALTHY": 2,
"DRAINING": 3,
"TIMEOUT": 4,
"DEGRADED": 5,
}
)
func (x HealthStatus) Enum() *HealthStatus {
p := new(HealthStatus)
*p = x
return p
}
func (x HealthStatus) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (HealthStatus) Descriptor() protoreflect.EnumDescriptor {
return file_envoy_config_core_v4alpha_health_check_proto_enumTypes[0].Descriptor()
}
func (HealthStatus) Type() protoreflect.EnumType {
return &file_envoy_config_core_v4alpha_health_check_proto_enumTypes[0]
}
func (x HealthStatus) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use HealthStatus.Descriptor instead.
func (HealthStatus) EnumDescriptor() ([]byte, []int) {
return file_envoy_config_core_v4alpha_health_check_proto_rawDescGZIP(), []int{0}
}
// [#next-free-field: 25]
type HealthCheck struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The time to wait for a health check response. If the timeout is reached the
// health check attempt will be considered a failure.
Timeout *duration.Duration `protobuf:"bytes,1,opt,name=timeout,proto3" json:"timeout,omitempty"`
// The interval between health checks.
Interval *duration.Duration `protobuf:"bytes,2,opt,name=interval,proto3" json:"interval,omitempty"`
// An optional jitter amount in milliseconds. If specified, Envoy will start health
// checking after for a random time in ms between 0 and initial_jitter. This only
// applies to the first health check.
InitialJitter *duration.Duration `protobuf:"bytes,20,opt,name=initial_jitter,json=initialJitter,proto3" json:"initial_jitter,omitempty"`
// An optional jitter amount in milliseconds. If specified, during every
// interval Envoy will add interval_jitter to the wait time.
IntervalJitter *duration.Duration `protobuf:"bytes,3,opt,name=interval_jitter,json=intervalJitter,proto3" json:"interval_jitter,omitempty"`
// An optional jitter amount as a percentage of interval_ms. If specified,
// during every interval Envoy will add interval_ms *
// interval_jitter_percent / 100 to the wait time.
//
// If interval_jitter_ms and interval_jitter_percent are both set, both of
// them will be used to increase the wait time.
IntervalJitterPercent uint32 `protobuf:"varint,18,opt,name=interval_jitter_percent,json=intervalJitterPercent,proto3" json:"interval_jitter_percent,omitempty"`
// The number of unhealthy health checks required before a host is marked
// unhealthy. Note that for *http* health checking if a host responds with 503
// this threshold is ignored and the host is considered unhealthy immediately.
UnhealthyThreshold *wrappers.UInt32Value `protobuf:"bytes,4,opt,name=unhealthy_threshold,json=unhealthyThreshold,proto3" json:"unhealthy_threshold,omitempty"`
// The number of healthy health checks required before a host is marked
// healthy. Note that during startup, only a single successful health check is
// required to mark a host healthy.
HealthyThreshold *wrappers.UInt32Value `protobuf:"bytes,5,opt,name=healthy_threshold,json=healthyThreshold,proto3" json:"healthy_threshold,omitempty"`
// [#not-implemented-hide:] Non-serving port for health checking.
AltPort *wrappers.UInt32Value `protobuf:"bytes,6,opt,name=alt_port,json=altPort,proto3" json:"alt_port,omitempty"`
// Reuse health check connection between health checks. Default is true.
ReuseConnection *wrappers.BoolValue `protobuf:"bytes,7,opt,name=reuse_connection,json=reuseConnection,proto3" json:"reuse_connection,omitempty"`
// Types that are assignable to HealthChecker:
// *HealthCheck_HttpHealthCheck_
// *HealthCheck_TcpHealthCheck_
// *HealthCheck_GrpcHealthCheck_
// *HealthCheck_CustomHealthCheck_
HealthChecker isHealthCheck_HealthChecker `protobuf_oneof:"health_checker"`
// The "no traffic interval" is a special health check interval that is used when a cluster has
// never had traffic routed to it. This lower interval allows cluster information to be kept up to
// date, without sending a potentially large amount of active health checking traffic for no
// reason. Once a cluster has been used for traffic routing, Envoy will shift back to using the
// standard health check interval that is defined. Note that this interval takes precedence over
// any other.
//
// The default value for "no traffic interval" is 60 seconds.
NoTrafficInterval *duration.Duration `protobuf:"bytes,12,opt,name=no_traffic_interval,json=noTrafficInterval,proto3" json:"no_traffic_interval,omitempty"`
// The "no traffic healthy interval" is a special health check interval that
// is used for hosts that are currently passing active health checking
// (including new hosts) when the cluster has received no traffic.
//
// This is useful for when we want to send frequent health checks with
// `no_traffic_interval` but then revert to lower frequency `no_traffic_healthy_interval` once
// a host in the cluster is marked as healthy.
//
// Once a cluster has been used for traffic routing, Envoy will shift back to using the
// standard health check interval that is defined.
//
// If no_traffic_healthy_interval is not set, it will default to the
// no traffic interval and send that interval regardless of health state.
NoTrafficHealthyInterval *duration.Duration `protobuf:"bytes,24,opt,name=no_traffic_healthy_interval,json=noTrafficHealthyInterval,proto3" json:"no_traffic_healthy_interval,omitempty"`
// The "unhealthy interval" is a health check interval that is used for hosts that are marked as
// unhealthy. As soon as the host is marked as healthy, Envoy will shift back to using the
// standard health check interval that is defined.
//
// The default value for "unhealthy interval" is the same as "interval".
UnhealthyInterval *duration.Duration `protobuf:"bytes,14,opt,name=unhealthy_interval,json=unhealthyInterval,proto3" json:"unhealthy_interval,omitempty"`
// The "unhealthy edge interval" is a special health check interval that is used for the first
// health check right after a host is marked as unhealthy. For subsequent health checks
// Envoy will shift back to using either "unhealthy interval" if present or the standard health
// check interval that is defined.
//
// The default value for "unhealthy edge interval" is the same as "unhealthy interval".
UnhealthyEdgeInterval *duration.Duration `protobuf:"bytes,15,opt,name=unhealthy_edge_interval,json=unhealthyEdgeInterval,proto3" json:"unhealthy_edge_interval,omitempty"`
// The "healthy edge interval" is a special health check interval that is used for the first
// health check right after a host is marked as healthy. For subsequent health checks
// Envoy will shift back to using the standard health check interval that is defined.
//
// The default value for "healthy edge interval" is the same as the default interval.
HealthyEdgeInterval *duration.Duration `protobuf:"bytes,16,opt,name=healthy_edge_interval,json=healthyEdgeInterval,proto3" json:"healthy_edge_interval,omitempty"`
// Specifies the path to the :ref:`health check event log <arch_overview_health_check_logging>`.
// If empty, no event log will be written.
EventLogPath string `protobuf:"bytes,17,opt,name=event_log_path,json=eventLogPath,proto3" json:"event_log_path,omitempty"`
// [#not-implemented-hide:]
// The gRPC service for the health check event service.
// If empty, health check events won't be sent to a remote endpoint.
EventService *EventServiceConfig `protobuf:"bytes,22,opt,name=event_service,json=eventService,proto3" json:"event_service,omitempty"`
// If set to true, health check failure events will always be logged. If set to false, only the
// initial health check failure event will be logged.
// The default value is false.
AlwaysLogHealthCheckFailures bool `protobuf:"varint,19,opt,name=always_log_health_check_failures,json=alwaysLogHealthCheckFailures,proto3" json:"always_log_health_check_failures,omitempty"`
// This allows overriding the cluster TLS settings, just for health check connections.
TlsOptions *HealthCheck_TlsOptions `protobuf:"bytes,21,opt,name=tls_options,json=tlsOptions,proto3" json:"tls_options,omitempty"`
// Optional key/value pairs that will be used to match a transport socket from those specified in the cluster's
// :ref:`tranport socket matches <envoy_api_field_config.cluster.v4alpha.Cluster.transport_socket_matches>`.
// For example, the following match criteria
//
// .. code-block:: yaml
//
// transport_socket_match_criteria:
// useMTLS: true
//
// Will match the following :ref:`cluster socket match <envoy_api_msg_config.cluster.v4alpha.Cluster.TransportSocketMatch>`
//
// .. code-block:: yaml
//
// transport_socket_matches:
// - name: "useMTLS"
// match:
// useMTLS: true
// transport_socket:
// name: envoy.transport_sockets.tls
// config: { ... } # tls socket configuration
//
// If this field is set, then for health checks it will supersede an entry of *envoy.transport_socket* in the
// :ref:`LbEndpoint.Metadata <envoy_api_field_config.endpoint.v3.LbEndpoint.metadata>`.
// This allows using different transport socket capabilities for health checking versus proxying to the
// endpoint.
//
// If the key/values pairs specified do not match any
// :ref:`transport socket matches <envoy_api_field_config.cluster.v4alpha.Cluster.transport_socket_matches>`,
// the cluster's :ref:`transport socket <envoy_api_field_config.cluster.v4alpha.Cluster.transport_socket>`
// will be used for health check socket configuration.
TransportSocketMatchCriteria *_struct.Struct `protobuf:"bytes,23,opt,name=transport_socket_match_criteria,json=transportSocketMatchCriteria,proto3" json:"transport_socket_match_criteria,omitempty"`
}
func (x *HealthCheck) Reset() {
*x = HealthCheck{}
if protoimpl.UnsafeEnabled {
mi := &file_envoy_config_core_v4alpha_health_check_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *HealthCheck) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*HealthCheck) ProtoMessage() {}
func (x *HealthCheck) ProtoReflect() protoreflect.Message {
mi := &file_envoy_config_core_v4alpha_health_check_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 HealthCheck.ProtoReflect.Descriptor instead.
func (*HealthCheck) Descriptor() ([]byte, []int) {
return file_envoy_config_core_v4alpha_health_check_proto_rawDescGZIP(), []int{0}
}
func (x *HealthCheck) GetTimeout() *duration.Duration {
if x != nil {
return x.Timeout
}
return nil
}
func (x *HealthCheck) GetInterval() *duration.Duration {
if x != nil {
return x.Interval
}
return nil
}
func (x *HealthCheck) GetInitialJitter() *duration.Duration {
if x != nil {
return x.InitialJitter
}
return nil
}
func (x *HealthCheck) GetIntervalJitter() *duration.Duration {
if x != nil {
return x.IntervalJitter
}
return nil
}
func (x *HealthCheck) GetIntervalJitterPercent() uint32 {
if x != nil {
return x.IntervalJitterPercent
}
return 0
}
func (x *HealthCheck) GetUnhealthyThreshold() *wrappers.UInt32Value {
if x != nil {
return x.UnhealthyThreshold
}
return nil
}
func (x *HealthCheck) GetHealthyThreshold() *wrappers.UInt32Value {
if x != nil {
return x.HealthyThreshold
}
return nil
}
func (x *HealthCheck) GetAltPort() *wrappers.UInt32Value {
if x != nil {
return x.AltPort
}
return nil
}
func (x *HealthCheck) GetReuseConnection() *wrappers.BoolValue {
if x != nil {
return x.ReuseConnection
}
return nil
}
func (m *HealthCheck) GetHealthChecker() isHealthCheck_HealthChecker {
if m != nil {
return m.HealthChecker
}
return nil
}
func (x *HealthCheck) GetHttpHealthCheck() *HealthCheck_HttpHealthCheck {
if x, ok := x.GetHealthChecker().(*HealthCheck_HttpHealthCheck_); ok {
return x.HttpHealthCheck
}
return nil
}
func (x *HealthCheck) GetTcpHealthCheck() *HealthCheck_TcpHealthCheck {
if x, ok := x.GetHealthChecker().(*HealthCheck_TcpHealthCheck_); ok {
return x.TcpHealthCheck
}
return nil
}
func (x *HealthCheck) GetGrpcHealthCheck() *HealthCheck_GrpcHealthCheck {
if x, ok := x.GetHealthChecker().(*HealthCheck_GrpcHealthCheck_); ok {
return x.GrpcHealthCheck
}
return nil
}
func (x *HealthCheck) GetCustomHealthCheck() *HealthCheck_CustomHealthCheck {
if x, ok := x.GetHealthChecker().(*HealthCheck_CustomHealthCheck_); ok {
return x.CustomHealthCheck
}
return nil
}
func (x *HealthCheck) GetNoTrafficInterval() *duration.Duration {
if x != nil {
return x.NoTrafficInterval
}
return nil
}
func (x *HealthCheck) GetNoTrafficHealthyInterval() *duration.Duration {
if x != nil {
return x.NoTrafficHealthyInterval
}
return nil
}
func (x *HealthCheck) GetUnhealthyInterval() *duration.Duration {
if x != nil {
return x.UnhealthyInterval
}
return nil
}
func (x *HealthCheck) GetUnhealthyEdgeInterval() *duration.Duration {
if x != nil {
return x.UnhealthyEdgeInterval
}
return nil
}
func (x *HealthCheck) GetHealthyEdgeInterval() *duration.Duration {
if x != nil {
return x.HealthyEdgeInterval
}
return nil
}
func (x *HealthCheck) GetEventLogPath() string {
if x != nil {
return x.EventLogPath
}
return ""
}
func (x *HealthCheck) GetEventService() *EventServiceConfig {
if x != nil {
return x.EventService
}
return nil
}
func (x *HealthCheck) GetAlwaysLogHealthCheckFailures() bool {
if x != nil {
return x.AlwaysLogHealthCheckFailures
}
return false
}
func (x *HealthCheck) GetTlsOptions() *HealthCheck_TlsOptions {
if x != nil {
return x.TlsOptions
}
return nil
}
func (x *HealthCheck) GetTransportSocketMatchCriteria() *_struct.Struct {
if x != nil {
return x.TransportSocketMatchCriteria
}
return nil
}
type isHealthCheck_HealthChecker interface {
isHealthCheck_HealthChecker()
}
type HealthCheck_HttpHealthCheck_ struct {
// HTTP health check.
HttpHealthCheck *HealthCheck_HttpHealthCheck `protobuf:"bytes,8,opt,name=http_health_check,json=httpHealthCheck,proto3,oneof"`
}
type HealthCheck_TcpHealthCheck_ struct {
// TCP health check.
TcpHealthCheck *HealthCheck_TcpHealthCheck `protobuf:"bytes,9,opt,name=tcp_health_check,json=tcpHealthCheck,proto3,oneof"`
}
type HealthCheck_GrpcHealthCheck_ struct {
// gRPC health check.
GrpcHealthCheck *HealthCheck_GrpcHealthCheck `protobuf:"bytes,11,opt,name=grpc_health_check,json=grpcHealthCheck,proto3,oneof"`
}
type HealthCheck_CustomHealthCheck_ struct {
// Custom health check.
CustomHealthCheck *HealthCheck_CustomHealthCheck `protobuf:"bytes,13,opt,name=custom_health_check,json=customHealthCheck,proto3,oneof"`
}
func (*HealthCheck_HttpHealthCheck_) isHealthCheck_HealthChecker() {}
func (*HealthCheck_TcpHealthCheck_) isHealthCheck_HealthChecker() {}
func (*HealthCheck_GrpcHealthCheck_) isHealthCheck_HealthChecker() {}
func (*HealthCheck_CustomHealthCheck_) isHealthCheck_HealthChecker() {}
// Describes the encoding of the payload bytes in the payload.
type HealthCheck_Payload struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Types that are assignable to Payload:
// *HealthCheck_Payload_Text
// *HealthCheck_Payload_Binary
Payload isHealthCheck_Payload_Payload `protobuf_oneof:"payload"`
}
func (x *HealthCheck_Payload) Reset() {
*x = HealthCheck_Payload{}
if protoimpl.UnsafeEnabled {
mi := &file_envoy_config_core_v4alpha_health_check_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *HealthCheck_Payload) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*HealthCheck_Payload) ProtoMessage() {}
func (x *HealthCheck_Payload) ProtoReflect() protoreflect.Message {
mi := &file_envoy_config_core_v4alpha_health_check_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 HealthCheck_Payload.ProtoReflect.Descriptor instead.
func (*HealthCheck_Payload) Descriptor() ([]byte, []int) {
return file_envoy_config_core_v4alpha_health_check_proto_rawDescGZIP(), []int{0, 0}
}
func (m *HealthCheck_Payload) GetPayload() isHealthCheck_Payload_Payload {
if m != nil {
return m.Payload
}
return nil
}
func (x *HealthCheck_Payload) GetText() string {
if x, ok := x.GetPayload().(*HealthCheck_Payload_Text); ok {
return x.Text
}
return ""
}
func (x *HealthCheck_Payload) GetBinary() []byte {
if x, ok := x.GetPayload().(*HealthCheck_Payload_Binary); ok {
return x.Binary
}
return nil
}
type isHealthCheck_Payload_Payload interface {
isHealthCheck_Payload_Payload()
}
type HealthCheck_Payload_Text struct {
// Hex encoded payload. E.g., "000000FF".
Text string `protobuf:"bytes,1,opt,name=text,proto3,oneof"`
}
type HealthCheck_Payload_Binary struct {
// [#not-implemented-hide:] Binary payload.
Binary []byte `protobuf:"bytes,2,opt,name=binary,proto3,oneof"`
}
func (*HealthCheck_Payload_Text) isHealthCheck_Payload_Payload() {}
func (*HealthCheck_Payload_Binary) isHealthCheck_Payload_Payload() {}
// [#next-free-field: 12]
type HealthCheck_HttpHealthCheck struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The value of the host header in the HTTP health check request. If
// left empty (default value), the name of the cluster this health check is associated
// with will be used. The host header can be customized for a specific endpoint by setting the
// :ref:`hostname <envoy_api_field_config.endpoint.v3.Endpoint.HealthCheckConfig.hostname>` field.
Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"`
// Specifies the HTTP path that will be requested during health checking. For example
// */healthcheck*.
Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
// [#not-implemented-hide:] HTTP specific payload.
Send *HealthCheck_Payload `protobuf:"bytes,3,opt,name=send,proto3" json:"send,omitempty"`
// [#not-implemented-hide:] HTTP specific response.
Receive *HealthCheck_Payload `protobuf:"bytes,4,opt,name=receive,proto3" json:"receive,omitempty"`
// Specifies a list of HTTP headers that should be added to each request that is sent to the
// health checked cluster. For more information, including details on header value syntax, see
// the documentation on :ref:`custom request headers
// <config_http_conn_man_headers_custom_request_headers>`.
RequestHeadersToAdd []*HeaderValueOption `protobuf:"bytes,6,rep,name=request_headers_to_add,json=requestHeadersToAdd,proto3" json:"request_headers_to_add,omitempty"`
// Specifies a list of HTTP headers that should be removed from each request that is sent to the
// health checked cluster.
RequestHeadersToRemove []string `protobuf:"bytes,8,rep,name=request_headers_to_remove,json=requestHeadersToRemove,proto3" json:"request_headers_to_remove,omitempty"`
// Specifies a list of HTTP response statuses considered healthy. If provided, replaces default
// 200-only policy - 200 must be included explicitly as needed. Ranges follow half-open
// semantics of :ref:`Int64Range <envoy_api_msg_type.v3.Int64Range>`. The start and end of each
// range are required. Only statuses in the range [100, 600) are allowed.
ExpectedStatuses []*v3.Int64Range `protobuf:"bytes,9,rep,name=expected_statuses,json=expectedStatuses,proto3" json:"expected_statuses,omitempty"`
// Use specified application protocol for health checks.
CodecClientType v3.CodecClientType `protobuf:"varint,10,opt,name=codec_client_type,json=codecClientType,proto3,enum=envoy.type.v3.CodecClientType" json:"codec_client_type,omitempty"`
// An optional service name parameter which is used to validate the identity of
// the health checked cluster using a :ref:`StringMatcher
// <envoy_api_msg_type.matcher.v4alpha.StringMatcher>`. See the :ref:`architecture overview
// <arch_overview_health_checking_identity>` for more information.
ServiceNameMatcher *v4alpha.StringMatcher `protobuf:"bytes,11,opt,name=service_name_matcher,json=serviceNameMatcher,proto3" json:"service_name_matcher,omitempty"`
}
func (x *HealthCheck_HttpHealthCheck) Reset() {
*x = HealthCheck_HttpHealthCheck{}
if protoimpl.UnsafeEnabled {
mi := &file_envoy_config_core_v4alpha_health_check_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *HealthCheck_HttpHealthCheck) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*HealthCheck_HttpHealthCheck) ProtoMessage() {}
func (x *HealthCheck_HttpHealthCheck) ProtoReflect() protoreflect.Message {
mi := &file_envoy_config_core_v4alpha_health_check_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 HealthCheck_HttpHealthCheck.ProtoReflect.Descriptor instead.
func (*HealthCheck_HttpHealthCheck) Descriptor() ([]byte, []int) {
return file_envoy_config_core_v4alpha_health_check_proto_rawDescGZIP(), []int{0, 1}
}
func (x *HealthCheck_HttpHealthCheck) GetHost() string {
if x != nil {
return x.Host
}
return ""
}
func (x *HealthCheck_HttpHealthCheck) GetPath() string {
if x != nil {
return x.Path
}
return ""
}
func (x *HealthCheck_HttpHealthCheck) GetSend() *HealthCheck_Payload {
if x != nil {
return x.Send
}
return nil
}
func (x *HealthCheck_HttpHealthCheck) GetReceive() *HealthCheck_Payload {
if x != nil {
return x.Receive
}
return nil
}
func (x *HealthCheck_HttpHealthCheck) GetRequestHeadersToAdd() []*HeaderValueOption {
if x != nil {
return x.RequestHeadersToAdd
}
return nil
}
func (x *HealthCheck_HttpHealthCheck) GetRequestHeadersToRemove() []string {
if x != nil {
return x.RequestHeadersToRemove
}
return nil
}
func (x *HealthCheck_HttpHealthCheck) GetExpectedStatuses() []*v3.Int64Range {
if x != nil {
return x.ExpectedStatuses
}
return nil
}
func (x *HealthCheck_HttpHealthCheck) GetCodecClientType() v3.CodecClientType {
if x != nil {
return x.CodecClientType
}
return v3.CodecClientType_HTTP1
}
func (x *HealthCheck_HttpHealthCheck) GetServiceNameMatcher() *v4alpha.StringMatcher {
if x != nil {
return x.ServiceNameMatcher
}
return nil
}
type HealthCheck_TcpHealthCheck struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Empty payloads imply a connect-only health check.
Send *HealthCheck_Payload `protobuf:"bytes,1,opt,name=send,proto3" json:"send,omitempty"`
// When checking the response, “fuzzy” matching is performed such that each
// binary block must be found, and in the order specified, but not
// necessarily contiguous.
Receive []*HealthCheck_Payload `protobuf:"bytes,2,rep,name=receive,proto3" json:"receive,omitempty"`
}
func (x *HealthCheck_TcpHealthCheck) Reset() {
*x = HealthCheck_TcpHealthCheck{}
if protoimpl.UnsafeEnabled {
mi := &file_envoy_config_core_v4alpha_health_check_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *HealthCheck_TcpHealthCheck) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*HealthCheck_TcpHealthCheck) ProtoMessage() {}
func (x *HealthCheck_TcpHealthCheck) ProtoReflect() protoreflect.Message {
mi := &file_envoy_config_core_v4alpha_health_check_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 HealthCheck_TcpHealthCheck.ProtoReflect.Descriptor instead.
func (*HealthCheck_TcpHealthCheck) Descriptor() ([]byte, []int) {
return file_envoy_config_core_v4alpha_health_check_proto_rawDescGZIP(), []int{0, 2}
}
func (x *HealthCheck_TcpHealthCheck) GetSend() *HealthCheck_Payload {
if x != nil {
return x.Send
}
return nil
}
func (x *HealthCheck_TcpHealthCheck) GetReceive() []*HealthCheck_Payload {
if x != nil {
return x.Receive
}
return nil
}
type HealthCheck_RedisHealthCheck struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// If set, optionally perform ``EXISTS <key>`` instead of ``PING``. A return value
// from Redis of 0 (does not exist) is considered a passing healthcheck. A return value other
// than 0 is considered a failure. This allows the user to mark a Redis instance for maintenance
// by setting the specified key to any value and waiting for traffic to drain.
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
}
func (x *HealthCheck_RedisHealthCheck) Reset() {
*x = HealthCheck_RedisHealthCheck{}
if protoimpl.UnsafeEnabled {
mi := &file_envoy_config_core_v4alpha_health_check_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *HealthCheck_RedisHealthCheck) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*HealthCheck_RedisHealthCheck) ProtoMessage() {}
func (x *HealthCheck_RedisHealthCheck) ProtoReflect() protoreflect.Message {
mi := &file_envoy_config_core_v4alpha_health_check_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 HealthCheck_RedisHealthCheck.ProtoReflect.Descriptor instead.
func (*HealthCheck_RedisHealthCheck) Descriptor() ([]byte, []int) {
return file_envoy_config_core_v4alpha_health_check_proto_rawDescGZIP(), []int{0, 3}
}
func (x *HealthCheck_RedisHealthCheck) GetKey() string {
if x != nil {
return x.Key
}
return ""
}
// `grpc.health.v1.Health
// <https://github.com/grpc/grpc/blob/master/src/proto/grpc/health/v1/health.proto>`_-based
// healthcheck. See `gRPC doc <https://github.com/grpc/grpc/blob/master/doc/health-checking.md>`_
// for details.
type HealthCheck_GrpcHealthCheck struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// An optional service name parameter which will be sent to gRPC service in
// `grpc.health.v1.HealthCheckRequest
// <https://github.com/grpc/grpc/blob/master/src/proto/grpc/health/v1/health.proto#L20>`_.
// message. See `gRPC health-checking overview
// <https://github.com/grpc/grpc/blob/master/doc/health-checking.md>`_ for more information.
ServiceName string `protobuf:"bytes,1,opt,name=service_name,json=serviceName,proto3" json:"service_name,omitempty"`
// The value of the :authority header in the gRPC health check request. If
// left empty (default value), the name of the cluster this health check is associated
// with will be used. The authority header can be customized for a specific endpoint by setting
// the :ref:`hostname <envoy_api_field_config.endpoint.v3.Endpoint.HealthCheckConfig.hostname>` field.
Authority string `protobuf:"bytes,2,opt,name=authority,proto3" json:"authority,omitempty"`
}
func (x *HealthCheck_GrpcHealthCheck) Reset() {
*x = HealthCheck_GrpcHealthCheck{}
if protoimpl.UnsafeEnabled {
mi := &file_envoy_config_core_v4alpha_health_check_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *HealthCheck_GrpcHealthCheck) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*HealthCheck_GrpcHealthCheck) ProtoMessage() {}
func (x *HealthCheck_GrpcHealthCheck) ProtoReflect() protoreflect.Message {
mi := &file_envoy_config_core_v4alpha_health_check_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 HealthCheck_GrpcHealthCheck.ProtoReflect.Descriptor instead.
func (*HealthCheck_GrpcHealthCheck) Descriptor() ([]byte, []int) {
return file_envoy_config_core_v4alpha_health_check_proto_rawDescGZIP(), []int{0, 4}
}
func (x *HealthCheck_GrpcHealthCheck) GetServiceName() string {
if x != nil {
return x.ServiceName
}
return ""
}
func (x *HealthCheck_GrpcHealthCheck) GetAuthority() string {
if x != nil {
return x.Authority
}
return ""
}
// Custom health check.
type HealthCheck_CustomHealthCheck struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The registered name of the custom health checker.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// A custom health checker specific configuration which depends on the custom health checker
// being instantiated. See :api:`envoy/config/health_checker` for reference.
//
// Types that are assignable to ConfigType:
// *HealthCheck_CustomHealthCheck_TypedConfig
ConfigType isHealthCheck_CustomHealthCheck_ConfigType `protobuf_oneof:"config_type"`
}
func (x *HealthCheck_CustomHealthCheck) Reset() {
*x = HealthCheck_CustomHealthCheck{}
if protoimpl.UnsafeEnabled {
mi := &file_envoy_config_core_v4alpha_health_check_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *HealthCheck_CustomHealthCheck) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*HealthCheck_CustomHealthCheck) ProtoMessage() {}
func (x *HealthCheck_CustomHealthCheck) ProtoReflect() protoreflect.Message {
mi := &file_envoy_config_core_v4alpha_health_check_proto_msgTypes[6]
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 HealthCheck_CustomHealthCheck.ProtoReflect.Descriptor instead.
func (*HealthCheck_CustomHealthCheck) Descriptor() ([]byte, []int) {
return file_envoy_config_core_v4alpha_health_check_proto_rawDescGZIP(), []int{0, 5}
}
func (x *HealthCheck_CustomHealthCheck) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (m *HealthCheck_CustomHealthCheck) GetConfigType() isHealthCheck_CustomHealthCheck_ConfigType {
if m != nil {
return m.ConfigType
}
return nil
}
func (x *HealthCheck_CustomHealthCheck) GetTypedConfig() *any.Any {
if x, ok := x.GetConfigType().(*HealthCheck_CustomHealthCheck_TypedConfig); ok {
return x.TypedConfig
}
return nil
}
type isHealthCheck_CustomHealthCheck_ConfigType interface {
isHealthCheck_CustomHealthCheck_ConfigType()
}
type HealthCheck_CustomHealthCheck_TypedConfig struct {
TypedConfig *any.Any `protobuf:"bytes,3,opt,name=typed_config,json=typedConfig,proto3,oneof"`
}
func (*HealthCheck_CustomHealthCheck_TypedConfig) isHealthCheck_CustomHealthCheck_ConfigType() {}
// Health checks occur over the transport socket specified for the cluster. This implies that if a
// cluster is using a TLS-enabled transport socket, the health check will also occur over TLS.
//
// This allows overriding the cluster TLS settings, just for health check connections.
type HealthCheck_TlsOptions struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Specifies the ALPN protocols for health check connections. This is useful if the
// corresponding upstream is using ALPN-based :ref:`FilterChainMatch
// <envoy_api_msg_config.listener.v4alpha.FilterChainMatch>` along with different protocols for health checks
// versus data connections. If empty, no ALPN protocols will be set on health check connections.
AlpnProtocols []string `protobuf:"bytes,1,rep,name=alpn_protocols,json=alpnProtocols,proto3" json:"alpn_protocols,omitempty"`
}
func (x *HealthCheck_TlsOptions) Reset() {
*x = HealthCheck_TlsOptions{}
if protoimpl.UnsafeEnabled {
mi := &file_envoy_config_core_v4alpha_health_check_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *HealthCheck_TlsOptions) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*HealthCheck_TlsOptions) ProtoMessage() {}
func (x *HealthCheck_TlsOptions) ProtoReflect() protoreflect.Message {
mi := &file_envoy_config_core_v4alpha_health_check_proto_msgTypes[7]
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 HealthCheck_TlsOptions.ProtoReflect.Descriptor instead.
func (*HealthCheck_TlsOptions) Descriptor() ([]byte, []int) {
return file_envoy_config_core_v4alpha_health_check_proto_rawDescGZIP(), []int{0, 6}
}
func (x *HealthCheck_TlsOptions) GetAlpnProtocols() []string {
if x != nil {
return x.AlpnProtocols
}
return nil
}
var File_envoy_config_core_v4alpha_health_check_proto protoreflect.FileDescriptor