google-cloud-monitoring-v3 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE.md +188 -190
- data/README.md +2 -2
- data/lib/google/cloud/monitoring/v3/alert_policy_service/client.rb +18 -18
- data/lib/google/cloud/monitoring/v3/alert_policy_service/paths.rb +4 -4
- data/lib/google/cloud/monitoring/v3/group_service/client.rb +25 -25
- data/lib/google/cloud/monitoring/v3/group_service/paths.rb +2 -2
- data/lib/google/cloud/monitoring/v3/metric_service/client.rb +30 -30
- data/lib/google/cloud/monitoring/v3/metric_service/paths.rb +4 -4
- data/lib/google/cloud/monitoring/v3/notification_channel_service/client.rb +35 -35
- data/lib/google/cloud/monitoring/v3/notification_channel_service/paths.rb +4 -4
- data/lib/google/cloud/monitoring/v3/service_monitoring_service/client.rb +32 -32
- data/lib/google/cloud/monitoring/v3/service_monitoring_service/paths.rb +4 -4
- data/lib/google/cloud/monitoring/v3/uptime_check_service/client.rb +22 -22
- data/lib/google/cloud/monitoring/v3/uptime_check_service/paths.rb +2 -2
- data/lib/google/cloud/monitoring/v3/version.rb +1 -1
- metadata +6 -6
@@ -68,7 +68,7 @@ module Google
|
|
68
68
|
# @return [::String]
|
69
69
|
def notification_channel_path **args
|
70
70
|
resources = {
|
71
|
-
"notification_channel:project"
|
71
|
+
"notification_channel:project" => (proc do |project:, notification_channel:|
|
72
72
|
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
73
73
|
|
74
74
|
"projects/#{project}/notificationChannels/#{notification_channel}"
|
@@ -78,7 +78,7 @@ module Google
|
|
78
78
|
|
79
79
|
"organizations/#{organization}/notificationChannels/#{notification_channel}"
|
80
80
|
end),
|
81
|
-
"folder:notification_channel"
|
81
|
+
"folder:notification_channel" => (proc do |folder:, notification_channel:|
|
82
82
|
raise ::ArgumentError, "folder cannot contain /" if folder.to_s.include? "/"
|
83
83
|
|
84
84
|
"folders/#{folder}/notificationChannels/#{notification_channel}"
|
@@ -120,7 +120,7 @@ module Google
|
|
120
120
|
# @return [::String]
|
121
121
|
def notification_channel_descriptor_path **args
|
122
122
|
resources = {
|
123
|
-
"channel_descriptor:project"
|
123
|
+
"channel_descriptor:project" => (proc do |project:, channel_descriptor:|
|
124
124
|
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
125
125
|
|
126
126
|
"projects/#{project}/notificationChannelDescriptors/#{channel_descriptor}"
|
@@ -130,7 +130,7 @@ module Google
|
|
130
130
|
|
131
131
|
"organizations/#{organization}/notificationChannelDescriptors/#{channel_descriptor}"
|
132
132
|
end),
|
133
|
-
"channel_descriptor:folder"
|
133
|
+
"channel_descriptor:folder" => (proc do |folder:, channel_descriptor:|
|
134
134
|
raise ::ArgumentError, "folder cannot contain /" if folder.to_s.include? "/"
|
135
135
|
|
136
136
|
"folders/#{folder}/notificationChannelDescriptors/#{channel_descriptor}"
|
@@ -63,7 +63,7 @@ module Google
|
|
63
63
|
parent_config = while namespace.any?
|
64
64
|
parent_name = namespace.join "::"
|
65
65
|
parent_const = const_get parent_name
|
66
|
-
break parent_const.configure if parent_const
|
66
|
+
break parent_const.configure if parent_const.respond_to? :configure
|
67
67
|
namespace.pop
|
68
68
|
end
|
69
69
|
default_config = Client::Configuration.new parent_config
|
@@ -73,17 +73,17 @@ module Google
|
|
73
73
|
default_config.rpcs.get_service.timeout = 30.0
|
74
74
|
default_config.rpcs.get_service.retry_policy = {
|
75
75
|
initial_delay: 0.1,
|
76
|
-
|
77
|
-
|
78
|
-
|
76
|
+
max_delay: 30.0,
|
77
|
+
multiplier: 1.3,
|
78
|
+
retry_codes: [4, 14]
|
79
79
|
}
|
80
80
|
|
81
81
|
default_config.rpcs.list_services.timeout = 30.0
|
82
82
|
default_config.rpcs.list_services.retry_policy = {
|
83
83
|
initial_delay: 0.1,
|
84
|
-
|
85
|
-
|
86
|
-
|
84
|
+
max_delay: 30.0,
|
85
|
+
multiplier: 1.3,
|
86
|
+
retry_codes: [4, 14]
|
87
87
|
}
|
88
88
|
|
89
89
|
default_config.rpcs.update_service.timeout = 30.0
|
@@ -91,9 +91,9 @@ module Google
|
|
91
91
|
default_config.rpcs.delete_service.timeout = 30.0
|
92
92
|
default_config.rpcs.delete_service.retry_policy = {
|
93
93
|
initial_delay: 0.1,
|
94
|
-
|
95
|
-
|
96
|
-
|
94
|
+
max_delay: 30.0,
|
95
|
+
multiplier: 1.3,
|
96
|
+
retry_codes: [4, 14]
|
97
97
|
}
|
98
98
|
|
99
99
|
default_config.rpcs.create_service_level_objective.timeout = 30.0
|
@@ -101,17 +101,17 @@ module Google
|
|
101
101
|
default_config.rpcs.get_service_level_objective.timeout = 30.0
|
102
102
|
default_config.rpcs.get_service_level_objective.retry_policy = {
|
103
103
|
initial_delay: 0.1,
|
104
|
-
|
105
|
-
|
106
|
-
|
104
|
+
max_delay: 30.0,
|
105
|
+
multiplier: 1.3,
|
106
|
+
retry_codes: [4, 14]
|
107
107
|
}
|
108
108
|
|
109
109
|
default_config.rpcs.list_service_level_objectives.timeout = 30.0
|
110
110
|
default_config.rpcs.list_service_level_objectives.retry_policy = {
|
111
111
|
initial_delay: 0.1,
|
112
|
-
|
113
|
-
|
114
|
-
|
112
|
+
max_delay: 30.0,
|
113
|
+
multiplier: 1.3,
|
114
|
+
retry_codes: [4, 14]
|
115
115
|
}
|
116
116
|
|
117
117
|
default_config.rpcs.update_service_level_objective.timeout = 30.0
|
@@ -119,9 +119,9 @@ module Google
|
|
119
119
|
default_config.rpcs.delete_service_level_objective.timeout = 30.0
|
120
120
|
default_config.rpcs.delete_service_level_objective.retry_policy = {
|
121
121
|
initial_delay: 0.1,
|
122
|
-
|
123
|
-
|
124
|
-
|
122
|
+
max_delay: 30.0,
|
123
|
+
multiplier: 1.3,
|
124
|
+
retry_codes: [4, 14]
|
125
125
|
}
|
126
126
|
|
127
127
|
default_config
|
@@ -190,7 +190,7 @@ module Google
|
|
190
190
|
enable_self_signed_jwt = @config.scope == Client.configure.scope &&
|
191
191
|
@config.endpoint == Client.configure.endpoint &&
|
192
192
|
!@config.endpoint.split(".").first.include?("-")
|
193
|
-
credentials ||= Credentials.default scope:
|
193
|
+
credentials ||= Credentials.default scope: @config.scope,
|
194
194
|
enable_self_signed_jwt: enable_self_signed_jwt
|
195
195
|
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
196
196
|
credentials = Credentials.new credentials, scope: @config.scope
|
@@ -1044,7 +1044,7 @@ module Google
|
|
1044
1044
|
config_attr :scope, nil, ::String, ::Array, nil
|
1045
1045
|
config_attr :lib_name, nil, ::String, nil
|
1046
1046
|
config_attr :lib_version, nil, ::String, nil
|
1047
|
-
config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
|
1047
|
+
config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
|
1048
1048
|
config_attr :interceptors, nil, ::Array, nil
|
1049
1049
|
config_attr :timeout, nil, ::Numeric, nil
|
1050
1050
|
config_attr :metadata, nil, ::Hash, nil
|
@@ -1065,7 +1065,7 @@ module Google
|
|
1065
1065
|
def rpcs
|
1066
1066
|
@rpcs ||= begin
|
1067
1067
|
parent_rpcs = nil
|
1068
|
-
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config
|
1068
|
+
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
|
1069
1069
|
Rpcs.new parent_rpcs
|
1070
1070
|
end
|
1071
1071
|
end
|
@@ -1141,25 +1141,25 @@ module Google
|
|
1141
1141
|
|
1142
1142
|
# @private
|
1143
1143
|
def initialize parent_rpcs = nil
|
1144
|
-
create_service_config = parent_rpcs
|
1144
|
+
create_service_config = parent_rpcs.create_service if parent_rpcs.respond_to? :create_service
|
1145
1145
|
@create_service = ::Gapic::Config::Method.new create_service_config
|
1146
|
-
get_service_config = parent_rpcs
|
1146
|
+
get_service_config = parent_rpcs.get_service if parent_rpcs.respond_to? :get_service
|
1147
1147
|
@get_service = ::Gapic::Config::Method.new get_service_config
|
1148
|
-
list_services_config = parent_rpcs
|
1148
|
+
list_services_config = parent_rpcs.list_services if parent_rpcs.respond_to? :list_services
|
1149
1149
|
@list_services = ::Gapic::Config::Method.new list_services_config
|
1150
|
-
update_service_config = parent_rpcs
|
1150
|
+
update_service_config = parent_rpcs.update_service if parent_rpcs.respond_to? :update_service
|
1151
1151
|
@update_service = ::Gapic::Config::Method.new update_service_config
|
1152
|
-
delete_service_config = parent_rpcs
|
1152
|
+
delete_service_config = parent_rpcs.delete_service if parent_rpcs.respond_to? :delete_service
|
1153
1153
|
@delete_service = ::Gapic::Config::Method.new delete_service_config
|
1154
|
-
create_service_level_objective_config = parent_rpcs
|
1154
|
+
create_service_level_objective_config = parent_rpcs.create_service_level_objective if parent_rpcs.respond_to? :create_service_level_objective
|
1155
1155
|
@create_service_level_objective = ::Gapic::Config::Method.new create_service_level_objective_config
|
1156
|
-
get_service_level_objective_config = parent_rpcs
|
1156
|
+
get_service_level_objective_config = parent_rpcs.get_service_level_objective if parent_rpcs.respond_to? :get_service_level_objective
|
1157
1157
|
@get_service_level_objective = ::Gapic::Config::Method.new get_service_level_objective_config
|
1158
|
-
list_service_level_objectives_config = parent_rpcs
|
1158
|
+
list_service_level_objectives_config = parent_rpcs.list_service_level_objectives if parent_rpcs.respond_to? :list_service_level_objectives
|
1159
1159
|
@list_service_level_objectives = ::Gapic::Config::Method.new list_service_level_objectives_config
|
1160
|
-
update_service_level_objective_config = parent_rpcs
|
1160
|
+
update_service_level_objective_config = parent_rpcs.update_service_level_objective if parent_rpcs.respond_to? :update_service_level_objective
|
1161
1161
|
@update_service_level_objective = ::Gapic::Config::Method.new update_service_level_objective_config
|
1162
|
-
delete_service_level_objective_config = parent_rpcs
|
1162
|
+
delete_service_level_objective_config = parent_rpcs.delete_service_level_objective if parent_rpcs.respond_to? :delete_service_level_objective
|
1163
1163
|
@delete_service_level_objective = ::Gapic::Config::Method.new delete_service_level_objective_config
|
1164
1164
|
|
1165
1165
|
yield self if block_given?
|
@@ -96,7 +96,7 @@ module Google
|
|
96
96
|
# @return [::String]
|
97
97
|
def service_path **args
|
98
98
|
resources = {
|
99
|
-
"project:service"
|
99
|
+
"project:service" => (proc do |project:, service:|
|
100
100
|
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
101
101
|
|
102
102
|
"projects/#{project}/services/#{service}"
|
@@ -106,7 +106,7 @@ module Google
|
|
106
106
|
|
107
107
|
"organizations/#{organization}/services/#{service}"
|
108
108
|
end),
|
109
|
-
"folder:service"
|
109
|
+
"folder:service" => (proc do |folder:, service:|
|
110
110
|
raise ::ArgumentError, "folder cannot contain /" if folder.to_s.include? "/"
|
111
111
|
|
112
112
|
"folders/#{folder}/services/#{service}"
|
@@ -151,7 +151,7 @@ module Google
|
|
151
151
|
# @return [::String]
|
152
152
|
def service_level_objective_path **args
|
153
153
|
resources = {
|
154
|
-
"project:service:service_level_objective"
|
154
|
+
"project:service:service_level_objective" => (proc do |project:, service:, service_level_objective:|
|
155
155
|
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
156
156
|
raise ::ArgumentError, "service cannot contain /" if service.to_s.include? "/"
|
157
157
|
|
@@ -163,7 +163,7 @@ module Google
|
|
163
163
|
|
164
164
|
"organizations/#{organization}/services/#{service}/serviceLevelObjectives/#{service_level_objective}"
|
165
165
|
end),
|
166
|
-
"folder:service:service_level_objective"
|
166
|
+
"folder:service:service_level_objective" => (proc do |folder:, service:, service_level_objective:|
|
167
167
|
raise ::ArgumentError, "folder cannot contain /" if folder.to_s.include? "/"
|
168
168
|
raise ::ArgumentError, "service cannot contain /" if service.to_s.include? "/"
|
169
169
|
|
@@ -67,7 +67,7 @@ module Google
|
|
67
67
|
parent_config = while namespace.any?
|
68
68
|
parent_name = namespace.join "::"
|
69
69
|
parent_const = const_get parent_name
|
70
|
-
break parent_const.configure if parent_const
|
70
|
+
break parent_const.configure if parent_const.respond_to? :configure
|
71
71
|
namespace.pop
|
72
72
|
end
|
73
73
|
default_config = Client::Configuration.new parent_config
|
@@ -75,17 +75,17 @@ module Google
|
|
75
75
|
default_config.rpcs.list_uptime_check_configs.timeout = 30.0
|
76
76
|
default_config.rpcs.list_uptime_check_configs.retry_policy = {
|
77
77
|
initial_delay: 0.1,
|
78
|
-
|
79
|
-
|
80
|
-
|
78
|
+
max_delay: 30.0,
|
79
|
+
multiplier: 1.3,
|
80
|
+
retry_codes: [4, 14]
|
81
81
|
}
|
82
82
|
|
83
83
|
default_config.rpcs.get_uptime_check_config.timeout = 30.0
|
84
84
|
default_config.rpcs.get_uptime_check_config.retry_policy = {
|
85
85
|
initial_delay: 0.1,
|
86
|
-
|
87
|
-
|
88
|
-
|
86
|
+
max_delay: 30.0,
|
87
|
+
multiplier: 1.3,
|
88
|
+
retry_codes: [4, 14]
|
89
89
|
}
|
90
90
|
|
91
91
|
default_config.rpcs.create_uptime_check_config.timeout = 30.0
|
@@ -95,17 +95,17 @@ module Google
|
|
95
95
|
default_config.rpcs.delete_uptime_check_config.timeout = 30.0
|
96
96
|
default_config.rpcs.delete_uptime_check_config.retry_policy = {
|
97
97
|
initial_delay: 0.1,
|
98
|
-
|
99
|
-
|
100
|
-
|
98
|
+
max_delay: 30.0,
|
99
|
+
multiplier: 1.3,
|
100
|
+
retry_codes: [4, 14]
|
101
101
|
}
|
102
102
|
|
103
103
|
default_config.rpcs.list_uptime_check_ips.timeout = 30.0
|
104
104
|
default_config.rpcs.list_uptime_check_ips.retry_policy = {
|
105
105
|
initial_delay: 0.1,
|
106
|
-
|
107
|
-
|
108
|
-
|
106
|
+
max_delay: 30.0,
|
107
|
+
multiplier: 1.3,
|
108
|
+
retry_codes: [4, 14]
|
109
109
|
}
|
110
110
|
|
111
111
|
default_config
|
@@ -174,7 +174,7 @@ module Google
|
|
174
174
|
enable_self_signed_jwt = @config.scope == Client.configure.scope &&
|
175
175
|
@config.endpoint == Client.configure.endpoint &&
|
176
176
|
!@config.endpoint.split(".").first.include?("-")
|
177
|
-
credentials ||= Credentials.default scope:
|
177
|
+
credentials ||= Credentials.default scope: @config.scope,
|
178
178
|
enable_self_signed_jwt: enable_self_signed_jwt
|
179
179
|
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
180
180
|
credentials = Credentials.new credentials, scope: @config.scope
|
@@ -726,7 +726,7 @@ module Google
|
|
726
726
|
config_attr :scope, nil, ::String, ::Array, nil
|
727
727
|
config_attr :lib_name, nil, ::String, nil
|
728
728
|
config_attr :lib_version, nil, ::String, nil
|
729
|
-
config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
|
729
|
+
config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
|
730
730
|
config_attr :interceptors, nil, ::Array, nil
|
731
731
|
config_attr :timeout, nil, ::Numeric, nil
|
732
732
|
config_attr :metadata, nil, ::Hash, nil
|
@@ -747,7 +747,7 @@ module Google
|
|
747
747
|
def rpcs
|
748
748
|
@rpcs ||= begin
|
749
749
|
parent_rpcs = nil
|
750
|
-
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config
|
750
|
+
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
|
751
751
|
Rpcs.new parent_rpcs
|
752
752
|
end
|
753
753
|
end
|
@@ -803,17 +803,17 @@ module Google
|
|
803
803
|
|
804
804
|
# @private
|
805
805
|
def initialize parent_rpcs = nil
|
806
|
-
list_uptime_check_configs_config = parent_rpcs
|
806
|
+
list_uptime_check_configs_config = parent_rpcs.list_uptime_check_configs if parent_rpcs.respond_to? :list_uptime_check_configs
|
807
807
|
@list_uptime_check_configs = ::Gapic::Config::Method.new list_uptime_check_configs_config
|
808
|
-
get_uptime_check_config_config = parent_rpcs
|
808
|
+
get_uptime_check_config_config = parent_rpcs.get_uptime_check_config if parent_rpcs.respond_to? :get_uptime_check_config
|
809
809
|
@get_uptime_check_config = ::Gapic::Config::Method.new get_uptime_check_config_config
|
810
|
-
create_uptime_check_config_config = parent_rpcs
|
810
|
+
create_uptime_check_config_config = parent_rpcs.create_uptime_check_config if parent_rpcs.respond_to? :create_uptime_check_config
|
811
811
|
@create_uptime_check_config = ::Gapic::Config::Method.new create_uptime_check_config_config
|
812
|
-
update_uptime_check_config_config = parent_rpcs
|
812
|
+
update_uptime_check_config_config = parent_rpcs.update_uptime_check_config if parent_rpcs.respond_to? :update_uptime_check_config
|
813
813
|
@update_uptime_check_config = ::Gapic::Config::Method.new update_uptime_check_config_config
|
814
|
-
delete_uptime_check_config_config = parent_rpcs
|
814
|
+
delete_uptime_check_config_config = parent_rpcs.delete_uptime_check_config if parent_rpcs.respond_to? :delete_uptime_check_config
|
815
815
|
@delete_uptime_check_config = ::Gapic::Config::Method.new delete_uptime_check_config_config
|
816
|
-
list_uptime_check_ips_config = parent_rpcs
|
816
|
+
list_uptime_check_ips_config = parent_rpcs.list_uptime_check_ips if parent_rpcs.respond_to? :list_uptime_check_ips
|
817
817
|
@list_uptime_check_ips = ::Gapic::Config::Method.new list_uptime_check_ips_config
|
818
818
|
|
819
819
|
yield self if block_given?
|
@@ -96,7 +96,7 @@ module Google
|
|
96
96
|
# @return [::String]
|
97
97
|
def uptime_check_config_path **args
|
98
98
|
resources = {
|
99
|
-
"project:uptime_check_config"
|
99
|
+
"project:uptime_check_config" => (proc do |project:, uptime_check_config:|
|
100
100
|
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
101
101
|
|
102
102
|
"projects/#{project}/uptimeCheckConfigs/#{uptime_check_config}"
|
@@ -106,7 +106,7 @@ module Google
|
|
106
106
|
|
107
107
|
"organizations/#{organization}/uptimeCheckConfigs/#{uptime_check_config}"
|
108
108
|
end),
|
109
|
-
"folder:uptime_check_config"
|
109
|
+
"folder:uptime_check_config" => (proc do |folder:, uptime_check_config:|
|
110
110
|
raise ::ArgumentError, "folder cannot contain /" if folder.to_s.include? "/"
|
111
111
|
|
112
112
|
"folders/#{folder}/uptimeCheckConfigs/#{uptime_check_config}"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-monitoring-v3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-03-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 1.
|
47
|
+
version: 1.25.1
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 1.
|
54
|
+
version: 1.25.1
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: minitest
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -258,14 +258,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
258
258
|
requirements:
|
259
259
|
- - ">="
|
260
260
|
- !ruby/object:Gem::Version
|
261
|
-
version: '2.
|
261
|
+
version: '2.5'
|
262
262
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
263
263
|
requirements:
|
264
264
|
- - ">="
|
265
265
|
- !ruby/object:Gem::Version
|
266
266
|
version: '0'
|
267
267
|
requirements: []
|
268
|
-
rubygems_version: 3.2.
|
268
|
+
rubygems_version: 3.2.13
|
269
269
|
signing_key:
|
270
270
|
specification_version: 4
|
271
271
|
summary: API Client library for the Cloud Monitoring V3 API
|