tools/perf/core/services/dashboard_service.py
def IterAlerts(**kwargs):
  """Returns alerts matching the supplied query parameters.

  The response for the dashboard may be returned in multiple chunks, this
  function will take care of following `next_cursor`s in responses and
  iterate over all the chunks.

  Args:
    test_suite: Match alerts on a given test suite (benchmark).
    sheriff: Match only alerts of a given sheriff rotation.
    min_timestamp, max_timestamp: Match only alerts on a given time range.
    limit: Max number of responses per chunk (defaults to 1000).
    **kwargs: See API docs for other possible query params.

  Yields:
    Data for all the matching alerts in chunks.
  """
  kwargs.setdefault('limit', 1000)
  while True:
    response = Request('/api/alerts', params=kwargs)
    yield response
    if 'next_cursor' in response:
      kwargs['cursor'] = response['next_cursor']
    else:
      return
Returns alerts matching the supplied query parameters.

  The response for the dashboard may be returned in multiple chunks, this
  function will take care of following `next_cursor`s in responses and
  iterate over all the chunks.

  Args:
    test_suite: Match alerts on a given test suite (benchmark).
    sheriff: Match only alerts of a given sheriff rotation.
    min_timestamp, max_timestamp: Match only alerts on a given time range.
    limit: Max number of responses per chunk (defaults to 1000).
    **kwargs: See API docs for other possible query params.

  Yields:
    Data for all the matching alerts in chunks.
  
Returns alerts matching the supplied query parameters.
The response for the dashboard may be returned in multiple chunks, this
function will take care of following `next_cursor`s in responses and
iterate over all the chunks.
Returns alerts matching the supplied query parameters . The response for the dashboard may be returned in multiple chunks this function will take care of following ` next_cursor ` s in responses and iterate over all the chunks .
def IterAlerts(**kwargs):
  kwargs.setdefault('limit', 1000)
  while True:
    response = Request('/api/alerts', params=kwargs)
    yield response
    if 'next_cursor' in response:
      kwargs['cursor'] = response['next_cursor']
    else:
      return
def IterAlerts ( ** kwargs ) : kwargs . setdefault ( 'limit' , 1000 ) while True : response = Request ( '/api/alerts' , params = kwargs ) yield response if 'next_cursor' in response : kwargs [ 'cursor' ] = response [ 'next_cursor' ] else : return
Returns alerts matching the supplied query parameters.
Returns alerts matching the supplied query parameters .
"""Returns alerts matching the supplied query parameters.

  The response for the dashboard may be returned in multiple chunks, this
  function will take care of following `next_cursor`s in responses and
  iterate over all the chunks.

  Args:
    test_suite: Match alerts on a given test suite (benchmark).
    sheriff: Match only alerts of a given sheriff rotation.
    min_timestamp, max_timestamp: Match only alerts on a given time range.
    limit: Max number of responses per chunk (defaults to 1000).
    **kwargs: See API docs for other possible query params.

  Yields:
    Data for all the matching alerts in chunks.
  """
Data for all the matching alerts in chunks.
Data for all the matching alerts in chunks .
test_suite
Match alerts on a given test suite (benchmark).
Match alerts on a given test suite ( benchmark ) .
sheriff
Match only alerts of a given sheriff rotation.
Match only alerts of a given sheriff rotation .
min_timestamp, max_timestamp
Match only alerts on a given time range.
Match only alerts on a given time range .
limit
Max number of responses per chunk (defaults to 1000).
Max number of responses per chunk ( defaults to 1000 ) .
**kwargs
See API docs for other possible query params.
See API docs for other possible query params .