google-cloud-monitoring 0.38.0 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (101) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +2 -1
  3. data/AUTHENTICATION.md +51 -54
  4. data/LICENSE.md +203 -0
  5. data/MIGRATING.md +361 -0
  6. data/README.md +34 -50
  7. data/lib/google-cloud-monitoring.rb +6 -5
  8. data/lib/google/cloud/monitoring.rb +255 -443
  9. data/lib/google/cloud/monitoring/dashboard.rb +88 -117
  10. data/lib/google/cloud/monitoring/{v3/doc/google/protobuf/wrappers.rb → dashboard/version.rb} +12 -9
  11. data/lib/google/cloud/monitoring/version.rb +6 -2
  12. metadata +71 -128
  13. data/LICENSE +0 -201
  14. data/lib/google/cloud/monitoring/dashboard/v1.rb +0 -148
  15. data/lib/google/cloud/monitoring/dashboard/v1/credentials.rb +0 -46
  16. data/lib/google/cloud/monitoring/dashboard/v1/dashboards_service_client.rb +0 -457
  17. data/lib/google/cloud/monitoring/dashboard/v1/dashboards_service_client_config.json +0 -51
  18. data/lib/google/cloud/monitoring/dashboard/v1/doc/google/monitoring/dashboard/v1/common.rb +0 -394
  19. data/lib/google/cloud/monitoring/dashboard/v1/doc/google/monitoring/dashboard/v1/dashboard.rb +0 -53
  20. data/lib/google/cloud/monitoring/dashboard/v1/doc/google/monitoring/dashboard/v1/dashboards_service.rb +0 -82
  21. data/lib/google/cloud/monitoring/dashboard/v1/doc/google/monitoring/dashboard/v1/layouts.rb +0 -71
  22. data/lib/google/cloud/monitoring/dashboard/v1/doc/google/monitoring/dashboard/v1/metrics.rb +0 -151
  23. data/lib/google/cloud/monitoring/dashboard/v1/doc/google/monitoring/dashboard/v1/scorecard.rb +0 -102
  24. data/lib/google/cloud/monitoring/dashboard/v1/doc/google/monitoring/dashboard/v1/text.rb +0 -43
  25. data/lib/google/cloud/monitoring/dashboard/v1/doc/google/monitoring/dashboard/v1/widget.rb +0 -41
  26. data/lib/google/cloud/monitoring/dashboard/v1/doc/google/monitoring/dashboard/v1/xychart.rb +0 -141
  27. data/lib/google/cloud/monitoring/dashboard/v1/doc/google/protobuf/duration.rb +0 -91
  28. data/lib/google/cloud/monitoring/dashboard/v1/doc/google/protobuf/empty.rb +0 -29
  29. data/lib/google/cloud/monitoring/v3.rb +0 -532
  30. data/lib/google/cloud/monitoring/v3/alert_policy_service_client.rb +0 -553
  31. data/lib/google/cloud/monitoring/v3/alert_policy_service_client_config.json +0 -51
  32. data/lib/google/cloud/monitoring/v3/credentials.rb +0 -44
  33. data/lib/google/cloud/monitoring/v3/doc/google/api/distribution.rb +0 -200
  34. data/lib/google/cloud/monitoring/v3/doc/google/api/label.rb +0 -42
  35. data/lib/google/cloud/monitoring/v3/doc/google/api/metric.rb +0 -245
  36. data/lib/google/cloud/monitoring/v3/doc/google/api/monitored_resource.rb +0 -108
  37. data/lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/alert.rb +0 -344
  38. data/lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/alert_service.rb +0 -138
  39. data/lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/common.rb +0 -449
  40. data/lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/group.rb +0 -75
  41. data/lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/group_service.rb +0 -167
  42. data/lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/metric.rb +0 -85
  43. data/lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/metric_service.rb +0 -230
  44. data/lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/mutation_record.rb +0 -29
  45. data/lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/notification.rb +0 -156
  46. data/lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/notification_service.rb +0 -221
  47. data/lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/service.rb +0 -361
  48. data/lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/service_service.rb +0 -197
  49. data/lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/uptime.rb +0 -364
  50. data/lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/uptime_service.rb +0 -136
  51. data/lib/google/cloud/monitoring/v3/doc/google/protobuf/any.rb +0 -131
  52. data/lib/google/cloud/monitoring/v3/doc/google/protobuf/duration.rb +0 -91
  53. data/lib/google/cloud/monitoring/v3/doc/google/protobuf/empty.rb +0 -29
  54. data/lib/google/cloud/monitoring/v3/doc/google/protobuf/field_mask.rb +0 -222
  55. data/lib/google/cloud/monitoring/v3/doc/google/protobuf/struct.rb +0 -74
  56. data/lib/google/cloud/monitoring/v3/doc/google/protobuf/timestamp.rb +0 -113
  57. data/lib/google/cloud/monitoring/v3/doc/google/rpc/status.rb +0 -39
  58. data/lib/google/cloud/monitoring/v3/group_service_client.rb +0 -606
  59. data/lib/google/cloud/monitoring/v3/group_service_client_config.json +0 -56
  60. data/lib/google/cloud/monitoring/v3/metric_service_client.rb +0 -750
  61. data/lib/google/cloud/monitoring/v3/metric_service_client_config.json +0 -66
  62. data/lib/google/cloud/monitoring/v3/notification_channel_service_client.rb +0 -811
  63. data/lib/google/cloud/monitoring/v3/notification_channel_service_client_config.json +0 -76
  64. data/lib/google/cloud/monitoring/v3/service_monitoring_service_client.rb +0 -788
  65. data/lib/google/cloud/monitoring/v3/service_monitoring_service_client_config.json +0 -76
  66. data/lib/google/cloud/monitoring/v3/uptime_check_service_client.rb +0 -550
  67. data/lib/google/cloud/monitoring/v3/uptime_check_service_client_config.json +0 -56
  68. data/lib/google/monitoring/dashboard/v1/common_pb.rb +0 -95
  69. data/lib/google/monitoring/dashboard/v1/dashboard_pb.rb +0 -29
  70. data/lib/google/monitoring/dashboard/v1/dashboards_service_pb.rb +0 -51
  71. data/lib/google/monitoring/dashboard/v1/dashboards_service_services_pb.rb +0 -76
  72. data/lib/google/monitoring/dashboard/v1/drilldowns_pb.rb +0 -17
  73. data/lib/google/monitoring/dashboard/v1/layouts_pb.rb +0 -41
  74. data/lib/google/monitoring/dashboard/v1/metrics_pb.rb +0 -76
  75. data/lib/google/monitoring/dashboard/v1/scorecard_pb.rb +0 -38
  76. data/lib/google/monitoring/dashboard/v1/service_pb.rb +0 -17
  77. data/lib/google/monitoring/dashboard/v1/text_pb.rb +0 -28
  78. data/lib/google/monitoring/dashboard/v1/widget_pb.rb +0 -32
  79. data/lib/google/monitoring/dashboard/v1/xychart_pb.rb +0 -66
  80. data/lib/google/monitoring/v3/alert_pb.rb +0 -87
  81. data/lib/google/monitoring/v3/alert_service_pb.rb +0 -53
  82. data/lib/google/monitoring/v3/alert_service_services_pb.rb +0 -63
  83. data/lib/google/monitoring/v3/common_pb.rb +0 -95
  84. data/lib/google/monitoring/v3/dropped_labels_pb.rb +0 -19
  85. data/lib/google/monitoring/v3/group_pb.rb +0 -24
  86. data/lib/google/monitoring/v3/group_service_pb.rb +0 -73
  87. data/lib/google/monitoring/v3/group_service_services_pb.rb +0 -66
  88. data/lib/google/monitoring/v3/metric_pb.rb +0 -82
  89. data/lib/google/monitoring/v3/metric_service_pb.rb +0 -130
  90. data/lib/google/monitoring/v3/metric_service_services_pb.rb +0 -66
  91. data/lib/google/monitoring/v3/mutation_record_pb.rb +0 -21
  92. data/lib/google/monitoring/v3/notification_pb.rb +0 -47
  93. data/lib/google/monitoring/v3/notification_service_pb.rb +0 -90
  94. data/lib/google/monitoring/v3/notification_service_services_pb.rb +0 -94
  95. data/lib/google/monitoring/v3/service_pb.rb +0 -149
  96. data/lib/google/monitoring/v3/service_service_pb.rb +0 -86
  97. data/lib/google/monitoring/v3/service_service_services_pb.rb +0 -65
  98. data/lib/google/monitoring/v3/span_context_pb.rb +0 -19
  99. data/lib/google/monitoring/v3/uptime_pb.rb +0 -123
  100. data/lib/google/monitoring/v3/uptime_service_pb.rb +0 -63
  101. data/lib/google/monitoring/v3/uptime_service_services_pb.rb +0 -67
@@ -1,19 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # source: google/monitoring/v3/dropped_labels.proto
3
-
4
-
5
- require 'google/protobuf'
6
-
7
- Google::Protobuf::DescriptorPool.generated_pool.build do
8
- add_message "google.monitoring.v3.DroppedLabels" do
9
- map :label, :string, :string, 1
10
- end
11
- end
12
-
13
- module Google
14
- module Monitoring
15
- end
16
- end
17
- module Google::Monitoring::V3
18
- DroppedLabels = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.DroppedLabels").msgclass
19
- end
@@ -1,24 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # source: google/monitoring/v3/group.proto
3
-
4
-
5
- require 'google/protobuf'
6
-
7
- require 'google/api/resource_pb'
8
- Google::Protobuf::DescriptorPool.generated_pool.build 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
-
18
- module Google
19
- module Monitoring
20
- end
21
- end
22
- module Google::Monitoring::V3
23
- Group = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.Group").msgclass
24
- end
@@ -1,73 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # source: google/monitoring/v3/group_service.proto
3
-
4
-
5
- require 'google/protobuf'
6
-
7
- require 'google/api/annotations_pb'
8
- require 'google/api/client_pb'
9
- require 'google/api/field_behavior_pb'
10
- require 'google/api/monitored_resource_pb'
11
- require 'google/api/resource_pb'
12
- require 'google/monitoring/v3/common_pb'
13
- require 'google/monitoring/v3/group_pb'
14
- require 'google/protobuf/empty_pb'
15
- Google::Protobuf::DescriptorPool.generated_pool.build 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
-
60
- module Google
61
- module Monitoring
62
- end
63
- end
64
- module Google::Monitoring::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
@@ -1,66 +0,0 @@
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
-
20
- require 'grpc'
21
- require 'google/monitoring/v3/group_service_pb'
22
-
23
- module Google
24
- module Monitoring
25
- end
26
- end
27
- module Google::Monitoring::V3
28
- module GroupService
29
- # The Group API lets you inspect and manage your
30
- # [groups](#google.monitoring.v3.Group).
31
- #
32
- # A group is a named filter that is used to identify
33
- # a collection of monitored resources. Groups are typically used to
34
- # mirror the physical and/or logical topology of the environment.
35
- # Because group membership is computed dynamically, monitored
36
- # resources that are started in the future are automatically placed
37
- # in matching groups. By using a group to name monitored resources in,
38
- # for example, an alert policy, the target of that alert policy is
39
- # updated automatically as monitored resources are added and removed
40
- # from the infrastructure.
41
- class Service
42
-
43
- include GRPC::GenericService
44
-
45
- self.marshal_class_method = :encode
46
- self.unmarshal_class_method = :decode
47
- self.service_name = 'google.monitoring.v3.GroupService'
48
-
49
- # Lists the existing groups.
50
- rpc :ListGroups, ListGroupsRequest, ListGroupsResponse
51
- # Gets a single group.
52
- rpc :GetGroup, GetGroupRequest, Group
53
- # Creates a new group.
54
- rpc :CreateGroup, CreateGroupRequest, Group
55
- # Updates an existing group.
56
- # You can change any group attributes except `name`.
57
- rpc :UpdateGroup, UpdateGroupRequest, Group
58
- # Deletes an existing group.
59
- rpc :DeleteGroup, DeleteGroupRequest, Google::Protobuf::Empty
60
- # Lists the monitored resources that are members of a group.
61
- rpc :ListGroupMembers, ListGroupMembersRequest, ListGroupMembersResponse
62
- end
63
-
64
- Stub = Service.rpc_stub_class
65
- end
66
- end
@@ -1,82 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # source: google/monitoring/v3/metric.proto
3
-
4
-
5
- require 'google/protobuf'
6
-
7
- require 'google/api/distribution_pb'
8
- require 'google/api/label_pb'
9
- require 'google/api/metric_pb'
10
- require 'google/api/monitored_resource_pb'
11
- require 'google/monitoring/v3/common_pb'
12
- require 'google/protobuf/duration_pb'
13
- Google::Protobuf::DescriptorPool.generated_pool.build 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
-
67
- module Google
68
- module Monitoring
69
- end
70
- end
71
- module Google::Monitoring::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
@@ -1,130 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # source: google/monitoring/v3/metric_service.proto
3
-
4
-
5
- require 'google/protobuf'
6
-
7
- require 'google/api/annotations_pb'
8
- require 'google/api/client_pb'
9
- require 'google/api/field_behavior_pb'
10
- require 'google/api/metric_pb'
11
- require 'google/api/monitored_resource_pb'
12
- require 'google/api/resource_pb'
13
- require 'google/monitoring/v3/alert_pb'
14
- require 'google/monitoring/v3/common_pb'
15
- require 'google/monitoring/v3/metric_pb'
16
- require 'google/protobuf/duration_pb'
17
- require 'google/protobuf/empty_pb'
18
- require 'google/rpc/status_pb'
19
- Google::Protobuf::DescriptorPool.generated_pool.build 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
-
107
- module Google
108
- module Monitoring
109
- end
110
- end
111
- module Google::Monitoring::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
@@ -1,66 +0,0 @@
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
-
20
- require 'grpc'
21
- require 'google/monitoring/v3/metric_service_pb'
22
-
23
- module Google
24
- module Monitoring
25
- end
26
- end
27
- module Google::Monitoring::V3
28
- module MetricService
29
- # Manages metric descriptors, monitored resource descriptors, and
30
- # time series data.
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.MetricService'
38
-
39
- # Lists monitored resource descriptors that match a filter. This method does not require a Workspace.
40
- rpc :ListMonitoredResourceDescriptors, ListMonitoredResourceDescriptorsRequest, ListMonitoredResourceDescriptorsResponse
41
- # Gets a single monitored resource descriptor. This method does not require a Workspace.
42
- rpc :GetMonitoredResourceDescriptor, GetMonitoredResourceDescriptorRequest, Google::Api::MonitoredResourceDescriptor
43
- # Lists metric descriptors that match a filter. This method does not require a Workspace.
44
- rpc :ListMetricDescriptors, ListMetricDescriptorsRequest, ListMetricDescriptorsResponse
45
- # Gets a single metric descriptor. This method does not require a Workspace.
46
- rpc :GetMetricDescriptor, GetMetricDescriptorRequest, Google::Api::MetricDescriptor
47
- # Creates a new metric descriptor.
48
- # User-created metric descriptors define
49
- # [custom metrics](https://cloud.google.com/monitoring/custom-metrics).
50
- rpc :CreateMetricDescriptor, CreateMetricDescriptorRequest, Google::Api::MetricDescriptor
51
- # Deletes a metric descriptor. Only user-created
52
- # [custom metrics](https://cloud.google.com/monitoring/custom-metrics) can be
53
- # deleted.
54
- rpc :DeleteMetricDescriptor, DeleteMetricDescriptorRequest, Google::Protobuf::Empty
55
- # Lists time series that match a filter. This method does not require a Workspace.
56
- rpc :ListTimeSeries, ListTimeSeriesRequest, ListTimeSeriesResponse
57
- # Creates or adds data to one or more time series.
58
- # The response is empty if all time series in the request were written.
59
- # If any time series could not be written, a corresponding failure message is
60
- # included in the error response.
61
- rpc :CreateTimeSeries, CreateTimeSeriesRequest, Google::Protobuf::Empty
62
- end
63
-
64
- Stub = Service.rpc_stub_class
65
- end
66
- end