Module: Google::Cloud::Monitoring::V3::Metric
- Defined in:
- lib/google/cloud/monitoring/v3.rb
Class Method Summary collapse
-
.new(service_path: nil, port: nil, channel: nil, chan_creds: nil, updater_proc: nil, credentials: nil, scopes: nil, client_config: nil, timeout: nil, lib_name: nil, lib_version: nil) ⇒ Object
Manages metric descriptors, monitored resource descriptors, and time series data.
Class Method Details
.new(service_path: nil, port: nil, channel: nil, chan_creds: nil, updater_proc: nil, credentials: nil, scopes: nil, client_config: nil, timeout: nil, lib_name: nil, lib_version: nil) ⇒ Object
Manages metric descriptors, monitored resource descriptors, and time series data.
171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 |
# File 'lib/google/cloud/monitoring/v3.rb', line 171 def self.new \ service_path: nil, port: nil, channel: nil, chan_creds: nil, updater_proc: nil, credentials: nil, scopes: nil, client_config: nil, timeout: nil, lib_name: nil, lib_version: nil kwargs = { service_path: service_path, port: port, channel: channel, chan_creds: chan_creds, updater_proc: updater_proc, credentials: credentials, scopes: scopes, client_config: client_config, timeout: timeout, lib_name: lib_name, lib_version: lib_version }.select { |_, v| v != nil } Google::Cloud::Monitoring::V3::MetricServiceClient.new(**kwargs) end |