google-cloud-monitoring-v3 0.11.0 → 0.12.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/monitoring/v3/alert_policy_service/client.rb +4 -2
- data/lib/google/cloud/monitoring/v3/group_service/client.rb +4 -2
- data/lib/google/cloud/monitoring/v3/metric_service/client.rb +4 -2
- data/lib/google/cloud/monitoring/v3/notification_channel_service/client.rb +4 -2
- data/lib/google/cloud/monitoring/v3/query_service/client.rb +4 -2
- data/lib/google/cloud/monitoring/v3/service_monitoring_service/client.rb +4 -2
- data/lib/google/cloud/monitoring/v3/snooze_service/client.rb +4 -2
- data/lib/google/cloud/monitoring/v3/uptime_check_service/client.rb +4 -2
- data/lib/google/cloud/monitoring/v3/version.rb +1 -1
- data/lib/google/monitoring/v3/alert_pb.rb +29 -81
- data/lib/google/monitoring/v3/alert_service_pb.rb +26 -27
- data/lib/google/monitoring/v3/common_pb.rb +27 -71
- data/lib/google/monitoring/v3/dropped_labels_pb.rb +24 -4
- data/lib/google/monitoring/v3/group_pb.rb +24 -8
- data/lib/google/monitoring/v3/group_service_pb.rb +27 -43
- data/lib/google/monitoring/v3/metric_pb.rb +28 -54
- data/lib/google/monitoring/v3/metric_service_pb.rb +29 -88
- data/lib/google/monitoring/v3/mutation_record_pb.rb +25 -5
- data/lib/google/monitoring/v3/notification_pb.rb +27 -27
- data/lib/google/monitoring/v3/notification_service_pb.rb +27 -55
- data/lib/google/monitoring/v3/query_service_pb.rb +25 -2
- data/lib/google/monitoring/v3/service_pb.rb +25 -118
- data/lib/google/monitoring/v3/service_service_pb.rb +26 -53
- data/lib/google/monitoring/v3/snooze_pb.rb +25 -10
- data/lib/google/monitoring/v3/snooze_service_pb.rb +26 -22
- data/lib/google/monitoring/v3/span_context_pb.rb +24 -4
- data/lib/google/monitoring/v3/uptime_pb.rb +26 -139
- data/lib/google/monitoring/v3/uptime_service_pb.rb +26 -34
- data/proto_docs/google/protobuf/any.rb +7 -4
- data/proto_docs/google/protobuf/struct.rb +1 -1
- data/proto_docs/google/protobuf/timestamp.rb +1 -3
- metadata +4 -4
@@ -1,3 +1,4 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: google/monitoring/v3/service.proto
|
3
4
|
|
@@ -7,126 +8,32 @@ require 'google/api/resource_pb'
|
|
7
8
|
require 'google/protobuf/duration_pb'
|
8
9
|
require 'google/type/calendar_period_pb'
|
9
10
|
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
optional :service, :string, 1
|
33
|
-
end
|
34
|
-
add_message "google.monitoring.v3.Service.ClusterIstio" do
|
35
|
-
optional :location, :string, 1
|
36
|
-
optional :cluster_name, :string, 2
|
37
|
-
optional :service_namespace, :string, 3
|
38
|
-
optional :service_name, :string, 4
|
39
|
-
end
|
40
|
-
add_message "google.monitoring.v3.Service.MeshIstio" do
|
41
|
-
optional :mesh_uid, :string, 1
|
42
|
-
optional :service_namespace, :string, 3
|
43
|
-
optional :service_name, :string, 4
|
44
|
-
end
|
45
|
-
add_message "google.monitoring.v3.Service.IstioCanonicalService" do
|
46
|
-
optional :mesh_uid, :string, 1
|
47
|
-
optional :canonical_service_namespace, :string, 3
|
48
|
-
optional :canonical_service, :string, 4
|
49
|
-
end
|
50
|
-
add_message "google.monitoring.v3.Service.Telemetry" do
|
51
|
-
optional :resource_name, :string, 1
|
52
|
-
end
|
53
|
-
add_message "google.monitoring.v3.ServiceLevelObjective" do
|
54
|
-
optional :name, :string, 1
|
55
|
-
optional :display_name, :string, 11
|
56
|
-
optional :service_level_indicator, :message, 3, "google.monitoring.v3.ServiceLevelIndicator"
|
57
|
-
optional :goal, :double, 4
|
58
|
-
map :user_labels, :string, :string, 12
|
59
|
-
oneof :period do
|
60
|
-
optional :rolling_period, :message, 5, "google.protobuf.Duration"
|
61
|
-
optional :calendar_period, :enum, 6, "google.type.CalendarPeriod"
|
62
|
-
end
|
63
|
-
end
|
64
|
-
add_enum "google.monitoring.v3.ServiceLevelObjective.View" do
|
65
|
-
value :VIEW_UNSPECIFIED, 0
|
66
|
-
value :FULL, 2
|
67
|
-
value :EXPLICIT, 1
|
68
|
-
end
|
69
|
-
add_message "google.monitoring.v3.ServiceLevelIndicator" do
|
70
|
-
oneof :type do
|
71
|
-
optional :basic_sli, :message, 4, "google.monitoring.v3.BasicSli"
|
72
|
-
optional :request_based, :message, 1, "google.monitoring.v3.RequestBasedSli"
|
73
|
-
optional :windows_based, :message, 2, "google.monitoring.v3.WindowsBasedSli"
|
74
|
-
end
|
75
|
-
end
|
76
|
-
add_message "google.monitoring.v3.BasicSli" do
|
77
|
-
repeated :method, :string, 7
|
78
|
-
repeated :location, :string, 8
|
79
|
-
repeated :version, :string, 9
|
80
|
-
oneof :sli_criteria do
|
81
|
-
optional :availability, :message, 2, "google.monitoring.v3.BasicSli.AvailabilityCriteria"
|
82
|
-
optional :latency, :message, 3, "google.monitoring.v3.BasicSli.LatencyCriteria"
|
83
|
-
end
|
84
|
-
end
|
85
|
-
add_message "google.monitoring.v3.BasicSli.AvailabilityCriteria" do
|
86
|
-
end
|
87
|
-
add_message "google.monitoring.v3.BasicSli.LatencyCriteria" do
|
88
|
-
optional :threshold, :message, 3, "google.protobuf.Duration"
|
89
|
-
end
|
90
|
-
add_message "google.monitoring.v3.Range" do
|
91
|
-
optional :min, :double, 1
|
92
|
-
optional :max, :double, 2
|
93
|
-
end
|
94
|
-
add_message "google.monitoring.v3.RequestBasedSli" do
|
95
|
-
oneof :method do
|
96
|
-
optional :good_total_ratio, :message, 1, "google.monitoring.v3.TimeSeriesRatio"
|
97
|
-
optional :distribution_cut, :message, 3, "google.monitoring.v3.DistributionCut"
|
98
|
-
end
|
99
|
-
end
|
100
|
-
add_message "google.monitoring.v3.TimeSeriesRatio" do
|
101
|
-
optional :good_service_filter, :string, 4
|
102
|
-
optional :bad_service_filter, :string, 5
|
103
|
-
optional :total_service_filter, :string, 6
|
104
|
-
end
|
105
|
-
add_message "google.monitoring.v3.DistributionCut" do
|
106
|
-
optional :distribution_filter, :string, 4
|
107
|
-
optional :range, :message, 5, "google.monitoring.v3.Range"
|
108
|
-
end
|
109
|
-
add_message "google.monitoring.v3.WindowsBasedSli" do
|
110
|
-
optional :window_period, :message, 4, "google.protobuf.Duration"
|
111
|
-
oneof :window_criterion do
|
112
|
-
optional :good_bad_metric_filter, :string, 5
|
113
|
-
optional :good_total_ratio_threshold, :message, 2, "google.monitoring.v3.WindowsBasedSli.PerformanceThreshold"
|
114
|
-
optional :metric_mean_in_range, :message, 6, "google.monitoring.v3.WindowsBasedSli.MetricRange"
|
115
|
-
optional :metric_sum_in_range, :message, 7, "google.monitoring.v3.WindowsBasedSli.MetricRange"
|
116
|
-
end
|
117
|
-
end
|
118
|
-
add_message "google.monitoring.v3.WindowsBasedSli.PerformanceThreshold" do
|
119
|
-
optional :threshold, :double, 2
|
120
|
-
oneof :type do
|
121
|
-
optional :performance, :message, 1, "google.monitoring.v3.RequestBasedSli"
|
122
|
-
optional :basic_sli_performance, :message, 3, "google.monitoring.v3.BasicSli"
|
123
|
-
end
|
124
|
-
end
|
125
|
-
add_message "google.monitoring.v3.WindowsBasedSli.MetricRange" do
|
126
|
-
optional :time_series, :string, 1
|
127
|
-
optional :range, :message, 4, "google.monitoring.v3.Range"
|
11
|
+
|
12
|
+
descriptor_data = "\n\"google/monitoring/v3/service.proto\x12\x14google.monitoring.v3\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/duration.proto\x1a!google/type/calendar_period.proto\"\xc9\t\n\x07Service\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x36\n\x06\x63ustom\x18\x06 \x01(\x0b\x32$.google.monitoring.v3.Service.CustomH\x00\x12=\n\napp_engine\x18\x07 \x01(\x0b\x32\'.google.monitoring.v3.Service.AppEngineH\x00\x12G\n\x0f\x63loud_endpoints\x18\x08 \x01(\x0b\x32,.google.monitoring.v3.Service.CloudEndpointsH\x00\x12\x43\n\rcluster_istio\x18\t \x01(\x0b\x32*.google.monitoring.v3.Service.ClusterIstioH\x00\x12=\n\nmesh_istio\x18\n \x01(\x0b\x32\'.google.monitoring.v3.Service.MeshIstioH\x00\x12V\n\x17istio_canonical_service\x18\x0b \x01(\x0b\x32\x33.google.monitoring.v3.Service.IstioCanonicalServiceH\x00\x12:\n\ttelemetry\x18\r \x01(\x0b\x32\'.google.monitoring.v3.Service.Telemetry\x12\x42\n\x0buser_labels\x18\x0e \x03(\x0b\x32-.google.monitoring.v3.Service.UserLabelsEntry\x1a\x08\n\x06\x43ustom\x1a\x1e\n\tAppEngine\x12\x11\n\tmodule_id\x18\x01 \x01(\t\x1a!\n\x0e\x43loudEndpoints\x12\x0f\n\x07service\x18\x01 \x01(\t\x1ag\n\x0c\x43lusterIstio\x12\x10\n\x08location\x18\x01 \x01(\t\x12\x14\n\x0c\x63luster_name\x18\x02 \x01(\t\x12\x19\n\x11service_namespace\x18\x03 \x01(\t\x12\x14\n\x0cservice_name\x18\x04 \x01(\t\x1aN\n\tMeshIstio\x12\x10\n\x08mesh_uid\x18\x01 \x01(\t\x12\x19\n\x11service_namespace\x18\x03 \x01(\t\x12\x14\n\x0cservice_name\x18\x04 \x01(\t\x1ai\n\x15IstioCanonicalService\x12\x10\n\x08mesh_uid\x18\x01 \x01(\t\x12#\n\x1b\x63\x61nonical_service_namespace\x18\x03 \x01(\t\x12\x19\n\x11\x63\x61nonical_service\x18\x04 \x01(\t\x1a\"\n\tTelemetry\x12\x15\n\rresource_name\x18\x01 \x01(\t\x1a\x31\n\x0fUserLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:\xa7\x01\xea\x41\xa3\x01\n!monitoring.googleapis.com/Service\x12%projects/{project}/services/{service}\x12/organizations/{organization}/services/{service}\x12#folders/{folder}/services/{service}\x12\x01*B\x0c\n\nidentifier\"\x96\x06\n\x15ServiceLevelObjective\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x0b \x01(\t\x12L\n\x17service_level_indicator\x18\x03 \x01(\x0b\x32+.google.monitoring.v3.ServiceLevelIndicator\x12\x0c\n\x04goal\x18\x04 \x01(\x01\x12\x33\n\x0erolling_period\x18\x05 \x01(\x0b\x32\x19.google.protobuf.DurationH\x00\x12\x36\n\x0f\x63\x61lendar_period\x18\x06 \x01(\x0e\x32\x1b.google.type.CalendarPeriodH\x00\x12P\n\x0buser_labels\x18\x0c \x03(\x0b\x32;.google.monitoring.v3.ServiceLevelObjective.UserLabelsEntry\x1a\x31\n\x0fUserLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"4\n\x04View\x12\x14\n\x10VIEW_UNSPECIFIED\x10\x00\x12\x08\n\x04\x46ULL\x10\x02\x12\x0c\n\x08\x45XPLICIT\x10\x01:\xca\x02\xea\x41\xc6\x02\n/monitoring.googleapis.com/ServiceLevelObjective\x12Vprojects/{project}/services/{service}/serviceLevelObjectives/{service_level_objective}\x12`organizations/{organization}/services/{service}/serviceLevelObjectives/{service_level_objective}\x12Tfolders/{folder}/services/{service}/serviceLevelObjectives/{service_level_objective}\x12\x01* \x01\x42\x08\n\x06period\"\xd4\x01\n\x15ServiceLevelIndicator\x12\x33\n\tbasic_sli\x18\x04 \x01(\x0b\x32\x1e.google.monitoring.v3.BasicSliH\x00\x12>\n\rrequest_based\x18\x01 \x01(\x0b\x32%.google.monitoring.v3.RequestBasedSliH\x00\x12>\n\rwindows_based\x18\x02 \x01(\x0b\x32%.google.monitoring.v3.WindowsBasedSliH\x00\x42\x06\n\x04type\"\xb6\x02\n\x08\x42\x61sicSli\x12\x0e\n\x06method\x18\x07 \x03(\t\x12\x10\n\x08location\x18\x08 \x03(\t\x12\x0f\n\x07version\x18\t \x03(\t\x12K\n\x0c\x61vailability\x18\x02 \x01(\x0b\x32\x33.google.monitoring.v3.BasicSli.AvailabilityCriteriaH\x00\x12\x41\n\x07latency\x18\x03 \x01(\x0b\x32..google.monitoring.v3.BasicSli.LatencyCriteriaH\x00\x1a\x16\n\x14\x41vailabilityCriteria\x1a?\n\x0fLatencyCriteria\x12,\n\tthreshold\x18\x03 \x01(\x0b\x32\x19.google.protobuf.DurationB\x0e\n\x0csli_criteria\"!\n\x05Range\x12\x0b\n\x03min\x18\x01 \x01(\x01\x12\x0b\n\x03max\x18\x02 \x01(\x01\"\xa1\x01\n\x0fRequestBasedSli\x12\x41\n\x10good_total_ratio\x18\x01 \x01(\x0b\x32%.google.monitoring.v3.TimeSeriesRatioH\x00\x12\x41\n\x10\x64istribution_cut\x18\x03 \x01(\x0b\x32%.google.monitoring.v3.DistributionCutH\x00\x42\x08\n\x06method\"h\n\x0fTimeSeriesRatio\x12\x1b\n\x13good_service_filter\x18\x04 \x01(\t\x12\x1a\n\x12\x62\x61\x64_service_filter\x18\x05 \x01(\t\x12\x1c\n\x14total_service_filter\x18\x06 \x01(\t\"Z\n\x0f\x44istributionCut\x12\x1b\n\x13\x64istribution_filter\x18\x04 \x01(\t\x12*\n\x05range\x18\x05 \x01(\x0b\x32\x1b.google.monitoring.v3.Range\"\x83\x05\n\x0fWindowsBasedSli\x12 \n\x16good_bad_metric_filter\x18\x05 \x01(\tH\x00\x12`\n\x1agood_total_ratio_threshold\x18\x02 \x01(\x0b\x32:.google.monitoring.v3.WindowsBasedSli.PerformanceThresholdH\x00\x12Q\n\x14metric_mean_in_range\x18\x06 \x01(\x0b\x32\x31.google.monitoring.v3.WindowsBasedSli.MetricRangeH\x00\x12P\n\x13metric_sum_in_range\x18\x07 \x01(\x0b\x32\x31.google.monitoring.v3.WindowsBasedSli.MetricRangeH\x00\x12\x30\n\rwindow_period\x18\x04 \x01(\x0b\x32\x19.google.protobuf.Duration\x1a\xb0\x01\n\x14PerformanceThreshold\x12<\n\x0bperformance\x18\x01 \x01(\x0b\x32%.google.monitoring.v3.RequestBasedSliH\x00\x12?\n\x15\x62\x61sic_sli_performance\x18\x03 \x01(\x0b\x32\x1e.google.monitoring.v3.BasicSliH\x00\x12\x11\n\tthreshold\x18\x02 \x01(\x01\x42\x06\n\x04type\x1aN\n\x0bMetricRange\x12\x13\n\x0btime_series\x18\x01 \x01(\t\x12*\n\x05range\x18\x04 \x01(\x0b\x32\x1b.google.monitoring.v3.RangeB\x12\n\x10window_criterionB\xd1\x01\n\x18\x63om.google.monitoring.v3B\x16ServiceMonitoringProtoP\x01ZAcloud.google.com/go/monitoring/apiv3/v2/monitoringpb;monitoringpb\xaa\x02\x1aGoogle.Cloud.Monitoring.V3\xca\x02\x1aGoogle\\Cloud\\Monitoring\\V3\xea\x02\x1dGoogle::Cloud::Monitoring::V3b\x06proto3"
|
13
|
+
|
14
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
15
|
+
|
16
|
+
begin
|
17
|
+
pool.add_serialized_file(descriptor_data)
|
18
|
+
rescue TypeError => e
|
19
|
+
# Compatibility code: will be removed in the next major version.
|
20
|
+
require 'google/protobuf/descriptor_pb'
|
21
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
22
|
+
parsed.clear_dependency
|
23
|
+
serialized = parsed.class.encode(parsed)
|
24
|
+
file = pool.add_serialized_file(serialized)
|
25
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
26
|
+
imports = [
|
27
|
+
["google.protobuf.Duration", "google/protobuf/duration.proto"],
|
28
|
+
]
|
29
|
+
imports.each do |type_name, expected_filename|
|
30
|
+
import_file = pool.lookup(type_name).file_descriptor
|
31
|
+
if import_file.name != expected_filename
|
32
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
128
33
|
end
|
129
34
|
end
|
35
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
36
|
+
warn "This will become an error in the next major version."
|
130
37
|
end
|
131
38
|
|
132
39
|
module Google
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: google/monitoring/v3/service_service.proto
|
3
4
|
|
@@ -11,61 +12,33 @@ require 'google/monitoring/v3/service_pb'
|
|
11
12
|
require 'google/protobuf/empty_pb'
|
12
13
|
require 'google/protobuf/field_mask_pb'
|
13
14
|
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
end
|
38
|
-
add_message "google.monitoring.v3.DeleteServiceRequest" do
|
39
|
-
optional :name, :string, 1
|
40
|
-
end
|
41
|
-
add_message "google.monitoring.v3.CreateServiceLevelObjectiveRequest" do
|
42
|
-
optional :parent, :string, 1
|
43
|
-
optional :service_level_objective_id, :string, 3
|
44
|
-
optional :service_level_objective, :message, 2, "google.monitoring.v3.ServiceLevelObjective"
|
45
|
-
end
|
46
|
-
add_message "google.monitoring.v3.GetServiceLevelObjectiveRequest" do
|
47
|
-
optional :name, :string, 1
|
48
|
-
optional :view, :enum, 2, "google.monitoring.v3.ServiceLevelObjective.View"
|
49
|
-
end
|
50
|
-
add_message "google.monitoring.v3.ListServiceLevelObjectivesRequest" do
|
51
|
-
optional :parent, :string, 1
|
52
|
-
optional :filter, :string, 2
|
53
|
-
optional :page_size, :int32, 3
|
54
|
-
optional :page_token, :string, 4
|
55
|
-
optional :view, :enum, 5, "google.monitoring.v3.ServiceLevelObjective.View"
|
56
|
-
end
|
57
|
-
add_message "google.monitoring.v3.ListServiceLevelObjectivesResponse" do
|
58
|
-
repeated :service_level_objectives, :message, 1, "google.monitoring.v3.ServiceLevelObjective"
|
59
|
-
optional :next_page_token, :string, 2
|
60
|
-
end
|
61
|
-
add_message "google.monitoring.v3.UpdateServiceLevelObjectiveRequest" do
|
62
|
-
optional :service_level_objective, :message, 1, "google.monitoring.v3.ServiceLevelObjective"
|
63
|
-
optional :update_mask, :message, 2, "google.protobuf.FieldMask"
|
64
|
-
end
|
65
|
-
add_message "google.monitoring.v3.DeleteServiceLevelObjectiveRequest" do
|
66
|
-
optional :name, :string, 1
|
15
|
+
|
16
|
+
descriptor_data = "\n*google/monitoring/v3/service_service.proto\x12\x14google.monitoring.v3\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\"google/monitoring/v3/service.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\"\x9a\x01\n\x14\x43reateServiceRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\x12!monitoring.googleapis.com/Service\x12\x12\n\nservice_id\x18\x03 \x01(\t\x12\x33\n\x07service\x18\x02 \x01(\x0b\x32\x1d.google.monitoring.v3.ServiceB\x03\xe0\x41\x02\"L\n\x11GetServiceRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!monitoring.googleapis.com/Service\"\x87\x01\n\x13ListServicesRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\x12!monitoring.googleapis.com/Service\x12\x0e\n\x06\x66ilter\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t\"`\n\x14ListServicesResponse\x12/\n\x08services\x18\x01 \x03(\x0b\x32\x1d.google.monitoring.v3.Service\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"|\n\x14UpdateServiceRequest\x12\x33\n\x07service\x18\x01 \x01(\x0b\x32\x1d.google.monitoring.v3.ServiceB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"O\n\x14\x44\x65leteServiceRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!monitoring.googleapis.com/Service\"\xd6\x01\n\"CreateServiceLevelObjectiveRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!monitoring.googleapis.com/Service\x12\"\n\x1aservice_level_objective_id\x18\x03 \x01(\t\x12Q\n\x17service_level_objective\x18\x02 \x01(\x0b\x32+.google.monitoring.v3.ServiceLevelObjectiveB\x03\xe0\x41\x02\"\xa8\x01\n\x1fGetServiceLevelObjectiveRequest\x12\x45\n\x04name\x18\x01 \x01(\tB7\xe0\x41\x02\xfa\x41\x31\n/monitoring.googleapis.com/ServiceLevelObjective\x12>\n\x04view\x18\x02 \x01(\x0e\x32\x30.google.monitoring.v3.ServiceLevelObjective.View\"\xd5\x01\n!ListServiceLevelObjectivesRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!monitoring.googleapis.com/Service\x12\x0e\n\x06\x66ilter\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t\x12>\n\x04view\x18\x05 \x01(\x0e\x32\x30.google.monitoring.v3.ServiceLevelObjective.View\"\x8c\x01\n\"ListServiceLevelObjectivesResponse\x12M\n\x18service_level_objectives\x18\x01 \x03(\x0b\x32+.google.monitoring.v3.ServiceLevelObjective\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xa8\x01\n\"UpdateServiceLevelObjectiveRequest\x12Q\n\x17service_level_objective\x18\x01 \x01(\x0b\x32+.google.monitoring.v3.ServiceLevelObjectiveB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"k\n\"DeleteServiceLevelObjectiveRequest\x12\x45\n\x04name\x18\x01 \x01(\tB7\xe0\x41\x02\xfa\x41\x31\n/monitoring.googleapis.com/ServiceLevelObjective2\xea\x0f\n\x18ServiceMonitoringService\x12\x97\x01\n\rCreateService\x12*.google.monitoring.v3.CreateServiceRequest\x1a\x1d.google.monitoring.v3.Service\";\x82\xd3\xe4\x93\x02$\"\x19/v3/{parent=*/*}/services:\x07service\xda\x41\x0eparent,service\x12~\n\nGetService\x12\'.google.monitoring.v3.GetServiceRequest\x1a\x1d.google.monitoring.v3.Service\"(\x82\xd3\xe4\x93\x02\x1b\x12\x19/v3/{name=*/*/services/*}\xda\x41\x04name\x12\x91\x01\n\x0cListServices\x12).google.monitoring.v3.ListServicesRequest\x1a*.google.monitoring.v3.ListServicesResponse\"*\x82\xd3\xe4\x93\x02\x1b\x12\x19/v3/{parent=*/*}/services\xda\x41\x06parent\x12\x98\x01\n\rUpdateService\x12*.google.monitoring.v3.UpdateServiceRequest\x1a\x1d.google.monitoring.v3.Service\"<\x82\xd3\xe4\x93\x02,2!/v3/{service.name=*/*/services/*}:\x07service\xda\x41\x07service\x12}\n\rDeleteService\x12*.google.monitoring.v3.DeleteServiceRequest\x1a\x16.google.protobuf.Empty\"(\x82\xd3\xe4\x93\x02\x1b*\x19/v3/{name=*/*/services/*}\xda\x41\x04name\x12\xfa\x01\n\x1b\x43reateServiceLevelObjective\x12\x38.google.monitoring.v3.CreateServiceLevelObjectiveRequest\x1a+.google.monitoring.v3.ServiceLevelObjective\"t\x82\xd3\xe4\x93\x02M\"2/v3/{parent=*/*/services/*}/serviceLevelObjectives:\x17service_level_objective\xda\x41\x1eparent,service_level_objective\x12\xc1\x01\n\x18GetServiceLevelObjective\x12\x35.google.monitoring.v3.GetServiceLevelObjectiveRequest\x1a+.google.monitoring.v3.ServiceLevelObjective\"A\x82\xd3\xe4\x93\x02\x34\x12\x32/v3/{name=*/*/services/*/serviceLevelObjectives/*}\xda\x41\x04name\x12\xd4\x01\n\x1aListServiceLevelObjectives\x12\x37.google.monitoring.v3.ListServiceLevelObjectivesRequest\x1a\x38.google.monitoring.v3.ListServiceLevelObjectivesResponse\"C\x82\xd3\xe4\x93\x02\x34\x12\x32/v3/{parent=*/*/services/*}/serviceLevelObjectives\xda\x41\x06parent\x12\x8c\x02\n\x1bUpdateServiceLevelObjective\x12\x38.google.monitoring.v3.UpdateServiceLevelObjectiveRequest\x1a+.google.monitoring.v3.ServiceLevelObjective\"\x85\x01\x82\xd3\xe4\x93\x02\x65\x32J/v3/{service_level_objective.name=*/*/services/*/serviceLevelObjectives/*}:\x17service_level_objective\xda\x41\x17service_level_objective\x12\xb2\x01\n\x1b\x44\x65leteServiceLevelObjective\x12\x38.google.monitoring.v3.DeleteServiceLevelObjectiveRequest\x1a\x16.google.protobuf.Empty\"A\x82\xd3\xe4\x93\x02\x34*2/v3/{name=*/*/services/*/serviceLevelObjectives/*}\xda\x41\x04name\x1a\xa9\x01\xca\x41\x19monitoring.googleapis.com\xd2\x41\x89\x01https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/monitoring,https://www.googleapis.com/auth/monitoring.readB\xd8\x01\n\x18\x63om.google.monitoring.v3B\x1dServiceMonitoringServiceProtoP\x01ZAcloud.google.com/go/monitoring/apiv3/v2/monitoringpb;monitoringpb\xaa\x02\x1aGoogle.Cloud.Monitoring.V3\xca\x02\x1aGoogle\\Cloud\\Monitoring\\V3\xea\x02\x1dGoogle::Cloud::Monitoring::V3b\x06proto3"
|
17
|
+
|
18
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
19
|
+
|
20
|
+
begin
|
21
|
+
pool.add_serialized_file(descriptor_data)
|
22
|
+
rescue TypeError => e
|
23
|
+
# Compatibility code: will be removed in the next major version.
|
24
|
+
require 'google/protobuf/descriptor_pb'
|
25
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
26
|
+
parsed.clear_dependency
|
27
|
+
serialized = parsed.class.encode(parsed)
|
28
|
+
file = pool.add_serialized_file(serialized)
|
29
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
30
|
+
imports = [
|
31
|
+
["google.monitoring.v3.Service", "google/monitoring/v3/service.proto"],
|
32
|
+
["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
|
33
|
+
]
|
34
|
+
imports.each do |type_name, expected_filename|
|
35
|
+
import_file = pool.lookup(type_name).file_descriptor
|
36
|
+
if import_file.name != expected_filename
|
37
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
67
38
|
end
|
68
39
|
end
|
40
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
41
|
+
warn "This will become an error in the next major version."
|
69
42
|
end
|
70
43
|
|
71
44
|
module Google
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: google/monitoring/v3/snooze.proto
|
3
4
|
|
@@ -7,18 +8,32 @@ require 'google/api/field_behavior_pb'
|
|
7
8
|
require 'google/api/resource_pb'
|
8
9
|
require 'google/monitoring/v3/common_pb'
|
9
10
|
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
11
|
+
|
12
|
+
descriptor_data = "\n!google/monitoring/v3/snooze.proto\x12\x14google.monitoring.v3\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a!google/monitoring/v3/common.proto\"\xc5\x02\n\x06Snooze\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12<\n\x08\x63riteria\x18\x03 \x01(\x0b\x32%.google.monitoring.v3.Snooze.CriteriaB\x03\xe0\x41\x02\x12\x39\n\x08interval\x18\x04 \x01(\x0b\x32\".google.monitoring.v3.TimeIntervalB\x03\xe0\x41\x02\x12\x19\n\x0c\x64isplay_name\x18\x05 \x01(\tB\x03\xe0\x41\x02\x1aH\n\x08\x43riteria\x12<\n\x08policies\x18\x01 \x03(\tB*\xfa\x41\'\n%monitoring.googleapis.com/AlertPolicy:J\xea\x41G\n monitoring.googleapis.com/Snooze\x12#projects/{project}/snoozes/{snooze}B\xc6\x01\n\x18\x63om.google.monitoring.v3B\x0bSnoozeProtoP\x01ZAcloud.google.com/go/monitoring/apiv3/v2/monitoringpb;monitoringpb\xaa\x02\x1aGoogle.Cloud.Monitoring.V3\xca\x02\x1aGoogle\\Cloud\\Monitoring\\V3\xea\x02\x1dGoogle::Cloud::Monitoring::V3b\x06proto3"
|
13
|
+
|
14
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
15
|
+
|
16
|
+
begin
|
17
|
+
pool.add_serialized_file(descriptor_data)
|
18
|
+
rescue TypeError => e
|
19
|
+
# Compatibility code: will be removed in the next major version.
|
20
|
+
require 'google/protobuf/descriptor_pb'
|
21
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
22
|
+
parsed.clear_dependency
|
23
|
+
serialized = parsed.class.encode(parsed)
|
24
|
+
file = pool.add_serialized_file(serialized)
|
25
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
26
|
+
imports = [
|
27
|
+
["google.monitoring.v3.TimeInterval", "google/monitoring/v3/common.proto"],
|
28
|
+
]
|
29
|
+
imports.each do |type_name, expected_filename|
|
30
|
+
import_file = pool.lookup(type_name).file_descriptor
|
31
|
+
if import_file.name != expected_filename
|
32
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
20
33
|
end
|
21
34
|
end
|
35
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
36
|
+
warn "This will become an error in the next major version."
|
22
37
|
end
|
23
38
|
|
24
39
|
module Google
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: google/monitoring/v3/snooze_service.proto
|
3
4
|
|
@@ -10,30 +11,33 @@ require 'google/api/resource_pb'
|
|
10
11
|
require 'google/monitoring/v3/snooze_pb'
|
11
12
|
require 'google/protobuf/field_mask_pb'
|
12
13
|
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
14
|
+
|
15
|
+
descriptor_data = "\n)google/monitoring/v3/snooze_service.proto\x12\x14google.monitoring.v3\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a!google/monitoring/v3/snooze.proto\x1a google/protobuf/field_mask.proto\"\x82\x01\n\x13\x43reateSnoozeRequest\x12\x38\n\x06parent\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\x12 monitoring.googleapis.com/Snooze\x12\x31\n\x06snooze\x18\x02 \x01(\x0b\x32\x1c.google.monitoring.v3.SnoozeB\x03\xe0\x41\x02\"\x94\x01\n\x12ListSnoozesRequest\x12\x38\n\x06parent\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\x12 monitoring.googleapis.com/Snooze\x12\x13\n\x06\x66ilter\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tpage_size\x18\x04 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x05 \x01(\tB\x03\xe0\x41\x01\"]\n\x13ListSnoozesResponse\x12-\n\x07snoozes\x18\x01 \x03(\x0b\x32\x1c.google.monitoring.v3.Snooze\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"J\n\x10GetSnoozeRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n monitoring.googleapis.com/Snooze\"~\n\x13UpdateSnoozeRequest\x12\x31\n\x06snooze\x18\x01 \x01(\x0b\x32\x1c.google.monitoring.v3.SnoozeB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\x32\x98\x06\n\rSnoozeService\x12\x98\x01\n\x0c\x43reateSnooze\x12).google.monitoring.v3.CreateSnoozeRequest\x1a\x1c.google.monitoring.v3.Snooze\"?\x82\xd3\xe4\x93\x02)\"\x1f/v3/{parent=projects/*}/snoozes:\x06snooze\xda\x41\rparent,snooze\x12\x94\x01\n\x0bListSnoozes\x12(.google.monitoring.v3.ListSnoozesRequest\x1a).google.monitoring.v3.ListSnoozesResponse\"0\x82\xd3\xe4\x93\x02!\x12\x1f/v3/{parent=projects/*}/snoozes\xda\x41\x06parent\x12\x81\x01\n\tGetSnooze\x12&.google.monitoring.v3.GetSnoozeRequest\x1a\x1c.google.monitoring.v3.Snooze\".\x82\xd3\xe4\x93\x02!\x12\x1f/v3/{name=projects/*/snoozes/*}\xda\x41\x04name\x12\xa4\x01\n\x0cUpdateSnooze\x12).google.monitoring.v3.UpdateSnoozeRequest\x1a\x1c.google.monitoring.v3.Snooze\"K\x82\xd3\xe4\x93\x02\x30\x32&/v3/{snooze.name=projects/*/snoozes/*}:\x06snooze\xda\x41\x12snooze,update_mask\x1a\xa9\x01\xca\x41\x19monitoring.googleapis.com\xd2\x41\x89\x01https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/monitoring,https://www.googleapis.com/auth/monitoring.readB\xcd\x01\n\x18\x63om.google.monitoring.v3B\x12SnoozeServiceProtoP\x01ZAcloud.google.com/go/monitoring/apiv3/v2/monitoringpb;monitoringpb\xaa\x02\x1aGoogle.Cloud.Monitoring.V3\xca\x02\x1aGoogle\\Cloud\\Monitoring\\V3\xea\x02\x1dGoogle::Cloud::Monitoring::V3b\x06proto3"
|
16
|
+
|
17
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
18
|
+
|
19
|
+
begin
|
20
|
+
pool.add_serialized_file(descriptor_data)
|
21
|
+
rescue TypeError => e
|
22
|
+
# Compatibility code: will be removed in the next major version.
|
23
|
+
require 'google/protobuf/descriptor_pb'
|
24
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
25
|
+
parsed.clear_dependency
|
26
|
+
serialized = parsed.class.encode(parsed)
|
27
|
+
file = pool.add_serialized_file(serialized)
|
28
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
29
|
+
imports = [
|
30
|
+
["google.monitoring.v3.Snooze", "google/monitoring/v3/snooze.proto"],
|
31
|
+
["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
|
32
|
+
]
|
33
|
+
imports.each do |type_name, expected_filename|
|
34
|
+
import_file = pool.lookup(type_name).file_descriptor
|
35
|
+
if import_file.name != expected_filename
|
36
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
35
37
|
end
|
36
38
|
end
|
39
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
40
|
+
warn "This will become an error in the next major version."
|
37
41
|
end
|
38
42
|
|
39
43
|
module Google
|
@@ -1,14 +1,34 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: google/monitoring/v3/span_context.proto
|
3
4
|
|
4
5
|
require 'google/protobuf'
|
5
6
|
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
7
|
+
|
8
|
+
descriptor_data = "\n\'google/monitoring/v3/span_context.proto\x12\x14google.monitoring.v3\" \n\x0bSpanContext\x12\x11\n\tspan_name\x18\x01 \x01(\tB\xcb\x01\n\x18\x63om.google.monitoring.v3B\x10SpanContextProtoP\x01ZAcloud.google.com/go/monitoring/apiv3/v2/monitoringpb;monitoringpb\xaa\x02\x1aGoogle.Cloud.Monitoring.V3\xca\x02\x1aGoogle\\Cloud\\Monitoring\\V3\xea\x02\x1dGoogle::Cloud::Monitoring::V3b\x06proto3"
|
9
|
+
|
10
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
11
|
+
|
12
|
+
begin
|
13
|
+
pool.add_serialized_file(descriptor_data)
|
14
|
+
rescue TypeError => e
|
15
|
+
# Compatibility code: will be removed in the next major version.
|
16
|
+
require 'google/protobuf/descriptor_pb'
|
17
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
18
|
+
parsed.clear_dependency
|
19
|
+
serialized = parsed.class.encode(parsed)
|
20
|
+
file = pool.add_serialized_file(serialized)
|
21
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
22
|
+
imports = [
|
23
|
+
]
|
24
|
+
imports.each do |type_name, expected_filename|
|
25
|
+
import_file = pool.lookup(type_name).file_descriptor
|
26
|
+
if import_file.name != expected_filename
|
27
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
10
28
|
end
|
11
29
|
end
|
30
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
31
|
+
warn "This will become an error in the next major version."
|
12
32
|
end
|
13
33
|
|
14
34
|
module Google
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: google/monitoring/v3/uptime.proto
|
3
4
|
|
@@ -8,147 +9,33 @@ require 'google/api/monitored_resource_pb'
|
|
8
9
|
require 'google/api/resource_pb'
|
9
10
|
require 'google/protobuf/duration_pb'
|
10
11
|
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
optional :is_internal, :bool, 15
|
35
|
-
repeated :internal_checkers, :message, 14, "google.monitoring.v3.InternalChecker"
|
36
|
-
map :user_labels, :string, :string, 20
|
37
|
-
oneof :resource do
|
38
|
-
optional :monitored_resource, :message, 3, "google.api.MonitoredResource"
|
39
|
-
optional :resource_group, :message, 4, "google.monitoring.v3.UptimeCheckConfig.ResourceGroup"
|
40
|
-
end
|
41
|
-
oneof :check_request_type do
|
42
|
-
optional :http_check, :message, 5, "google.monitoring.v3.UptimeCheckConfig.HttpCheck"
|
43
|
-
optional :tcp_check, :message, 6, "google.monitoring.v3.UptimeCheckConfig.TcpCheck"
|
44
|
-
end
|
45
|
-
end
|
46
|
-
add_message "google.monitoring.v3.UptimeCheckConfig.ResourceGroup" do
|
47
|
-
optional :group_id, :string, 1
|
48
|
-
optional :resource_type, :enum, 2, "google.monitoring.v3.GroupResourceType"
|
49
|
-
end
|
50
|
-
add_message "google.monitoring.v3.UptimeCheckConfig.PingConfig" do
|
51
|
-
optional :pings_count, :int32, 1
|
52
|
-
end
|
53
|
-
add_message "google.monitoring.v3.UptimeCheckConfig.HttpCheck" do
|
54
|
-
optional :request_method, :enum, 8, "google.monitoring.v3.UptimeCheckConfig.HttpCheck.RequestMethod"
|
55
|
-
optional :use_ssl, :bool, 1
|
56
|
-
optional :path, :string, 2
|
57
|
-
optional :port, :int32, 3
|
58
|
-
optional :auth_info, :message, 4, "google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication"
|
59
|
-
optional :mask_headers, :bool, 5
|
60
|
-
map :headers, :string, :string, 6
|
61
|
-
optional :content_type, :enum, 9, "google.monitoring.v3.UptimeCheckConfig.HttpCheck.ContentType"
|
62
|
-
optional :custom_content_type, :string, 13
|
63
|
-
optional :validate_ssl, :bool, 7
|
64
|
-
optional :body, :bytes, 10
|
65
|
-
repeated :accepted_response_status_codes, :message, 11, "google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode"
|
66
|
-
optional :ping_config, :message, 12, "google.monitoring.v3.UptimeCheckConfig.PingConfig"
|
67
|
-
end
|
68
|
-
add_message "google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication" do
|
69
|
-
optional :username, :string, 1
|
70
|
-
optional :password, :string, 2
|
71
|
-
end
|
72
|
-
add_message "google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode" do
|
73
|
-
oneof :status_code do
|
74
|
-
optional :status_value, :int32, 1
|
75
|
-
optional :status_class, :enum, 2, "google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.StatusClass"
|
76
|
-
end
|
77
|
-
end
|
78
|
-
add_enum "google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.StatusClass" do
|
79
|
-
value :STATUS_CLASS_UNSPECIFIED, 0
|
80
|
-
value :STATUS_CLASS_1XX, 100
|
81
|
-
value :STATUS_CLASS_2XX, 200
|
82
|
-
value :STATUS_CLASS_3XX, 300
|
83
|
-
value :STATUS_CLASS_4XX, 400
|
84
|
-
value :STATUS_CLASS_5XX, 500
|
85
|
-
value :STATUS_CLASS_ANY, 1000
|
86
|
-
end
|
87
|
-
add_enum "google.monitoring.v3.UptimeCheckConfig.HttpCheck.RequestMethod" do
|
88
|
-
value :METHOD_UNSPECIFIED, 0
|
89
|
-
value :GET, 1
|
90
|
-
value :POST, 2
|
91
|
-
end
|
92
|
-
add_enum "google.monitoring.v3.UptimeCheckConfig.HttpCheck.ContentType" do
|
93
|
-
value :TYPE_UNSPECIFIED, 0
|
94
|
-
value :URL_ENCODED, 1
|
95
|
-
value :USER_PROVIDED, 2
|
96
|
-
end
|
97
|
-
add_message "google.monitoring.v3.UptimeCheckConfig.TcpCheck" do
|
98
|
-
optional :port, :int32, 1
|
99
|
-
optional :ping_config, :message, 2, "google.monitoring.v3.UptimeCheckConfig.PingConfig"
|
100
|
-
end
|
101
|
-
add_message "google.monitoring.v3.UptimeCheckConfig.ContentMatcher" do
|
102
|
-
optional :content, :string, 1
|
103
|
-
optional :matcher, :enum, 2, "google.monitoring.v3.UptimeCheckConfig.ContentMatcher.ContentMatcherOption"
|
104
|
-
oneof :additional_matcher_info do
|
105
|
-
optional :json_path_matcher, :message, 3, "google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher"
|
106
|
-
end
|
107
|
-
end
|
108
|
-
add_message "google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher" do
|
109
|
-
optional :json_path, :string, 1
|
110
|
-
optional :json_matcher, :enum, 2, "google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.JsonPathMatcherOption"
|
111
|
-
end
|
112
|
-
add_enum "google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.JsonPathMatcherOption" do
|
113
|
-
value :JSON_PATH_MATCHER_OPTION_UNSPECIFIED, 0
|
114
|
-
value :EXACT_MATCH, 1
|
115
|
-
value :REGEX_MATCH, 2
|
116
|
-
end
|
117
|
-
add_enum "google.monitoring.v3.UptimeCheckConfig.ContentMatcher.ContentMatcherOption" do
|
118
|
-
value :CONTENT_MATCHER_OPTION_UNSPECIFIED, 0
|
119
|
-
value :CONTAINS_STRING, 1
|
120
|
-
value :NOT_CONTAINS_STRING, 2
|
121
|
-
value :MATCHES_REGEX, 3
|
122
|
-
value :NOT_MATCHES_REGEX, 4
|
123
|
-
value :MATCHES_JSON_PATH, 5
|
124
|
-
value :NOT_MATCHES_JSON_PATH, 6
|
125
|
-
end
|
126
|
-
add_enum "google.monitoring.v3.UptimeCheckConfig.CheckerType" do
|
127
|
-
value :CHECKER_TYPE_UNSPECIFIED, 0
|
128
|
-
value :STATIC_IP_CHECKERS, 1
|
129
|
-
value :VPC_CHECKERS, 3
|
130
|
-
end
|
131
|
-
add_message "google.monitoring.v3.UptimeCheckIp" do
|
132
|
-
optional :region, :enum, 1, "google.monitoring.v3.UptimeCheckRegion"
|
133
|
-
optional :location, :string, 2
|
134
|
-
optional :ip_address, :string, 3
|
135
|
-
end
|
136
|
-
add_enum "google.monitoring.v3.UptimeCheckRegion" do
|
137
|
-
value :REGION_UNSPECIFIED, 0
|
138
|
-
value :USA, 1
|
139
|
-
value :EUROPE, 2
|
140
|
-
value :SOUTH_AMERICA, 3
|
141
|
-
value :ASIA_PACIFIC, 4
|
142
|
-
value :USA_OREGON, 5
|
143
|
-
value :USA_IOWA, 6
|
144
|
-
value :USA_VIRGINIA, 7
|
145
|
-
end
|
146
|
-
add_enum "google.monitoring.v3.GroupResourceType" do
|
147
|
-
value :RESOURCE_TYPE_UNSPECIFIED, 0
|
148
|
-
value :INSTANCE, 1
|
149
|
-
value :AWS_ELB_LOAD_BALANCER, 2
|
12
|
+
|
13
|
+
descriptor_data = "\n!google/monitoring/v3/uptime.proto\x12\x14google.monitoring.v3\x1a\x1fgoogle/api/field_behavior.proto\x1a#google/api/monitored_resource.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/duration.proto\"\xe6\x01\n\x0fInternalChecker\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x0f\n\x07network\x18\x03 \x01(\t\x12\x10\n\x08gcp_zone\x18\x04 \x01(\t\x12\x17\n\x0fpeer_project_id\x18\x06 \x01(\t\x12:\n\x05state\x18\x07 \x01(\x0e\x32+.google.monitoring.v3.InternalChecker.State\"3\n\x05State\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\x0b\n\x07RUNNING\x10\x02:\x02\x18\x01\"\x82\x1b\n\x11UptimeCheckConfig\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12;\n\x12monitored_resource\x18\x03 \x01(\x0b\x32\x1d.google.api.MonitoredResourceH\x00\x12O\n\x0eresource_group\x18\x04 \x01(\x0b\x32\x35.google.monitoring.v3.UptimeCheckConfig.ResourceGroupH\x00\x12G\n\nhttp_check\x18\x05 \x01(\x0b\x32\x31.google.monitoring.v3.UptimeCheckConfig.HttpCheckH\x01\x12\x45\n\ttcp_check\x18\x06 \x01(\x0b\x32\x30.google.monitoring.v3.UptimeCheckConfig.TcpCheckH\x01\x12)\n\x06period\x18\x07 \x01(\x0b\x32\x19.google.protobuf.Duration\x12*\n\x07timeout\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\x12P\n\x10\x63ontent_matchers\x18\t \x03(\x0b\x32\x36.google.monitoring.v3.UptimeCheckConfig.ContentMatcher\x12I\n\x0c\x63hecker_type\x18\x11 \x01(\x0e\x32\x33.google.monitoring.v3.UptimeCheckConfig.CheckerType\x12\x41\n\x10selected_regions\x18\n \x03(\x0e\x32\'.google.monitoring.v3.UptimeCheckRegion\x12\x17\n\x0bis_internal\x18\x0f \x01(\x08\x42\x02\x18\x01\x12\x44\n\x11internal_checkers\x18\x0e \x03(\x0b\x32%.google.monitoring.v3.InternalCheckerB\x02\x18\x01\x12L\n\x0buser_labels\x18\x14 \x03(\x0b\x32\x37.google.monitoring.v3.UptimeCheckConfig.UserLabelsEntry\x1a\x61\n\rResourceGroup\x12\x10\n\x08group_id\x18\x01 \x01(\t\x12>\n\rresource_type\x18\x02 \x01(\x0e\x32\'.google.monitoring.v3.GroupResourceType\x1a!\n\nPingConfig\x12\x13\n\x0bpings_count\x18\x01 \x01(\x05\x1a\xee\t\n\tHttpCheck\x12W\n\x0erequest_method\x18\x08 \x01(\x0e\x32?.google.monitoring.v3.UptimeCheckConfig.HttpCheck.RequestMethod\x12\x0f\n\x07use_ssl\x18\x01 \x01(\x08\x12\x0c\n\x04path\x18\x02 \x01(\t\x12\x0c\n\x04port\x18\x03 \x01(\x05\x12X\n\tauth_info\x18\x04 \x01(\x0b\x32\x45.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication\x12\x14\n\x0cmask_headers\x18\x05 \x01(\x08\x12O\n\x07headers\x18\x06 \x03(\x0b\x32>.google.monitoring.v3.UptimeCheckConfig.HttpCheck.HeadersEntry\x12S\n\x0c\x63ontent_type\x18\t \x01(\x0e\x32=.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ContentType\x12\x1b\n\x13\x63ustom_content_type\x18\r \x01(\t\x12\x14\n\x0cvalidate_ssl\x18\x07 \x01(\x08\x12\x0c\n\x04\x62ody\x18\n \x01(\x0c\x12l\n\x1e\x61\x63\x63\x65pted_response_status_codes\x18\x0b \x03(\x0b\x32\x44.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode\x12G\n\x0bping_config\x18\x0c \x01(\x0b\x32\x32.google.monitoring.v3.UptimeCheckConfig.PingConfig\x1a\x39\n\x13\x42\x61sicAuthentication\x12\x10\n\x08username\x18\x01 \x01(\t\x12\x10\n\x08password\x18\x02 \x01(\t\x1a\xdc\x02\n\x12ResponseStatusCode\x12\x16\n\x0cstatus_value\x18\x01 \x01(\x05H\x00\x12h\n\x0cstatus_class\x18\x02 \x01(\x0e\x32P.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.StatusClassH\x00\"\xb4\x01\n\x0bStatusClass\x12\x1c\n\x18STATUS_CLASS_UNSPECIFIED\x10\x00\x12\x14\n\x10STATUS_CLASS_1XX\x10\x64\x12\x15\n\x10STATUS_CLASS_2XX\x10\xc8\x01\x12\x15\n\x10STATUS_CLASS_3XX\x10\xac\x02\x12\x15\n\x10STATUS_CLASS_4XX\x10\x90\x03\x12\x15\n\x10STATUS_CLASS_5XX\x10\xf4\x03\x12\x15\n\x10STATUS_CLASS_ANY\x10\xe8\x07\x42\r\n\x0bstatus_code\x1a.\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\":\n\rRequestMethod\x12\x16\n\x12METHOD_UNSPECIFIED\x10\x00\x12\x07\n\x03GET\x10\x01\x12\x08\n\x04POST\x10\x02\"G\n\x0b\x43ontentType\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x0f\n\x0bURL_ENCODED\x10\x01\x12\x11\n\rUSER_PROVIDED\x10\x02\x1a\x61\n\x08TcpCheck\x12\x0c\n\x04port\x18\x01 \x01(\x05\x12G\n\x0bping_config\x18\x02 \x01(\x0b\x32\x32.google.monitoring.v3.UptimeCheckConfig.PingConfig\x1a\xca\x05\n\x0e\x43ontentMatcher\x12\x0f\n\x07\x63ontent\x18\x01 \x01(\t\x12\\\n\x07matcher\x18\x02 \x01(\x0e\x32K.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.ContentMatcherOption\x12\x63\n\x11json_path_matcher\x18\x03 \x01(\x0b\x32\x46.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcherH\x00\x1a\xfd\x01\n\x0fJsonPathMatcher\x12\x11\n\tjson_path\x18\x01 \x01(\t\x12r\n\x0cjson_matcher\x18\x02 \x01(\x0e\x32\\.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.JsonPathMatcherOption\"c\n\x15JsonPathMatcherOption\x12(\n$JSON_PATH_MATCHER_OPTION_UNSPECIFIED\x10\x00\x12\x0f\n\x0b\x45XACT_MATCH\x10\x01\x12\x0f\n\x0bREGEX_MATCH\x10\x02\"\xc8\x01\n\x14\x43ontentMatcherOption\x12&\n\"CONTENT_MATCHER_OPTION_UNSPECIFIED\x10\x00\x12\x13\n\x0f\x43ONTAINS_STRING\x10\x01\x12\x17\n\x13NOT_CONTAINS_STRING\x10\x02\x12\x11\n\rMATCHES_REGEX\x10\x03\x12\x15\n\x11NOT_MATCHES_REGEX\x10\x04\x12\x15\n\x11MATCHES_JSON_PATH\x10\x05\x12\x19\n\x15NOT_MATCHES_JSON_PATH\x10\x06\x42\x19\n\x17\x61\x64\x64itional_matcher_info\x1a\x31\n\x0fUserLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"U\n\x0b\x43heckerType\x12\x1c\n\x18\x43HECKER_TYPE_UNSPECIFIED\x10\x00\x12\x16\n\x12STATIC_IP_CHECKERS\x10\x01\x12\x10\n\x0cVPC_CHECKERS\x10\x03:\xf3\x01\xea\x41\xef\x01\n+monitoring.googleapis.com/UptimeCheckConfig\x12;projects/{project}/uptimeCheckConfigs/{uptime_check_config}\x12\x45organizations/{organization}/uptimeCheckConfigs/{uptime_check_config}\x12\x39\x66olders/{folder}/uptimeCheckConfigs/{uptime_check_config}\x12\x01*B\n\n\x08resourceB\x14\n\x12\x63heck_request_type\"n\n\rUptimeCheckIp\x12\x37\n\x06region\x18\x01 \x01(\x0e\x32\'.google.monitoring.v3.UptimeCheckRegion\x12\x10\n\x08location\x18\x02 \x01(\t\x12\x12\n\nip_address\x18\x03 \x01(\t*\x95\x01\n\x11UptimeCheckRegion\x12\x16\n\x12REGION_UNSPECIFIED\x10\x00\x12\x07\n\x03USA\x10\x01\x12\n\n\x06\x45UROPE\x10\x02\x12\x11\n\rSOUTH_AMERICA\x10\x03\x12\x10\n\x0c\x41SIA_PACIFIC\x10\x04\x12\x0e\n\nUSA_OREGON\x10\x05\x12\x0c\n\x08USA_IOWA\x10\x06\x12\x10\n\x0cUSA_VIRGINIA\x10\x07*[\n\x11GroupResourceType\x12\x1d\n\x19RESOURCE_TYPE_UNSPECIFIED\x10\x00\x12\x0c\n\x08INSTANCE\x10\x01\x12\x19\n\x15\x41WS_ELB_LOAD_BALANCER\x10\x02\x42\xc6\x01\n\x18\x63om.google.monitoring.v3B\x0bUptimeProtoP\x01ZAcloud.google.com/go/monitoring/apiv3/v2/monitoringpb;monitoringpb\xaa\x02\x1aGoogle.Cloud.Monitoring.V3\xca\x02\x1aGoogle\\Cloud\\Monitoring\\V3\xea\x02\x1dGoogle::Cloud::Monitoring::V3b\x06proto3"
|
14
|
+
|
15
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
16
|
+
|
17
|
+
begin
|
18
|
+
pool.add_serialized_file(descriptor_data)
|
19
|
+
rescue TypeError => e
|
20
|
+
# Compatibility code: will be removed in the next major version.
|
21
|
+
require 'google/protobuf/descriptor_pb'
|
22
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
23
|
+
parsed.clear_dependency
|
24
|
+
serialized = parsed.class.encode(parsed)
|
25
|
+
file = pool.add_serialized_file(serialized)
|
26
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
27
|
+
imports = [
|
28
|
+
["google.api.MonitoredResource", "google/api/monitored_resource.proto"],
|
29
|
+
["google.protobuf.Duration", "google/protobuf/duration.proto"],
|
30
|
+
]
|
31
|
+
imports.each do |type_name, expected_filename|
|
32
|
+
import_file = pool.lookup(type_name).file_descriptor
|
33
|
+
if import_file.name != expected_filename
|
34
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
150
35
|
end
|
151
36
|
end
|
37
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
38
|
+
warn "This will become an error in the next major version."
|
152
39
|
end
|
153
40
|
|
154
41
|
module Google
|