public void Configure(IWriterFactory writerFactory, IConfiguration pluginConfig, IProcessingNotificationsCollector processingNotificationsCollector, ILoggerFactory loggerFactory) { _processingNotificationsCollector = processingNotificationsCollector; _desktopWriter = writerFactory.GetWriter <FlattenedArtEvent>(DesktopOutputInfo); _serverWriter = writerFactory.GetWriter <FlattenedArtEvent>(ServerOutputInfo); _jsonSerializer = JsonSerializer.Create(); }
public BackgrounderEventPersister(IWriterFactory writerFactory) { _jobWriter = writerFactory.GetWriter <BackgrounderJob>(JobsDsi); _jobErrorWriter = writerFactory.GetWriter <BackgrounderJobError>(JobErrorsDsi); _extractJobDetailWriter = writerFactory.GetWriter <BackgrounderExtractJobDetail>(ExtractJobDetailsDsi); _subscriptionJobDetailWriter = writerFactory.GetWriter <BackgrounderSubscriptionJobDetail>(SubscriptionJobDetailsDsi); }
public void Configure(IWriterFactory writerFactory, IConfiguration pluginConfig, IProcessingNotificationsCollector processingNotificationsCollector, ILoggerFactory loggerFactory) { _configEntriesWriter = writerFactory.GetWriter <ConfigEntry>(ConfigEntriesOutputInfo); _processTopologyWriter = writerFactory.GetWriter <ConfigProcessInfo>(ProcessTopologyOutputInfo); _processedConfigFiles = new List <ConfigFile>(); _logger = loggerFactory.CreateLogger <ConfigPlugin>(); _processingNotificationsCollector = processingNotificationsCollector; }
public void Configure(IWriterFactory writerFactory, IConfiguration pluginConfig, IProcessingNotificationsCollector processingNotificationsCollector, ILoggerFactory loggerFactory) { _tabadminActionWriter = writerFactory.GetWriter <TabadminAction>(TabadminActionOutputInfo); _tableauServerVersionWriter = writerFactory.GetWriter <TableauServerVersion>(TableauServerVersionOutputInfo); _tabadminErrorWriter = writerFactory.GetWriter <TabadminError>(TabadminErrorOutputInfo); _versionsDict = new Dictionary <string, List <TableauServerVersion> >(); _processingNotificationsCollector = processingNotificationsCollector; }
public VizqlDesktopEventProcessor(IWriterFactory writerFactory, int maxQueryLength) { _sessionsWriter = writerFactory.GetWriter <VizqlDesktopSession>(SessionsDsi); _errorsWriter = writerFactory.GetWriter <VizqlDesktopErrorEvent>(ErrorsDsi); _endQueryEventsWriter = writerFactory.GetWriter <VizqlEndQueryEvent>(EndQueryEventsDsi); _performanceEventsWriter = writerFactory.GetWriter <VizqlPerformanceEvent>(PerformanceEventsDsi); _sessionTracker = new SessionTracker(); _maxQueryLength = maxQueryLength; }
public ResourceManagerEventsProcessor(IWriterFactory writerFactory, IProcessingNotificationsCollector processingNotificationsCollector) { _processingNotificationsCollector = processingNotificationsCollector; _actionsWriter = writerFactory.GetWriter <ResourceManagerAction>(ActionsDataSetInfo); _cpuSamplesWriter = writerFactory.GetWriter <ResourceManagerCpuSample>(CpuSamplesDataSetInfo); _memorySamplesWriter = writerFactory.GetWriter <ResourceManagerMemorySample>(MemorySamplesDataSetInfo); _thresholdsWriters = writerFactory.GetWriter <ResourceManagerThreshold>(ThresholdsDataSetInfo); _cpuUsageWriter = writerFactory.GetWriter <ResourceManagerHighCpuUsage>(HighCpuUsageDataSetInfo); }
public void Configure(IWriterFactory writerFactory, IConfiguration pluginConfig, IProcessingNotificationsCollector processingNotificationsCollector, ILoggerFactory loggerFactory) { _errorWriter = writerFactory.GetWriter <ClusterControllerError>(_errorDSI); _postgresActionWriter = writerFactory.GetWriter <ClusterControllerPostgresAction>(_postgresActionDSI); _diskIOSampleWriter = writerFactory.GetWriter <ClusterControllerDiskIoSample>(_diskIOSampleDSI); _zkErrorWriter = writerFactory.GetWriter <ZookeeperError>(_zkErrorDSI); _zkFsyncLatencyWriter = writerFactory.GetWriter <ZookeeperFsyncLatency>(_zkFsyncLatencyDSI); _processingNotificationsCollector = processingNotificationsCollector; }
public void Configure(IWriterFactory writerFactory, IConfiguration pluginConfig, IProcessingNotificationsCollector processingNotificationsCollector, ILoggerFactory loggerFactory) { _processingNotificationsCollector = processingNotificationsCollector; _tabadminControllerEventParser = new TabadminControllerEventParser( new BuildTracker(processingNotificationsCollector), _processingNotificationsCollector); _writer = writerFactory.GetWriter <TabadminControllerEvent>(OutputInfo); }
public void Configure(IWriterFactory writerFactory, IConfiguration pluginConfig, IProcessingNotificationsCollector processingNotificationsCollector, ILoggerFactory loggerFactory) { _writer = writerFactory.GetWriter <ApacheEvent>(OutputInfo); var section = pluginConfig?.GetSection("IncludeGatewayChecks"); var sectionExists = section != null && section.Exists(); if (!sectionExists) { var logger = loggerFactory.CreateLogger <ApachePlugin>(); logger.LogWarning("{pluginName} config was missing from Plugins Configuration. Using default value of {defaultValue} for {missingParameterName} parameter", nameof(ApachePlugin), DefaultIncludeGatewayHealthChecksValue, "IncludeGatewayChecks"); } _includeGatewayHealthChecks = sectionExists ? section.Get <bool>() : DefaultIncludeGatewayHealthChecksValue; _processingNotificationsCollector = processingNotificationsCollector; }
public void Configure(IWriterFactory writerFactory, IConfiguration pluginConfig, IProcessingNotificationsCollector processingNotificationsCollector, ILoggerFactory loggerFactory) { _hyperErrorWriter = writerFactory.GetWriter <HyperError>(HyperErrorOutputInfo); _hyperQueryWriter = writerFactory.GetWriter <HyperEvent>(HyperQueryOutputInfo); _processingNotificationsCollector = processingNotificationsCollector; }
public void Configure(IWriterFactory writerFactory, IConfiguration pluginConfig, IProcessingNotificationsCollector processingNotificationsCollector, ILoggerFactory loggerFactory) { _writer = writerFactory.GetWriter <PostgresEvent>(OutputInfo); _processingNotificationsCollector = processingNotificationsCollector; }
public void Configure(IWriterFactory writerFactory, IConfiguration pluginConfig, IProcessingNotificationsCollector processingNotificationsCollector, ILoggerFactory loggerFactory) { _writer = writerFactory.GetWriter <NetstatActiveConnection>(OutputInfo); _processingNotificationsCollector = processingNotificationsCollector; }
public void Configure(IWriterFactory writerFactory, IConfiguration pluginConfig, IProcessingNotificationsCollector processingNotificationsCollector, ILoggerFactory loggerFactory) { _eventWriter = writerFactory.GetWriter <ServerTelemetryEvent>(EventsDsi); _metricWriter = writerFactory.GetWriter <ServerTelemetryMetric>(MetricsDsi); _processingNotificationsCollector = processingNotificationsCollector; }
public async Task RunHelloWordAsync(WriterType writeTo) { var message = await _client.GetHelloWorldAsync(); _writerFactory.GetWriter(writeTo).Write(message); }
public WriteManager(IWriterFactory factory) { _writer = factory.GetWriter(); }