def health(self) -> HealthCheck: """ Get the health of an instance. :return: HealthCheck """ health_service = HealthService(self.api_client) try: health = health_service.get_health() return health except Exception as e: return HealthCheck(name="influxdb", message=str(e), status="fail")
def health(self) -> HealthCheck: """ Get the health of an instance. :return: HealthCheck """ warnings.warn("This method is deprecated. Call 'ping()' instead.", DeprecationWarning) health_service = HealthService(self.api_client) try: health = health_service.get_health() return health except Exception as e: return HealthCheck(name="influxdb", message=str(e), status="fail")