Google.Cloud.Diagnostics.Common - Class ErrorReportingOptions (5.1.0)

public sealed class ErrorReportingOptions

Reference documentation and code samples for the Google.Cloud.Diagnostics.Common class ErrorReportingOptions.

Optional configuration to be used when initializing Google Cloud Error Reporting.

Inheritance

object > ErrorReportingOptions

Namespace

GoogleCloudGoogle.Cloud.DiagnosticsCommon

Assembly

Google.Cloud.Diagnostics.Common.dll

Properties

BufferOptions

public BufferOptions BufferOptions { get; }

The buffer options for the error reporter.

Property Value
TypeDescription
BufferOptions

LogName

public string LogName { get; }

The name of the log.

Property Value
TypeDescription
string

MonitoredResource

public MonitoredResource MonitoredResource { get; }
Property Value
TypeDescription
MonitoredResource

RetryOptions

public RetryOptions RetryOptions { get; }

The retry options for the error reporter.

Property Value
TypeDescription
RetryOptions

Methods

Create(string, MonitoredResource, BufferOptions, RetryOptions)

public static ErrorReportingOptions Create(string logName = null, MonitoredResource resource = null, BufferOptions bufferOptions = null, RetryOptions retryOptions = null)
Parameters
NameDescription
logNamestring

The log name to log to. May be null, in which case, a default name will be used.

resourceMonitoredResource

The monitored resource. May be null, in which case an attempt will be made to automatically detected it. If it is not detected, it will default to the global resource. See: https://cloud.google.com/logging/docs/api/v2/resource-list

bufferOptionsBufferOptions

The buffer options for the error reporter. Defaults to no buffer.

retryOptionsRetryOptions

The retry options for the error reporter. Defaults to no retry.

Returns
TypeDescription
ErrorReportingOptions

A new ErrorReportingOptions instance with the specified parameters or defaults.