def list_metric_descriptors(client, project_resource, metric):
 request = client.projects().metricDescriptors().list(name=project_resource, filter='metric.type="{}"'.format(metric))
 response = request.execute()
 print 'list_metric_descriptors response:\n{}'.format(pprint.pformat(response))

def list_metric_descriptors ( client , project_resource , metric ) : request = client . projects ( ) . metricDescriptors ( ) . list ( name = project_resource , filter = 'metric.type="{}"' . format ( metric ) ) response = request . execute ( ) print 'list_metric_descriptors response:\n{}' . format ( pprint . pformat ( response ) )
query to metricdescriptors .