Package com.google.cloud.logging.spi.v2
Class GrpcLoggingRpc
java.lang.Object
com.google.cloud.logging.spi.v2.GrpcLoggingRpc
- All Implemented Interfaces:
LoggingRpc,ServiceRpc,AutoCloseable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()create(CreateExclusionRequest request) Sends a request to create a new exclusion in a specified parent resource.create(CreateLogMetricRequest request) Sends a request to create a log metric.create(CreateSinkRequest request) Sends a request to create a sink.ApiFuture<com.google.protobuf.Empty>delete(DeleteExclusionRequest request) Sends a request to delete an exclusion.ApiFuture<com.google.protobuf.Empty>delete(DeleteLogMetricRequest request) Sends a request to delete a log metric.ApiFuture<com.google.protobuf.Empty>delete(DeleteLogRequest request) Sends a request to deletes a log.ApiFuture<com.google.protobuf.Empty>delete(DeleteSinkRequest request) Sends a request to delete a sink.get(GetExclusionRequest request) Sends a request to get the description of an exclusion.get(GetLogMetricRequest request) Sends a request to get a log metric.get(GetSinkRequest request) Sends a request to get a sink.This method returns a {code BidiStream} object to consume the stream of log entries.list(ListExclusionsRequest request) Sends a request to list all the exclusions in parent resource.list(ListLogEntriesRequest request) Sends a request to list log entries.list(ListLogMetricsRequest request) Sends a request to list the log metrics in a project.Sends a request to list monitored resource descriptors.list(ListSinksRequest request) Sends a request to list the sinks in a project.listLogs(ListLogsRequest request) Sends a request to list the log names in a project.update(UpdateExclusionRequest request) Sends a request to change one or more properties of an existing exclusion.update(UpdateLogMetricRequest request) Sends a request to update a log metric.update(UpdateSinkRequest request) Sends a request to update a sink.write(WriteLogEntriesRequest request) Sends a request to write log entries to Cloud Logging.
-
Constructor Details
-
GrpcLoggingRpc
- Throws:
IOException
-
-
Method Details
-
create
Description copied from interface:LoggingRpcSends a request to create a sink. This method returns aApiFutureobject to consume the result.Future.get()returns the created sink.- Specified by:
createin interfaceLoggingRpc- Parameters:
request- the request object containing all of the parameters for the API call
-
update
Description copied from interface:LoggingRpcSends a request to update a sink. If the sink does not exist, it is created. This method returns aApiFutureobject to consume the result.Future.get()returns the updated or created sink.- Specified by:
updatein interfaceLoggingRpc- Parameters:
request- the request object containing all of the parameters for the API call
-
get
Description copied from interface:LoggingRpcSends a request to get a sink. This method returns aApiFutureobject to consume the result.Future.get()returns the requested sink ornullif not found.- Specified by:
getin interfaceLoggingRpc- Parameters:
request- the request object containing all of the parameters for the API call
-
list
Description copied from interface:LoggingRpcSends a request to list the sinks in a project. This method returns aApiFutureobject to consume the result.Future.get()returns a response object containing the listing result.- Specified by:
listin interfaceLoggingRpc- Parameters:
request- the request object containing all of the parameters for the API call
-
delete
Description copied from interface:LoggingRpcSends a request to delete a sink. This method returns aApiFutureobject to consume the result.Future.get()returnsEmpty.getDefaultInstance()ornullif the sink was not found.- Specified by:
deletein interfaceLoggingRpc- Parameters:
request- the request object containing all of the parameters for the API call
-
create
Description copied from interface:LoggingRpcSends a request to create a new exclusion in a specified parent resource. This method returns anApiFutureobject to consume the result.Future.get()returns the created exclusion.- Specified by:
createin interfaceLoggingRpc- Parameters:
request- the request object containing all of the parameters for the API call
-
get
Description copied from interface:LoggingRpcSends a request to get the description of an exclusion. This method returns anApiFutureobject to consume the result.Future.get()returns the requested exclusion ornullif not found.- Specified by:
getin interfaceLoggingRpc- Parameters:
request- the request object containing all of the parameters for the API call
-
update
Description copied from interface:LoggingRpcSends a request to change one or more properties of an existing exclusion. This method returns anApiFutureobject to consume the result.Future.get()returns the updated exclusion.- Specified by:
updatein interfaceLoggingRpc- Parameters:
request- the request object containing all of the parameters for the API call
-
list
Description copied from interface:LoggingRpcSends a request to list all the exclusions in parent resource. Use this method to retrieve exclusions from Cloud Logging. This method returns anApiFutureobject to consume the result.Future.get()returns a response object containing the listing result.- Specified by:
listin interfaceLoggingRpc- Parameters:
request- the request object containing all of the parameters for the API call
-
delete
Description copied from interface:LoggingRpcSends a request to delete an exclusion. This method returns anApiFutureobject to consume the result.Future.get()returnsEmpty.getDefaultInstance()ornullif the log exclusion was not found.- Specified by:
deletein interfaceLoggingRpc- Parameters:
request- the request object containing all of the parameters for the API call
-
listLogs
Description copied from interface:LoggingRpcSends a request to list the log names in a project. This method returns aApiFutureobject to consume the result.Future.get()returns a response object containing the listing result.- Specified by:
listLogsin interfaceLoggingRpc- Parameters:
request- the request object containing all of the parameters for the API call
-
delete
Description copied from interface:LoggingRpcSends a request to deletes a log. This method returns aApiFutureobject to consume the result.Future.get()returnsEmpty.getDefaultInstance()ornullif the log was not found. The deleted log will reappear if it receives new log entries.- Specified by:
deletein interfaceLoggingRpc- Parameters:
request- the request object containing all of the parameters for the API call
-
write
Description copied from interface:LoggingRpcSends a request to write log entries to Cloud Logging. This method returns aApiFutureobject to consume the result.Future.get()returns a response object for the write operation.- Specified by:
writein interfaceLoggingRpc- Parameters:
request- the request object containing all of the parameters for the API call
-
list
Description copied from interface:LoggingRpcSends a request to list log entries. Use this method to retrieve log entries from Cloud Logging. This method returns aApiFutureobject to consume the result.Future.get()returns a response object containing the listing result.- Specified by:
listin interfaceLoggingRpc- Parameters:
request- the request object containing all of the parameters for the API call
-
getTailLogEntriesStream
Description copied from interface:LoggingRpcThis method returns a {code BidiStream} object to consume the stream of log entries.- Specified by:
getTailLogEntriesStreamin interfaceLoggingRpc
-
list
public ApiFuture<ListMonitoredResourceDescriptorsResponse> list(ListMonitoredResourceDescriptorsRequest request) Description copied from interface:LoggingRpcSends a request to list monitored resource descriptors. This method returns aApiFutureobject to consume the result.Future.get()returns a response object containing the listing result.- Specified by:
listin interfaceLoggingRpc- Parameters:
request- the request object containing all of the parameters for the API call
-
create
Description copied from interface:LoggingRpcSends a request to create a log metric. This method returns aApiFutureobject to consume the result.Future.get()returns the created metric.- Specified by:
createin interfaceLoggingRpc- Parameters:
request- the request object containing all of the parameters for the API call
-
update
Description copied from interface:LoggingRpcSends a request to update a log metric. If the log metric does not exist, it is created. This method returns aApiFutureobject to consume the result.Future.get()returns the updated or created log metric.- Specified by:
updatein interfaceLoggingRpc- Parameters:
request- the request object containing all of the parameters for the API call
-
get
Description copied from interface:LoggingRpcSends a request to get a log metric. This method returns aApiFutureobject to consume the result.Future.get()returns the requested log metric ornullif not found.- Specified by:
getin interfaceLoggingRpc- Parameters:
request- the request object containing all of the parameters for the API call
-
list
Description copied from interface:LoggingRpcSends a request to list the log metrics in a project. This method returns aApiFutureobject to consume the result.Future.get()returns a response object containing the listing result.- Specified by:
listin interfaceLoggingRpc- Parameters:
request- the request object containing all of the parameters for the API call
-
delete
Description copied from interface:LoggingRpcSends a request to delete a log metric. This method returns aApiFutureobject to consume the result.Future.get()returnsEmpty.getDefaultInstance()ornullif the log was not found.- Specified by:
deletein interfaceLoggingRpc- Parameters:
request- the request object containing all of the parameters for the API call
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-