Class MetricsServiceV2Settings (3.5.0)

public sealed class MetricsServiceV2Settings : ServiceSettingsBase

Settings for MetricsServiceV2Client instances.

Inheritance

Object > ServiceSettingsBase > MetricsServiceV2Settings

Namespace

Google.Cloud.Logging.V2

Assembly

Google.Cloud.Logging.V2.dll

Constructors

MetricsServiceV2Settings()

public MetricsServiceV2Settings()

Constructs a new MetricsServiceV2Settings object with default settings.

Properties

CreateLogMetricSettings

public CallSettings CreateLogMetricSettings { get; set; }

CallSettings for synchronous and asynchronous calls to MetricsServiceV2Client.CreateLogMetric and MetricsServiceV2Client.CreateLogMetricAsync.

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

DeleteLogMetricSettings

public CallSettings DeleteLogMetricSettings { get; set; }

CallSettings for synchronous and asynchronous calls to MetricsServiceV2Client.DeleteLogMetric and MetricsServiceV2Client.DeleteLogMetricAsync.

Property Value
TypeDescription
CallSettings
Remarks
  • Initial retry delay: 100 milliseconds.
  • Retry delay multiplier: 1.3
  • Retry maximum delay: 60000 milliseconds.
  • Maximum attempts: 5
  • Retriable status codes: DeadlineExceeded, Internal, Unavailable.
  • Timeout: 60 seconds.

GetLogMetricSettings

public CallSettings GetLogMetricSettings { get; set; }

CallSettings for synchronous and asynchronous calls to MetricsServiceV2Client.GetLogMetric and MetricsServiceV2Client.GetLogMetricAsync.

Property Value
TypeDescription
CallSettings
Remarks
  • Initial retry delay: 100 milliseconds.
  • Retry delay multiplier: 1.3
  • Retry maximum delay: 60000 milliseconds.
  • Maximum attempts: 5
  • Retriable status codes: DeadlineExceeded, Internal, Unavailable.
  • Timeout: 60 seconds.

ListLogMetricsSettings

public CallSettings ListLogMetricsSettings { get; set; }

CallSettings for synchronous and asynchronous calls to MetricsServiceV2Client.ListLogMetrics and MetricsServiceV2Client.ListLogMetricsAsync.

Property Value
TypeDescription
CallSettings
Remarks
  • Initial retry delay: 100 milliseconds.
  • Retry delay multiplier: 1.3
  • Retry maximum delay: 60000 milliseconds.
  • Maximum attempts: 5
  • Retriable status codes: DeadlineExceeded, Internal, Unavailable.
  • Timeout: 60 seconds.

UpdateLogMetricSettings

public CallSettings UpdateLogMetricSettings { get; set; }

CallSettings for synchronous and asynchronous calls to MetricsServiceV2Client.UpdateLogMetric and MetricsServiceV2Client.UpdateLogMetricAsync.

Property Value
TypeDescription
CallSettings
Remarks
  • Initial retry delay: 100 milliseconds.
  • Retry delay multiplier: 1.3
  • Retry maximum delay: 60000 milliseconds.
  • Maximum attempts: 5
  • Retriable status codes: DeadlineExceeded, Internal, Unavailable.
  • Timeout: 60 seconds.

Methods

Clone()

public MetricsServiceV2Settings Clone()

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

Returns
TypeDescription
MetricsServiceV2Settings

A deep clone of this MetricsServiceV2Settings object.

GetDefault()

public static MetricsServiceV2Settings GetDefault()

Get a new instance of the default MetricsServiceV2Settings.

Returns
TypeDescription
MetricsServiceV2Settings

A new instance of the default MetricsServiceV2Settings.