Hello. I would like to do a health check on my age...
# ask-community
r
Hello. I would like to do a health check on my agent. I think it is reasonable to use the following API for that.
<https://api.prefect.cloud/api/accounts/{account_id}/workspaces/{workspace_id}/work_queues/{id}/status>
Is there an SDK available? Or is there a better way to do health checks?
r
Copy code
curl -v -H 'Authorization: Bearer <replace with your api key>' <https://api.prefect.cloud/api/accounts/><your accound id>/workspaces/<workspace_id>/health
r
Thank you. But I want to do a health check on the agent server.
r
ah sorry miss read
🙌 1
perhaps https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/api/work_queues.py#L106 which will give you the last time a given agent polled the queue
r
thank you! i will try it
👍 1