grr/server/grr_response_server/stats_store_test.py
def _CreateFakeStatsCollector():
  """Returns a stats-collector for use by tests in this file."""
  return prometheus_stats_collector.PrometheusStatsCollector([
      stats_utils.CreateCounterMetadata(_SINGLE_DIM_COUNTER),
      stats_utils.CreateCounterMetadata(
          _COUNTER_WITH_ONE_FIELD, fields=[("field1", str)]),
      stats_utils.CreateCounterMetadata(
          _COUNTER_WITH_TWO_FIELDS, fields=[("field1", str), ("field2", int)]),
      stats_utils.CreateEventMetadata(_EVENT_METRIC),
  ])
Returns a stats-collector for use by tests in this file.
Returns a stats-collector for use by tests in this file.
Returns a stats - collector for use by tests in this file .
def _CreateFakeStatsCollector():
  return prometheus_stats_collector.PrometheusStatsCollector([
      stats_utils.CreateCounterMetadata(_SINGLE_DIM_COUNTER),
      stats_utils.CreateCounterMetadata(
          _COUNTER_WITH_ONE_FIELD, fields=[("field1", str)]),
      stats_utils.CreateCounterMetadata(
          _COUNTER_WITH_TWO_FIELDS, fields=[("field1", str), ("field2", int)]),
      stats_utils.CreateEventMetadata(_EVENT_METRIC),
  ])
def _CreateFakeStatsCollector ( ) : return prometheus_stats_collector . PrometheusStatsCollector ( [ stats_utils . CreateCounterMetadata ( _SINGLE_DIM_COUNTER ) , stats_utils . CreateCounterMetadata ( _COUNTER_WITH_ONE_FIELD , fields = [ ( "field1" , str ) ] ) , stats_utils . CreateCounterMetadata ( _COUNTER_WITH_TWO_FIELDS , fields = [ ( "field1" , str ) , ( "field2" , int ) ] ) , stats_utils . CreateEventMetadata ( _EVENT_METRIC ) , ] )
Returns a stats-collector for use by tests in this file.
Returns a stats - collector for use by tests in this file .
"""Returns a stats-collector for use by tests in this file."""