pubsub.metrics_agent

pubsub.metrics_agent

pubsub.metrics_agent

Module Contents

Classes

MetricsAgent

Any metric client should implement this interface

class pubsub.metrics_agent.MetricsAgent

Any metric client should implement this interface to be compatible with subscriber.subscribe

histogram(metric, value)
Parameters:
  • metric (str) –

  • value (float) –

Return type:

None

increment(metric, value=1)
Parameters:
  • metric (str) –

  • value (float) –

Return type:

None