18 from ..metric
import Metric
19 from .....statistics
import getDiskWrite
22 class MetricDiskWrite(Metric):
24 def __init__(self) -> None:
25 self.previousValue = getDiskWrite()
27 def extract(self) -> float:
28 currentValue = getDiskWrite()
29 diff = currentValue - self.previousValue
31 self.previousValue = currentValue