(self, timeout: float = 5)
| 64 | return response.json() |
| 65 | |
| 66 | async def get_metrics_async(self, timeout: float = 5) -> dict: |
| 67 | async with httpx.AsyncClient() as client: |
| 68 | response = await client.get(f"{self.proxy_url}/metrics", timeout=timeout) |
| 69 | if response.status_code != 200: |
| 70 | raise ValueError(f"Failed to get metrics: {response.text}") |
| 71 | return response.json() |