google-cloud-monitoring 0.21.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README.md +45 -0
- data/Rakefile +70 -0
- data/lib/google/cloud/monitoring/v3.rb +18 -0
- data/lib/google/cloud/monitoring/v3/group_service_api.rb +498 -0
- data/lib/google/cloud/monitoring/v3/group_service_client_config.json +58 -0
- data/lib/google/cloud/monitoring/v3/metric_service_api.rb +641 -0
- data/lib/google/cloud/monitoring/v3/metric_service_client_config.json +68 -0
- data/lib/google/monitoring/v3/common_pb.rb +75 -0
- data/lib/google/monitoring/v3/group_pb.rb +22 -0
- data/lib/google/monitoring/v3/group_service_pb.rb +68 -0
- data/lib/google/monitoring/v3/group_service_services_pb.rb +65 -0
- data/lib/google/monitoring/v3/metric_pb.rb +30 -0
- data/lib/google/monitoring/v3/metric_service_pb.rb +93 -0
- data/lib/google/monitoring/v3/metric_service_services_pb.rb +64 -0
- metadata +141 -0
@@ -0,0 +1,68 @@
|
|
1
|
+
{
|
2
|
+
"interfaces": {
|
3
|
+
"google.monitoring.v3.MetricService": {
|
4
|
+
"retry_codes": {
|
5
|
+
"retry_codes_def": {
|
6
|
+
"idempotent": [
|
7
|
+
"DEADLINE_EXCEEDED",
|
8
|
+
"UNAVAILABLE"
|
9
|
+
],
|
10
|
+
"non_idempotent": []
|
11
|
+
}
|
12
|
+
},
|
13
|
+
"retry_params": {
|
14
|
+
"default": {
|
15
|
+
"initial_retry_delay_millis": 100,
|
16
|
+
"retry_delay_multiplier": 1.3,
|
17
|
+
"max_retry_delay_millis": 60000,
|
18
|
+
"initial_rpc_timeout_millis": 20000,
|
19
|
+
"rpc_timeout_multiplier": 1.0,
|
20
|
+
"max_rpc_timeout_millis": 20000,
|
21
|
+
"total_timeout_millis": 600000
|
22
|
+
}
|
23
|
+
},
|
24
|
+
"methods": {
|
25
|
+
"ListMonitoredResourceDescriptors": {
|
26
|
+
"timeout_millis": 60000,
|
27
|
+
"retry_codes_name": "idempotent",
|
28
|
+
"retry_params_name": "default"
|
29
|
+
},
|
30
|
+
"GetMonitoredResourceDescriptor": {
|
31
|
+
"timeout_millis": 60000,
|
32
|
+
"retry_codes_name": "idempotent",
|
33
|
+
"retry_params_name": "default"
|
34
|
+
},
|
35
|
+
"ListMetricDescriptors": {
|
36
|
+
"timeout_millis": 60000,
|
37
|
+
"retry_codes_name": "idempotent",
|
38
|
+
"retry_params_name": "default"
|
39
|
+
},
|
40
|
+
"GetMetricDescriptor": {
|
41
|
+
"timeout_millis": 60000,
|
42
|
+
"retry_codes_name": "idempotent",
|
43
|
+
"retry_params_name": "default"
|
44
|
+
},
|
45
|
+
"CreateMetricDescriptor": {
|
46
|
+
"timeout_millis": 60000,
|
47
|
+
"retry_codes_name": "non_idempotent",
|
48
|
+
"retry_params_name": "default"
|
49
|
+
},
|
50
|
+
"DeleteMetricDescriptor": {
|
51
|
+
"timeout_millis": 60000,
|
52
|
+
"retry_codes_name": "idempotent",
|
53
|
+
"retry_params_name": "default"
|
54
|
+
},
|
55
|
+
"ListTimeSeries": {
|
56
|
+
"timeout_millis": 60000,
|
57
|
+
"retry_codes_name": "idempotent",
|
58
|
+
"retry_params_name": "default"
|
59
|
+
},
|
60
|
+
"CreateTimeSeries": {
|
61
|
+
"timeout_millis": 60000,
|
62
|
+
"retry_codes_name": "non_idempotent",
|
63
|
+
"retry_params_name": "default"
|
64
|
+
}
|
65
|
+
}
|
66
|
+
}
|
67
|
+
}
|
68
|
+
}
|
@@ -0,0 +1,75 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/monitoring/v3/common.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/api/distribution_pb'
|
7
|
+
require 'google/protobuf/duration_pb'
|
8
|
+
require 'google/protobuf/timestamp_pb'
|
9
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
10
|
+
add_message "google.monitoring.v3.TypedValue" do
|
11
|
+
oneof :value do
|
12
|
+
optional :bool_value, :bool, 1
|
13
|
+
optional :int64_value, :int64, 2
|
14
|
+
optional :double_value, :double, 3
|
15
|
+
optional :string_value, :string, 4
|
16
|
+
optional :distribution_value, :message, 5, "google.api.Distribution"
|
17
|
+
end
|
18
|
+
end
|
19
|
+
add_message "google.monitoring.v3.TimeInterval" do
|
20
|
+
optional :end_time, :message, 2, "google.protobuf.Timestamp"
|
21
|
+
optional :start_time, :message, 1, "google.protobuf.Timestamp"
|
22
|
+
end
|
23
|
+
add_message "google.monitoring.v3.Aggregation" do
|
24
|
+
optional :alignment_period, :message, 1, "google.protobuf.Duration"
|
25
|
+
optional :per_series_aligner, :enum, 2, "google.monitoring.v3.Aggregation.Aligner"
|
26
|
+
optional :cross_series_reducer, :enum, 4, "google.monitoring.v3.Aggregation.Reducer"
|
27
|
+
repeated :group_by_fields, :string, 5
|
28
|
+
end
|
29
|
+
add_enum "google.monitoring.v3.Aggregation.Aligner" do
|
30
|
+
value :ALIGN_NONE, 0
|
31
|
+
value :ALIGN_DELTA, 1
|
32
|
+
value :ALIGN_RATE, 2
|
33
|
+
value :ALIGN_INTERPOLATE, 3
|
34
|
+
value :ALIGN_NEXT_OLDER, 4
|
35
|
+
value :ALIGN_MIN, 10
|
36
|
+
value :ALIGN_MAX, 11
|
37
|
+
value :ALIGN_MEAN, 12
|
38
|
+
value :ALIGN_COUNT, 13
|
39
|
+
value :ALIGN_SUM, 14
|
40
|
+
value :ALIGN_STDDEV, 15
|
41
|
+
value :ALIGN_COUNT_TRUE, 16
|
42
|
+
value :ALIGN_FRACTION_TRUE, 17
|
43
|
+
value :ALIGN_PERCENTILE_99, 18
|
44
|
+
value :ALIGN_PERCENTILE_95, 19
|
45
|
+
value :ALIGN_PERCENTILE_50, 20
|
46
|
+
value :ALIGN_PERCENTILE_05, 21
|
47
|
+
end
|
48
|
+
add_enum "google.monitoring.v3.Aggregation.Reducer" do
|
49
|
+
value :REDUCE_NONE, 0
|
50
|
+
value :REDUCE_MEAN, 1
|
51
|
+
value :REDUCE_MIN, 2
|
52
|
+
value :REDUCE_MAX, 3
|
53
|
+
value :REDUCE_SUM, 4
|
54
|
+
value :REDUCE_STDDEV, 5
|
55
|
+
value :REDUCE_COUNT, 6
|
56
|
+
value :REDUCE_COUNT_TRUE, 7
|
57
|
+
value :REDUCE_FRACTION_TRUE, 8
|
58
|
+
value :REDUCE_PERCENTILE_99, 9
|
59
|
+
value :REDUCE_PERCENTILE_95, 10
|
60
|
+
value :REDUCE_PERCENTILE_50, 11
|
61
|
+
value :REDUCE_PERCENTILE_05, 12
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
65
|
+
module Google
|
66
|
+
module Monitoring
|
67
|
+
module V3
|
68
|
+
TypedValue = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.TypedValue").msgclass
|
69
|
+
TimeInterval = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.TimeInterval").msgclass
|
70
|
+
Aggregation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.Aggregation").msgclass
|
71
|
+
Aggregation::Aligner = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.Aggregation.Aligner").enummodule
|
72
|
+
Aggregation::Reducer = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.Aggregation.Reducer").enummodule
|
73
|
+
end
|
74
|
+
end
|
75
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/monitoring/v3/group.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
7
|
+
add_message "google.monitoring.v3.Group" do
|
8
|
+
optional :name, :string, 1
|
9
|
+
optional :display_name, :string, 2
|
10
|
+
optional :parent_name, :string, 3
|
11
|
+
optional :filter, :string, 5
|
12
|
+
optional :is_cluster, :bool, 6
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
module Google
|
17
|
+
module Monitoring
|
18
|
+
module V3
|
19
|
+
Group = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.Group").msgclass
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,68 @@
|
|
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/monitored_resource_pb'
|
8
|
+
require 'google/monitoring/v3/common_pb'
|
9
|
+
require 'google/monitoring/v3/group_pb'
|
10
|
+
require 'google/protobuf/empty_pb'
|
11
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
12
|
+
add_message "google.monitoring.v3.ListGroupsRequest" do
|
13
|
+
optional :name, :string, 7
|
14
|
+
optional :page_size, :int32, 5
|
15
|
+
optional :page_token, :string, 6
|
16
|
+
oneof :filter do
|
17
|
+
optional :children_of_group, :string, 2
|
18
|
+
optional :ancestors_of_group, :string, 3
|
19
|
+
optional :descendants_of_group, :string, 4
|
20
|
+
end
|
21
|
+
end
|
22
|
+
add_message "google.monitoring.v3.ListGroupsResponse" do
|
23
|
+
repeated :group, :message, 1, "google.monitoring.v3.Group"
|
24
|
+
optional :next_page_token, :string, 2
|
25
|
+
end
|
26
|
+
add_message "google.monitoring.v3.GetGroupRequest" do
|
27
|
+
optional :name, :string, 3
|
28
|
+
end
|
29
|
+
add_message "google.monitoring.v3.CreateGroupRequest" do
|
30
|
+
optional :name, :string, 4
|
31
|
+
optional :group, :message, 2, "google.monitoring.v3.Group"
|
32
|
+
optional :validate_only, :bool, 3
|
33
|
+
end
|
34
|
+
add_message "google.monitoring.v3.UpdateGroupRequest" do
|
35
|
+
optional :group, :message, 2, "google.monitoring.v3.Group"
|
36
|
+
optional :validate_only, :bool, 3
|
37
|
+
end
|
38
|
+
add_message "google.monitoring.v3.DeleteGroupRequest" do
|
39
|
+
optional :name, :string, 3
|
40
|
+
end
|
41
|
+
add_message "google.monitoring.v3.ListGroupMembersRequest" do
|
42
|
+
optional :name, :string, 7
|
43
|
+
optional :page_size, :int32, 3
|
44
|
+
optional :page_token, :string, 4
|
45
|
+
optional :filter, :string, 5
|
46
|
+
optional :interval, :message, 6, "google.monitoring.v3.TimeInterval"
|
47
|
+
end
|
48
|
+
add_message "google.monitoring.v3.ListGroupMembersResponse" do
|
49
|
+
repeated :members, :message, 1, "google.api.MonitoredResource"
|
50
|
+
optional :next_page_token, :string, 2
|
51
|
+
optional :total_size, :int32, 3
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
55
|
+
module Google
|
56
|
+
module Monitoring
|
57
|
+
module V3
|
58
|
+
ListGroupsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.ListGroupsRequest").msgclass
|
59
|
+
ListGroupsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.ListGroupsResponse").msgclass
|
60
|
+
GetGroupRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.GetGroupRequest").msgclass
|
61
|
+
CreateGroupRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.CreateGroupRequest").msgclass
|
62
|
+
UpdateGroupRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.UpdateGroupRequest").msgclass
|
63
|
+
DeleteGroupRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.DeleteGroupRequest").msgclass
|
64
|
+
ListGroupMembersRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.ListGroupMembersRequest").msgclass
|
65
|
+
ListGroupMembersResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.ListGroupMembersResponse").msgclass
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|
@@ -0,0 +1,65 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: google/monitoring/v3/group_service.proto for package 'google.monitoring.v3'
|
3
|
+
# Original file comments:
|
4
|
+
# Copyright 2016 Google Inc.
|
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 Monitoring
|
24
|
+
module V3
|
25
|
+
module GroupService
|
26
|
+
# The Group API lets you inspect and manage your
|
27
|
+
# [groups](google.monitoring.v3.Group).
|
28
|
+
#
|
29
|
+
# A group is a named filter that is used to identify
|
30
|
+
# a collection of monitored resources. Groups are typically used to
|
31
|
+
# mirror the physical and/or logical topology of the environment.
|
32
|
+
# Because group membership is computed dynamically, monitored
|
33
|
+
# resources that are started in the future are automatically placed
|
34
|
+
# in matching groups. By using a group to name monitored resources in,
|
35
|
+
# for example, an alert policy, the target of that alert policy is
|
36
|
+
# updated automatically as monitored resources are added and removed
|
37
|
+
# from the infrastructure.
|
38
|
+
class Service
|
39
|
+
|
40
|
+
include GRPC::GenericService
|
41
|
+
|
42
|
+
self.marshal_class_method = :encode
|
43
|
+
self.unmarshal_class_method = :decode
|
44
|
+
self.service_name = 'google.monitoring.v3.GroupService'
|
45
|
+
|
46
|
+
# Lists the existing groups.
|
47
|
+
rpc :ListGroups, ListGroupsRequest, ListGroupsResponse
|
48
|
+
# Gets a single group.
|
49
|
+
rpc :GetGroup, GetGroupRequest, Group
|
50
|
+
# Creates a new group.
|
51
|
+
rpc :CreateGroup, CreateGroupRequest, Group
|
52
|
+
# Updates an existing group.
|
53
|
+
# You can change any group attributes except `name`.
|
54
|
+
rpc :UpdateGroup, UpdateGroupRequest, Group
|
55
|
+
# Deletes an existing group.
|
56
|
+
rpc :DeleteGroup, DeleteGroupRequest, Google::Protobuf::Empty
|
57
|
+
# Lists the monitored resources that are members of a group.
|
58
|
+
rpc :ListGroupMembers, ListGroupMembersRequest, ListGroupMembersResponse
|
59
|
+
end
|
60
|
+
|
61
|
+
Stub = Service.rpc_stub_class
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|
@@ -0,0 +1,30 @@
|
|
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/metric_pb'
|
7
|
+
require 'google/api/monitored_resource_pb'
|
8
|
+
require 'google/monitoring/v3/common_pb'
|
9
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
10
|
+
add_message "google.monitoring.v3.Point" do
|
11
|
+
optional :interval, :message, 1, "google.monitoring.v3.TimeInterval"
|
12
|
+
optional :value, :message, 2, "google.monitoring.v3.TypedValue"
|
13
|
+
end
|
14
|
+
add_message "google.monitoring.v3.TimeSeries" do
|
15
|
+
optional :metric, :message, 1, "google.api.Metric"
|
16
|
+
optional :resource, :message, 2, "google.api.MonitoredResource"
|
17
|
+
optional :metric_kind, :enum, 3, "google.api.MetricDescriptor.MetricKind"
|
18
|
+
optional :value_type, :enum, 4, "google.api.MetricDescriptor.ValueType"
|
19
|
+
repeated :points, :message, 5, "google.monitoring.v3.Point"
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
module Google
|
24
|
+
module Monitoring
|
25
|
+
module V3
|
26
|
+
Point = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.Point").msgclass
|
27
|
+
TimeSeries = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.TimeSeries").msgclass
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
@@ -0,0 +1,93 @@
|
|
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/metric_pb'
|
8
|
+
require 'google/api/monitored_resource_pb'
|
9
|
+
require 'google/monitoring/v3/common_pb'
|
10
|
+
require 'google/monitoring/v3/metric_pb'
|
11
|
+
require 'google/protobuf/empty_pb'
|
12
|
+
require 'google/rpc/status_pb'
|
13
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
14
|
+
add_message "google.monitoring.v3.ListMonitoredResourceDescriptorsRequest" do
|
15
|
+
optional :name, :string, 5
|
16
|
+
optional :filter, :string, 2
|
17
|
+
optional :page_size, :int32, 3
|
18
|
+
optional :page_token, :string, 4
|
19
|
+
end
|
20
|
+
add_message "google.monitoring.v3.ListMonitoredResourceDescriptorsResponse" do
|
21
|
+
repeated :resource_descriptors, :message, 1, "google.api.MonitoredResourceDescriptor"
|
22
|
+
optional :next_page_token, :string, 2
|
23
|
+
end
|
24
|
+
add_message "google.monitoring.v3.GetMonitoredResourceDescriptorRequest" do
|
25
|
+
optional :name, :string, 3
|
26
|
+
end
|
27
|
+
add_message "google.monitoring.v3.ListMetricDescriptorsRequest" do
|
28
|
+
optional :name, :string, 5
|
29
|
+
optional :filter, :string, 2
|
30
|
+
optional :page_size, :int32, 3
|
31
|
+
optional :page_token, :string, 4
|
32
|
+
end
|
33
|
+
add_message "google.monitoring.v3.ListMetricDescriptorsResponse" do
|
34
|
+
repeated :metric_descriptors, :message, 1, "google.api.MetricDescriptor"
|
35
|
+
optional :next_page_token, :string, 2
|
36
|
+
end
|
37
|
+
add_message "google.monitoring.v3.GetMetricDescriptorRequest" do
|
38
|
+
optional :name, :string, 3
|
39
|
+
end
|
40
|
+
add_message "google.monitoring.v3.CreateMetricDescriptorRequest" do
|
41
|
+
optional :name, :string, 3
|
42
|
+
optional :metric_descriptor, :message, 2, "google.api.MetricDescriptor"
|
43
|
+
end
|
44
|
+
add_message "google.monitoring.v3.DeleteMetricDescriptorRequest" do
|
45
|
+
optional :name, :string, 3
|
46
|
+
end
|
47
|
+
add_message "google.monitoring.v3.ListTimeSeriesRequest" do
|
48
|
+
optional :name, :string, 10
|
49
|
+
optional :filter, :string, 2
|
50
|
+
optional :interval, :message, 4, "google.monitoring.v3.TimeInterval"
|
51
|
+
optional :aggregation, :message, 5, "google.monitoring.v3.Aggregation"
|
52
|
+
optional :order_by, :string, 6
|
53
|
+
optional :view, :enum, 7, "google.monitoring.v3.ListTimeSeriesRequest.TimeSeriesView"
|
54
|
+
optional :page_size, :int32, 8
|
55
|
+
optional :page_token, :string, 9
|
56
|
+
end
|
57
|
+
add_enum "google.monitoring.v3.ListTimeSeriesRequest.TimeSeriesView" do
|
58
|
+
value :FULL, 0
|
59
|
+
value :HEADERS, 1
|
60
|
+
end
|
61
|
+
add_message "google.monitoring.v3.ListTimeSeriesResponse" do
|
62
|
+
repeated :time_series, :message, 1, "google.monitoring.v3.TimeSeries"
|
63
|
+
optional :next_page_token, :string, 2
|
64
|
+
end
|
65
|
+
add_message "google.monitoring.v3.CreateTimeSeriesRequest" do
|
66
|
+
optional :name, :string, 3
|
67
|
+
repeated :time_series, :message, 2, "google.monitoring.v3.TimeSeries"
|
68
|
+
end
|
69
|
+
add_message "google.monitoring.v3.CreateTimeSeriesError" do
|
70
|
+
optional :time_series, :message, 1, "google.monitoring.v3.TimeSeries"
|
71
|
+
optional :status, :message, 2, "google.rpc.Status"
|
72
|
+
end
|
73
|
+
end
|
74
|
+
|
75
|
+
module Google
|
76
|
+
module Monitoring
|
77
|
+
module V3
|
78
|
+
ListMonitoredResourceDescriptorsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.ListMonitoredResourceDescriptorsRequest").msgclass
|
79
|
+
ListMonitoredResourceDescriptorsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.ListMonitoredResourceDescriptorsResponse").msgclass
|
80
|
+
GetMonitoredResourceDescriptorRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.GetMonitoredResourceDescriptorRequest").msgclass
|
81
|
+
ListMetricDescriptorsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.ListMetricDescriptorsRequest").msgclass
|
82
|
+
ListMetricDescriptorsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.ListMetricDescriptorsResponse").msgclass
|
83
|
+
GetMetricDescriptorRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.GetMetricDescriptorRequest").msgclass
|
84
|
+
CreateMetricDescriptorRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.CreateMetricDescriptorRequest").msgclass
|
85
|
+
DeleteMetricDescriptorRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.DeleteMetricDescriptorRequest").msgclass
|
86
|
+
ListTimeSeriesRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.ListTimeSeriesRequest").msgclass
|
87
|
+
ListTimeSeriesRequest::TimeSeriesView = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.ListTimeSeriesRequest.TimeSeriesView").enummodule
|
88
|
+
ListTimeSeriesResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.ListTimeSeriesResponse").msgclass
|
89
|
+
CreateTimeSeriesRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.CreateTimeSeriesRequest").msgclass
|
90
|
+
CreateTimeSeriesError = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.CreateTimeSeriesError").msgclass
|
91
|
+
end
|
92
|
+
end
|
93
|
+
end
|
@@ -0,0 +1,64 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: google/monitoring/v3/metric_service.proto for package 'google.monitoring.v3'
|
3
|
+
# Original file comments:
|
4
|
+
# Copyright 2016 Google Inc.
|
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 Monitoring
|
24
|
+
module V3
|
25
|
+
module MetricService
|
26
|
+
# Manages metric descriptors, monitored resource descriptors, and
|
27
|
+
# time series data.
|
28
|
+
class Service
|
29
|
+
|
30
|
+
include GRPC::GenericService
|
31
|
+
|
32
|
+
self.marshal_class_method = :encode
|
33
|
+
self.unmarshal_class_method = :decode
|
34
|
+
self.service_name = 'google.monitoring.v3.MetricService'
|
35
|
+
|
36
|
+
# Lists monitored resource descriptors that match a filter. This method does not require a Stackdriver account.
|
37
|
+
rpc :ListMonitoredResourceDescriptors, ListMonitoredResourceDescriptorsRequest, ListMonitoredResourceDescriptorsResponse
|
38
|
+
# Gets a single monitored resource descriptor. This method does not require a Stackdriver account.
|
39
|
+
rpc :GetMonitoredResourceDescriptor, GetMonitoredResourceDescriptorRequest, Google::Api::MonitoredResourceDescriptor
|
40
|
+
# Lists metric descriptors that match a filter. This method does not require a Stackdriver account.
|
41
|
+
rpc :ListMetricDescriptors, ListMetricDescriptorsRequest, ListMetricDescriptorsResponse
|
42
|
+
# Gets a single metric descriptor. This method does not require a Stackdriver account.
|
43
|
+
rpc :GetMetricDescriptor, GetMetricDescriptorRequest, Google::Api::MetricDescriptor
|
44
|
+
# Creates a new metric descriptor.
|
45
|
+
# User-created metric descriptors define
|
46
|
+
# [custom metrics](/monitoring/custom-metrics).
|
47
|
+
rpc :CreateMetricDescriptor, CreateMetricDescriptorRequest, Google::Api::MetricDescriptor
|
48
|
+
# Deletes a metric descriptor. Only user-created
|
49
|
+
# [custom metrics](/monitoring/custom-metrics) can be deleted.
|
50
|
+
rpc :DeleteMetricDescriptor, DeleteMetricDescriptorRequest, Google::Protobuf::Empty
|
51
|
+
# Lists time series that match a filter. This method does not require a Stackdriver account.
|
52
|
+
rpc :ListTimeSeries, ListTimeSeriesRequest, ListTimeSeriesResponse
|
53
|
+
# Creates or adds data to one or more time series.
|
54
|
+
# The response is empty if all time series in the request were written.
|
55
|
+
# If any time series could not be written, a corresponding failure message is
|
56
|
+
# included in the error response.
|
57
|
+
rpc :CreateTimeSeries, CreateTimeSeriesRequest, Google::Protobuf::Empty
|
58
|
+
end
|
59
|
+
|
60
|
+
Stub = Service.rpc_stub_class
|
61
|
+
end
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|