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

public sealed class ErrorReportingServiceOptions

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

Configuration for initializing Error Reporting.

Inheritance

object > ErrorReportingServiceOptions

Namespace

GoogleCloudGoogle.Cloud.DiagnosticsCommon

Assembly

Google.Cloud.Diagnostics.Common.dll

Properties

Client

public LoggingServiceV2Client Client { get; set; }

A client to log entries with. May be null.

Property Value
TypeDescription
LoggingServiceV2Client

EventTarget

public EventTarget EventTarget { get; set; }

Where to send error reports to. Will ultimately represent a Google Project or Organization. May be set by setting ProjectId. May be null if running on Google Cloud in which case the Google Cloud Platform project ID will be detected from the platform and used to build the event target.

Property Value
TypeDescription
EventTarget

Options

public ErrorReportingOptions Options { get; set; }

Error reporting options for exception logging. May be null.

Property Value
TypeDescription
ErrorReportingOptions

ProjectId

public string ProjectId { get; set; }

The Google Cloud Project ID to store the logs in. May be null if running on Google Cloud, in which case, and if EventTarget is also null the project ID will be detected from the platform and used to build the log target. This is an alternate way to set EventTarget for Project.

Property Value
TypeDescription
string

ServiceName

public string ServiceName { get; set; }

An identifier of the service, such as the name of the executable or job. May be null.

Property Value
TypeDescription
string

Version

public string Version { get; set; }

Represents the source code version that the developer provided. May be null.

Property Value
TypeDescription
string