public interface LoggingRpc extends AutoCloseable, com.google.cloud.ServiceRpc
Modifier and Type | Method and Description |
---|---|
com.google.api.core.ApiFuture<LogMetric> |
create(CreateLogMetricRequest request)
Sends a request to create a log metric.
|
com.google.api.core.ApiFuture<LogSink> |
create(CreateSinkRequest request)
Sends a request to create a sink.
|
com.google.api.core.ApiFuture<Empty> |
delete(DeleteLogMetricRequest request)
Sends a request to delete a log metric.
|
com.google.api.core.ApiFuture<Empty> |
delete(DeleteLogRequest request)
Sends a request to deletes a log.
|
com.google.api.core.ApiFuture<Empty> |
delete(DeleteSinkRequest request)
Sends a request to delete a sink.
|
com.google.api.core.ApiFuture<LogMetric> |
get(GetLogMetricRequest request)
Sends a request to get a log metric.
|
com.google.api.core.ApiFuture<LogSink> |
get(GetSinkRequest request)
Sends a request to get a sink.
|
com.google.api.core.ApiFuture<ListLogEntriesResponse> |
list(ListLogEntriesRequest request)
Sends a request to list log entries.
|
com.google.api.core.ApiFuture<ListLogMetricsResponse> |
list(ListLogMetricsRequest request)
Sends a request to list the log metrics in a project.
|
com.google.api.core.ApiFuture<ListMonitoredResourceDescriptorsResponse> |
list(ListMonitoredResourceDescriptorsRequest request)
Sends a request to list monitored resource descriptors.
|
com.google.api.core.ApiFuture<ListSinksResponse> |
list(ListSinksRequest request)
Sends a request to list the sinks in a project.
|
com.google.api.core.ApiFuture<LogMetric> |
update(UpdateLogMetricRequest request)
Sends a request to update a log metric.
|
com.google.api.core.ApiFuture<LogSink> |
update(UpdateSinkRequest request)
Sends a request to update a sink.
|
com.google.api.core.ApiFuture<WriteLogEntriesResponse> |
write(WriteLogEntriesRequest request)
Sends a request to write log entries to Stackdriver Logging.
|
close
com.google.api.core.ApiFuture<LogSink> create(CreateSinkRequest request)
ApiFuture
object to consume the
result. Future.get()
returns the created sink.request
- the request object containing all of the parameters for the API callcom.google.api.core.ApiFuture<LogSink> update(UpdateSinkRequest request)
ApiFuture
object to consume the result. Future.get()
returns the
updated or created sink.request
- the request object containing all of the parameters for the API callcom.google.api.core.ApiFuture<LogSink> get(GetSinkRequest request)
ApiFuture
object to consume the
result. Future.get()
returns the requested sink or null
if not found.request
- the request object containing all of the parameters for the API callcom.google.api.core.ApiFuture<ListSinksResponse> list(ListSinksRequest request)
ApiFuture
object
to consume the result. Future.get()
returns a response object containing the listing
result.request
- the request object containing all of the parameters for the API callcom.google.api.core.ApiFuture<Empty> delete(DeleteSinkRequest request)
ApiFuture
object to consume the
result. Future.get()
returns Empty.getDefaultInstance()
or null
if
the sink was not found.request
- the request object containing all of the parameters for the API callcom.google.api.core.ApiFuture<Empty> delete(DeleteLogRequest request)
ApiFuture
object to consume the
result. Future.get()
returns Empty.getDefaultInstance()
or null
if
the log was not found. The deleted log will reappear if it receives new log entries.request
- the request object containing all of the parameters for the API callcom.google.api.core.ApiFuture<WriteLogEntriesResponse> write(WriteLogEntriesRequest request)
ApiFuture
object to consume the result. Future.get()
returns a response object for
the write operation.request
- the request object containing all of the parameters for the API callcom.google.api.core.ApiFuture<ListLogEntriesResponse> list(ListLogEntriesRequest request)
ApiFuture
object to consume the result. Future.get()
returns a response object containing the listing result.request
- the request object containing all of the parameters for the API callcom.google.api.core.ApiFuture<ListMonitoredResourceDescriptorsResponse> list(ListMonitoredResourceDescriptorsRequest request)
ApiFuture
object to consume the result. Future.get()
returns a response object containing the
listing result.request
- the request object containing all of the parameters for the API callcom.google.api.core.ApiFuture<LogMetric> create(CreateLogMetricRequest request)
ApiFuture
object to
consume the result. Future.get()
returns the created metric.request
- the request object containing all of the parameters for the API callcom.google.api.core.ApiFuture<LogMetric> update(UpdateLogMetricRequest request)
ApiFuture
object to consume the result. Future.get()
returns the updated or created log metric.request
- the request object containing all of the parameters for the API callcom.google.api.core.ApiFuture<LogMetric> get(GetLogMetricRequest request)
ApiFuture
object to consume
the result. Future.get()
returns the requested log metric or null
if not
found.request
- the request object containing all of the parameters for the API callcom.google.api.core.ApiFuture<ListLogMetricsResponse> list(ListLogMetricsRequest request)
ApiFuture
object to consume the result. Future.get()
returns a response object containing the
listing result.request
- the request object containing all of the parameters for the API callcom.google.api.core.ApiFuture<Empty> delete(DeleteLogMetricRequest request)
ApiFuture
object to
consume the result. Future.get()
returns Empty.getDefaultInstance()
or
null
if the log was not found.request
- the request object containing all of the parameters for the API callCopyright © 2019 Google LLC. All rights reserved.