Skip to main content

Stackdriver Monitoring API client library

Project description

Stackdriver Monitoring API: Manages your Stackdriver Monitoring data and configurations. Most projects must be associated with a Stackdriver account, with a few exceptions as noted on the individual method pages.

Quick Start

In order to use this library, you first need to go through the following steps:

  1. Select or create a Cloud Platform project.

  2. Enable billing for your project.

  3. Enable the Stackdriver Monitoring API.

  4. Setup Authentication.

Installation

Install this library in a virtualenv using pip. virtualenv is a tool to create isolated Python environments. The basic problem it addresses is one of dependencies and versions, and indirectly permissions.

With virtualenv, it’s possible to install this library without needing system install permissions, and without clashing with the installed system dependencies.

Mac/Linux

pip install virtualenv
virtualenv <your-env>
source <your-env>/bin/activate
<your-env>/bin/pip install google-cloud-monitoring

Windows

pip install virtualenv
virtualenv <your-env>
<your-env>\Scripts\activate
<your-env>\Scripts\pip.exe install google-cloud-monitoring

Preview

MetricServiceClient

from google.cloud import monitoring_v3

client = monitoring_v3.MetricServiceClient()

name = client.project_path('[PROJECT]')


# Iterate over all results
for element in client.list_monitored_resource_descriptors(name):
    # process element
    pass

# Or iterate over results one page at a time
for page in client.list_monitored_resource_descriptors(name, options=CallOptions(page_token=INITIAL_PAGE)):
    for element in page:
        # process element
        pass

Next Steps

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

google-cloud-monitoring-0.30.1.tar.gz (100.7 kB view details)

Uploaded Source

Built Distribution

google_cloud_monitoring-0.30.1-py2.py3-none-any.whl (126.4 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file google-cloud-monitoring-0.30.1.tar.gz.

File metadata

File hashes

Hashes for google-cloud-monitoring-0.30.1.tar.gz
Algorithm Hash digest
SHA256 6b26d659360306d51b9fb88c5b1eb77bf49967a37b6348ae9568c083e466274d
MD5 c97ea35f934fe3a121879434fe6d6d20
BLAKE2b-256 6f3fa44f7b967a24a8834080fb23af4bd429dce7a9312fe3ff2b4f55236d0df9

See more details on using hashes here.

Provenance

File details

Details for the file google_cloud_monitoring-0.30.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for google_cloud_monitoring-0.30.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 fcac392259c66d0c62c3b3a0662006a048ede183ed5fe4406a2a50bcf156cd09
MD5 f2c71e9b25628aa38e2c949e613d53a7
BLAKE2b-256 1fd39d8133efb90453a6a0747141aa78c64fa29618ecc713bea6e7b1bb9ff49d

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page