Google Cloud Monitoring v3 API - Class MetricServiceSettings (3.5.0)

public sealed class MetricServiceSettings : ServiceSettingsBase

Reference documentation and code samples for the Google Cloud Monitoring v3 API class MetricServiceSettings.

Settings for MetricServiceClient instances.

Inheritance

object > ServiceSettingsBase > MetricServiceSettings

Namespace

Google.Cloud.Monitoring.V3

Assembly

Google.Cloud.Monitoring.V3.dll

Constructors

MetricServiceSettings()

public MetricServiceSettings()

Constructs a new MetricServiceSettings object with default settings.

Properties

CreateMetricDescriptorSettings

public CallSettings CreateMetricDescriptorSettings { get; set; }

CallSettings for synchronous and asynchronous calls to MetricServiceClient.CreateMetricDescriptor and MetricServiceClient.CreateMetricDescriptorAsync .

Property Value
TypeDescription
CallSettings
Remarks
  • This call will not be retried.
  • Timeout: 12 seconds.

CreateServiceTimeSeriesSettings

public CallSettings CreateServiceTimeSeriesSettings { get; set; }

CallSettings for synchronous and asynchronous calls to MetricServiceClient.CreateServiceTimeSeries and MetricServiceClient.CreateServiceTimeSeriesAsync .

Property Value
TypeDescription
CallSettings
Remarks
  • This call will not be retried.
  • No timeout is applied.

CreateTimeSeriesSettings

public CallSettings CreateTimeSeriesSettings { get; set; }

CallSettings for synchronous and asynchronous calls to MetricServiceClient.CreateTimeSeries and MetricServiceClient.CreateTimeSeriesAsync.

Property Value
TypeDescription
CallSettings
Remarks
  • This call will not be retried.
  • Timeout: 12 seconds.

DeleteMetricDescriptorSettings

public CallSettings DeleteMetricDescriptorSettings { get; set; }

CallSettings for synchronous and asynchronous calls to MetricServiceClient.DeleteMetricDescriptor and MetricServiceClient.DeleteMetricDescriptorAsync .

Property Value
TypeDescription
CallSettings
Remarks
  • Initial retry delay: 100 milliseconds.
  • Retry delay multiplier: 1.3
  • Retry maximum delay: 30000 milliseconds.
  • Maximum attempts: 5
  • Retriable status codes: Unavailable.
  • Timeout: 30 seconds.

GetMetricDescriptorSettings

public CallSettings GetMetricDescriptorSettings { get; set; }

CallSettings for synchronous and asynchronous calls to MetricServiceClient.GetMetricDescriptor and MetricServiceClient.GetMetricDescriptorAsync.

Property Value
TypeDescription
CallSettings
Remarks
  • Initial retry delay: 100 milliseconds.
  • Retry delay multiplier: 1.3
  • Retry maximum delay: 30000 milliseconds.
  • Maximum attempts: 5
  • Retriable status codes: Unavailable.
  • Timeout: 30 seconds.

GetMonitoredResourceDescriptorSettings

public CallSettings GetMonitoredResourceDescriptorSettings { get; set; }

CallSettings for synchronous and asynchronous calls to MetricServiceClient.GetMonitoredResourceDescriptor and MetricServiceClient.GetMonitoredResourceDescriptorAsync.

Property Value
TypeDescription
CallSettings
Remarks
  • Initial retry delay: 100 milliseconds.
  • Retry delay multiplier: 1.3
  • Retry maximum delay: 30000 milliseconds.
  • Maximum attempts: 5
  • Retriable status codes: Unavailable.
  • Timeout: 30 seconds.

ListMetricDescriptorsSettings

public CallSettings ListMetricDescriptorsSettings { get; set; }

CallSettings for synchronous and asynchronous calls to MetricServiceClient.ListMetricDescriptors and MetricServiceClient.ListMetricDescriptorsAsync.

Property Value
TypeDescription
CallSettings
Remarks
  • Initial retry delay: 100 milliseconds.
  • Retry delay multiplier: 1.3
  • Retry maximum delay: 30000 milliseconds.
  • Maximum attempts: 5
  • Retriable status codes: Unavailable.
  • Timeout: 30 seconds.

ListMonitoredResourceDescriptorsSettings

public CallSettings ListMonitoredResourceDescriptorsSettings { get; set; }

CallSettings for synchronous and asynchronous calls to MetricServiceClient.ListMonitoredResourceDescriptors and MetricServiceClient.ListMonitoredResourceDescriptorsAsync.

Property Value
TypeDescription
CallSettings
Remarks
  • Initial retry delay: 100 milliseconds.
  • Retry delay multiplier: 1.3
  • Retry maximum delay: 30000 milliseconds.
  • Maximum attempts: 5
  • Retriable status codes: Unavailable.
  • Timeout: 30 seconds.

ListTimeSeriesSettings

public CallSettings ListTimeSeriesSettings { get; set; }

CallSettings for synchronous and asynchronous calls to MetricServiceClient.ListTimeSeries and MetricServiceClient.ListTimeSeriesAsync.

Property Value
TypeDescription
CallSettings
Remarks
  • Initial retry delay: 100 milliseconds.
  • Retry delay multiplier: 1.3
  • Retry maximum delay: 30000 milliseconds.
  • Maximum attempts: 5
  • Retriable status codes: Unavailable.
  • Timeout: 90 seconds.

Methods

Clone()

public MetricServiceSettings Clone()

Creates a deep clone of this object, with all the same property values.

Returns
TypeDescription
MetricServiceSettings

A deep clone of this MetricServiceSettings object.

GetDefault()

public static MetricServiceSettings GetDefault()

Get a new instance of the default MetricServiceSettings.

Returns
TypeDescription
MetricServiceSettings

A new instance of the default MetricServiceSettings.