public class Logging.Sinks
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
class |
Logging.Sinks.Create |
class |
Logging.Sinks.Delete |
class |
Logging.Sinks.Get |
class |
Logging.Sinks.List |
class |
Logging.Sinks.Update |
| Constructor and Description |
|---|
Sinks() |
| Modifier and Type | Method and Description |
|---|---|
Logging.Sinks.Create |
create(java.lang.String parent,
LogSink content)
Creates a sink that exports specified log entries to a destination.
|
Logging.Sinks.Delete |
delete(java.lang.String sinkName)
Deletes a sink.
|
Logging.Sinks.Get |
get(java.lang.String sinkName)
Gets a sink.
|
Logging.Sinks.List |
list(java.lang.String parent)
Lists sinks.
|
Logging.Sinks.Update |
update(java.lang.String sinkName,
LogSink content)
Updates a sink.
|
public Logging.Sinks.Create create(java.lang.String parent, LogSink content) throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.parent - Required. The resource in which to create the sink:
"projects/[PROJECT_ID]"
"organizations/[ORGANIZATION_ID]"
"billingAccounts/[BILLING_ACCOUNT_ID]"
"folders/[FOLDER_ID]"
Examples: "projects/my-logging-project", "organizations/123456789".content - the LogSinkjava.io.IOExceptionpublic Logging.Sinks.Delete delete(java.lang.String sinkName) throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.sinkName - Required. The full resource name of the sink to delete, including the parent resource and the sink
identifier:
"projects/[PROJECT_ID]/sinks/[SINK_ID]"
"organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
"billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
"folders/[FOLDER_ID]/sinks/[SINK_ID]"
Example: "projects/my-project-id/sinks/my-sink-id".java.io.IOExceptionpublic Logging.Sinks.Get get(java.lang.String sinkName) throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.sinkName - Required. The resource name of the sink:
"projects/[PROJECT_ID]/sinks/[SINK_ID]"
"organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
"billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
"folders/[FOLDER_ID]/sinks/[SINK_ID]"
Example: "projects/my-project-id/sinks/my-sink-id".java.io.IOExceptionpublic Logging.Sinks.List list(java.lang.String parent) throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.parent - Required. The parent resource whose sinks are to be listed:
"projects/[PROJECT_ID]"
"organizations/[ORGANIZATION_ID]"
"billingAccounts/[BILLING_ACCOUNT_ID]"
"folders/[FOLDER_ID]"java.io.IOExceptionpublic Logging.Sinks.Update update(java.lang.String sinkName, LogSink content) throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.sinkName - Required. The full resource name of the sink to update, including the parent resource and the sink
identifier:
"projects/[PROJECT_ID]/sinks/[SINK_ID]"
"organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
"billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
"folders/[FOLDER_ID]/sinks/[SINK_ID]"
Example: "projects/my-project-id/sinks/my-sink-id".content - the LogSinkjava.io.IOException