def read_timeseries(client, project_resource, custom_metric_type):
 request = client.projects().timeSeries().list(name=project_resource, filter='metric.type="{0}"'.format(custom_metric_type), pageSize=3, interval_startTime=get_start_time(), interval_endTime=get_now_rfc3339())
 response = request.execute()
 return response

def read_timeseries ( client , project_resource , custom_metric_type ) : request = client . projects ( ) . timeSeries ( ) . list ( name = project_resource , filter = 'metric.type="{0}"' . format ( custom_metric_type ) , pageSize = 3 , interval_startTime = get_start_time ( ) , interval_endTime = get_now_rfc3339 ( ) ) response = request . execute ( ) return response
reads all of the custom_metrics that we have written between start_time and end_time .