Module sink (1.14.0)

Define Stackdriver Logging API Sinks.

Classes

Sink

Sink(name, filter_=None, destination=None, client=None)

Sinks represent filtered exports for log entries.

See https://cloud.google.com/logging/docs/reference/v2/rest/v2/projects.sinks

Parameters
Name Description
name str

the name of the sink

filter_ str

(optional) the advanced logs filter expression defining the entries exported by the sink.

destination str

destination URI for the entries exported by the sink. If not passed, the instance should already exist, to be refreshed via reload.

client Client

A client which holds credentials and project configuration for the sink (which requires a project).

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.