private void Connect()
 {
     try
     {
         if (IsClientCertificateDefault)
         {
             bool isConnected = _sensorsClient.CheckServerAvailable();
             _connectionsStatus = isConnected ? ConnectionsStatus.Ok : ConnectionsStatus.Error;
         }
         else
         {
             var responseObj = _sensorsClient.GetTree();
             _connectionsStatus = ConnectionsStatus.Ok;
             _lastUpdate        = DateTime.Now;
             Update(responseObj);
         }
     }
     catch (Exception e)
     {
         Logger.Error($"ClientMonitoringModel: Connect error: {e}");
         _connectionsStatus = ConnectionsStatus.Error;
         foreach (var node in Nodes)
         {
             node.Status = TextConstants.UpdateError;
         }
     }
     OnConnectionStatusChangedEvent();
 }