class_docstr: Total system disk usage in percent.
class_docstr_tok: ["Total","system","disk","usage","in","percent","."]
code: def aggregate(self) -> dict:
      if not self.samples:
          return {}
      disk_metrics = {}
      for i, _path in enumerate(self.paths):
          aggregate_i = aggregate_mean(
              [sample[i] for sample in self.samples]
          )
          # ugly hack to please the frontend:
          _path = _path.replace("/", "\\")
          disk_metrics[self.name.format(path=_path)] = aggregate_i
  
      return disk_metrics
  
imports: import threading
  from collections import deque
  from typing import TYPE_CHECKING, List, Optional
  from wandb.errors.term import termwarn
  from .aggregators import aggregate_mean
  from .asset_registry import asset_registry
  from .interfaces import Interface, Metric, MetricsMonitor
label_desc: Use image node_id 4 for calling the DiskUsagePercent obj's underlying member method code with example usage: obj.aggregate() and returns: disk_metrics, dict