/// <inheritdoc />
        public async Task Execute(IJobExecutionContext context)
        {
            _logger.LogInformation($"Get stats for Oltp");
            var servers = _configuration.OltpPool;

            foreach (var server in servers)
            {
                var stats = await _repository.GetStatistics(server);

                _storage.Set(QueryType.Oltp, server, stats);
            }
        }
Exemple #2
0
        public async Task <GetStatisticsResponse> Handle(GetStatisticsRequest message)
        {
            var stats = await _statisticsRepository.GetStatistics();  //.ConfigureAwait(false)

            if (stats == null)
            {
                return(new GetStatisticsResponse {
                    Data = null
                });
            }

            return(new GetStatisticsResponse {
                Data = stats
            });
        }
Exemple #3
0
 public StatisticsModel Get()
 {
     return(statisticsRepository.GetStatistics().Result);
 }
Exemple #4
0
 private void FillDataGrid()
 {
     this.StatisticData.ItemsSource    = repository.GetStatistics();
     StatisticData.AutoGenerateColumns = true;
 }