Madusha
Madusha

Reputation: 194

How to check the health of an Azure Eventhub

I have an application that uses Azure Eventhub as one of the services and I need to implement a public health check endpoint to my application. To do that, I need to assess the connection to the eventhub. Is there a way to achieve this?

Upvotes: 1

Views: 2513

Answers (1)

Ivan Glasenberg
Ivan Glasenberg

Reputation: 29940

If you're using ballerina, you can use the Get Event Hub rest api. In its response, it has a Status value which can be used to check the health.

For other languages like c# or java, you can directly use the Management library for event hub.

Upvotes: 2

Related Questions