Skip to content

Commit

Permalink
Python (async): add missing 'get_stats' function. (#1378)
Browse files Browse the repository at this point in the history
It already existed in the sync library, but not the async.
  • Loading branch information
tasn authored Aug 1, 2024
1 parent ba79f86 commit 7d5a774
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions python/svix/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -539,6 +539,20 @@ async def patch_headers(
json_body=endpoint_headers_in,
)

async def get_stats(
self,
app_id: str,
endpoint_id: str,
options: EndpointStatsOptions = EndpointStatsOptions(),
) -> EndpointStats:
return await v1_endpoint_get_stats.request_asyncio(
client=self._client,
app_id=app_id,
endpoint_id=endpoint_id,
since=options.since,
until=options.until,
)

async def replay_missing(
self,
app_id: str,
Expand Down

0 comments on commit 7d5a774

Please sign in to comment.