grr/server/grr_response_server/db.py
def WriteClientStats(self, client_id,
                       stats):
    """Stores a ClientStats instance.

    If stats.create_time is unset, a copy of stats with create_time = now()
    will be stored.

    Stats are not stored if create_time is older than the retention period
    db.CLIENT_STATS_RETENTION.

    Any existing entry with identical client_id and create_time will be
    overwritten.

    Args:
      client_id: A GRR client id string, e.g. "C.ea3b2b71840d6fa7".
      stats: an instance of rdfvalues.client_stats.ClientStats
    """
Stores a ClientStats instance.

    If stats.create_time is unset, a copy of stats with create_time = now()
    will be stored.

    Stats are not stored if create_time is older than the retention period
    db.CLIENT_STATS_RETENTION.

    Any existing entry with identical client_id and create_time will be
    overwritten.

    Args:
      client_id: A GRR client id string, e.g. "C.ea3b2b71840d6fa7".
      stats: an instance of rdfvalues.client_stats.ClientStats
    
Stores a ClientStats instance.
If stats.create_time is unset, a copy of stats with create_time = now()
will be stored.

Stats are not stored if create_time is older than the retention period
db.CLIENT_STATS_RETENTION.

Any existing entry with identical client_id and create_time will be
overwritten.
Stores a ClientStats instance . If stats . create_time is unset a copy of stats with create_time = now () will be stored . Stats are not stored if create_time is older than the retention period db . CLIENT_STATS_RETENTION . Any existing entry with identical client_id and create_time will be overwritten .
def WriteClientStats(self, client_id,
                       stats):
def WriteClientStats ( self , client_id , stats ) :
Stores a ClientStats instance.
Stores a ClientStats instance .
"""Stores a ClientStats instance.

    If stats.create_time is unset, a copy of stats with create_time = now()
    will be stored.

    Stats are not stored if create_time is older than the retention period
    db.CLIENT_STATS_RETENTION.

    Any existing entry with identical client_id and create_time will be
    overwritten.

    Args:
      client_id: A GRR client id string, e.g. "C.ea3b2b71840d6fa7".
      stats: an instance of rdfvalues.client_stats.ClientStats
    """
self
client_id
A GRR client id string, e.g.
A GRR client id string e . g .
stats
an instance of rdfvalues.client_stats.ClientStats
an instance of rdfvalues . client_stats . ClientStats