Show / Hide Table of Contents

Class ErrorReportingOptions

Optional configuration to be used when initializing error reporting.

Inheritance
System.Object
ErrorReportingOptions
Inherited Members
System.Object.ToString()
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Google.Cloud.Diagnostics.Common
Assembly: Google.Cloud.Diagnostics.Common.dll
Syntax
public sealed class ErrorReportingOptions

Properties

BufferOptions

The buffer options for the error reporter.

Declaration
public BufferOptions BufferOptions { get; }
Property Value
Type Description
BufferOptions

EventTarget

Where the error events should be sent.

Declaration
public EventTarget EventTarget { get; }
Property Value
Type Description
EventTarget

RetryOptions

The retry options for the error reporter.

Declaration
public RetryOptions RetryOptions { get; }
Property Value
Type Description
RetryOptions

Methods

Create(EventTarget, BufferOptions, RetryOptions)

Creates an ErrorReportingOptions.

Declaration
public static ErrorReportingOptions Create(EventTarget eventTarget, BufferOptions bufferOptions = null, RetryOptions retryOptions = null)
Parameters
Type Name Description
EventTarget eventTarget

Where the error events should be sent. Must not be null.

BufferOptions bufferOptions

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

RetryOptions retryOptions

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

Returns
Type Description
ErrorReportingOptions

Create(String, BufferOptions, RetryOptions)

Creates an ErrorReportingOptions that will send error events to the Stackdriver Logging API.

Declaration
public static ErrorReportingOptions Create(string projectId = null, BufferOptions bufferOptions = null, RetryOptions retryOptions = null)
Parameters
Type Name Description
System.String projectId

Optional if running on Google App Engine or Google Compute Engine. The Google Cloud Platform project ID. If running on GAE or GCE the project ID will be detected from the platform.

BufferOptions bufferOptions

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

RetryOptions retryOptions

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

Returns
Type Description
ErrorReportingOptions
Back to top