from typing import List, Any
from abc import ABC, abstractmethod
[docs]
class IMetricAggregate(ABC):
[docs]
@abstractmethod
def add_measurement(self, measurement: Any) -> None:
pass
[docs]
@abstractmethod
def reset(self) -> None:
"""
Reset or clear the metric's current state, starting fresh as if no data had been processed.
This is useful for metrics that might aggregate or average data over time and need to be reset.
"""
pass