public sealed class ErrorReportingServiceOptions
Reference documentation and code samples for the Google.Cloud.Diagnostics.Common class ErrorReportingServiceOptions.
Configuration for initializing Error Reporting.
Namespace
GoogleCloudGoogle.Cloud.DiagnosticsCommonAssembly
Google.Cloud.Diagnostics.Common.dll
Properties
Client
public LoggingServiceV2Client Client { get; set; }
A client to log entries with. May be null.
Property Value | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
EventTarget |
Options
public ErrorReportingOptions Options { get; set; }
Error reporting options for exception logging. May be null.
Property Value | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
string |
Version
public string Version { get; set; }
Represents the source code version that the developer provided. May be null.
Property Value | |
---|---|
Type | Description |
string |