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,66 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: google/monitoring/v3/service_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/service_service_pb'
21
+
22
+ module Google
23
+ module Cloud
24
+ module Monitoring
25
+ module V3
26
+ module ServiceMonitoringService
27
+ # The Cloud Monitoring Service-Oriented Monitoring API has endpoints for
28
+ # managing and querying aspects of a workspace's services. These include the
29
+ # `Service`'s monitored resources, its Service-Level Objectives, and a taxonomy
30
+ # of categorized Health Metrics.
31
+ class Service
32
+
33
+ include GRPC::GenericService
34
+
35
+ self.marshal_class_method = :encode
36
+ self.unmarshal_class_method = :decode
37
+ self.service_name = 'google.monitoring.v3.ServiceMonitoringService'
38
+
39
+ # Create a `Service`.
40
+ rpc :CreateService, Google::Cloud::Monitoring::V3::CreateServiceRequest, Google::Cloud::Monitoring::V3::Service
41
+ # Get the named `Service`.
42
+ rpc :GetService, Google::Cloud::Monitoring::V3::GetServiceRequest, Google::Cloud::Monitoring::V3::Service
43
+ # List `Service`s for this workspace.
44
+ rpc :ListServices, Google::Cloud::Monitoring::V3::ListServicesRequest, Google::Cloud::Monitoring::V3::ListServicesResponse
45
+ # Update this `Service`.
46
+ rpc :UpdateService, Google::Cloud::Monitoring::V3::UpdateServiceRequest, Google::Cloud::Monitoring::V3::Service
47
+ # Soft delete this `Service`.
48
+ rpc :DeleteService, Google::Cloud::Monitoring::V3::DeleteServiceRequest, Google::Protobuf::Empty
49
+ # Create a `ServiceLevelObjective` for the given `Service`.
50
+ rpc :CreateServiceLevelObjective, Google::Cloud::Monitoring::V3::CreateServiceLevelObjectiveRequest, Google::Cloud::Monitoring::V3::ServiceLevelObjective
51
+ # Get a `ServiceLevelObjective` by name.
52
+ rpc :GetServiceLevelObjective, Google::Cloud::Monitoring::V3::GetServiceLevelObjectiveRequest, Google::Cloud::Monitoring::V3::ServiceLevelObjective
53
+ # List the `ServiceLevelObjective`s for the given `Service`.
54
+ rpc :ListServiceLevelObjectives, Google::Cloud::Monitoring::V3::ListServiceLevelObjectivesRequest, Google::Cloud::Monitoring::V3::ListServiceLevelObjectivesResponse
55
+ # Update the given `ServiceLevelObjective`.
56
+ rpc :UpdateServiceLevelObjective, Google::Cloud::Monitoring::V3::UpdateServiceLevelObjectiveRequest, Google::Cloud::Monitoring::V3::ServiceLevelObjective
57
+ # Delete the given `ServiceLevelObjective`.
58
+ rpc :DeleteServiceLevelObjective, Google::Cloud::Monitoring::V3::DeleteServiceLevelObjectiveRequest, Google::Protobuf::Empty
59
+ end
60
+
61
+ Stub = Service.rpc_stub_class
62
+ end
63
+ end
64
+ end
65
+ end
66
+ end
@@ -0,0 +1,22 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/monitoring/v3/span_context.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ Google::Protobuf::DescriptorPool.generated_pool.build do
7
+ add_file("google/monitoring/v3/span_context.proto", :syntax => :proto3) do
8
+ add_message "google.monitoring.v3.SpanContext" do
9
+ optional :span_name, :string, 1
10
+ end
11
+ end
12
+ end
13
+
14
+ module Google
15
+ module Cloud
16
+ module Monitoring
17
+ module V3
18
+ SpanContext = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.SpanContext").msgclass
19
+ end
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,126 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/monitoring/v3/uptime.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
+ Google::Protobuf::DescriptorPool.generated_pool.build do
10
+ add_file("google/monitoring/v3/uptime.proto", :syntax => :proto3) do
11
+ add_message "google.monitoring.v3.InternalChecker" do
12
+ optional :name, :string, 1
13
+ optional :display_name, :string, 2
14
+ optional :network, :string, 3
15
+ optional :gcp_zone, :string, 4
16
+ optional :peer_project_id, :string, 6
17
+ optional :state, :enum, 7, "google.monitoring.v3.InternalChecker.State"
18
+ end
19
+ add_enum "google.monitoring.v3.InternalChecker.State" do
20
+ value :UNSPECIFIED, 0
21
+ value :CREATING, 1
22
+ value :RUNNING, 2
23
+ end
24
+ add_message "google.monitoring.v3.UptimeCheckConfig" do
25
+ optional :name, :string, 1
26
+ optional :display_name, :string, 2
27
+ optional :period, :message, 7, "google.protobuf.Duration"
28
+ optional :timeout, :message, 8, "google.protobuf.Duration"
29
+ repeated :content_matchers, :message, 9, "google.monitoring.v3.UptimeCheckConfig.ContentMatcher"
30
+ repeated :selected_regions, :enum, 10, "google.monitoring.v3.UptimeCheckRegion"
31
+ optional :is_internal, :bool, 15
32
+ repeated :internal_checkers, :message, 14, "google.monitoring.v3.InternalChecker"
33
+ oneof :resource do
34
+ optional :monitored_resource, :message, 3, "google.api.MonitoredResource"
35
+ optional :resource_group, :message, 4, "google.monitoring.v3.UptimeCheckConfig.ResourceGroup"
36
+ end
37
+ oneof :check_request_type do
38
+ optional :http_check, :message, 5, "google.monitoring.v3.UptimeCheckConfig.HttpCheck"
39
+ optional :tcp_check, :message, 6, "google.monitoring.v3.UptimeCheckConfig.TcpCheck"
40
+ end
41
+ end
42
+ add_message "google.monitoring.v3.UptimeCheckConfig.ResourceGroup" do
43
+ optional :group_id, :string, 1
44
+ optional :resource_type, :enum, 2, "google.monitoring.v3.GroupResourceType"
45
+ end
46
+ add_message "google.monitoring.v3.UptimeCheckConfig.HttpCheck" do
47
+ optional :request_method, :enum, 8, "google.monitoring.v3.UptimeCheckConfig.HttpCheck.RequestMethod"
48
+ optional :use_ssl, :bool, 1
49
+ optional :path, :string, 2
50
+ optional :port, :int32, 3
51
+ optional :auth_info, :message, 4, "google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication"
52
+ optional :mask_headers, :bool, 5
53
+ map :headers, :string, :string, 6
54
+ optional :content_type, :enum, 9, "google.monitoring.v3.UptimeCheckConfig.HttpCheck.ContentType"
55
+ optional :validate_ssl, :bool, 7
56
+ optional :body, :bytes, 10
57
+ end
58
+ add_message "google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication" do
59
+ optional :username, :string, 1
60
+ optional :password, :string, 2
61
+ end
62
+ add_enum "google.monitoring.v3.UptimeCheckConfig.HttpCheck.RequestMethod" do
63
+ value :METHOD_UNSPECIFIED, 0
64
+ value :GET, 1
65
+ value :POST, 2
66
+ end
67
+ add_enum "google.monitoring.v3.UptimeCheckConfig.HttpCheck.ContentType" do
68
+ value :TYPE_UNSPECIFIED, 0
69
+ value :URL_ENCODED, 1
70
+ end
71
+ add_message "google.monitoring.v3.UptimeCheckConfig.TcpCheck" do
72
+ optional :port, :int32, 1
73
+ end
74
+ add_message "google.monitoring.v3.UptimeCheckConfig.ContentMatcher" do
75
+ optional :content, :string, 1
76
+ optional :matcher, :enum, 2, "google.monitoring.v3.UptimeCheckConfig.ContentMatcher.ContentMatcherOption"
77
+ end
78
+ add_enum "google.monitoring.v3.UptimeCheckConfig.ContentMatcher.ContentMatcherOption" do
79
+ value :CONTENT_MATCHER_OPTION_UNSPECIFIED, 0
80
+ value :CONTAINS_STRING, 1
81
+ value :NOT_CONTAINS_STRING, 2
82
+ value :MATCHES_REGEX, 3
83
+ value :NOT_MATCHES_REGEX, 4
84
+ end
85
+ add_message "google.monitoring.v3.UptimeCheckIp" do
86
+ optional :region, :enum, 1, "google.monitoring.v3.UptimeCheckRegion"
87
+ optional :location, :string, 2
88
+ optional :ip_address, :string, 3
89
+ end
90
+ add_enum "google.monitoring.v3.UptimeCheckRegion" do
91
+ value :REGION_UNSPECIFIED, 0
92
+ value :USA, 1
93
+ value :EUROPE, 2
94
+ value :SOUTH_AMERICA, 3
95
+ value :ASIA_PACIFIC, 4
96
+ end
97
+ add_enum "google.monitoring.v3.GroupResourceType" do
98
+ value :RESOURCE_TYPE_UNSPECIFIED, 0
99
+ value :INSTANCE, 1
100
+ value :AWS_ELB_LOAD_BALANCER, 2
101
+ end
102
+ end
103
+ end
104
+
105
+ module Google
106
+ module Cloud
107
+ module Monitoring
108
+ module V3
109
+ InternalChecker = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.InternalChecker").msgclass
110
+ InternalChecker::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.InternalChecker.State").enummodule
111
+ UptimeCheckConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.UptimeCheckConfig").msgclass
112
+ UptimeCheckConfig::ResourceGroup = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.UptimeCheckConfig.ResourceGroup").msgclass
113
+ UptimeCheckConfig::HttpCheck = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.UptimeCheckConfig.HttpCheck").msgclass
114
+ UptimeCheckConfig::HttpCheck::BasicAuthentication = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication").msgclass
115
+ UptimeCheckConfig::HttpCheck::RequestMethod = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.UptimeCheckConfig.HttpCheck.RequestMethod").enummodule
116
+ UptimeCheckConfig::HttpCheck::ContentType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.UptimeCheckConfig.HttpCheck.ContentType").enummodule
117
+ UptimeCheckConfig::TcpCheck = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.UptimeCheckConfig.TcpCheck").msgclass
118
+ UptimeCheckConfig::ContentMatcher = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.UptimeCheckConfig.ContentMatcher").msgclass
119
+ UptimeCheckConfig::ContentMatcher::ContentMatcherOption = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.UptimeCheckConfig.ContentMatcher.ContentMatcherOption").enummodule
120
+ UptimeCheckIp = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.UptimeCheckIp").msgclass
121
+ UptimeCheckRegion = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.UptimeCheckRegion").enummodule
122
+ GroupResourceType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.GroupResourceType").enummodule
123
+ end
124
+ end
125
+ end
126
+ end
@@ -0,0 +1,66 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/monitoring/v3/uptime_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/uptime_pb'
11
+ require 'google/protobuf/duration_pb'
12
+ require 'google/protobuf/empty_pb'
13
+ require 'google/protobuf/field_mask_pb'
14
+ Google::Protobuf::DescriptorPool.generated_pool.build do
15
+ add_file("google/monitoring/v3/uptime_service.proto", :syntax => :proto3) do
16
+ add_message "google.monitoring.v3.ListUptimeCheckConfigsRequest" do
17
+ optional :parent, :string, 1
18
+ optional :page_size, :int32, 3
19
+ optional :page_token, :string, 4
20
+ end
21
+ add_message "google.monitoring.v3.ListUptimeCheckConfigsResponse" do
22
+ repeated :uptime_check_configs, :message, 1, "google.monitoring.v3.UptimeCheckConfig"
23
+ optional :next_page_token, :string, 2
24
+ optional :total_size, :int32, 3
25
+ end
26
+ add_message "google.monitoring.v3.GetUptimeCheckConfigRequest" do
27
+ optional :name, :string, 1
28
+ end
29
+ add_message "google.monitoring.v3.CreateUptimeCheckConfigRequest" do
30
+ optional :parent, :string, 1
31
+ optional :uptime_check_config, :message, 2, "google.monitoring.v3.UptimeCheckConfig"
32
+ end
33
+ add_message "google.monitoring.v3.UpdateUptimeCheckConfigRequest" do
34
+ optional :update_mask, :message, 2, "google.protobuf.FieldMask"
35
+ optional :uptime_check_config, :message, 3, "google.monitoring.v3.UptimeCheckConfig"
36
+ end
37
+ add_message "google.monitoring.v3.DeleteUptimeCheckConfigRequest" do
38
+ optional :name, :string, 1
39
+ end
40
+ add_message "google.monitoring.v3.ListUptimeCheckIpsRequest" do
41
+ optional :page_size, :int32, 2
42
+ optional :page_token, :string, 3
43
+ end
44
+ add_message "google.monitoring.v3.ListUptimeCheckIpsResponse" do
45
+ repeated :uptime_check_ips, :message, 1, "google.monitoring.v3.UptimeCheckIp"
46
+ optional :next_page_token, :string, 2
47
+ end
48
+ end
49
+ end
50
+
51
+ module Google
52
+ module Cloud
53
+ module Monitoring
54
+ module V3
55
+ ListUptimeCheckConfigsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.ListUptimeCheckConfigsRequest").msgclass
56
+ ListUptimeCheckConfigsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.ListUptimeCheckConfigsResponse").msgclass
57
+ GetUptimeCheckConfigRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.GetUptimeCheckConfigRequest").msgclass
58
+ CreateUptimeCheckConfigRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.CreateUptimeCheckConfigRequest").msgclass
59
+ UpdateUptimeCheckConfigRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.UpdateUptimeCheckConfigRequest").msgclass
60
+ DeleteUptimeCheckConfigRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.DeleteUptimeCheckConfigRequest").msgclass
61
+ ListUptimeCheckIpsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.ListUptimeCheckIpsRequest").msgclass
62
+ ListUptimeCheckIpsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.ListUptimeCheckIpsResponse").msgclass
63
+ end
64
+ end
65
+ end
66
+ end
@@ -0,0 +1,68 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: google/monitoring/v3/uptime_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/uptime_service_pb'
21
+
22
+ module Google
23
+ module Cloud
24
+ module Monitoring
25
+ module V3
26
+ module UptimeCheckService
27
+ # The UptimeCheckService API is used to manage (list, create, delete, edit)
28
+ # Uptime check configurations in the Stackdriver Monitoring product. An Uptime
29
+ # check is a piece of configuration that determines which resources and
30
+ # services to monitor for availability. These configurations can also be
31
+ # configured interactively by navigating to the [Cloud Console]
32
+ # (http://console.cloud.google.com), selecting the appropriate project,
33
+ # clicking on "Monitoring" on the left-hand side to navigate to Stackdriver,
34
+ # and then clicking on "Uptime".
35
+ class Service
36
+
37
+ include GRPC::GenericService
38
+
39
+ self.marshal_class_method = :encode
40
+ self.unmarshal_class_method = :decode
41
+ self.service_name = 'google.monitoring.v3.UptimeCheckService'
42
+
43
+ # Lists the existing valid Uptime check configurations for the project
44
+ # (leaving out any invalid configurations).
45
+ rpc :ListUptimeCheckConfigs, Google::Cloud::Monitoring::V3::ListUptimeCheckConfigsRequest, Google::Cloud::Monitoring::V3::ListUptimeCheckConfigsResponse
46
+ # Gets a single Uptime check configuration.
47
+ rpc :GetUptimeCheckConfig, Google::Cloud::Monitoring::V3::GetUptimeCheckConfigRequest, Google::Cloud::Monitoring::V3::UptimeCheckConfig
48
+ # Creates a new Uptime check configuration.
49
+ rpc :CreateUptimeCheckConfig, Google::Cloud::Monitoring::V3::CreateUptimeCheckConfigRequest, Google::Cloud::Monitoring::V3::UptimeCheckConfig
50
+ # Updates an Uptime check configuration. You can either replace the entire
51
+ # configuration with a new one or replace only certain fields in the current
52
+ # configuration by specifying the fields to be updated via `updateMask`.
53
+ # Returns the updated configuration.
54
+ rpc :UpdateUptimeCheckConfig, Google::Cloud::Monitoring::V3::UpdateUptimeCheckConfigRequest, Google::Cloud::Monitoring::V3::UptimeCheckConfig
55
+ # Deletes an Uptime check configuration. Note that this method will fail
56
+ # if the Uptime check configuration is referenced by an alert policy or
57
+ # other dependent configs that would be rendered invalid by the deletion.
58
+ rpc :DeleteUptimeCheckConfig, Google::Cloud::Monitoring::V3::DeleteUptimeCheckConfigRequest, Google::Protobuf::Empty
59
+ # Returns the list of IP addresses that checkers run from
60
+ rpc :ListUptimeCheckIps, Google::Cloud::Monitoring::V3::ListUptimeCheckIpsRequest, Google::Cloud::Monitoring::V3::ListUptimeCheckIpsResponse
61
+ end
62
+
63
+ Stub = Service.rpc_stub_class
64
+ end
65
+ end
66
+ end
67
+ end
68
+ end
@@ -0,0 +1,4 @@
1
+ # Cloud Monitoring V3 Protocol Buffer Documentation
2
+
3
+ These files are for the YARD documentation of the generated protobuf files.
4
+ They are not intended to be required or loaded at runtime.
@@ -0,0 +1,225 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2020 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Api
22
+ # `Distribution` contains summary statistics for a population of values. It
23
+ # optionally contains a histogram representing the distribution of those values
24
+ # across a set of buckets.
25
+ #
26
+ # The summary statistics are the count, mean, sum of the squared deviation from
27
+ # the mean, the minimum, and the maximum of the set of population of values.
28
+ # The histogram is based on a sequence of buckets and gives a count of values
29
+ # that fall into each bucket. The boundaries of the buckets are given either
30
+ # explicitly or by formulas for buckets of fixed or exponentially increasing
31
+ # widths.
32
+ #
33
+ # Although it is not forbidden, it is generally a bad idea to include
34
+ # non-finite values (infinities or NaNs) in the population of values, as this
35
+ # will render the `mean` and `sum_of_squared_deviation` fields meaningless.
36
+ # @!attribute [rw] count
37
+ # @return [::Integer]
38
+ # The number of values in the population. Must be non-negative. This value
39
+ # must equal the sum of the values in `bucket_counts` if a histogram is
40
+ # provided.
41
+ # @!attribute [rw] mean
42
+ # @return [::Float]
43
+ # The arithmetic mean of the values in the population. If `count` is zero
44
+ # then this field must be zero.
45
+ # @!attribute [rw] sum_of_squared_deviation
46
+ # @return [::Float]
47
+ # The sum of squared deviations from the mean of the values in the
48
+ # population. For values x_i this is:
49
+ #
50
+ # Sum[i=1..n]((x_i - mean)^2)
51
+ #
52
+ # Knuth, "The Art of Computer Programming", Vol. 2, page 323, 3rd edition
53
+ # describes Welford's method for accumulating this sum in one pass.
54
+ #
55
+ # If `count` is zero then this field must be zero.
56
+ # @!attribute [rw] range
57
+ # @return [::Google::Api::Distribution::Range]
58
+ # If specified, contains the range of the population values. The field
59
+ # must not be present if the `count` is zero.
60
+ # @!attribute [rw] bucket_options
61
+ # @return [::Google::Api::Distribution::BucketOptions]
62
+ # Defines the histogram bucket boundaries. If the distribution does not
63
+ # contain a histogram, then omit this field.
64
+ # @!attribute [rw] bucket_counts
65
+ # @return [::Array<::Integer>]
66
+ # The number of values in each bucket of the histogram, as described in
67
+ # `bucket_options`. If the distribution does not have a histogram, then omit
68
+ # this field. If there is a histogram, then the sum of the values in
69
+ # `bucket_counts` must equal the value in the `count` field of the
70
+ # distribution.
71
+ #
72
+ # If present, `bucket_counts` should contain N values, where N is the number
73
+ # of buckets specified in `bucket_options`. If you supply fewer than N
74
+ # values, the remaining values are assumed to be 0.
75
+ #
76
+ # The order of the values in `bucket_counts` follows the bucket numbering
77
+ # schemes described for the three bucket types. The first value must be the
78
+ # count for the underflow bucket (number 0). The next N-2 values are the
79
+ # counts for the finite buckets (number 1 through N-2). The N'th value in
80
+ # `bucket_counts` is the count for the overflow bucket (number N-1).
81
+ # @!attribute [rw] exemplars
82
+ # @return [::Array<::Google::Api::Distribution::Exemplar>]
83
+ # Must be in increasing order of `value` field.
84
+ class Distribution
85
+ include ::Google::Protobuf::MessageExts
86
+ extend ::Google::Protobuf::MessageExts::ClassMethods
87
+
88
+ # The range of the population values.
89
+ # @!attribute [rw] min
90
+ # @return [::Float]
91
+ # The minimum of the population values.
92
+ # @!attribute [rw] max
93
+ # @return [::Float]
94
+ # The maximum of the population values.
95
+ class Range
96
+ include ::Google::Protobuf::MessageExts
97
+ extend ::Google::Protobuf::MessageExts::ClassMethods
98
+ end
99
+
100
+ # `BucketOptions` describes the bucket boundaries used to create a histogram
101
+ # for the distribution. The buckets can be in a linear sequence, an
102
+ # exponential sequence, or each bucket can be specified explicitly.
103
+ # `BucketOptions` does not include the number of values in each bucket.
104
+ #
105
+ # A bucket has an inclusive lower bound and exclusive upper bound for the
106
+ # values that are counted for that bucket. The upper bound of a bucket must
107
+ # be strictly greater than the lower bound. The sequence of N buckets for a
108
+ # distribution consists of an underflow bucket (number 0), zero or more
109
+ # finite buckets (number 1 through N - 2) and an overflow bucket (number N -
110
+ # 1). The buckets are contiguous: the lower bound of bucket i (i > 0) is the
111
+ # same as the upper bound of bucket i - 1. The buckets span the whole range
112
+ # of finite values: lower bound of the underflow bucket is -infinity and the
113
+ # upper bound of the overflow bucket is +infinity. The finite buckets are
114
+ # so-called because both bounds are finite.
115
+ # @!attribute [rw] linear_buckets
116
+ # @return [::Google::Api::Distribution::BucketOptions::Linear]
117
+ # The linear bucket.
118
+ # @!attribute [rw] exponential_buckets
119
+ # @return [::Google::Api::Distribution::BucketOptions::Exponential]
120
+ # The exponential buckets.
121
+ # @!attribute [rw] explicit_buckets
122
+ # @return [::Google::Api::Distribution::BucketOptions::Explicit]
123
+ # The explicit buckets.
124
+ class BucketOptions
125
+ include ::Google::Protobuf::MessageExts
126
+ extend ::Google::Protobuf::MessageExts::ClassMethods
127
+
128
+ # Specifies a linear sequence of buckets that all have the same width
129
+ # (except overflow and underflow). Each bucket represents a constant
130
+ # absolute uncertainty on the specific value in the bucket.
131
+ #
132
+ # There are `num_finite_buckets + 2` (= N) buckets. Bucket `i` has the
133
+ # following boundaries:
134
+ #
135
+ # Upper bound (0 <= i < N-1): offset + (width * i).
136
+ # Lower bound (1 <= i < N): offset + (width * (i - 1)).
137
+ # @!attribute [rw] num_finite_buckets
138
+ # @return [::Integer]
139
+ # Must be greater than 0.
140
+ # @!attribute [rw] width
141
+ # @return [::Float]
142
+ # Must be greater than 0.
143
+ # @!attribute [rw] offset
144
+ # @return [::Float]
145
+ # Lower bound of the first bucket.
146
+ class Linear
147
+ include ::Google::Protobuf::MessageExts
148
+ extend ::Google::Protobuf::MessageExts::ClassMethods
149
+ end
150
+
151
+ # Specifies an exponential sequence of buckets that have a width that is
152
+ # proportional to the value of the lower bound. Each bucket represents a
153
+ # constant relative uncertainty on a specific value in the bucket.
154
+ #
155
+ # There are `num_finite_buckets + 2` (= N) buckets. Bucket `i` has the
156
+ # following boundaries:
157
+ #
158
+ # Upper bound (0 <= i < N-1): scale * (growth_factor ^ i).
159
+ # Lower bound (1 <= i < N): scale * (growth_factor ^ (i - 1)).
160
+ # @!attribute [rw] num_finite_buckets
161
+ # @return [::Integer]
162
+ # Must be greater than 0.
163
+ # @!attribute [rw] growth_factor
164
+ # @return [::Float]
165
+ # Must be greater than 1.
166
+ # @!attribute [rw] scale
167
+ # @return [::Float]
168
+ # Must be greater than 0.
169
+ class Exponential
170
+ include ::Google::Protobuf::MessageExts
171
+ extend ::Google::Protobuf::MessageExts::ClassMethods
172
+ end
173
+
174
+ # Specifies a set of buckets with arbitrary widths.
175
+ #
176
+ # There are `size(bounds) + 1` (= N) buckets. Bucket `i` has the following
177
+ # boundaries:
178
+ #
179
+ # Upper bound (0 <= i < N-1): bounds[i]
180
+ # Lower bound (1 <= i < N); bounds[i - 1]
181
+ #
182
+ # The `bounds` field must contain at least one element. If `bounds` has
183
+ # only one element, then there are no finite buckets, and that single
184
+ # element is the common boundary of the overflow and underflow buckets.
185
+ # @!attribute [rw] bounds
186
+ # @return [::Array<::Float>]
187
+ # The values must be monotonically increasing.
188
+ class Explicit
189
+ include ::Google::Protobuf::MessageExts
190
+ extend ::Google::Protobuf::MessageExts::ClassMethods
191
+ end
192
+ end
193
+
194
+ # Exemplars are example points that may be used to annotate aggregated
195
+ # distribution values. They are metadata that gives information about a
196
+ # particular value added to a Distribution bucket, such as a trace ID that
197
+ # was active when a value was added. They may contain further information,
198
+ # such as a example values and timestamps, origin, etc.
199
+ # @!attribute [rw] value
200
+ # @return [::Float]
201
+ # Value of the exemplar point. This value determines to which bucket the
202
+ # exemplar belongs.
203
+ # @!attribute [rw] timestamp
204
+ # @return [::Google::Protobuf::Timestamp]
205
+ # The observation (sampling) time of the above value.
206
+ # @!attribute [rw] attachments
207
+ # @return [::Array<::Google::Protobuf::Any>]
208
+ # Contextual information about the example value. Examples are:
209
+ #
210
+ # Trace ID: type.googleapis.com/google.devtools.cloudtrace.v1.Trace
211
+ #
212
+ # Literal string: type.googleapis.com/google.protobuf.StringValue
213
+ #
214
+ # Labels dropped during aggregation:
215
+ # type.googleapis.com/google.monitoring.v3.DroppedLabels
216
+ #
217
+ # There may be only a single attachment of any given message type in a
218
+ # single exemplar, and this is enforced by the system.
219
+ class Exemplar
220
+ include ::Google::Protobuf::MessageExts
221
+ extend ::Google::Protobuf::MessageExts::ClassMethods
222
+ end
223
+ end
224
+ end
225
+ end