예제 #1
0
        public async Task <ActionResult <SocnetoComponentsStatus> > PlatformStatus()
        {
            var jmsStatus = await _jobManagementService.IsComponentRunning()
                ? SocnetoComponentStatus.Running
                : SocnetoComponentStatus.Stopped;

            var storageStatus = await _storageService.IsComponentRunning()
                ? SocnetoComponentStatus.Running
                : SocnetoComponentStatus.Stopped;

            var response = new SocnetoComponentsStatus
            {
                JmsStatus     = jmsStatus,
                StorageStatus = storageStatus
            };

            _eventTracker.TrackInfo("PlatformStatus", "Platform status requested", response);

            return(Ok(response));
        }