class Google::Cloud::Monitoring::V3::MetricService::Client::Configuration::Rpcs

Configuration RPC class for the MetricService API.

Includes fields providing the configuration for each RPC in this service. Each configuration object is of type `Gapic::Config::Method` and includes the following configuration fields:

*  `timeout` (*type:* `Numeric`) - The call timeout in seconds
*  `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers
*  `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
   include the following keys:
    *  `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
    *  `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
    *  `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
    *  `:retry_codes` (*type:* `Array<String>`) - The error codes that should
       trigger a retry.

Attributes

create_metric_descriptor[R]

RPC-specific configuration for `create_metric_descriptor` @return [::Gapic::Config::Method]

create_time_series[R]

RPC-specific configuration for `create_time_series` @return [::Gapic::Config::Method]

delete_metric_descriptor[R]

RPC-specific configuration for `delete_metric_descriptor` @return [::Gapic::Config::Method]

get_metric_descriptor[R]

RPC-specific configuration for `get_metric_descriptor` @return [::Gapic::Config::Method]

get_monitored_resource_descriptor[R]

RPC-specific configuration for `get_monitored_resource_descriptor` @return [::Gapic::Config::Method]

list_metric_descriptors[R]

RPC-specific configuration for `list_metric_descriptors` @return [::Gapic::Config::Method]

list_monitored_resource_descriptors[R]

RPC-specific configuration for `list_monitored_resource_descriptors` @return [::Gapic::Config::Method]

list_time_series[R]

RPC-specific configuration for `list_time_series` @return [::Gapic::Config::Method]

Public Class Methods

new(parent_rpcs = nil) { |self| ... } click to toggle source

@private

# File lib/google/cloud/monitoring/v3/metric_service/client.rb, line 1020
def initialize parent_rpcs = nil
  list_monitored_resource_descriptors_config = parent_rpcs.list_monitored_resource_descriptors if parent_rpcs.respond_to? :list_monitored_resource_descriptors
  @list_monitored_resource_descriptors = ::Gapic::Config::Method.new list_monitored_resource_descriptors_config
  get_monitored_resource_descriptor_config = parent_rpcs.get_monitored_resource_descriptor if parent_rpcs.respond_to? :get_monitored_resource_descriptor
  @get_monitored_resource_descriptor = ::Gapic::Config::Method.new get_monitored_resource_descriptor_config
  list_metric_descriptors_config = parent_rpcs.list_metric_descriptors if parent_rpcs.respond_to? :list_metric_descriptors
  @list_metric_descriptors = ::Gapic::Config::Method.new list_metric_descriptors_config
  get_metric_descriptor_config = parent_rpcs.get_metric_descriptor if parent_rpcs.respond_to? :get_metric_descriptor
  @get_metric_descriptor = ::Gapic::Config::Method.new get_metric_descriptor_config
  create_metric_descriptor_config = parent_rpcs.create_metric_descriptor if parent_rpcs.respond_to? :create_metric_descriptor
  @create_metric_descriptor = ::Gapic::Config::Method.new create_metric_descriptor_config
  delete_metric_descriptor_config = parent_rpcs.delete_metric_descriptor if parent_rpcs.respond_to? :delete_metric_descriptor
  @delete_metric_descriptor = ::Gapic::Config::Method.new delete_metric_descriptor_config
  list_time_series_config = parent_rpcs.list_time_series if parent_rpcs.respond_to? :list_time_series
  @list_time_series = ::Gapic::Config::Method.new list_time_series_config
  create_time_series_config = parent_rpcs.create_time_series if parent_rpcs.respond_to? :create_time_series
  @create_time_series = ::Gapic::Config::Method.new create_time_series_config

  yield self if block_given?
end