+
+func (h *HealthChecker) GetxAppStatus(appName, namespace string) *models.Status {
+ resp, err := http.Get(fmt.Sprintf(ricdms.Config.GETxAPPHealthURL, appName, namespace))
+ if err != nil {
+ ricdms.Logger.Error("Received error while fetching health info: %v", err)
+ return nil
+ }
+
+ if resp.StatusCode != http.StatusOK {
+ ricdms.Logger.Error("xApp is not healthy (http status=%s)", resp.Status)
+ return nil
+ }
+
+ return &models.Status{
+ Status: &HEALTHY,
+ }
+}