Skip to content
This repository has been archived by the owner on Dec 31, 2023. It is now read-only.

Commit

Permalink
Update monitoring region tags [(#830)](GoogleCloudPlatform/python-doc…
Browse files Browse the repository at this point in the history
  • Loading branch information
waprin authored Feb 28, 2017
1 parent aeefb56 commit 831a8c2
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions samples/snippets/v3/cloud-client/quickstart.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# [START monitoring_quickstart]
from google.cloud import monitoring


def run_quickstart():
# [START monitoring_quickstart]
from google.cloud import monitoring

client = monitoring.Client()

resource = client.resource(
Expand All @@ -32,9 +32,10 @@ def run_quickstart():
labels={}
)

# Default arguments use endtime datetime.utcnow()
client.write_point(metric, resource, 3.14)
print('Successfully wrote time series.')
# [END monitoring_quickstart]
# [END monitoring_quickstart]


if __name__ == '__main__':
Expand Down

0 comments on commit 831a8c2

Please sign in to comment.