grr/server/grr_response_server/stats_store.py
def _DeleteStatsFromLegacyDB(process_id):
  """Deletes old data points from the legacy datastore.

  The cutoff age for values to delete is determined by a config option.

  Args:
    process_id: An identifier for the process whose data-points will be deleted
      from the DB.
  """
  stats_ttl = (
      rdfvalue.Duration("1h") * config.CONFIG["StatsStore.stats_ttl_hours"])
  cutoff = rdfvalue.RDFDatetime.Now() - stats_ttl
  aff4_stats_store.STATS_STORE.DeleteStats(
      process_id=process_id, timestamp=(0, cutoff))
Deletes old data points from the legacy datastore.

  The cutoff age for values to delete is determined by a config option.

  Args:
    process_id: An identifier for the process whose data-points will be deleted
      from the DB.
  
Deletes old data points from the legacy datastore.
The cutoff age for values to delete is determined by a config option.
Deletes old data points from the legacy datastore . The cutoff age for values to delete is determined by a config option .
def _DeleteStatsFromLegacyDB(process_id):
  stats_ttl = (
      rdfvalue.Duration("1h") * config.CONFIG["StatsStore.stats_ttl_hours"])
  cutoff = rdfvalue.RDFDatetime.Now() - stats_ttl
  aff4_stats_store.STATS_STORE.DeleteStats(
      process_id=process_id, timestamp=(0, cutoff))
def _DeleteStatsFromLegacyDB ( process_id ) : stats_ttl = ( rdfvalue . Duration ( "1h" ) * config . CONFIG [ "StatsStore.stats_ttl_hours" ] ) cutoff = rdfvalue . RDFDatetime . Now ( ) - stats_ttl aff4_stats_store . STATS_STORE . DeleteStats ( process_id = process_id , timestamp = ( 0 , cutoff ) )
Deletes old data points from the legacy datastore.
Deletes old data points from the legacy datastore .
"""Deletes old data points from the legacy datastore.

  The cutoff age for values to delete is determined by a config option.

  Args:
    process_id: An identifier for the process whose data-points will be deleted
      from the DB.
  """
process_id
An identifier for the process whose data-points will be deleted
from the DB.
An identifier for the process whose data - points will be deleted from the DB .