def get_client():
    credentials = GoogleCredentials.get_application_default()
    client = discovery.build(
        'cloudmonitoring', 'v2beta2',
        credentials=credentials)
    return client
Builds an http client authenticated with the service account
dataset/ETHPy150Open GoogleCloudPlatform/python-docs-samples/monitoring/api/v2/lightweight_custom_metric.py/get_client