Module sink (1.15.3)

Define Stackdriver Logging API Sinks.

Classes

Sink

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

Sinks represent filtered exports for log entries.

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

Parameters
NameDescription
namestr

the name of the sink

filter_str

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

destinationstr

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

clientClient

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 theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2026-01-10 UTC.