mirror of
https://github.com/andrewthetechie/py-healthchecks.io.git
synced 2026-05-01 19:25:55 +02:00
pass pre-commit
This commit is contained in:
@@ -97,13 +97,13 @@ If you want to use the client in an async program, use AsyncClient instead of Cl
|
|||||||
.. code-block:: python
|
.. code-block:: python
|
||||||
|
|
||||||
from healthchecks_io import AsyncClient, CheckCreate
|
from healthchecks_io import AsyncClient, CheckCreate
|
||||||
|
|
||||||
async def main():
|
async def main():
|
||||||
client = AsyncClient(api_key="myapikey")
|
client = AsyncClient(api_key="myapikey")
|
||||||
|
|
||||||
check = await client.create_check(CheckCreate(name="New Check", tags="tag1 tag2"))
|
check = await client.create_check(CheckCreate(name="New Check", tags="tag1 tag2"))
|
||||||
print(check)
|
print(check)
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
asyncio.run(main())
|
asyncio.run(main())
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user