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,22 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/monitoring/v3/dropped_labels.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ Google::Protobuf::DescriptorPool.generated_pool.build do
7
+ add_file("google/monitoring/v3/dropped_labels.proto", :syntax => :proto3) do
8
+ add_message "google.monitoring.v3.DroppedLabels" do
9
+ map :label, :string, :string, 1
10
+ end
11
+ end
12
+ end
13
+
14
+ module Google
15
+ module Cloud
16
+ module Monitoring
17
+ module V3
18
+ DroppedLabels = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.DroppedLabels").msgclass
19
+ end
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,27 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/monitoring/v3/group.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/api/resource_pb'
7
+ Google::Protobuf::DescriptorPool.generated_pool.build do
8
+ add_file("google/monitoring/v3/group.proto", :syntax => :proto3) do
9
+ add_message "google.monitoring.v3.Group" do
10
+ optional :name, :string, 1
11
+ optional :display_name, :string, 2
12
+ optional :parent_name, :string, 3
13
+ optional :filter, :string, 5
14
+ optional :is_cluster, :bool, 6
15
+ end
16
+ end
17
+ end
18
+
19
+ module Google
20
+ module Cloud
21
+ module Monitoring
22
+ module V3
23
+ Group = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.Group").msgclass
24
+ end
25
+ end
26
+ end
27
+ end
@@ -0,0 +1,76 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/monitoring/v3/group_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/monitored_resource_pb'
10
+ require 'google/api/resource_pb'
11
+ require 'google/monitoring/v3/common_pb'
12
+ require 'google/monitoring/v3/group_pb'
13
+ require 'google/protobuf/empty_pb'
14
+ Google::Protobuf::DescriptorPool.generated_pool.build do
15
+ add_file("google/monitoring/v3/group_service.proto", :syntax => :proto3) do
16
+ add_message "google.monitoring.v3.ListGroupsRequest" do
17
+ optional :name, :string, 7
18
+ optional :page_size, :int32, 5
19
+ optional :page_token, :string, 6
20
+ oneof :filter do
21
+ optional :children_of_group, :string, 2
22
+ optional :ancestors_of_group, :string, 3
23
+ optional :descendants_of_group, :string, 4
24
+ end
25
+ end
26
+ add_message "google.monitoring.v3.ListGroupsResponse" do
27
+ repeated :group, :message, 1, "google.monitoring.v3.Group"
28
+ optional :next_page_token, :string, 2
29
+ end
30
+ add_message "google.monitoring.v3.GetGroupRequest" do
31
+ optional :name, :string, 3
32
+ end
33
+ add_message "google.monitoring.v3.CreateGroupRequest" do
34
+ optional :name, :string, 4
35
+ optional :group, :message, 2, "google.monitoring.v3.Group"
36
+ optional :validate_only, :bool, 3
37
+ end
38
+ add_message "google.monitoring.v3.UpdateGroupRequest" do
39
+ optional :group, :message, 2, "google.monitoring.v3.Group"
40
+ optional :validate_only, :bool, 3
41
+ end
42
+ add_message "google.monitoring.v3.DeleteGroupRequest" do
43
+ optional :name, :string, 3
44
+ optional :recursive, :bool, 4
45
+ end
46
+ add_message "google.monitoring.v3.ListGroupMembersRequest" do
47
+ optional :name, :string, 7
48
+ optional :page_size, :int32, 3
49
+ optional :page_token, :string, 4
50
+ optional :filter, :string, 5
51
+ optional :interval, :message, 6, "google.monitoring.v3.TimeInterval"
52
+ end
53
+ add_message "google.monitoring.v3.ListGroupMembersResponse" do
54
+ repeated :members, :message, 1, "google.api.MonitoredResource"
55
+ optional :next_page_token, :string, 2
56
+ optional :total_size, :int32, 3
57
+ end
58
+ end
59
+ end
60
+
61
+ module Google
62
+ module Cloud
63
+ module Monitoring
64
+ module V3
65
+ ListGroupsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.ListGroupsRequest").msgclass
66
+ ListGroupsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.ListGroupsResponse").msgclass
67
+ GetGroupRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.GetGroupRequest").msgclass
68
+ CreateGroupRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.CreateGroupRequest").msgclass
69
+ UpdateGroupRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.UpdateGroupRequest").msgclass
70
+ DeleteGroupRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.DeleteGroupRequest").msgclass
71
+ ListGroupMembersRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.ListGroupMembersRequest").msgclass
72
+ ListGroupMembersResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.ListGroupMembersResponse").msgclass
73
+ end
74
+ end
75
+ end
76
+ end
@@ -0,0 +1,67 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: google/monitoring/v3/group_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/group_service_pb'
21
+
22
+ module Google
23
+ module Cloud
24
+ module Monitoring
25
+ module V3
26
+ module GroupService
27
+ # The Group API lets you inspect and manage your
28
+ # [groups](#google.monitoring.v3.Group).
29
+ #
30
+ # A group is a named filter that is used to identify
31
+ # a collection of monitored resources. Groups are typically used to
32
+ # mirror the physical and/or logical topology of the environment.
33
+ # Because group membership is computed dynamically, monitored
34
+ # resources that are started in the future are automatically placed
35
+ # in matching groups. By using a group to name monitored resources in,
36
+ # for example, an alert policy, the target of that alert policy is
37
+ # updated automatically as monitored resources are added and removed
38
+ # from the infrastructure.
39
+ class Service
40
+
41
+ include GRPC::GenericService
42
+
43
+ self.marshal_class_method = :encode
44
+ self.unmarshal_class_method = :decode
45
+ self.service_name = 'google.monitoring.v3.GroupService'
46
+
47
+ # Lists the existing groups.
48
+ rpc :ListGroups, Google::Cloud::Monitoring::V3::ListGroupsRequest, Google::Cloud::Monitoring::V3::ListGroupsResponse
49
+ # Gets a single group.
50
+ rpc :GetGroup, Google::Cloud::Monitoring::V3::GetGroupRequest, Google::Cloud::Monitoring::V3::Group
51
+ # Creates a new group.
52
+ rpc :CreateGroup, Google::Cloud::Monitoring::V3::CreateGroupRequest, Google::Cloud::Monitoring::V3::Group
53
+ # Updates an existing group.
54
+ # You can change any group attributes except `name`.
55
+ rpc :UpdateGroup, Google::Cloud::Monitoring::V3::UpdateGroupRequest, Google::Cloud::Monitoring::V3::Group
56
+ # Deletes an existing group.
57
+ rpc :DeleteGroup, Google::Cloud::Monitoring::V3::DeleteGroupRequest, Google::Protobuf::Empty
58
+ # Lists the monitored resources that are members of a group.
59
+ rpc :ListGroupMembers, Google::Cloud::Monitoring::V3::ListGroupMembersRequest, Google::Cloud::Monitoring::V3::ListGroupMembersResponse
60
+ end
61
+
62
+ Stub = Service.rpc_stub_class
63
+ end
64
+ end
65
+ end
66
+ end
67
+ end
@@ -0,0 +1,85 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/monitoring/v3/metric.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/api/distribution_pb'
7
+ require 'google/api/label_pb'
8
+ require 'google/api/metric_pb'
9
+ require 'google/api/monitored_resource_pb'
10
+ require 'google/monitoring/v3/common_pb'
11
+ require 'google/protobuf/duration_pb'
12
+ Google::Protobuf::DescriptorPool.generated_pool.build do
13
+ add_file("google/monitoring/v3/metric.proto", :syntax => :proto3) do
14
+ add_message "google.monitoring.v3.Point" do
15
+ optional :interval, :message, 1, "google.monitoring.v3.TimeInterval"
16
+ optional :value, :message, 2, "google.monitoring.v3.TypedValue"
17
+ end
18
+ add_message "google.monitoring.v3.TimeSeries" do
19
+ optional :metric, :message, 1, "google.api.Metric"
20
+ optional :resource, :message, 2, "google.api.MonitoredResource"
21
+ optional :metadata, :message, 7, "google.api.MonitoredResourceMetadata"
22
+ optional :metric_kind, :enum, 3, "google.api.MetricDescriptor.MetricKind"
23
+ optional :value_type, :enum, 4, "google.api.MetricDescriptor.ValueType"
24
+ repeated :points, :message, 5, "google.monitoring.v3.Point"
25
+ end
26
+ add_message "google.monitoring.v3.TimeSeriesDescriptor" do
27
+ repeated :label_descriptors, :message, 1, "google.api.LabelDescriptor"
28
+ repeated :point_descriptors, :message, 5, "google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor"
29
+ end
30
+ add_message "google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor" do
31
+ optional :key, :string, 1
32
+ optional :value_type, :enum, 2, "google.api.MetricDescriptor.ValueType"
33
+ optional :metric_kind, :enum, 3, "google.api.MetricDescriptor.MetricKind"
34
+ end
35
+ add_message "google.monitoring.v3.TimeSeriesData" do
36
+ repeated :label_values, :message, 1, "google.monitoring.v3.LabelValue"
37
+ repeated :point_data, :message, 2, "google.monitoring.v3.TimeSeriesData.PointData"
38
+ end
39
+ add_message "google.monitoring.v3.TimeSeriesData.PointData" do
40
+ repeated :values, :message, 1, "google.monitoring.v3.TypedValue"
41
+ optional :time_interval, :message, 2, "google.monitoring.v3.TimeInterval"
42
+ end
43
+ add_message "google.monitoring.v3.LabelValue" do
44
+ oneof :value do
45
+ optional :bool_value, :bool, 1
46
+ optional :int64_value, :int64, 2
47
+ optional :string_value, :string, 3
48
+ end
49
+ end
50
+ add_message "google.monitoring.v3.QueryError" do
51
+ optional :locator, :message, 1, "google.monitoring.v3.TextLocator"
52
+ optional :message, :string, 2
53
+ end
54
+ add_message "google.monitoring.v3.TextLocator" do
55
+ optional :source, :string, 1
56
+ optional :start_position, :message, 2, "google.monitoring.v3.TextLocator.Position"
57
+ optional :end_position, :message, 3, "google.monitoring.v3.TextLocator.Position"
58
+ optional :nested_locator, :message, 4, "google.monitoring.v3.TextLocator"
59
+ optional :nesting_reason, :string, 5
60
+ end
61
+ add_message "google.monitoring.v3.TextLocator.Position" do
62
+ optional :line, :int32, 1
63
+ optional :column, :int32, 2
64
+ end
65
+ end
66
+ end
67
+
68
+ module Google
69
+ module Cloud
70
+ module Monitoring
71
+ module V3
72
+ Point = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.Point").msgclass
73
+ TimeSeries = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.TimeSeries").msgclass
74
+ TimeSeriesDescriptor = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.TimeSeriesDescriptor").msgclass
75
+ TimeSeriesDescriptor::ValueDescriptor = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor").msgclass
76
+ TimeSeriesData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.TimeSeriesData").msgclass
77
+ TimeSeriesData::PointData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.TimeSeriesData.PointData").msgclass
78
+ LabelValue = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.LabelValue").msgclass
79
+ QueryError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.QueryError").msgclass
80
+ TextLocator = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.TextLocator").msgclass
81
+ TextLocator::Position = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.TextLocator.Position").msgclass
82
+ end
83
+ end
84
+ end
85
+ end
@@ -0,0 +1,133 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/monitoring/v3/metric_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/metric_pb'
10
+ require 'google/api/monitored_resource_pb'
11
+ require 'google/api/resource_pb'
12
+ require 'google/monitoring/v3/alert_pb'
13
+ require 'google/monitoring/v3/common_pb'
14
+ require 'google/monitoring/v3/metric_pb'
15
+ require 'google/protobuf/duration_pb'
16
+ require 'google/protobuf/empty_pb'
17
+ require 'google/rpc/status_pb'
18
+ Google::Protobuf::DescriptorPool.generated_pool.build do
19
+ add_file("google/monitoring/v3/metric_service.proto", :syntax => :proto3) do
20
+ add_message "google.monitoring.v3.ListMonitoredResourceDescriptorsRequest" do
21
+ optional :name, :string, 5
22
+ optional :filter, :string, 2
23
+ optional :page_size, :int32, 3
24
+ optional :page_token, :string, 4
25
+ end
26
+ add_message "google.monitoring.v3.ListMonitoredResourceDescriptorsResponse" do
27
+ repeated :resource_descriptors, :message, 1, "google.api.MonitoredResourceDescriptor"
28
+ optional :next_page_token, :string, 2
29
+ end
30
+ add_message "google.monitoring.v3.GetMonitoredResourceDescriptorRequest" do
31
+ optional :name, :string, 3
32
+ end
33
+ add_message "google.monitoring.v3.ListMetricDescriptorsRequest" do
34
+ optional :name, :string, 5
35
+ optional :filter, :string, 2
36
+ optional :page_size, :int32, 3
37
+ optional :page_token, :string, 4
38
+ end
39
+ add_message "google.monitoring.v3.ListMetricDescriptorsResponse" do
40
+ repeated :metric_descriptors, :message, 1, "google.api.MetricDescriptor"
41
+ optional :next_page_token, :string, 2
42
+ end
43
+ add_message "google.monitoring.v3.GetMetricDescriptorRequest" do
44
+ optional :name, :string, 3
45
+ end
46
+ add_message "google.monitoring.v3.CreateMetricDescriptorRequest" do
47
+ optional :name, :string, 3
48
+ optional :metric_descriptor, :message, 2, "google.api.MetricDescriptor"
49
+ end
50
+ add_message "google.monitoring.v3.DeleteMetricDescriptorRequest" do
51
+ optional :name, :string, 3
52
+ end
53
+ add_message "google.monitoring.v3.ListTimeSeriesRequest" do
54
+ optional :name, :string, 10
55
+ optional :filter, :string, 2
56
+ optional :interval, :message, 4, "google.monitoring.v3.TimeInterval"
57
+ optional :aggregation, :message, 5, "google.monitoring.v3.Aggregation"
58
+ optional :order_by, :string, 6
59
+ optional :view, :enum, 7, "google.monitoring.v3.ListTimeSeriesRequest.TimeSeriesView"
60
+ optional :page_size, :int32, 8
61
+ optional :page_token, :string, 9
62
+ end
63
+ add_enum "google.monitoring.v3.ListTimeSeriesRequest.TimeSeriesView" do
64
+ value :FULL, 0
65
+ value :HEADERS, 1
66
+ end
67
+ add_message "google.monitoring.v3.ListTimeSeriesResponse" do
68
+ repeated :time_series, :message, 1, "google.monitoring.v3.TimeSeries"
69
+ optional :next_page_token, :string, 2
70
+ repeated :execution_errors, :message, 3, "google.rpc.Status"
71
+ end
72
+ add_message "google.monitoring.v3.CreateTimeSeriesRequest" do
73
+ optional :name, :string, 3
74
+ repeated :time_series, :message, 2, "google.monitoring.v3.TimeSeries"
75
+ end
76
+ add_message "google.monitoring.v3.CreateTimeSeriesError" do
77
+ optional :time_series, :message, 1, "google.monitoring.v3.TimeSeries"
78
+ optional :status, :message, 2, "google.rpc.Status"
79
+ end
80
+ add_message "google.monitoring.v3.CreateTimeSeriesSummary" do
81
+ optional :total_point_count, :int32, 1
82
+ optional :success_point_count, :int32, 2
83
+ repeated :errors, :message, 3, "google.monitoring.v3.CreateTimeSeriesSummary.Error"
84
+ end
85
+ add_message "google.monitoring.v3.CreateTimeSeriesSummary.Error" do
86
+ optional :status, :message, 1, "google.rpc.Status"
87
+ optional :point_count, :int32, 2
88
+ end
89
+ add_message "google.monitoring.v3.QueryTimeSeriesRequest" do
90
+ optional :name, :string, 1
91
+ optional :query, :string, 7
92
+ optional :page_size, :int32, 9
93
+ optional :page_token, :string, 10
94
+ end
95
+ add_message "google.monitoring.v3.QueryTimeSeriesResponse" do
96
+ optional :time_series_descriptor, :message, 8, "google.monitoring.v3.TimeSeriesDescriptor"
97
+ repeated :time_series_data, :message, 9, "google.monitoring.v3.TimeSeriesData"
98
+ optional :next_page_token, :string, 10
99
+ repeated :partial_errors, :message, 11, "google.rpc.Status"
100
+ end
101
+ add_message "google.monitoring.v3.QueryErrorList" do
102
+ repeated :errors, :message, 1, "google.monitoring.v3.QueryError"
103
+ optional :error_summary, :string, 2
104
+ end
105
+ end
106
+ end
107
+
108
+ module Google
109
+ module Cloud
110
+ module Monitoring
111
+ module V3
112
+ ListMonitoredResourceDescriptorsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.ListMonitoredResourceDescriptorsRequest").msgclass
113
+ ListMonitoredResourceDescriptorsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.ListMonitoredResourceDescriptorsResponse").msgclass
114
+ GetMonitoredResourceDescriptorRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.GetMonitoredResourceDescriptorRequest").msgclass
115
+ ListMetricDescriptorsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.ListMetricDescriptorsRequest").msgclass
116
+ ListMetricDescriptorsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.ListMetricDescriptorsResponse").msgclass
117
+ GetMetricDescriptorRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.GetMetricDescriptorRequest").msgclass
118
+ CreateMetricDescriptorRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.CreateMetricDescriptorRequest").msgclass
119
+ DeleteMetricDescriptorRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.DeleteMetricDescriptorRequest").msgclass
120
+ ListTimeSeriesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.ListTimeSeriesRequest").msgclass
121
+ ListTimeSeriesRequest::TimeSeriesView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.ListTimeSeriesRequest.TimeSeriesView").enummodule
122
+ ListTimeSeriesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.ListTimeSeriesResponse").msgclass
123
+ CreateTimeSeriesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.CreateTimeSeriesRequest").msgclass
124
+ CreateTimeSeriesError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.CreateTimeSeriesError").msgclass
125
+ CreateTimeSeriesSummary = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.CreateTimeSeriesSummary").msgclass
126
+ CreateTimeSeriesSummary::Error = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.CreateTimeSeriesSummary.Error").msgclass
127
+ QueryTimeSeriesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.QueryTimeSeriesRequest").msgclass
128
+ QueryTimeSeriesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.QueryTimeSeriesResponse").msgclass
129
+ QueryErrorList = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.QueryErrorList").msgclass
130
+ end
131
+ end
132
+ end
133
+ end
@@ -0,0 +1,67 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: google/monitoring/v3/metric_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/metric_service_pb'
21
+
22
+ module Google
23
+ module Cloud
24
+ module Monitoring
25
+ module V3
26
+ module MetricService
27
+ # Manages metric descriptors, monitored resource descriptors, and
28
+ # time series data.
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.MetricService'
36
+
37
+ # Lists monitored resource descriptors that match a filter. This method does not require a Workspace.
38
+ rpc :ListMonitoredResourceDescriptors, Google::Cloud::Monitoring::V3::ListMonitoredResourceDescriptorsRequest, Google::Cloud::Monitoring::V3::ListMonitoredResourceDescriptorsResponse
39
+ # Gets a single monitored resource descriptor. This method does not require a Workspace.
40
+ rpc :GetMonitoredResourceDescriptor, Google::Cloud::Monitoring::V3::GetMonitoredResourceDescriptorRequest, Google::Api::MonitoredResourceDescriptor
41
+ # Lists metric descriptors that match a filter. This method does not require a Workspace.
42
+ rpc :ListMetricDescriptors, Google::Cloud::Monitoring::V3::ListMetricDescriptorsRequest, Google::Cloud::Monitoring::V3::ListMetricDescriptorsResponse
43
+ # Gets a single metric descriptor. This method does not require a Workspace.
44
+ rpc :GetMetricDescriptor, Google::Cloud::Monitoring::V3::GetMetricDescriptorRequest, Google::Api::MetricDescriptor
45
+ # Creates a new metric descriptor.
46
+ # User-created metric descriptors define
47
+ # [custom metrics](https://cloud.google.com/monitoring/custom-metrics).
48
+ rpc :CreateMetricDescriptor, Google::Cloud::Monitoring::V3::CreateMetricDescriptorRequest, Google::Api::MetricDescriptor
49
+ # Deletes a metric descriptor. Only user-created
50
+ # [custom metrics](https://cloud.google.com/monitoring/custom-metrics) can be
51
+ # deleted.
52
+ rpc :DeleteMetricDescriptor, Google::Cloud::Monitoring::V3::DeleteMetricDescriptorRequest, Google::Protobuf::Empty
53
+ # Lists time series that match a filter. This method does not require a Workspace.
54
+ rpc :ListTimeSeries, Google::Cloud::Monitoring::V3::ListTimeSeriesRequest, Google::Cloud::Monitoring::V3::ListTimeSeriesResponse
55
+ # Creates or adds data to one or more time series.
56
+ # The response is empty if all time series in the request were written.
57
+ # If any time series could not be written, a corresponding failure message is
58
+ # included in the error response.
59
+ rpc :CreateTimeSeries, Google::Cloud::Monitoring::V3::CreateTimeSeriesRequest, Google::Protobuf::Empty
60
+ end
61
+
62
+ Stub = Service.rpc_stub_class
63
+ end
64
+ end
65
+ end
66
+ end
67
+ end