def get_end_time():
 end_time = (datetime.datetime.utcnow() - datetime.timedelta(hours=1))
 return format_rfc3339(end_time)

def get_end_time ( ) : end_time = ( datetime . datetime . utcnow ( ) - datetime . timedelta ( hours = 1 ) ) return format_rfc3339 ( end_time )
returns the end time for the 5-minute window to read the custom metric from within .