google-cloud-monitoring-v3 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (88) hide show
  1. checksums.yaml +7 -0
  2. data/.yardopts +12 -0
  3. data/AUTHENTICATION.md +169 -0
  4. data/LICENSE.md +203 -0
  5. data/README.md +71 -0
  6. data/lib/google-cloud-monitoring-v3.rb +21 -0
  7. data/lib/google/cloud/monitoring/v3.rb +40 -0
  8. data/lib/google/cloud/monitoring/v3/alert_policy_service.rb +57 -0
  9. data/lib/google/cloud/monitoring/v3/alert_policy_service/client.rb +772 -0
  10. data/lib/google/cloud/monitoring/v3/alert_policy_service/credentials.rb +53 -0
  11. data/lib/google/cloud/monitoring/v3/alert_policy_service/paths.rb +185 -0
  12. data/lib/google/cloud/monitoring/v3/group_service.rb +60 -0
  13. data/lib/google/cloud/monitoring/v3/group_service/client.rb +862 -0
  14. data/lib/google/cloud/monitoring/v3/group_service/credentials.rb +53 -0
  15. data/lib/google/cloud/monitoring/v3/group_service/paths.rb +127 -0
  16. data/lib/google/cloud/monitoring/v3/metric_service.rb +50 -0
  17. data/lib/google/cloud/monitoring/v3/metric_service/client.rb +1040 -0
  18. data/lib/google/cloud/monitoring/v3/metric_service/credentials.rb +54 -0
  19. data/lib/google/cloud/monitoring/v3/metric_service/paths.rb +179 -0
  20. data/lib/google/cloud/monitoring/v3/notification_channel_service.rb +50 -0
  21. data/lib/google/cloud/monitoring/v3/notification_channel_service/client.rb +1213 -0
  22. data/lib/google/cloud/monitoring/v3/notification_channel_service/credentials.rb +53 -0
  23. data/lib/google/cloud/monitoring/v3/notification_channel_service/paths.rb +179 -0
  24. data/lib/google/cloud/monitoring/v3/service_monitoring_service.rb +52 -0
  25. data/lib/google/cloud/monitoring/v3/service_monitoring_service/client.rb +1168 -0
  26. data/lib/google/cloud/monitoring/v3/service_monitoring_service/credentials.rb +53 -0
  27. data/lib/google/cloud/monitoring/v3/service_monitoring_service/paths.rb +185 -0
  28. data/lib/google/cloud/monitoring/v3/uptime_check_service.rb +56 -0
  29. data/lib/google/cloud/monitoring/v3/uptime_check_service/client.rb +822 -0
  30. data/lib/google/cloud/monitoring/v3/uptime_check_service/credentials.rb +53 -0
  31. data/lib/google/cloud/monitoring/v3/uptime_check_service/paths.rb +127 -0
  32. data/lib/google/cloud/monitoring/v3/version.rb +28 -0
  33. data/lib/google/monitoring/v3/alert_pb.rb +84 -0
  34. data/lib/google/monitoring/v3/alert_service_pb.rb +56 -0
  35. data/lib/google/monitoring/v3/alert_service_services_pb.rb +64 -0
  36. data/lib/google/monitoring/v3/common_pb.rb +98 -0
  37. data/lib/google/monitoring/v3/dropped_labels_pb.rb +22 -0
  38. data/lib/google/monitoring/v3/group_pb.rb +27 -0
  39. data/lib/google/monitoring/v3/group_service_pb.rb +76 -0
  40. data/lib/google/monitoring/v3/group_service_services_pb.rb +67 -0
  41. data/lib/google/monitoring/v3/metric_pb.rb +85 -0
  42. data/lib/google/monitoring/v3/metric_service_pb.rb +133 -0
  43. data/lib/google/monitoring/v3/metric_service_services_pb.rb +67 -0
  44. data/lib/google/monitoring/v3/mutation_record_pb.rb +24 -0
  45. data/lib/google/monitoring/v3/notification_pb.rb +50 -0
  46. data/lib/google/monitoring/v3/notification_service_pb.rb +93 -0
  47. data/lib/google/monitoring/v3/notification_service_services_pb.rb +95 -0
  48. data/lib/google/monitoring/v3/service_pb.rb +152 -0
  49. data/lib/google/monitoring/v3/service_service_pb.rb +89 -0
  50. data/lib/google/monitoring/v3/service_service_services_pb.rb +66 -0
  51. data/lib/google/monitoring/v3/span_context_pb.rb +22 -0
  52. data/lib/google/monitoring/v3/uptime_pb.rb +126 -0
  53. data/lib/google/monitoring/v3/uptime_service_pb.rb +66 -0
  54. data/lib/google/monitoring/v3/uptime_service_services_pb.rb +68 -0
  55. data/proto_docs/README.md +4 -0
  56. data/proto_docs/google/api/distribution.rb +225 -0
  57. data/proto_docs/google/api/field_behavior.rb +59 -0
  58. data/proto_docs/google/api/label.rb +49 -0
  59. data/proto_docs/google/api/launch_stage.rb +65 -0
  60. data/proto_docs/google/api/metric.rb +203 -0
  61. data/proto_docs/google/api/monitored_resource.rb +137 -0
  62. data/proto_docs/google/api/resource.rb +247 -0
  63. data/proto_docs/google/monitoring/v3/alert.rb +359 -0
  64. data/proto_docs/google/monitoring/v3/alert_service.rb +162 -0
  65. data/proto_docs/google/monitoring/v3/common.rb +464 -0
  66. data/proto_docs/google/monitoring/v3/dropped_labels.rb +58 -0
  67. data/proto_docs/google/monitoring/v3/group.rb +84 -0
  68. data/proto_docs/google/monitoring/v3/group_service.rb +197 -0
  69. data/proto_docs/google/monitoring/v3/metric.rb +249 -0
  70. data/proto_docs/google/monitoring/v3/metric_service.rb +366 -0
  71. data/proto_docs/google/monitoring/v3/mutation_record.rb +38 -0
  72. data/proto_docs/google/monitoring/v3/notification.rb +186 -0
  73. data/proto_docs/google/monitoring/v3/notification_service.rb +266 -0
  74. data/proto_docs/google/monitoring/v3/service.rb +424 -0
  75. data/proto_docs/google/monitoring/v3/service_service.rb +239 -0
  76. data/proto_docs/google/monitoring/v3/span_context.rb +49 -0
  77. data/proto_docs/google/monitoring/v3/uptime.rb +403 -0
  78. data/proto_docs/google/monitoring/v3/uptime_service.rb +166 -0
  79. data/proto_docs/google/protobuf/any.rb +138 -0
  80. data/proto_docs/google/protobuf/duration.rb +98 -0
  81. data/proto_docs/google/protobuf/empty.rb +36 -0
  82. data/proto_docs/google/protobuf/field_mask.rb +229 -0
  83. data/proto_docs/google/protobuf/struct.rb +96 -0
  84. data/proto_docs/google/protobuf/timestamp.rb +120 -0
  85. data/proto_docs/google/protobuf/wrappers.rb +121 -0
  86. data/proto_docs/google/rpc/status.rb +46 -0
  87. data/proto_docs/google/type/calendar_period.rb +55 -0
  88. metadata +269 -0
@@ -0,0 +1,24 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/monitoring/v3/mutation_record.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/protobuf/timestamp_pb'
7
+ Google::Protobuf::DescriptorPool.generated_pool.build do
8
+ add_file("google/monitoring/v3/mutation_record.proto", :syntax => :proto3) do
9
+ add_message "google.monitoring.v3.MutationRecord" do
10
+ optional :mutate_time, :message, 1, "google.protobuf.Timestamp"
11
+ optional :mutated_by, :string, 2
12
+ end
13
+ end
14
+ end
15
+
16
+ module Google
17
+ module Cloud
18
+ module Monitoring
19
+ module V3
20
+ MutationRecord = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.MutationRecord").msgclass
21
+ end
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,50 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/monitoring/v3/notification.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/api/label_pb'
7
+ require 'google/api/launch_stage_pb'
8
+ require 'google/api/resource_pb'
9
+ require 'google/monitoring/v3/common_pb'
10
+ require 'google/protobuf/wrappers_pb'
11
+ Google::Protobuf::DescriptorPool.generated_pool.build do
12
+ add_file("google/monitoring/v3/notification.proto", :syntax => :proto3) do
13
+ add_message "google.monitoring.v3.NotificationChannelDescriptor" do
14
+ optional :name, :string, 6
15
+ optional :type, :string, 1
16
+ optional :display_name, :string, 2
17
+ optional :description, :string, 3
18
+ repeated :labels, :message, 4, "google.api.LabelDescriptor"
19
+ repeated :supported_tiers, :enum, 5, "google.monitoring.v3.ServiceTier"
20
+ optional :launch_stage, :enum, 7, "google.api.LaunchStage"
21
+ end
22
+ add_message "google.monitoring.v3.NotificationChannel" do
23
+ optional :type, :string, 1
24
+ optional :name, :string, 6
25
+ optional :display_name, :string, 3
26
+ optional :description, :string, 4
27
+ map :labels, :string, :string, 5
28
+ map :user_labels, :string, :string, 8
29
+ optional :verification_status, :enum, 9, "google.monitoring.v3.NotificationChannel.VerificationStatus"
30
+ optional :enabled, :message, 11, "google.protobuf.BoolValue"
31
+ end
32
+ add_enum "google.monitoring.v3.NotificationChannel.VerificationStatus" do
33
+ value :VERIFICATION_STATUS_UNSPECIFIED, 0
34
+ value :UNVERIFIED, 1
35
+ value :VERIFIED, 2
36
+ end
37
+ end
38
+ end
39
+
40
+ module Google
41
+ module Cloud
42
+ module Monitoring
43
+ module V3
44
+ NotificationChannelDescriptor = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.NotificationChannelDescriptor").msgclass
45
+ NotificationChannel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.NotificationChannel").msgclass
46
+ NotificationChannel::VerificationStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.NotificationChannel.VerificationStatus").enummodule
47
+ end
48
+ end
49
+ end
50
+ end
@@ -0,0 +1,93 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/monitoring/v3/notification_service.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/api/annotations_pb'
7
+ require 'google/api/client_pb'
8
+ require 'google/api/field_behavior_pb'
9
+ require 'google/api/resource_pb'
10
+ require 'google/monitoring/v3/notification_pb'
11
+ require 'google/protobuf/empty_pb'
12
+ require 'google/protobuf/field_mask_pb'
13
+ require 'google/protobuf/struct_pb'
14
+ require 'google/protobuf/timestamp_pb'
15
+ Google::Protobuf::DescriptorPool.generated_pool.build do
16
+ add_file("google/monitoring/v3/notification_service.proto", :syntax => :proto3) do
17
+ add_message "google.monitoring.v3.ListNotificationChannelDescriptorsRequest" do
18
+ optional :name, :string, 4
19
+ optional :page_size, :int32, 2
20
+ optional :page_token, :string, 3
21
+ end
22
+ add_message "google.monitoring.v3.ListNotificationChannelDescriptorsResponse" do
23
+ repeated :channel_descriptors, :message, 1, "google.monitoring.v3.NotificationChannelDescriptor"
24
+ optional :next_page_token, :string, 2
25
+ end
26
+ add_message "google.monitoring.v3.GetNotificationChannelDescriptorRequest" do
27
+ optional :name, :string, 3
28
+ end
29
+ add_message "google.monitoring.v3.CreateNotificationChannelRequest" do
30
+ optional :name, :string, 3
31
+ optional :notification_channel, :message, 2, "google.monitoring.v3.NotificationChannel"
32
+ end
33
+ add_message "google.monitoring.v3.ListNotificationChannelsRequest" do
34
+ optional :name, :string, 5
35
+ optional :filter, :string, 6
36
+ optional :order_by, :string, 7
37
+ optional :page_size, :int32, 3
38
+ optional :page_token, :string, 4
39
+ end
40
+ add_message "google.monitoring.v3.ListNotificationChannelsResponse" do
41
+ repeated :notification_channels, :message, 3, "google.monitoring.v3.NotificationChannel"
42
+ optional :next_page_token, :string, 2
43
+ end
44
+ add_message "google.monitoring.v3.GetNotificationChannelRequest" do
45
+ optional :name, :string, 3
46
+ end
47
+ add_message "google.monitoring.v3.UpdateNotificationChannelRequest" do
48
+ optional :update_mask, :message, 2, "google.protobuf.FieldMask"
49
+ optional :notification_channel, :message, 3, "google.monitoring.v3.NotificationChannel"
50
+ end
51
+ add_message "google.monitoring.v3.DeleteNotificationChannelRequest" do
52
+ optional :name, :string, 3
53
+ optional :force, :bool, 5
54
+ end
55
+ add_message "google.monitoring.v3.SendNotificationChannelVerificationCodeRequest" do
56
+ optional :name, :string, 1
57
+ end
58
+ add_message "google.monitoring.v3.GetNotificationChannelVerificationCodeRequest" do
59
+ optional :name, :string, 1
60
+ optional :expire_time, :message, 2, "google.protobuf.Timestamp"
61
+ end
62
+ add_message "google.monitoring.v3.GetNotificationChannelVerificationCodeResponse" do
63
+ optional :code, :string, 1
64
+ optional :expire_time, :message, 2, "google.protobuf.Timestamp"
65
+ end
66
+ add_message "google.monitoring.v3.VerifyNotificationChannelRequest" do
67
+ optional :name, :string, 1
68
+ optional :code, :string, 2
69
+ end
70
+ end
71
+ end
72
+
73
+ module Google
74
+ module Cloud
75
+ module Monitoring
76
+ module V3
77
+ ListNotificationChannelDescriptorsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.ListNotificationChannelDescriptorsRequest").msgclass
78
+ ListNotificationChannelDescriptorsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.ListNotificationChannelDescriptorsResponse").msgclass
79
+ GetNotificationChannelDescriptorRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.GetNotificationChannelDescriptorRequest").msgclass
80
+ CreateNotificationChannelRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.CreateNotificationChannelRequest").msgclass
81
+ ListNotificationChannelsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.ListNotificationChannelsRequest").msgclass
82
+ ListNotificationChannelsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.ListNotificationChannelsResponse").msgclass
83
+ GetNotificationChannelRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.GetNotificationChannelRequest").msgclass
84
+ UpdateNotificationChannelRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.UpdateNotificationChannelRequest").msgclass
85
+ DeleteNotificationChannelRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.DeleteNotificationChannelRequest").msgclass
86
+ SendNotificationChannelVerificationCodeRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.SendNotificationChannelVerificationCodeRequest").msgclass
87
+ GetNotificationChannelVerificationCodeRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.GetNotificationChannelVerificationCodeRequest").msgclass
88
+ GetNotificationChannelVerificationCodeResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.GetNotificationChannelVerificationCodeResponse").msgclass
89
+ VerifyNotificationChannelRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.VerifyNotificationChannelRequest").msgclass
90
+ end
91
+ end
92
+ end
93
+ end
@@ -0,0 +1,95 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: google/monitoring/v3/notification_service.proto for package 'Google.Cloud.Monitoring.V3'
3
+ # Original file comments:
4
+ # Copyright 2020 Google LLC
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+ #
18
+
19
+ require 'grpc'
20
+ require 'google/monitoring/v3/notification_service_pb'
21
+
22
+ module Google
23
+ module Cloud
24
+ module Monitoring
25
+ module V3
26
+ module NotificationChannelService
27
+ # The Notification Channel API provides access to configuration that
28
+ # controls how messages related to incidents are sent.
29
+ class Service
30
+
31
+ include GRPC::GenericService
32
+
33
+ self.marshal_class_method = :encode
34
+ self.unmarshal_class_method = :decode
35
+ self.service_name = 'google.monitoring.v3.NotificationChannelService'
36
+
37
+ # Lists the descriptors for supported channel types. The use of descriptors
38
+ # makes it possible for new channel types to be dynamically added.
39
+ rpc :ListNotificationChannelDescriptors, Google::Cloud::Monitoring::V3::ListNotificationChannelDescriptorsRequest, Google::Cloud::Monitoring::V3::ListNotificationChannelDescriptorsResponse
40
+ # Gets a single channel descriptor. The descriptor indicates which fields
41
+ # are expected / permitted for a notification channel of the given type.
42
+ rpc :GetNotificationChannelDescriptor, Google::Cloud::Monitoring::V3::GetNotificationChannelDescriptorRequest, Google::Cloud::Monitoring::V3::NotificationChannelDescriptor
43
+ # Lists the notification channels that have been created for the project.
44
+ rpc :ListNotificationChannels, Google::Cloud::Monitoring::V3::ListNotificationChannelsRequest, Google::Cloud::Monitoring::V3::ListNotificationChannelsResponse
45
+ # Gets a single notification channel. The channel includes the relevant
46
+ # configuration details with which the channel was created. However, the
47
+ # response may truncate or omit passwords, API keys, or other private key
48
+ # matter and thus the response may not be 100% identical to the information
49
+ # that was supplied in the call to the create method.
50
+ rpc :GetNotificationChannel, Google::Cloud::Monitoring::V3::GetNotificationChannelRequest, Google::Cloud::Monitoring::V3::NotificationChannel
51
+ # Creates a new notification channel, representing a single notification
52
+ # endpoint such as an email address, SMS number, or PagerDuty service.
53
+ rpc :CreateNotificationChannel, Google::Cloud::Monitoring::V3::CreateNotificationChannelRequest, Google::Cloud::Monitoring::V3::NotificationChannel
54
+ # Updates a notification channel. Fields not specified in the field mask
55
+ # remain unchanged.
56
+ rpc :UpdateNotificationChannel, Google::Cloud::Monitoring::V3::UpdateNotificationChannelRequest, Google::Cloud::Monitoring::V3::NotificationChannel
57
+ # Deletes a notification channel.
58
+ rpc :DeleteNotificationChannel, Google::Cloud::Monitoring::V3::DeleteNotificationChannelRequest, Google::Protobuf::Empty
59
+ # Causes a verification code to be delivered to the channel. The code
60
+ # can then be supplied in `VerifyNotificationChannel` to verify the channel.
61
+ rpc :SendNotificationChannelVerificationCode, Google::Cloud::Monitoring::V3::SendNotificationChannelVerificationCodeRequest, Google::Protobuf::Empty
62
+ # Requests a verification code for an already verified channel that can then
63
+ # be used in a call to VerifyNotificationChannel() on a different channel
64
+ # with an equivalent identity in the same or in a different project. This
65
+ # makes it possible to copy a channel between projects without requiring
66
+ # manual reverification of the channel. If the channel is not in the
67
+ # verified state, this method will fail (in other words, this may only be
68
+ # used if the SendNotificationChannelVerificationCode and
69
+ # VerifyNotificationChannel paths have already been used to put the given
70
+ # channel into the verified state).
71
+ #
72
+ # There is no guarantee that the verification codes returned by this method
73
+ # will be of a similar structure or form as the ones that are delivered
74
+ # to the channel via SendNotificationChannelVerificationCode; while
75
+ # VerifyNotificationChannel() will recognize both the codes delivered via
76
+ # SendNotificationChannelVerificationCode() and returned from
77
+ # GetNotificationChannelVerificationCode(), it is typically the case that
78
+ # the verification codes delivered via
79
+ # SendNotificationChannelVerificationCode() will be shorter and also
80
+ # have a shorter expiration (e.g. codes such as "G-123456") whereas
81
+ # GetVerificationCode() will typically return a much longer, websafe base
82
+ # 64 encoded string that has a longer expiration time.
83
+ rpc :GetNotificationChannelVerificationCode, Google::Cloud::Monitoring::V3::GetNotificationChannelVerificationCodeRequest, Google::Cloud::Monitoring::V3::GetNotificationChannelVerificationCodeResponse
84
+ # Verifies a `NotificationChannel` by proving receipt of the code
85
+ # delivered to the channel as a result of calling
86
+ # `SendNotificationChannelVerificationCode`.
87
+ rpc :VerifyNotificationChannel, Google::Cloud::Monitoring::V3::VerifyNotificationChannelRequest, Google::Cloud::Monitoring::V3::NotificationChannel
88
+ end
89
+
90
+ Stub = Service.rpc_stub_class
91
+ end
92
+ end
93
+ end
94
+ end
95
+ end
@@ -0,0 +1,152 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/monitoring/v3/service.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/api/monitored_resource_pb'
7
+ require 'google/api/resource_pb'
8
+ require 'google/protobuf/duration_pb'
9
+ require 'google/protobuf/timestamp_pb'
10
+ require 'google/type/calendar_period_pb'
11
+ Google::Protobuf::DescriptorPool.generated_pool.build do
12
+ add_file("google/monitoring/v3/service.proto", :syntax => :proto3) do
13
+ add_message "google.monitoring.v3.Service" do
14
+ optional :name, :string, 1
15
+ optional :display_name, :string, 2
16
+ optional :telemetry, :message, 13, "google.monitoring.v3.Service.Telemetry"
17
+ oneof :identifier do
18
+ optional :custom, :message, 6, "google.monitoring.v3.Service.Custom"
19
+ optional :app_engine, :message, 7, "google.monitoring.v3.Service.AppEngine"
20
+ optional :cloud_endpoints, :message, 8, "google.monitoring.v3.Service.CloudEndpoints"
21
+ optional :cluster_istio, :message, 9, "google.monitoring.v3.Service.ClusterIstio"
22
+ optional :mesh_istio, :message, 10, "google.monitoring.v3.Service.MeshIstio"
23
+ end
24
+ end
25
+ add_message "google.monitoring.v3.Service.Custom" do
26
+ end
27
+ add_message "google.monitoring.v3.Service.AppEngine" do
28
+ optional :module_id, :string, 1
29
+ end
30
+ add_message "google.monitoring.v3.Service.CloudEndpoints" do
31
+ optional :service, :string, 1
32
+ end
33
+ add_message "google.monitoring.v3.Service.ClusterIstio" do
34
+ optional :location, :string, 1
35
+ optional :cluster_name, :string, 2
36
+ optional :service_namespace, :string, 3
37
+ optional :service_name, :string, 4
38
+ end
39
+ add_message "google.monitoring.v3.Service.MeshIstio" do
40
+ optional :mesh_uid, :string, 1
41
+ optional :service_namespace, :string, 3
42
+ optional :service_name, :string, 4
43
+ end
44
+ add_message "google.monitoring.v3.Service.Telemetry" do
45
+ optional :resource_name, :string, 1
46
+ end
47
+ add_message "google.monitoring.v3.ServiceLevelObjective" do
48
+ optional :name, :string, 1
49
+ optional :display_name, :string, 11
50
+ optional :service_level_indicator, :message, 3, "google.monitoring.v3.ServiceLevelIndicator"
51
+ optional :goal, :double, 4
52
+ oneof :period do
53
+ optional :rolling_period, :message, 5, "google.protobuf.Duration"
54
+ optional :calendar_period, :enum, 6, "google.type.CalendarPeriod"
55
+ end
56
+ end
57
+ add_enum "google.monitoring.v3.ServiceLevelObjective.View" do
58
+ value :VIEW_UNSPECIFIED, 0
59
+ value :FULL, 2
60
+ value :EXPLICIT, 1
61
+ end
62
+ add_message "google.monitoring.v3.ServiceLevelIndicator" do
63
+ oneof :type do
64
+ optional :basic_sli, :message, 4, "google.monitoring.v3.BasicSli"
65
+ optional :request_based, :message, 1, "google.monitoring.v3.RequestBasedSli"
66
+ optional :windows_based, :message, 2, "google.monitoring.v3.WindowsBasedSli"
67
+ end
68
+ end
69
+ add_message "google.monitoring.v3.BasicSli" do
70
+ repeated :method, :string, 7
71
+ repeated :location, :string, 8
72
+ repeated :version, :string, 9
73
+ oneof :sli_criteria do
74
+ optional :availability, :message, 2, "google.monitoring.v3.BasicSli.AvailabilityCriteria"
75
+ optional :latency, :message, 3, "google.monitoring.v3.BasicSli.LatencyCriteria"
76
+ end
77
+ end
78
+ add_message "google.monitoring.v3.BasicSli.AvailabilityCriteria" do
79
+ end
80
+ add_message "google.monitoring.v3.BasicSli.LatencyCriteria" do
81
+ optional :threshold, :message, 3, "google.protobuf.Duration"
82
+ end
83
+ add_message "google.monitoring.v3.Range" do
84
+ optional :min, :double, 1
85
+ optional :max, :double, 2
86
+ end
87
+ add_message "google.monitoring.v3.RequestBasedSli" do
88
+ oneof :method do
89
+ optional :good_total_ratio, :message, 1, "google.monitoring.v3.TimeSeriesRatio"
90
+ optional :distribution_cut, :message, 3, "google.monitoring.v3.DistributionCut"
91
+ end
92
+ end
93
+ add_message "google.monitoring.v3.TimeSeriesRatio" do
94
+ optional :good_service_filter, :string, 4
95
+ optional :bad_service_filter, :string, 5
96
+ optional :total_service_filter, :string, 6
97
+ end
98
+ add_message "google.monitoring.v3.DistributionCut" do
99
+ optional :distribution_filter, :string, 4
100
+ optional :range, :message, 5, "google.monitoring.v3.Range"
101
+ end
102
+ add_message "google.monitoring.v3.WindowsBasedSli" do
103
+ optional :window_period, :message, 4, "google.protobuf.Duration"
104
+ oneof :window_criterion do
105
+ optional :good_bad_metric_filter, :string, 5
106
+ optional :good_total_ratio_threshold, :message, 2, "google.monitoring.v3.WindowsBasedSli.PerformanceThreshold"
107
+ optional :metric_mean_in_range, :message, 6, "google.monitoring.v3.WindowsBasedSli.MetricRange"
108
+ optional :metric_sum_in_range, :message, 7, "google.monitoring.v3.WindowsBasedSli.MetricRange"
109
+ end
110
+ end
111
+ add_message "google.monitoring.v3.WindowsBasedSli.PerformanceThreshold" do
112
+ optional :threshold, :double, 2
113
+ oneof :type do
114
+ optional :performance, :message, 1, "google.monitoring.v3.RequestBasedSli"
115
+ optional :basic_sli_performance, :message, 3, "google.monitoring.v3.BasicSli"
116
+ end
117
+ end
118
+ add_message "google.monitoring.v3.WindowsBasedSli.MetricRange" do
119
+ optional :time_series, :string, 1
120
+ optional :range, :message, 4, "google.monitoring.v3.Range"
121
+ end
122
+ end
123
+ end
124
+
125
+ module Google
126
+ module Cloud
127
+ module Monitoring
128
+ module V3
129
+ Service = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.Service").msgclass
130
+ Service::Custom = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.Service.Custom").msgclass
131
+ Service::AppEngine = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.Service.AppEngine").msgclass
132
+ Service::CloudEndpoints = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.Service.CloudEndpoints").msgclass
133
+ Service::ClusterIstio = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.Service.ClusterIstio").msgclass
134
+ Service::MeshIstio = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.Service.MeshIstio").msgclass
135
+ Service::Telemetry = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.Service.Telemetry").msgclass
136
+ ServiceLevelObjective = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.ServiceLevelObjective").msgclass
137
+ ServiceLevelObjective::View = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.ServiceLevelObjective.View").enummodule
138
+ ServiceLevelIndicator = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.ServiceLevelIndicator").msgclass
139
+ BasicSli = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.BasicSli").msgclass
140
+ BasicSli::AvailabilityCriteria = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.BasicSli.AvailabilityCriteria").msgclass
141
+ BasicSli::LatencyCriteria = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.BasicSli.LatencyCriteria").msgclass
142
+ Range = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.Range").msgclass
143
+ RequestBasedSli = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.RequestBasedSli").msgclass
144
+ TimeSeriesRatio = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.TimeSeriesRatio").msgclass
145
+ DistributionCut = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.DistributionCut").msgclass
146
+ WindowsBasedSli = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.WindowsBasedSli").msgclass
147
+ WindowsBasedSli::PerformanceThreshold = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.WindowsBasedSli.PerformanceThreshold").msgclass
148
+ WindowsBasedSli::MetricRange = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.WindowsBasedSli.MetricRange").msgclass
149
+ end
150
+ end
151
+ end
152
+ end
@@ -0,0 +1,89 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/monitoring/v3/service_service.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/api/annotations_pb'
7
+ require 'google/api/client_pb'
8
+ require 'google/api/field_behavior_pb'
9
+ require 'google/api/resource_pb'
10
+ require 'google/monitoring/v3/service_pb'
11
+ require 'google/protobuf/empty_pb'
12
+ require 'google/protobuf/field_mask_pb'
13
+ Google::Protobuf::DescriptorPool.generated_pool.build do
14
+ add_file("google/monitoring/v3/service_service.proto", :syntax => :proto3) do
15
+ add_message "google.monitoring.v3.CreateServiceRequest" do
16
+ optional :parent, :string, 1
17
+ optional :service_id, :string, 3
18
+ optional :service, :message, 2, "google.monitoring.v3.Service"
19
+ end
20
+ add_message "google.monitoring.v3.GetServiceRequest" do
21
+ optional :name, :string, 1
22
+ end
23
+ add_message "google.monitoring.v3.ListServicesRequest" do
24
+ optional :parent, :string, 1
25
+ optional :filter, :string, 2
26
+ optional :page_size, :int32, 3
27
+ optional :page_token, :string, 4
28
+ end
29
+ add_message "google.monitoring.v3.ListServicesResponse" do
30
+ repeated :services, :message, 1, "google.monitoring.v3.Service"
31
+ optional :next_page_token, :string, 2
32
+ end
33
+ add_message "google.monitoring.v3.UpdateServiceRequest" do
34
+ optional :service, :message, 1, "google.monitoring.v3.Service"
35
+ optional :update_mask, :message, 2, "google.protobuf.FieldMask"
36
+ end
37
+ add_message "google.monitoring.v3.DeleteServiceRequest" do
38
+ optional :name, :string, 1
39
+ end
40
+ add_message "google.monitoring.v3.CreateServiceLevelObjectiveRequest" do
41
+ optional :parent, :string, 1
42
+ optional :service_level_objective_id, :string, 3
43
+ optional :service_level_objective, :message, 2, "google.monitoring.v3.ServiceLevelObjective"
44
+ end
45
+ add_message "google.monitoring.v3.GetServiceLevelObjectiveRequest" do
46
+ optional :name, :string, 1
47
+ optional :view, :enum, 2, "google.monitoring.v3.ServiceLevelObjective.View"
48
+ end
49
+ add_message "google.monitoring.v3.ListServiceLevelObjectivesRequest" do
50
+ optional :parent, :string, 1
51
+ optional :filter, :string, 2
52
+ optional :page_size, :int32, 3
53
+ optional :page_token, :string, 4
54
+ optional :view, :enum, 5, "google.monitoring.v3.ServiceLevelObjective.View"
55
+ end
56
+ add_message "google.monitoring.v3.ListServiceLevelObjectivesResponse" do
57
+ repeated :service_level_objectives, :message, 1, "google.monitoring.v3.ServiceLevelObjective"
58
+ optional :next_page_token, :string, 2
59
+ end
60
+ add_message "google.monitoring.v3.UpdateServiceLevelObjectiveRequest" do
61
+ optional :service_level_objective, :message, 1, "google.monitoring.v3.ServiceLevelObjective"
62
+ optional :update_mask, :message, 2, "google.protobuf.FieldMask"
63
+ end
64
+ add_message "google.monitoring.v3.DeleteServiceLevelObjectiveRequest" do
65
+ optional :name, :string, 1
66
+ end
67
+ end
68
+ end
69
+
70
+ module Google
71
+ module Cloud
72
+ module Monitoring
73
+ module V3
74
+ CreateServiceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.CreateServiceRequest").msgclass
75
+ GetServiceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.GetServiceRequest").msgclass
76
+ ListServicesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.ListServicesRequest").msgclass
77
+ ListServicesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.ListServicesResponse").msgclass
78
+ UpdateServiceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.UpdateServiceRequest").msgclass
79
+ DeleteServiceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.DeleteServiceRequest").msgclass
80
+ CreateServiceLevelObjectiveRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.CreateServiceLevelObjectiveRequest").msgclass
81
+ GetServiceLevelObjectiveRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.GetServiceLevelObjectiveRequest").msgclass
82
+ ListServiceLevelObjectivesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.ListServiceLevelObjectivesRequest").msgclass
83
+ ListServiceLevelObjectivesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.ListServiceLevelObjectivesResponse").msgclass
84
+ UpdateServiceLevelObjectiveRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.UpdateServiceLevelObjectiveRequest").msgclass
85
+ DeleteServiceLevelObjectiveRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.DeleteServiceLevelObjectiveRequest").msgclass
86
+ end
87
+ end
88
+ end
89
+ end