Reputation: 194
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
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