class documentation
class Metric: (source)
Known subclasses: pytype.metrics.Counter
, pytype.metrics.Distribution
, pytype.metrics.MapCounter
, pytype.metrics.ReentrantStopWatch
, pytype.metrics.Snapshot
, pytype.metrics.StopWatch
Abstract base class for metrics.
Method | __init__ |
Initialize the metric and register it under the specified name. |
Method | __str__ |
Undocumented |
Property | name |
Undocumented |
Method | _merge |
Merge data from another metric of the same type. |
Method | _summary |
Return a string summarizing the value of the metric. |
Instance Variable | _name |
Undocumented |
overridden in
pytype.metrics.Counter
, pytype.metrics.Distribution
, pytype.metrics.MapCounter
, pytype.metrics.ReentrantStopWatch
, pytype.metrics.Snapshot
Initialize the metric and register it under the specified name.
overridden in
pytype.metrics.Counter
, pytype.metrics.Distribution
, pytype.metrics.MapCounter
, pytype.metrics.ReentrantStopWatch
, pytype.metrics.StopWatch
Merge data from another metric of the same type.
overridden in
pytype.metrics.Counter
, pytype.metrics.Distribution
, pytype.metrics.MapCounter
, pytype.metrics.ReentrantStopWatch
, pytype.metrics.Snapshot
, pytype.metrics.StopWatch
Return a string summarizing the value of the metric.