"""Collect a usage snapshot through the selected host boundary."""
from __future__ import annotations

from okstra_ctl.ports.usage_accounting import (
    UsageAccountingPort,
    UsageRequest,
    UsageSnapshot,
)


def collect_usage(
    request: UsageRequest,
    port: UsageAccountingPort,
) -> UsageSnapshot:
    return port.collect(request)
