tools/perf/core/services/dashboard_service.py
def Timeseries(test_path, days=30):
  """Get timeseries for the given test path.

  TODO(crbug.com/907121): Remove when no longer needed.

  Args:
    test_path: test path to get timeseries for.
    days: Number of days to get data points for.

  Returns:
    A dict with timeseries data for the given test_path

  Raises:
    KeyError if the test_path is not found.
  """
  try:
    return Request('/api/timeseries/%s' %
                   six.moves.urllib.parse.quote(test_path),
                   params={'num_days': days})
  except request.ClientError as exc:
    if 'Invalid test_path' in exc.json['error']:
      raise KeyError(test_path)
    else:
      raise
Get timeseries for the given test path.

  TODO(crbug.com/907121): Remove when no longer needed.

  Args:
    test_path: test path to get timeseries for.
    days: Number of days to get data points for.

  Returns:
    A dict with timeseries data for the given test_path

  Raises:
    KeyError if the test_path is not found.
  
Get timeseries for the given test path.
TODO(crbug.com/907121): Remove when no longer needed.

test path to get timeseries for.
days: Number of days to get data points for.

A dict with timeseries data for the given test_path

KeyError if the test_path is not found.
Get timeseries for the given test path . TODO ( crbug . com / 907121 ) : Remove when no longer needed . test path to get timeseries for . days : Number of days to get data points for . A dict with timeseries data for the given test_path KeyError if the test_path is not found .
def Timeseries(test_path, days=30):
  try:
    return Request('/api/timeseries/%s' %
                   six.moves.urllib.parse.quote(test_path),
                   params={'num_days': days})
  except request.ClientError as exc:
    if 'Invalid test_path' in exc.json['error']:
      raise KeyError(test_path)
    else:
      raise
def Timeseries ( test_path , days = 30 ) : try : return Request ( '/api/timeseries/%s' % six . moves . urllib . parse . quote ( test_path ) , params = { 'num_days' : days } ) except request . ClientError as exc : if 'Invalid test_path' in exc . json [ 'error' ] : raise KeyError ( test_path ) else : raise
Get timeseries for the given test path.
Get timeseries for the given test path .
"""Get timeseries for the given test path.

  TODO(crbug.com/907121): Remove when no longer needed.

  Args:
    test_path: test path to get timeseries for.
    days: Number of days to get data points for.

  Returns:
    A dict with timeseries data for the given test_path

  Raises:
    KeyError if the test_path is not found.
  """
test_path
days