Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions docs/logging-usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ Refresh local information about a metric:
>>> metric.reload() # API call
>>> metric.description
"Robots all up in your server"
>>> metric.filter
>>> metric.filter_
"log:apache-access AND textPayload:robot"

Update a metric:
Expand Down Expand Up @@ -350,10 +350,10 @@ Refresh local information about a sink:
>>> from google.cloud import logging
>>> client = logging.Client()
>>> sink = client.sink('robots-storage')
>>> sink.filter is None
>>> sink.filter_ is None
True
>>> sink.reload() # API call
>>> sink.filter
>>> sink.filter_
'log:apache-access AND textPayload:robot'
>>> sink.destination
'storage.googleapis.com/my-bucket-name'
Expand All @@ -366,7 +366,7 @@ Update a sink:
>>> client = logging.Client()
>>> sink = client.sink("robots")
>>> sink.reload() # API call
>>> sink.filter = "log:apache-access"
>>> sink.filter_ = "log:apache-access"
>>> sink.update() # API call

Delete a sink:
Expand Down