コード例 #1
0
 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();
 }
コード例 #2
0
 public BackgrounderEventPersister(IWriterFactory writerFactory)
 {
     _jobWriter                   = writerFactory.GetWriter <BackgrounderJob>(JobsDsi);
     _jobErrorWriter              = writerFactory.GetWriter <BackgrounderJobError>(JobErrorsDsi);
     _extractJobDetailWriter      = writerFactory.GetWriter <BackgrounderExtractJobDetail>(ExtractJobDetailsDsi);
     _subscriptionJobDetailWriter = writerFactory.GetWriter <BackgrounderSubscriptionJobDetail>(SubscriptionJobDetailsDsi);
 }
コード例 #3
0
 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;
 }
コード例 #4
0
 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;
 }
コード例 #5
0
 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;
 }
コード例 #6
0
        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);
        }
コード例 #7
0
        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;
        }
コード例 #8
0
 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);
 }
コード例 #9
0
ファイル: ApachePlugin.cs プロジェクト: roopannava/Logshark
        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;
        }
コード例 #10
0
 public void Configure(IWriterFactory writerFactory, IConfiguration pluginConfig, IProcessingNotificationsCollector processingNotificationsCollector, ILoggerFactory loggerFactory)
 {
     _hyperErrorWriter = writerFactory.GetWriter <HyperError>(HyperErrorOutputInfo);
     _hyperQueryWriter = writerFactory.GetWriter <HyperEvent>(HyperQueryOutputInfo);
     _processingNotificationsCollector = processingNotificationsCollector;
 }
コード例 #11
0
ファイル: PostgresPlugin.cs プロジェクト: roopannava/Logshark
 public void Configure(IWriterFactory writerFactory, IConfiguration pluginConfig, IProcessingNotificationsCollector processingNotificationsCollector, ILoggerFactory loggerFactory)
 {
     _writer = writerFactory.GetWriter <PostgresEvent>(OutputInfo);
     _processingNotificationsCollector = processingNotificationsCollector;
 }
コード例 #12
0
ファイル: NetstatPlugin.cs プロジェクト: isabella232/Logshark
 public void Configure(IWriterFactory writerFactory, IConfiguration pluginConfig, IProcessingNotificationsCollector processingNotificationsCollector, ILoggerFactory loggerFactory)
 {
     _writer = writerFactory.GetWriter <NetstatActiveConnection>(OutputInfo);
     _processingNotificationsCollector = processingNotificationsCollector;
 }
コード例 #13
0
 public void Configure(IWriterFactory writerFactory, IConfiguration pluginConfig, IProcessingNotificationsCollector processingNotificationsCollector, ILoggerFactory loggerFactory)
 {
     _eventWriter  = writerFactory.GetWriter <ServerTelemetryEvent>(EventsDsi);
     _metricWriter = writerFactory.GetWriter <ServerTelemetryMetric>(MetricsDsi);
     _processingNotificationsCollector = processingNotificationsCollector;
 }
コード例 #14
0
        public async Task RunHelloWordAsync(WriterType writeTo)
        {
            var message = await _client.GetHelloWorldAsync();

            _writerFactory.GetWriter(writeTo).Write(message);
        }
コード例 #15
0
ファイル: WriteManager.cs プロジェクト: andychatzi/HelloWorld
 public WriteManager(IWriterFactory factory)
 {
     _writer = factory.GetWriter();
 }