public sealed class LoggingServiceV2ClientImpl : LoggingServiceV2ClientLoggingServiceV2 client wrapper implementation, for convenient use.
Namespace
Google.Cloud.Logging.V2Assembly
Google.Cloud.Logging.V2.dll
Remarks
Service for ingesting and querying logs.
Constructors
LoggingServiceV2ClientImpl(LoggingServiceV2.LoggingServiceV2Client, LoggingServiceV2Settings)
public LoggingServiceV2ClientImpl(LoggingServiceV2.LoggingServiceV2Client grpcClient, LoggingServiceV2Settings settings)Constructs a client wrapper for the LoggingServiceV2 service, with the specified gRPC client and settings.
| Parameters | |
|---|---|
| Name | Description |
grpcClient |
LoggingServiceV2.LoggingServiceV2ClientThe underlying gRPC client. |
settings |
LoggingServiceV2SettingsThe base LoggingServiceV2Settings used within this client. |
Properties
GrpcClient
public override LoggingServiceV2.LoggingServiceV2Client GrpcClient { get; }The underlying gRPC LoggingServiceV2 client
| Property Value | |
|---|---|
| Type | Description |
LoggingServiceV2.LoggingServiceV2Client |
|
Methods
DeleteLog(DeleteLogRequest, CallSettings)
public override void DeleteLog(DeleteLogRequest request, CallSettings callSettings = null)Deletes all the log entries in a log. The log reappears if it receives new entries. Log entries written shortly before the delete operation might not be deleted. Entries received after the delete operation with a timestamp before the operation will be deleted.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteLogRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
DeleteLogAsync(DeleteLogRequest, CallSettings)
public override Task DeleteLogAsync(DeleteLogRequest request, CallSettings callSettings = null)Deletes all the log entries in a log. The log reappears if it receives new entries. Log entries written shortly before the delete operation might not be deleted. Entries received after the delete operation with a timestamp before the operation will be deleted.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteLogRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Task |
A Task containing the RPC response. |
ListLogEntries(ListLogEntriesRequest, CallSettings)
public override PagedEnumerable<ListLogEntriesResponse, LogEntry> ListLogEntries(ListLogEntriesRequest request, CallSettings callSettings = null)Lists log entries. Use this method to retrieve log entries that originated from a project/folder/organization/billing account. For ways to export log entries, see Exporting Logs.
| Parameters | |
|---|---|
| Name | Description |
request |
ListLogEntriesRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerable<ListLogEntriesResponse, LogEntry> |
A pageable sequence of LogEntry resources. |
ListLogEntriesAsync(ListLogEntriesRequest, CallSettings)
public override PagedAsyncEnumerable<ListLogEntriesResponse, LogEntry> ListLogEntriesAsync(ListLogEntriesRequest request, CallSettings callSettings = null)Lists log entries. Use this method to retrieve log entries that originated from a project/folder/organization/billing account. For ways to export log entries, see Exporting Logs.
| Parameters | |
|---|---|
| Name | Description |
request |
ListLogEntriesRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerable<ListLogEntriesResponse, LogEntry> |
A pageable asynchronous sequence of LogEntry resources. |
ListLogs(ListLogsRequest, CallSettings)
public override PagedEnumerable<ListLogsResponse, string> ListLogs(ListLogsRequest request, CallSettings callSettings = null)Lists the logs in projects, organizations, folders, or billing accounts. Only logs that have entries are listed.
| Parameters | |
|---|---|
| Name | Description |
request |
ListLogsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerable<ListLogsResponse, String> |
A pageable sequence of String resources. |
ListLogsAsync(ListLogsRequest, CallSettings)
public override PagedAsyncEnumerable<ListLogsResponse, string> ListLogsAsync(ListLogsRequest request, CallSettings callSettings = null)Lists the logs in projects, organizations, folders, or billing accounts. Only logs that have entries are listed.
| Parameters | |
|---|---|
| Name | Description |
request |
ListLogsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerable<ListLogsResponse, String> |
A pageable asynchronous sequence of String resources. |
ListMonitoredResourceDescriptors(ListMonitoredResourceDescriptorsRequest, CallSettings)
public override PagedEnumerable<ListMonitoredResourceDescriptorsResponse, MonitoredResourceDescriptor> ListMonitoredResourceDescriptors(ListMonitoredResourceDescriptorsRequest request, CallSettings callSettings = null)Lists the descriptors for monitored resource types used by Logging.
| Parameters | |
|---|---|
| Name | Description |
request |
ListMonitoredResourceDescriptorsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerable<ListMonitoredResourceDescriptorsResponse, MonitoredResourceDescriptor> |
A pageable sequence of MonitoredResourceDescriptor resources. |
ListMonitoredResourceDescriptorsAsync(ListMonitoredResourceDescriptorsRequest, CallSettings)
public override PagedAsyncEnumerable<ListMonitoredResourceDescriptorsResponse, MonitoredResourceDescriptor> ListMonitoredResourceDescriptorsAsync(ListMonitoredResourceDescriptorsRequest request, CallSettings callSettings = null)Lists the descriptors for monitored resource types used by Logging.
| Parameters | |
|---|---|
| Name | Description |
request |
ListMonitoredResourceDescriptorsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerable<ListMonitoredResourceDescriptorsResponse, MonitoredResourceDescriptor> |
A pageable asynchronous sequence of MonitoredResourceDescriptor resources. |
TailLogEntries(CallSettings, BidirectionalStreamingSettings)
public override LoggingServiceV2Client.TailLogEntriesStream TailLogEntries(CallSettings callSettings = null, BidirectionalStreamingSettings streamingSettings = null)Streaming read of log entries as they are ingested. Until the stream is terminated, it will continue reading logs.
| Parameters | |
|---|---|
| Name | Description |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
streamingSettings |
BidirectionalStreamingSettingsIf not null, applies streaming overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
LoggingServiceV2Client.TailLogEntriesStream |
The client-server stream. |
WriteLogEntries(WriteLogEntriesRequest, CallSettings)
public override WriteLogEntriesResponse WriteLogEntries(WriteLogEntriesRequest request, CallSettings callSettings = null)Writes log entries to Logging. This API method is the only way to send log entries to Logging. This method is used, directly or indirectly, by the Logging agent (fluentd) and all logging libraries configured to use Logging. A single request may contain log entries for a maximum of 1000 different resources (projects, organizations, billing accounts or folders)
| Parameters | |
|---|---|
| Name | Description |
request |
WriteLogEntriesRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
WriteLogEntriesResponse |
The RPC response. |
WriteLogEntriesAsync(WriteLogEntriesRequest, CallSettings)
public override Task<WriteLogEntriesResponse> WriteLogEntriesAsync(WriteLogEntriesRequest request, CallSettings callSettings = null)Writes log entries to Logging. This API method is the only way to send log entries to Logging. This method is used, directly or indirectly, by the Logging agent (fluentd) and all logging libraries configured to use Logging. A single request may contain log entries for a maximum of 1000 different resources (projects, organizations, billing accounts or folders)
| Parameters | |
|---|---|
| Name | Description |
request |
WriteLogEntriesRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Task<WriteLogEntriesResponse> |
A Task containing the RPC response. |