Beispiel #1
0
 public DotNetMetricJob(IServiceProvider provider)
 {
     _provider           = provider;
     _repositoryDotNet   = _provider.GetService <IDotNetMetricsRepository>();
     _repositoryAgent    = _provider.GetService <IAgentsRepository>();
     _metricsAgentClient = _provider.GetService <IMetricsAgentClient>();
 }
Beispiel #2
0
 public DotNetMetricsController(IDotNetMetricsRepository repository, ILogger <DotNetMetricsController> logger, IMapper mapper)
 {
     this.repository = repository;
     this.logger     = logger;
     logger.LogDebug(1, "NLog встроен в DotNetMetricsController");
     this.mapper = mapper;
 }
Beispiel #3
0
 public DotNetMetricsController(IDotNetMetricsRepository repository, ILogger <DotNetMetricsController> logger, IMapper mapper)
 {
     _logger = logger;
     _logger.LogInformation(1, "NLog встроен в DotNetMetricsController");
     _repository = repository;
     _mapper     = mapper;
 }
Beispiel #4
0
        public DotNetMetricJob(IServiceProvider provider)
        {
            _provider   = provider;
            _repository = _provider.GetService <IDotNetMetricsRepository>();

            _counter = new PerformanceCounter(categoryName, counterName, "_Global_");
        }
 public DotNetMetricsController(IDotNetMetricsRepository repository, IMetricsAgentClient metricsAgentClient, IMapper mapper, ILogger <DotNetMetricsController> logger)
 {
     _repository         = repository;
     _mapper             = mapper;
     _metricsAgentClient = metricsAgentClient;
     _logger             = logger;
 }
Beispiel #6
0
 public DotNetMetricsController(ILogger <DotNetMetricsController> logger, IDotNetMetricsRepository repository, IMapper mapper)
 {
     _logger = logger;
     _logger.LogDebug("Вызов конструктора");
     _repository = repository;
     _mapper     = mapper;
 }
Beispiel #7
0
        public DotNetMetricJob(IDotNetMetricsRepository repository, ILogger <DotNetMetricJob> logger)
        {
            _repository = repository;
            _logger     = logger;

            _dotNetCounter = new PerformanceCounter(".NET CLR Memory", "gen 1 heap size", "_global_");
        }
        public DotNetMetricJob(IDotNetMetricsRepository repository, IMetricsAgentClient metricsAgentClient, IAgentsRepositorySingle repositoryAgents)
        {
            _repository = repository;

            _metricsAgentClient = metricsAgentClient;

            _repositoryAgents = repositoryAgents;
        }
        public DotNetMetricsAgentController(ILogger <DotNetMetricsAgentController> logger, IDotNetMetricsRepository repository, IMapper mapper)
        {
            _logger = logger;
            _logger.LogDebug(1, $"NLog встроен в {GetType()}");

            _repository = repository;
            _mapper     = mapper;
        }
Beispiel #10
0
 public DotNetMetricJob(IServiceProvider provider, IMapper mapper, IMetricsManagerClient client, ILogger <DotNetMetricJob> logger)
 {
     _provider         = provider;
     _repository       = _provider.GetService <IDotNetMetricsRepository>();
     _agentsRepository = _provider.GetService <IAgentsRepository>();
     _mapper           = mapper;
     _client           = client;
     _logger           = logger;
 }
 public AgentsRepository(IDataConnector connector, ICPUMetricsRepository cpuMetricsRepository, IDotNetMetricsRepository dotNetMetricsRepository, IHddMetricsRepository hddMetricsRepository, INetworkMetricsRepository networkMetricsRepository, IRamMetricsRepository ramMetricsRepository)
 {
     _connector                = connector;
     _cpuMetricsRepository     = cpuMetricsRepository;
     _dotNetMetricsRepository  = dotNetMetricsRepository;
     _hddMetricsRepository     = hddMetricsRepository;
     _networkMetricsRepository = networkMetricsRepository;
     _ramMetricsRepository     = ramMetricsRepository;
 }
Beispiel #12
0
 public DotNetMetricsJob(IServiceProvider provider)
 {
     _provider = provider;
     using (var serviceScope = _provider.GetRequiredService <IServiceScopeFactory>().CreateScope())
     {
         _repository = serviceScope.ServiceProvider.GetService <IDotNetMetricsRepository>();
     }
     _counter = new PerformanceCounter(".NET CLR Memory", "# Bytes in all Heaps", "_Global_");
 }
Beispiel #13
0
 public DotNetMetricJob(
     IDotNetMetricsRepository repository,
     IAgentsRepository <AgentInfo> agentsRepository,
     IMetricsAgentClient client,
     ILogger <DotNetMetricJob> logger)
 {
     _agentsRepository = agentsRepository;
     _repository       = repository;
     _client           = client;
     _logger           = logger;
 }
 public DotNetMetricsJob(IServiceProvider provider, IMapper mapper, IMetricsManagerClient client, ILogger <DotNetMetricsJob> logger)
 {
     _provider = provider;
     using (var serviceScope = _provider.GetRequiredService <IServiceScopeFactory>().CreateScope())
     {
         _repository       = serviceScope.ServiceProvider.GetService <IDotNetMetricsRepository>();
         _agentsRepository = serviceScope.ServiceProvider.GetService <IAgentsRepository>();
     }
     _mapper = mapper;
     _client = client;
     _logger = logger;
 }
 public DotNetMetricsController(
     ILogger <DotNetMetricsController> logger,
     IDotNetMetricsRepository repository,
     IMapper mapper,
     IConfiguration configuration)
 {
     this._configuration = configuration;
     this._repository    = repository;
     this._logger        = logger;
     this._mapper        = mapper;
     _logger.LogInformation("NLog встроен в DotNetMetricsController");
 }
Beispiel #16
0
 public DotNetMetricJob(
     IDotNetMetricsRepository metricsRepository,
     IAgentsRepository agentsRepository,
     ILogger <DotNetMetricJob> logger,
     IDotNetMetricsAgentClient agentClient,
     IMapper mapper)
 {
     _metricsRepository = metricsRepository;
     _agentsRepository  = agentsRepository;
     _logger            = logger;
     _agentClient       = agentClient;
     _mapper            = mapper;
 }
        public DotNetMetricsController(
            ILogger <DotNetMetricsController> logger,
            IDotNetMetricsRepository repository,
            IAgentsRepository agentRepository,
            IMapper mapper)
        {
            _logger = logger;
            _logger.LogDebug("NLog зарегистрирован в DotNetMetricsController");

            _repository      = repository;
            _mapper          = mapper;
            _agentRepository = agentRepository;
        }
 public DotNetMetricsController(ILogger <DotNetMetricsController> logger, IDotNetMetricsRepository repository)
 {
     _repository = repository;
     _logger     = logger;
     _logger.LogDebug(1, "NLog втроен в DotNetMetricsController");
 }
Beispiel #19
0
 public DotNetMetricGetByPeriodQueryHandler(IDotNetMetricsRepository repository, IMapper mapper)
 {
     _repository = repository;
     _mapper     = mapper;
 }
 public DotNetMetricsController(ILogger <DotNetMetricsController> logger, IDotNetMetricsRepository repository, IMapper mapper)
 {
     _logger     = logger;
     _repository = repository;
     _mapper     = mapper;
 }
Beispiel #21
0
 public DotNetMetricJob(IDotNetMetricsRepository repository)
 {
     _repository    = repository;
     _dotNetCounter = new PerformanceCounter(".NET CLR Memory", "# Bytes in all heaps", "_Global_");
 }
Beispiel #22
0
 public DotNetMetricJob(IDotNetMetricsRepository repository, ILogger <DotNetMetricJob> logger)
 {
     _repository    = repository;
     _logger        = logger;
     _dotnetCounter = new PerformanceCounter("Память CLR .NET", "Размер кучи для массивных объектов", "vstest.console");
 }
Beispiel #23
0
 public DotNetMetricJob(IDotNetMetricsRepository repository)
 {
     _repository    = repository;
     _dotNetCounter = new PerformanceCounter("Память CLR .NET", "Байт во всех кучах", "_Global_");
 }
Beispiel #24
0
 public DotNetMetricJob(IServiceProvider provider)
 {
     _provider      = provider;
     _repository    = _provider.GetService <IDotNetMetricsRepository>();
     _dotnetCounter = new PerformanceCounter(".NET CLR Memory", "# Bytes in all Heaps", "_Global_");
 }
 public DotNetMetricJob(IDotNetMetricsRepository metricsRepository, IAgentsRepository agentsRepository, IMetricsClient metricsClient)
 {
     _metricsRepository = metricsRepository;
     _agentsRepository  = agentsRepository;
     _metricsClient     = metricsClient;
 }
 public DotNetMetricsAgentController(IDotNetMetricsRepository repository, ILogger <DotNetMetricsAgentController> logger)
 {
     _repository = repository;
     _logger     = logger;
     _logger.LogDebug(1, "Nlog встроен в DotNetMetricsAgentController");
 }
Beispiel #27
0
        public DotNetMetricJob(IDotNetMetricsRepository repository)
        {
            _repository = repository;

            _counter = new PerformanceCounter("ASP.NET", "Worker Processes Running");
        }
Beispiel #28
0
 public DotNetMetricJob(IServiceProvider provider)
 {
     _provider      = provider;
     _repository    = _provider.GetService <IDotNetMetricsRepository>();
     _dotnetCounter = new PerformanceCounter("Память CLR .NET", "Байт во всех кучах", "ServiceHub.SettingsHost");
 }
        public DotNetMetricJob(IDotNetMetricsRepository repository)
        {
            _repository = repository;

            _DotNetCounter = new PerformanceCounter(".Net CLR Memory", "Gen 0 Heap Size", "iisexpresstray");
        }
Beispiel #30
0
 public DotNetMetricJob(IDotNetMetricsRepository repository, IMetricsAgentClient metricsAgent)
 {
     _repository   = repository;
     _metricsAgent = metricsAgent;
 }