class ConfigServiceV2GrpcClient extends BaseStub

Service for configuring sinks used to export log entries outside of Stackdriver Logging.

Methods

__construct(string $hostname, array $opts, Channel $channel = null)

No description

ListSinks(ListSinksRequest $argument, array $metadata = [], array $options = [])

Lists sinks.

GetSink(GetSinkRequest $argument, array $metadata = [], array $options = [])

Gets a sink.

CreateSink(CreateSinkRequest $argument, array $metadata = [], array $options = [])

Creates a sink that exports specified log entries to a destination. The export of newly-ingested log entries begins immediately, unless the current time is outside the sink's start and end times or the sink's writer_identity is not permitted to write to the destination. A sink can export log entries only from the resource owning the sink.

UpdateSink(UpdateSinkRequest $argument, array $metadata = [], array $options = [])

Updates a sink. If the named sink doesn't exist, then this method is identical to sinks.create.

DeleteSink(DeleteSinkRequest $argument, array $metadata = [], array $options = [])

Deletes a sink. If the sink has a unique writer_identity, then that service account is also deleted.

Details

at line 32
__construct(string $hostname, array $opts, Channel $channel = null)

Parameters

string $hostname hostname
array $opts channel options
Channel $channel (optional) re-use channel object

at line 42
ListSinks(ListSinksRequest $argument, array $metadata = [], array $options = [])

Lists sinks.

Parameters

ListSinksRequest $argument input argument
array $metadata metadata
array $options call options

at line 56
GetSink(GetSinkRequest $argument, array $metadata = [], array $options = [])

Gets a sink.

Parameters

GetSinkRequest $argument input argument
array $metadata metadata
array $options call options

at line 74
CreateSink(CreateSinkRequest $argument, array $metadata = [], array $options = [])

Creates a sink that exports specified log entries to a destination. The export of newly-ingested log entries begins immediately, unless the current time is outside the sink's start and end times or the sink's writer_identity is not permitted to write to the destination. A sink can export log entries only from the resource owning the sink.

Parameters

CreateSinkRequest $argument input argument
array $metadata metadata
array $options call options

at line 95
UpdateSink(UpdateSinkRequest $argument, array $metadata = [], array $options = [])

Updates a sink. If the named sink doesn't exist, then this method is identical to sinks.create.

If the named sink does exist, then this method replaces the following fields in the existing sink with values from the new sink: destination, filter, output_version_format, start_time, and end_time. The updated filter might also have a new writer_identity; see the unique_writer_identity field.

Parameters

UpdateSinkRequest $argument input argument
array $metadata metadata
array $options call options

at line 110
DeleteSink(DeleteSinkRequest $argument, array $metadata = [], array $options = [])

Deletes a sink. If the sink has a unique writer_identity, then that service account is also deleted.

Parameters

DeleteSinkRequest $argument input argument
array $metadata metadata
array $options call options