Source code for netbird.resources.cloud.usage

"""
Usage resource handler for NetBird API.
"""

from typing import Any, Dict

from ..base import BaseResource


[docs] class UsageResource(BaseResource): """Handler for NetBird billing usage API endpoints."""
[docs] def get(self) -> Dict[str, Any]: """Get current usage statistics.""" data = self.client.get("integrations/billing/usage") return self._parse_response(data)