grr/server/grr_response_server/databases/mem_clients.py
def ReadClientStats(self, client_id,
                      min_timestamp,
                      max_timestamp
                     ):
    """Reads ClientStats for a given client and time range."""
    results = []
    for stats in itervalues(self.client_stats[client_id]):
      if min_timestamp <= stats.create_time <= max_timestamp:
        results.append(stats)
    results.sort(key=lambda stats: stats.create_time)
    return results
Reads ClientStats for a given client and time range.
Reads ClientStats for a given client and time range.
Reads ClientStats for a given client and time range .
def ReadClientStats(self, client_id,
                      min_timestamp,
                      max_timestamp
                     ):
    results = []
    for stats in itervalues(self.client_stats[client_id]):
      if min_timestamp <= stats.create_time <= max_timestamp:
        results.append(stats)
    results.sort(key=lambda stats: stats.create_time)
    return results
def ReadClientStats ( self , client_id , min_timestamp , max_timestamp ) : results = [ ] for stats in itervalues ( self . client_stats [ client_id ] ) : if min_timestamp <= stats . create_time <= max_timestamp : results . append ( stats ) results . sort ( key = lambda stats : stats . create_time ) return results
Reads ClientStats for a given client and time range.
Reads ClientStats for a given client and time range .
"""Reads ClientStats for a given client and time range."""
self
client_id
min_timestamp
max_timestamp