/
uptime.pb.go
executable file
·2325 lines (2084 loc) · 107 KB
/
uptime.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
// Copyright 2023 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.32.0
// protoc v4.25.2
// source: google/monitoring/v3/uptime.proto
package monitoringpb
import (
reflect "reflect"
sync "sync"
_ "google.golang.org/genproto/googleapis/api/annotations"
monitoredres "google.golang.org/genproto/googleapis/api/monitoredres"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
durationpb "google.golang.org/protobuf/types/known/durationpb"
)
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)
)
// The regions from which an Uptime check can be run.
type UptimeCheckRegion int32
const (
// Default value if no region is specified. Will result in Uptime checks
// running from all regions.
UptimeCheckRegion_REGION_UNSPECIFIED UptimeCheckRegion = 0
// Allows checks to run from locations within the United States of America.
UptimeCheckRegion_USA UptimeCheckRegion = 1
// Allows checks to run from locations within the continent of Europe.
UptimeCheckRegion_EUROPE UptimeCheckRegion = 2
// Allows checks to run from locations within the continent of South
// America.
UptimeCheckRegion_SOUTH_AMERICA UptimeCheckRegion = 3
// Allows checks to run from locations within the Asia Pacific area (ex:
// Singapore).
UptimeCheckRegion_ASIA_PACIFIC UptimeCheckRegion = 4
// Allows checks to run from locations within the western United States of
// America
UptimeCheckRegion_USA_OREGON UptimeCheckRegion = 5
// Allows checks to run from locations within the central United States of
// America
UptimeCheckRegion_USA_IOWA UptimeCheckRegion = 6
// Allows checks to run from locations within the eastern United States of
// America
UptimeCheckRegion_USA_VIRGINIA UptimeCheckRegion = 7
)
// Enum value maps for UptimeCheckRegion.
var (
UptimeCheckRegion_name = map[int32]string{
0: "REGION_UNSPECIFIED",
1: "USA",
2: "EUROPE",
3: "SOUTH_AMERICA",
4: "ASIA_PACIFIC",
5: "USA_OREGON",
6: "USA_IOWA",
7: "USA_VIRGINIA",
}
UptimeCheckRegion_value = map[string]int32{
"REGION_UNSPECIFIED": 0,
"USA": 1,
"EUROPE": 2,
"SOUTH_AMERICA": 3,
"ASIA_PACIFIC": 4,
"USA_OREGON": 5,
"USA_IOWA": 6,
"USA_VIRGINIA": 7,
}
)
func (x UptimeCheckRegion) Enum() *UptimeCheckRegion {
p := new(UptimeCheckRegion)
*p = x
return p
}
func (x UptimeCheckRegion) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (UptimeCheckRegion) Descriptor() protoreflect.EnumDescriptor {
return file_google_monitoring_v3_uptime_proto_enumTypes[0].Descriptor()
}
func (UptimeCheckRegion) Type() protoreflect.EnumType {
return &file_google_monitoring_v3_uptime_proto_enumTypes[0]
}
func (x UptimeCheckRegion) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use UptimeCheckRegion.Descriptor instead.
func (UptimeCheckRegion) EnumDescriptor() ([]byte, []int) {
return file_google_monitoring_v3_uptime_proto_rawDescGZIP(), []int{0}
}
// The supported resource types that can be used as values of
// `group_resource.resource_type`.
// `INSTANCE` includes `gce_instance` and `aws_ec2_instance` resource types.
// The resource types `gae_app` and `uptime_url` are not valid here because
// group checks on App Engine modules and URLs are not allowed.
type GroupResourceType int32
const (
// Default value (not valid).
GroupResourceType_RESOURCE_TYPE_UNSPECIFIED GroupResourceType = 0
// A group of instances from Google Cloud Platform (GCP) or
// Amazon Web Services (AWS).
GroupResourceType_INSTANCE GroupResourceType = 1
// A group of Amazon ELB load balancers.
GroupResourceType_AWS_ELB_LOAD_BALANCER GroupResourceType = 2
)
// Enum value maps for GroupResourceType.
var (
GroupResourceType_name = map[int32]string{
0: "RESOURCE_TYPE_UNSPECIFIED",
1: "INSTANCE",
2: "AWS_ELB_LOAD_BALANCER",
}
GroupResourceType_value = map[string]int32{
"RESOURCE_TYPE_UNSPECIFIED": 0,
"INSTANCE": 1,
"AWS_ELB_LOAD_BALANCER": 2,
}
)
func (x GroupResourceType) Enum() *GroupResourceType {
p := new(GroupResourceType)
*p = x
return p
}
func (x GroupResourceType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (GroupResourceType) Descriptor() protoreflect.EnumDescriptor {
return file_google_monitoring_v3_uptime_proto_enumTypes[1].Descriptor()
}
func (GroupResourceType) Type() protoreflect.EnumType {
return &file_google_monitoring_v3_uptime_proto_enumTypes[1]
}
func (x GroupResourceType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use GroupResourceType.Descriptor instead.
func (GroupResourceType) EnumDescriptor() ([]byte, []int) {
return file_google_monitoring_v3_uptime_proto_rawDescGZIP(), []int{1}
}
// Operational states for an internal checker.
type InternalChecker_State int32
const (
// An internal checker should never be in the unspecified state.
InternalChecker_UNSPECIFIED InternalChecker_State = 0
// The checker is being created, provisioned, and configured. A checker in
// this state can be returned by `ListInternalCheckers` or
// `GetInternalChecker`, as well as by examining the [long running
// Operation](https://cloud.google.com/apis/design/design_patterns#long_running_operations)
// that created it.
InternalChecker_CREATING InternalChecker_State = 1
// The checker is running and available for use. A checker in this state
// can be returned by `ListInternalCheckers` or `GetInternalChecker` as
// well as by examining the [long running
// Operation](https://cloud.google.com/apis/design/design_patterns#long_running_operations)
// that created it.
// If a checker is being torn down, it is neither visible nor usable, so
// there is no "deleting" or "down" state.
InternalChecker_RUNNING InternalChecker_State = 2
)
// Enum value maps for InternalChecker_State.
var (
InternalChecker_State_name = map[int32]string{
0: "UNSPECIFIED",
1: "CREATING",
2: "RUNNING",
}
InternalChecker_State_value = map[string]int32{
"UNSPECIFIED": 0,
"CREATING": 1,
"RUNNING": 2,
}
)
func (x InternalChecker_State) Enum() *InternalChecker_State {
p := new(InternalChecker_State)
*p = x
return p
}
func (x InternalChecker_State) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (InternalChecker_State) Descriptor() protoreflect.EnumDescriptor {
return file_google_monitoring_v3_uptime_proto_enumTypes[2].Descriptor()
}
func (InternalChecker_State) Type() protoreflect.EnumType {
return &file_google_monitoring_v3_uptime_proto_enumTypes[2]
}
func (x InternalChecker_State) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use InternalChecker_State.Descriptor instead.
func (InternalChecker_State) EnumDescriptor() ([]byte, []int) {
return file_google_monitoring_v3_uptime_proto_rawDescGZIP(), []int{0, 0}
}
// What kind of checkers are available to be used by the check.
type UptimeCheckConfig_CheckerType int32
const (
// The default checker type. Currently converted to `STATIC_IP_CHECKERS`
// on creation, the default conversion behavior may change in the future.
UptimeCheckConfig_CHECKER_TYPE_UNSPECIFIED UptimeCheckConfig_CheckerType = 0
// `STATIC_IP_CHECKERS` are used for uptime checks that perform egress
// across the public internet. `STATIC_IP_CHECKERS` use the static IP
// addresses returned by `ListUptimeCheckIps`.
UptimeCheckConfig_STATIC_IP_CHECKERS UptimeCheckConfig_CheckerType = 1
// `VPC_CHECKERS` are used for uptime checks that perform egress using
// Service Directory and private network access. When using `VPC_CHECKERS`,
// the monitored resource type must be `servicedirectory_service`.
UptimeCheckConfig_VPC_CHECKERS UptimeCheckConfig_CheckerType = 3
)
// Enum value maps for UptimeCheckConfig_CheckerType.
var (
UptimeCheckConfig_CheckerType_name = map[int32]string{
0: "CHECKER_TYPE_UNSPECIFIED",
1: "STATIC_IP_CHECKERS",
3: "VPC_CHECKERS",
}
UptimeCheckConfig_CheckerType_value = map[string]int32{
"CHECKER_TYPE_UNSPECIFIED": 0,
"STATIC_IP_CHECKERS": 1,
"VPC_CHECKERS": 3,
}
)
func (x UptimeCheckConfig_CheckerType) Enum() *UptimeCheckConfig_CheckerType {
p := new(UptimeCheckConfig_CheckerType)
*p = x
return p
}
func (x UptimeCheckConfig_CheckerType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (UptimeCheckConfig_CheckerType) Descriptor() protoreflect.EnumDescriptor {
return file_google_monitoring_v3_uptime_proto_enumTypes[3].Descriptor()
}
func (UptimeCheckConfig_CheckerType) Type() protoreflect.EnumType {
return &file_google_monitoring_v3_uptime_proto_enumTypes[3]
}
func (x UptimeCheckConfig_CheckerType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use UptimeCheckConfig_CheckerType.Descriptor instead.
func (UptimeCheckConfig_CheckerType) EnumDescriptor() ([]byte, []int) {
return file_google_monitoring_v3_uptime_proto_rawDescGZIP(), []int{1, 0}
}
// The HTTP request method options.
type UptimeCheckConfig_HttpCheck_RequestMethod int32
const (
// No request method specified.
UptimeCheckConfig_HttpCheck_METHOD_UNSPECIFIED UptimeCheckConfig_HttpCheck_RequestMethod = 0
// GET request.
UptimeCheckConfig_HttpCheck_GET UptimeCheckConfig_HttpCheck_RequestMethod = 1
// POST request.
UptimeCheckConfig_HttpCheck_POST UptimeCheckConfig_HttpCheck_RequestMethod = 2
)
// Enum value maps for UptimeCheckConfig_HttpCheck_RequestMethod.
var (
UptimeCheckConfig_HttpCheck_RequestMethod_name = map[int32]string{
0: "METHOD_UNSPECIFIED",
1: "GET",
2: "POST",
}
UptimeCheckConfig_HttpCheck_RequestMethod_value = map[string]int32{
"METHOD_UNSPECIFIED": 0,
"GET": 1,
"POST": 2,
}
)
func (x UptimeCheckConfig_HttpCheck_RequestMethod) Enum() *UptimeCheckConfig_HttpCheck_RequestMethod {
p := new(UptimeCheckConfig_HttpCheck_RequestMethod)
*p = x
return p
}
func (x UptimeCheckConfig_HttpCheck_RequestMethod) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (UptimeCheckConfig_HttpCheck_RequestMethod) Descriptor() protoreflect.EnumDescriptor {
return file_google_monitoring_v3_uptime_proto_enumTypes[4].Descriptor()
}
func (UptimeCheckConfig_HttpCheck_RequestMethod) Type() protoreflect.EnumType {
return &file_google_monitoring_v3_uptime_proto_enumTypes[4]
}
func (x UptimeCheckConfig_HttpCheck_RequestMethod) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use UptimeCheckConfig_HttpCheck_RequestMethod.Descriptor instead.
func (UptimeCheckConfig_HttpCheck_RequestMethod) EnumDescriptor() ([]byte, []int) {
return file_google_monitoring_v3_uptime_proto_rawDescGZIP(), []int{1, 2, 0}
}
// Header options corresponding to the content type of a HTTP request body.
type UptimeCheckConfig_HttpCheck_ContentType int32
const (
// No content type specified.
UptimeCheckConfig_HttpCheck_TYPE_UNSPECIFIED UptimeCheckConfig_HttpCheck_ContentType = 0
// `body` is in URL-encoded form. Equivalent to setting the `Content-Type`
// to `application/x-www-form-urlencoded` in the HTTP request.
UptimeCheckConfig_HttpCheck_URL_ENCODED UptimeCheckConfig_HttpCheck_ContentType = 1
// `body` is in `custom_content_type` form. Equivalent to setting the
// `Content-Type` to the contents of `custom_content_type` in the HTTP
// request.
UptimeCheckConfig_HttpCheck_USER_PROVIDED UptimeCheckConfig_HttpCheck_ContentType = 2
)
// Enum value maps for UptimeCheckConfig_HttpCheck_ContentType.
var (
UptimeCheckConfig_HttpCheck_ContentType_name = map[int32]string{
0: "TYPE_UNSPECIFIED",
1: "URL_ENCODED",
2: "USER_PROVIDED",
}
UptimeCheckConfig_HttpCheck_ContentType_value = map[string]int32{
"TYPE_UNSPECIFIED": 0,
"URL_ENCODED": 1,
"USER_PROVIDED": 2,
}
)
func (x UptimeCheckConfig_HttpCheck_ContentType) Enum() *UptimeCheckConfig_HttpCheck_ContentType {
p := new(UptimeCheckConfig_HttpCheck_ContentType)
*p = x
return p
}
func (x UptimeCheckConfig_HttpCheck_ContentType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (UptimeCheckConfig_HttpCheck_ContentType) Descriptor() protoreflect.EnumDescriptor {
return file_google_monitoring_v3_uptime_proto_enumTypes[5].Descriptor()
}
func (UptimeCheckConfig_HttpCheck_ContentType) Type() protoreflect.EnumType {
return &file_google_monitoring_v3_uptime_proto_enumTypes[5]
}
func (x UptimeCheckConfig_HttpCheck_ContentType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use UptimeCheckConfig_HttpCheck_ContentType.Descriptor instead.
func (UptimeCheckConfig_HttpCheck_ContentType) EnumDescriptor() ([]byte, []int) {
return file_google_monitoring_v3_uptime_proto_rawDescGZIP(), []int{1, 2, 1}
}
// An HTTP status code class.
type UptimeCheckConfig_HttpCheck_ResponseStatusCode_StatusClass int32
const (
// Default value that matches no status codes.
UptimeCheckConfig_HttpCheck_ResponseStatusCode_STATUS_CLASS_UNSPECIFIED UptimeCheckConfig_HttpCheck_ResponseStatusCode_StatusClass = 0
// The class of status codes between 100 and 199.
UptimeCheckConfig_HttpCheck_ResponseStatusCode_STATUS_CLASS_1XX UptimeCheckConfig_HttpCheck_ResponseStatusCode_StatusClass = 100
// The class of status codes between 200 and 299.
UptimeCheckConfig_HttpCheck_ResponseStatusCode_STATUS_CLASS_2XX UptimeCheckConfig_HttpCheck_ResponseStatusCode_StatusClass = 200
// The class of status codes between 300 and 399.
UptimeCheckConfig_HttpCheck_ResponseStatusCode_STATUS_CLASS_3XX UptimeCheckConfig_HttpCheck_ResponseStatusCode_StatusClass = 300
// The class of status codes between 400 and 499.
UptimeCheckConfig_HttpCheck_ResponseStatusCode_STATUS_CLASS_4XX UptimeCheckConfig_HttpCheck_ResponseStatusCode_StatusClass = 400
// The class of status codes between 500 and 599.
UptimeCheckConfig_HttpCheck_ResponseStatusCode_STATUS_CLASS_5XX UptimeCheckConfig_HttpCheck_ResponseStatusCode_StatusClass = 500
// The class of all status codes.
UptimeCheckConfig_HttpCheck_ResponseStatusCode_STATUS_CLASS_ANY UptimeCheckConfig_HttpCheck_ResponseStatusCode_StatusClass = 1000
)
// Enum value maps for UptimeCheckConfig_HttpCheck_ResponseStatusCode_StatusClass.
var (
UptimeCheckConfig_HttpCheck_ResponseStatusCode_StatusClass_name = map[int32]string{
0: "STATUS_CLASS_UNSPECIFIED",
100: "STATUS_CLASS_1XX",
200: "STATUS_CLASS_2XX",
300: "STATUS_CLASS_3XX",
400: "STATUS_CLASS_4XX",
500: "STATUS_CLASS_5XX",
1000: "STATUS_CLASS_ANY",
}
UptimeCheckConfig_HttpCheck_ResponseStatusCode_StatusClass_value = map[string]int32{
"STATUS_CLASS_UNSPECIFIED": 0,
"STATUS_CLASS_1XX": 100,
"STATUS_CLASS_2XX": 200,
"STATUS_CLASS_3XX": 300,
"STATUS_CLASS_4XX": 400,
"STATUS_CLASS_5XX": 500,
"STATUS_CLASS_ANY": 1000,
}
)
func (x UptimeCheckConfig_HttpCheck_ResponseStatusCode_StatusClass) Enum() *UptimeCheckConfig_HttpCheck_ResponseStatusCode_StatusClass {
p := new(UptimeCheckConfig_HttpCheck_ResponseStatusCode_StatusClass)
*p = x
return p
}
func (x UptimeCheckConfig_HttpCheck_ResponseStatusCode_StatusClass) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (UptimeCheckConfig_HttpCheck_ResponseStatusCode_StatusClass) Descriptor() protoreflect.EnumDescriptor {
return file_google_monitoring_v3_uptime_proto_enumTypes[6].Descriptor()
}
func (UptimeCheckConfig_HttpCheck_ResponseStatusCode_StatusClass) Type() protoreflect.EnumType {
return &file_google_monitoring_v3_uptime_proto_enumTypes[6]
}
func (x UptimeCheckConfig_HttpCheck_ResponseStatusCode_StatusClass) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use UptimeCheckConfig_HttpCheck_ResponseStatusCode_StatusClass.Descriptor instead.
func (UptimeCheckConfig_HttpCheck_ResponseStatusCode_StatusClass) EnumDescriptor() ([]byte, []int) {
return file_google_monitoring_v3_uptime_proto_rawDescGZIP(), []int{1, 2, 1, 0}
}
// Options to perform content matching.
type UptimeCheckConfig_ContentMatcher_ContentMatcherOption int32
const (
// No content matcher type specified (maintained for backward
// compatibility, but deprecated for future use).
// Treated as `CONTAINS_STRING`.
UptimeCheckConfig_ContentMatcher_CONTENT_MATCHER_OPTION_UNSPECIFIED UptimeCheckConfig_ContentMatcher_ContentMatcherOption = 0
// Selects substring matching. The match succeeds if the output contains
// the `content` string. This is the default value for checks without
// a `matcher` option, or where the value of `matcher` is
// `CONTENT_MATCHER_OPTION_UNSPECIFIED`.
UptimeCheckConfig_ContentMatcher_CONTAINS_STRING UptimeCheckConfig_ContentMatcher_ContentMatcherOption = 1
// Selects negation of substring matching. The match succeeds if the
// output does _NOT_ contain the `content` string.
UptimeCheckConfig_ContentMatcher_NOT_CONTAINS_STRING UptimeCheckConfig_ContentMatcher_ContentMatcherOption = 2
// Selects regular-expression matching. The match succeeds if the output
// matches the regular expression specified in the `content` string.
// Regex matching is only supported for HTTP/HTTPS checks.
UptimeCheckConfig_ContentMatcher_MATCHES_REGEX UptimeCheckConfig_ContentMatcher_ContentMatcherOption = 3
// Selects negation of regular-expression matching. The match succeeds if
// the output does _NOT_ match the regular expression specified in the
// `content` string. Regex matching is only supported for HTTP/HTTPS
// checks.
UptimeCheckConfig_ContentMatcher_NOT_MATCHES_REGEX UptimeCheckConfig_ContentMatcher_ContentMatcherOption = 4
// Selects JSONPath matching. See `JsonPathMatcher` for details on when
// the match succeeds. JSONPath matching is only supported for HTTP/HTTPS
// checks.
UptimeCheckConfig_ContentMatcher_MATCHES_JSON_PATH UptimeCheckConfig_ContentMatcher_ContentMatcherOption = 5
// Selects JSONPath matching. See `JsonPathMatcher` for details on when
// the match succeeds. Succeeds when output does _NOT_ match as specified.
// JSONPath is only supported for HTTP/HTTPS checks.
UptimeCheckConfig_ContentMatcher_NOT_MATCHES_JSON_PATH UptimeCheckConfig_ContentMatcher_ContentMatcherOption = 6
)
// Enum value maps for UptimeCheckConfig_ContentMatcher_ContentMatcherOption.
var (
UptimeCheckConfig_ContentMatcher_ContentMatcherOption_name = map[int32]string{
0: "CONTENT_MATCHER_OPTION_UNSPECIFIED",
1: "CONTAINS_STRING",
2: "NOT_CONTAINS_STRING",
3: "MATCHES_REGEX",
4: "NOT_MATCHES_REGEX",
5: "MATCHES_JSON_PATH",
6: "NOT_MATCHES_JSON_PATH",
}
UptimeCheckConfig_ContentMatcher_ContentMatcherOption_value = map[string]int32{
"CONTENT_MATCHER_OPTION_UNSPECIFIED": 0,
"CONTAINS_STRING": 1,
"NOT_CONTAINS_STRING": 2,
"MATCHES_REGEX": 3,
"NOT_MATCHES_REGEX": 4,
"MATCHES_JSON_PATH": 5,
"NOT_MATCHES_JSON_PATH": 6,
}
)
func (x UptimeCheckConfig_ContentMatcher_ContentMatcherOption) Enum() *UptimeCheckConfig_ContentMatcher_ContentMatcherOption {
p := new(UptimeCheckConfig_ContentMatcher_ContentMatcherOption)
*p = x
return p
}
func (x UptimeCheckConfig_ContentMatcher_ContentMatcherOption) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (UptimeCheckConfig_ContentMatcher_ContentMatcherOption) Descriptor() protoreflect.EnumDescriptor {
return file_google_monitoring_v3_uptime_proto_enumTypes[7].Descriptor()
}
func (UptimeCheckConfig_ContentMatcher_ContentMatcherOption) Type() protoreflect.EnumType {
return &file_google_monitoring_v3_uptime_proto_enumTypes[7]
}
func (x UptimeCheckConfig_ContentMatcher_ContentMatcherOption) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use UptimeCheckConfig_ContentMatcher_ContentMatcherOption.Descriptor instead.
func (UptimeCheckConfig_ContentMatcher_ContentMatcherOption) EnumDescriptor() ([]byte, []int) {
return file_google_monitoring_v3_uptime_proto_rawDescGZIP(), []int{1, 4, 0}
}
// Options to perform JSONPath content matching.
type UptimeCheckConfig_ContentMatcher_JsonPathMatcher_JsonPathMatcherOption int32
const (
// No JSONPath matcher type specified (not valid).
UptimeCheckConfig_ContentMatcher_JsonPathMatcher_JSON_PATH_MATCHER_OPTION_UNSPECIFIED UptimeCheckConfig_ContentMatcher_JsonPathMatcher_JsonPathMatcherOption = 0
// Selects 'exact string' matching. The match succeeds if the content at
// the `json_path` within the output is exactly the same as the
// `content` string.
UptimeCheckConfig_ContentMatcher_JsonPathMatcher_EXACT_MATCH UptimeCheckConfig_ContentMatcher_JsonPathMatcher_JsonPathMatcherOption = 1
// Selects regular-expression matching. The match succeeds if the
// content at the `json_path` within the output matches the regular
// expression specified in the `content` string.
UptimeCheckConfig_ContentMatcher_JsonPathMatcher_REGEX_MATCH UptimeCheckConfig_ContentMatcher_JsonPathMatcher_JsonPathMatcherOption = 2
)
// Enum value maps for UptimeCheckConfig_ContentMatcher_JsonPathMatcher_JsonPathMatcherOption.
var (
UptimeCheckConfig_ContentMatcher_JsonPathMatcher_JsonPathMatcherOption_name = map[int32]string{
0: "JSON_PATH_MATCHER_OPTION_UNSPECIFIED",
1: "EXACT_MATCH",
2: "REGEX_MATCH",
}
UptimeCheckConfig_ContentMatcher_JsonPathMatcher_JsonPathMatcherOption_value = map[string]int32{
"JSON_PATH_MATCHER_OPTION_UNSPECIFIED": 0,
"EXACT_MATCH": 1,
"REGEX_MATCH": 2,
}
)
func (x UptimeCheckConfig_ContentMatcher_JsonPathMatcher_JsonPathMatcherOption) Enum() *UptimeCheckConfig_ContentMatcher_JsonPathMatcher_JsonPathMatcherOption {
p := new(UptimeCheckConfig_ContentMatcher_JsonPathMatcher_JsonPathMatcherOption)
*p = x
return p
}
func (x UptimeCheckConfig_ContentMatcher_JsonPathMatcher_JsonPathMatcherOption) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (UptimeCheckConfig_ContentMatcher_JsonPathMatcher_JsonPathMatcherOption) Descriptor() protoreflect.EnumDescriptor {
return file_google_monitoring_v3_uptime_proto_enumTypes[8].Descriptor()
}
func (UptimeCheckConfig_ContentMatcher_JsonPathMatcher_JsonPathMatcherOption) Type() protoreflect.EnumType {
return &file_google_monitoring_v3_uptime_proto_enumTypes[8]
}
func (x UptimeCheckConfig_ContentMatcher_JsonPathMatcher_JsonPathMatcherOption) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use UptimeCheckConfig_ContentMatcher_JsonPathMatcher_JsonPathMatcherOption.Descriptor instead.
func (UptimeCheckConfig_ContentMatcher_JsonPathMatcher_JsonPathMatcherOption) EnumDescriptor() ([]byte, []int) {
return file_google_monitoring_v3_uptime_proto_rawDescGZIP(), []int{1, 4, 0, 0}
}
// An internal checker allows Uptime checks to run on private/internal GCP
// resources.
//
// Deprecated: Marked as deprecated in google/monitoring/v3/uptime.proto.
type InternalChecker struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// A unique resource name for this InternalChecker. The format is:
//
// projects/[PROJECT_ID_OR_NUMBER]/internalCheckers/[INTERNAL_CHECKER_ID]
//
// `[PROJECT_ID_OR_NUMBER]` is the Cloud Monitoring Metrics Scope project for
// the Uptime check config associated with the internal checker.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The checker's human-readable name. The display name
// should be unique within a Cloud Monitoring Metrics Scope in order to make
// it easier to identify; however, uniqueness is not enforced.
DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
// The [GCP VPC network](https://cloud.google.com/vpc/docs/vpc) where the
// internal resource lives (ex: "default").
Network string `protobuf:"bytes,3,opt,name=network,proto3" json:"network,omitempty"`
// The GCP zone the Uptime check should egress from. Only respected for
// internal Uptime checks, where internal_network is specified.
GcpZone string `protobuf:"bytes,4,opt,name=gcp_zone,json=gcpZone,proto3" json:"gcp_zone,omitempty"`
// The GCP project ID where the internal checker lives. Not necessary
// the same as the Metrics Scope project.
PeerProjectId string `protobuf:"bytes,6,opt,name=peer_project_id,json=peerProjectId,proto3" json:"peer_project_id,omitempty"`
// The current operational state of the internal checker.
State InternalChecker_State `protobuf:"varint,7,opt,name=state,proto3,enum=google.monitoring.v3.InternalChecker_State" json:"state,omitempty"`
}
func (x *InternalChecker) Reset() {
*x = InternalChecker{}
if protoimpl.UnsafeEnabled {
mi := &file_google_monitoring_v3_uptime_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *InternalChecker) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*InternalChecker) ProtoMessage() {}
func (x *InternalChecker) ProtoReflect() protoreflect.Message {
mi := &file_google_monitoring_v3_uptime_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 InternalChecker.ProtoReflect.Descriptor instead.
func (*InternalChecker) Descriptor() ([]byte, []int) {
return file_google_monitoring_v3_uptime_proto_rawDescGZIP(), []int{0}
}
func (x *InternalChecker) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *InternalChecker) GetDisplayName() string {
if x != nil {
return x.DisplayName
}
return ""
}
func (x *InternalChecker) GetNetwork() string {
if x != nil {
return x.Network
}
return ""
}
func (x *InternalChecker) GetGcpZone() string {
if x != nil {
return x.GcpZone
}
return ""
}
func (x *InternalChecker) GetPeerProjectId() string {
if x != nil {
return x.PeerProjectId
}
return ""
}
func (x *InternalChecker) GetState() InternalChecker_State {
if x != nil {
return x.State
}
return InternalChecker_UNSPECIFIED
}
// This message configures which resources and services to monitor for
// availability.
type UptimeCheckConfig struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// A unique resource name for this Uptime check configuration. The format is:
//
// projects/[PROJECT_ID_OR_NUMBER]/uptimeCheckConfigs/[UPTIME_CHECK_ID]
//
// `[PROJECT_ID_OR_NUMBER]` is the Workspace host project associated with the
// Uptime check.
//
// This field should be omitted when creating the Uptime check configuration;
// on create, the resource name is assigned by the server and included in the
// response.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// A human-friendly name for the Uptime check configuration. The display name
// should be unique within a Cloud Monitoring Workspace in order to make it
// easier to identify; however, uniqueness is not enforced. Required.
DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
// The resource the check is checking. Required.
//
// Types that are assignable to Resource:
//
// *UptimeCheckConfig_MonitoredResource
// *UptimeCheckConfig_ResourceGroup_
Resource isUptimeCheckConfig_Resource `protobuf_oneof:"resource"`
// The type of Uptime check request.
//
// Types that are assignable to CheckRequestType:
//
// *UptimeCheckConfig_HttpCheck_
// *UptimeCheckConfig_TcpCheck_
CheckRequestType isUptimeCheckConfig_CheckRequestType `protobuf_oneof:"check_request_type"`
// How often, in seconds, the Uptime check is performed.
// Currently, the only supported values are `60s` (1 minute), `300s`
// (5 minutes), `600s` (10 minutes), and `900s` (15 minutes). Optional,
// defaults to `60s`.
Period *durationpb.Duration `protobuf:"bytes,7,opt,name=period,proto3" json:"period,omitempty"`
// The maximum amount of time to wait for the request to complete (must be
// between 1 and 60 seconds). Required.
Timeout *durationpb.Duration `protobuf:"bytes,8,opt,name=timeout,proto3" json:"timeout,omitempty"`
// The content that is expected to appear in the data returned by the target
// server against which the check is run. Currently, only the first entry
// in the `content_matchers` list is supported, and additional entries will
// be ignored. This field is optional and should only be specified if a
// content match is required as part of the/ Uptime check.
ContentMatchers []*UptimeCheckConfig_ContentMatcher `protobuf:"bytes,9,rep,name=content_matchers,json=contentMatchers,proto3" json:"content_matchers,omitempty"`
// The type of checkers to use to execute the Uptime check.
CheckerType UptimeCheckConfig_CheckerType `protobuf:"varint,17,opt,name=checker_type,json=checkerType,proto3,enum=google.monitoring.v3.UptimeCheckConfig_CheckerType" json:"checker_type,omitempty"`
// The list of regions from which the check will be run.
// Some regions contain one location, and others contain more than one.
// If this field is specified, enough regions must be provided to include a
// minimum of 3 locations. Not specifying this field will result in Uptime
// checks running from all available regions.
SelectedRegions []UptimeCheckRegion `protobuf:"varint,10,rep,packed,name=selected_regions,json=selectedRegions,proto3,enum=google.monitoring.v3.UptimeCheckRegion" json:"selected_regions,omitempty"`
// If this is `true`, then checks are made only from the 'internal_checkers'.
// If it is `false`, then checks are made only from the 'selected_regions'.
// It is an error to provide 'selected_regions' when is_internal is `true`,
// or to provide 'internal_checkers' when is_internal is `false`.
//
// Deprecated: Marked as deprecated in google/monitoring/v3/uptime.proto.
IsInternal bool `protobuf:"varint,15,opt,name=is_internal,json=isInternal,proto3" json:"is_internal,omitempty"`
// The internal checkers that this check will egress from. If `is_internal` is
// `true` and this list is empty, the check will egress from all the
// InternalCheckers configured for the project that owns this
// `UptimeCheckConfig`.
//
// Deprecated: Marked as deprecated in google/monitoring/v3/uptime.proto.
InternalCheckers []*InternalChecker `protobuf:"bytes,14,rep,name=internal_checkers,json=internalCheckers,proto3" json:"internal_checkers,omitempty"`
// User-supplied key/value data to be used for organizing and
// identifying the `UptimeCheckConfig` objects.
//
// The field can contain up to 64 entries. Each key and value is limited to
// 63 Unicode characters or 128 bytes, whichever is smaller. Labels and
// values can contain only lowercase letters, numerals, underscores, and
// dashes. Keys must begin with a letter.
UserLabels map[string]string `protobuf:"bytes,20,rep,name=user_labels,json=userLabels,proto3" json:"user_labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
}
func (x *UptimeCheckConfig) Reset() {
*x = UptimeCheckConfig{}
if protoimpl.UnsafeEnabled {
mi := &file_google_monitoring_v3_uptime_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *UptimeCheckConfig) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UptimeCheckConfig) ProtoMessage() {}
func (x *UptimeCheckConfig) ProtoReflect() protoreflect.Message {
mi := &file_google_monitoring_v3_uptime_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 UptimeCheckConfig.ProtoReflect.Descriptor instead.
func (*UptimeCheckConfig) Descriptor() ([]byte, []int) {
return file_google_monitoring_v3_uptime_proto_rawDescGZIP(), []int{1}
}
func (x *UptimeCheckConfig) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *UptimeCheckConfig) GetDisplayName() string {
if x != nil {
return x.DisplayName
}
return ""
}
func (m *UptimeCheckConfig) GetResource() isUptimeCheckConfig_Resource {
if m != nil {
return m.Resource
}
return nil
}
func (x *UptimeCheckConfig) GetMonitoredResource() *monitoredres.MonitoredResource {
if x, ok := x.GetResource().(*UptimeCheckConfig_MonitoredResource); ok {
return x.MonitoredResource
}
return nil
}
func (x *UptimeCheckConfig) GetResourceGroup() *UptimeCheckConfig_ResourceGroup {
if x, ok := x.GetResource().(*UptimeCheckConfig_ResourceGroup_); ok {
return x.ResourceGroup
}
return nil
}
func (m *UptimeCheckConfig) GetCheckRequestType() isUptimeCheckConfig_CheckRequestType {
if m != nil {
return m.CheckRequestType
}
return nil
}
func (x *UptimeCheckConfig) GetHttpCheck() *UptimeCheckConfig_HttpCheck {
if x, ok := x.GetCheckRequestType().(*UptimeCheckConfig_HttpCheck_); ok {
return x.HttpCheck
}
return nil
}
func (x *UptimeCheckConfig) GetTcpCheck() *UptimeCheckConfig_TcpCheck {
if x, ok := x.GetCheckRequestType().(*UptimeCheckConfig_TcpCheck_); ok {
return x.TcpCheck
}
return nil
}
func (x *UptimeCheckConfig) GetPeriod() *durationpb.Duration {
if x != nil {
return x.Period
}
return nil
}
func (x *UptimeCheckConfig) GetTimeout() *durationpb.Duration {
if x != nil {
return x.Timeout
}
return nil
}
func (x *UptimeCheckConfig) GetContentMatchers() []*UptimeCheckConfig_ContentMatcher {
if x != nil {
return x.ContentMatchers
}
return nil
}
func (x *UptimeCheckConfig) GetCheckerType() UptimeCheckConfig_CheckerType {
if x != nil {
return x.CheckerType
}
return UptimeCheckConfig_CHECKER_TYPE_UNSPECIFIED
}
func (x *UptimeCheckConfig) GetSelectedRegions() []UptimeCheckRegion {
if x != nil {
return x.SelectedRegions
}
return nil
}
// Deprecated: Marked as deprecated in google/monitoring/v3/uptime.proto.
func (x *UptimeCheckConfig) GetIsInternal() bool {
if x != nil {
return x.IsInternal
}
return false
}
// Deprecated: Marked as deprecated in google/monitoring/v3/uptime.proto.
func (x *UptimeCheckConfig) GetInternalCheckers() []*InternalChecker {
if x != nil {
return x.InternalCheckers
}
return nil
}
func (x *UptimeCheckConfig) GetUserLabels() map[string]string {
if x != nil {
return x.UserLabels
}
return nil
}
type isUptimeCheckConfig_Resource interface {
isUptimeCheckConfig_Resource()
}
type UptimeCheckConfig_MonitoredResource struct {
// The [monitored
// resource](https://cloud.google.com/monitoring/api/resources) associated
// with the configuration.
// The following monitored resource types are valid for this field:
//
// `uptime_url`,
// `gce_instance`,
// `gae_app`,
// `aws_ec2_instance`,
// `aws_elb_load_balancer`
// `k8s_service`
// `servicedirectory_service`
// `cloud_run_revision`
MonitoredResource *monitoredres.MonitoredResource `protobuf:"bytes,3,opt,name=monitored_resource,json=monitoredResource,proto3,oneof"`
}
type UptimeCheckConfig_ResourceGroup_ struct {
// The group resource associated with the configuration.
ResourceGroup *UptimeCheckConfig_ResourceGroup `protobuf:"bytes,4,opt,name=resource_group,json=resourceGroup,proto3,oneof"`
}
func (*UptimeCheckConfig_MonitoredResource) isUptimeCheckConfig_Resource() {}
func (*UptimeCheckConfig_ResourceGroup_) isUptimeCheckConfig_Resource() {}
type isUptimeCheckConfig_CheckRequestType interface {
isUptimeCheckConfig_CheckRequestType()
}
type UptimeCheckConfig_HttpCheck_ struct {
// Contains information needed to make an HTTP or HTTPS check.
HttpCheck *UptimeCheckConfig_HttpCheck `protobuf:"bytes,5,opt,name=http_check,json=httpCheck,proto3,oneof"`
}
type UptimeCheckConfig_TcpCheck_ struct {
// Contains information needed to make a TCP check.
TcpCheck *UptimeCheckConfig_TcpCheck `protobuf:"bytes,6,opt,name=tcp_check,json=tcpCheck,proto3,oneof"`
}
func (*UptimeCheckConfig_HttpCheck_) isUptimeCheckConfig_CheckRequestType() {}
func (*UptimeCheckConfig_TcpCheck_) isUptimeCheckConfig_CheckRequestType() {}