コード例 #1
0
 public ExceptionlessElasticConfiguration(IQueue <WorkItemData> workItemQueue, ICacheClient cacheClient, IMessageBus messageBus, ILoggerFactory loggerFactory) : base(workItemQueue, cacheClient, messageBus, loggerFactory)
 {
     _logger.Info().Message($"All new indexes will be created with {Settings.Current.ElasticSearchNumberOfShards} Shards and {Settings.Current.ElasticSearchNumberOfReplicas} Replicas");
     AddIndex(Stacks        = new StackIndex(this));
     AddIndex(Events        = new EventIndex(this));
     AddIndex(Organizations = new OrganizationIndex(this));
 }
コード例 #2
0
 public ExceptionlessElasticConfiguration(Settings settings, IQueue <WorkItemData> workItemQueue, ICacheClient cacheClient, IMessageBus messageBus, ILoggerFactory loggerFactory) : base(workItemQueue, cacheClient, messageBus, loggerFactory)
 {
     Settings = settings;
     _logger.LogInformation("All new indexes will be created with {ElasticsearchNumberOfShards} Shards and {ElasticsearchNumberOfReplicas} Replicas", Settings.ElasticsearchNumberOfShards, Settings.ElasticsearchNumberOfReplicas);
     AddIndex(Stacks        = new StackIndex(this));
     AddIndex(Events        = new EventIndex(this));
     AddIndex(Organizations = new OrganizationIndex(this));
 }
コード例 #3
0
        public ExceptionlessElasticConfiguration(IOptions <ElasticsearchOptions> options, IOptions <AppOptions> appOptions, IQueue <WorkItemData> workItemQueue, ICacheClient cacheClient, IMessageBus messageBus, ILoggerFactory loggerFactory) : base(workItemQueue, cacheClient, messageBus, loggerFactory)
        {
            _options    = options;
            _appOptions = appOptions;

            _logger.LogInformation("All new indexes will be created with {ElasticsearchNumberOfShards} Shards and {ElasticsearchNumberOfReplicas} Replicas", options.Value.NumberOfShards, options.Value.NumberOfReplicas);
            AddIndex(Stacks        = new StackIndex(this));
            AddIndex(Events        = new EventIndex(this));
            AddIndex(Organizations = new OrganizationIndex(this));
        }
コード例 #4
0
        public MigrationJobBase(IElasticClient elasticClient, EventUpgraderPluginManager eventUpgraderPluginManager, EventIndex eventIndex, StackIndex stackIndex, IValidator<Stack> stackValidator, IValidator<PersistentEvent> eventValidator, IGeoIPResolver geoIpResolver, ILockProvider lockProvider, ICacheClient cache) {
            _eventUpgraderPluginManager = eventUpgraderPluginManager;
            _mongoDatabase = GetMongoDatabase();
            _eventRepository = new EventMigrationRepository(elasticClient, eventIndex, eventValidator);
            _stackRepository = new StackMigrationRepository(elasticClient, stackIndex, _eventRepository, stackValidator);
            _geoIpResolver = geoIpResolver;
            _lockProvider = lockProvider;
            _cache = cache;

            _batchSize = MigrationSettings.Current.MigrationBatchSize;
        }
コード例 #5
0
        public ExceptionlessElasticConfiguration(
            AppOptions appOptions,
            IQueue <WorkItemData> workItemQueue,
            JsonSerializerSettings serializerSettings,
            ICacheClient cacheClient,
            IMessageBus messageBus,
            ILoggerFactory loggerFactory
            ) : base(workItemQueue, cacheClient, messageBus, loggerFactory)
        {
            _appOptions         = appOptions;
            _serializerSettings = serializerSettings;

            _logger.LogInformation("All new indexes will be created with {ElasticsearchNumberOfShards} Shards and {ElasticsearchNumberOfReplicas} Replicas", _appOptions.ElasticsearchOptions.NumberOfShards, _appOptions.ElasticsearchOptions.NumberOfReplicas);
            AddIndex(Stacks        = new StackIndex(this));
            AddIndex(Events        = new EventIndex(this, appOptions));
            AddIndex(Migrations    = new MigrationIndex(this, _appOptions.ElasticsearchOptions.ScopePrefix + "migrations", appOptions.AppMode == AppMode.Development ? 0 : 1));
            AddIndex(Organizations = new OrganizationIndex(this));
            AddIndex(Projects      = new ProjectIndex(this));
            AddIndex(Tokens        = new TokenIndex(this));
            AddIndex(Users         = new UserIndex(this));
            AddIndex(WebHooks      = new WebHookIndex(this));
        }
コード例 #6
0
 public QueueEventMigrationsJob(IQueue<EventMigrationBatch> queue, IElasticClient elasticClient, EventUpgraderPluginManager eventUpgraderPluginManager, EventIndex eventIndex, StackIndex stackIndex, IValidator<Stack> stackValidator, IValidator<PersistentEvent> eventValidator, IGeoIPResolver geoIpResolver, ILockProvider lockProvider, ICacheClient cache) : base(elasticClient, eventUpgraderPluginManager, eventIndex, stackIndex, stackValidator, eventValidator, geoIpResolver, lockProvider, cache) {
     _queue = queue;
 }
コード例 #7
0
ファイル: EventIndexType.cs プロジェクト: wjzxx/Exceptionless
 public EventIndexType(EventIndex index) : base(index, "events", document => document.Date.UtcDateTime)
 {
 }
コード例 #8
0
 public EventMigrationRepository(IElasticClient elasticClient, EventIndex index, IValidator<PersistentEvent> validator = null) : base(elasticClient, index, validator, null) {
     EnableCache = false;
 }
コード例 #9
0
 public EventStats(IElasticClient elasticClient, EventIndex eventIndex, QueryBuilderRegistry queryBuilder) {
     _elasticClient = elasticClient;
     _eventIndex = eventIndex;
     _queryBuilder = queryBuilder;
 }
コード例 #10
0
 public EventStats(IElasticClient elasticClient, EventIndex eventIndex) {
     _elasticClient = elasticClient;
     _eventIndex = eventIndex;
 }
コード例 #11
0
 public StackMigrationJob(IElasticClient elasticClient, EventUpgraderPluginManager eventUpgraderPluginManager, EventIndex eventIndex, StackIndex stackIndex, IValidator<Stack> stackValidator, IValidator<PersistentEvent> eventValidator, IGeoIPResolver geoIpResolver, ILockProvider lockProvider, ICacheClient cache)
     : base(elasticClient, eventUpgraderPluginManager, eventIndex, stackIndex, stackValidator, eventValidator, geoIpResolver, lockProvider, cache) {
 }
コード例 #12
0
ファイル: EventStats.cs プロジェクト: aamarber/Exceptionless
 public EventStats(ICacheClient cacheClient, IElasticClient elasticClient, EventIndex eventIndex) {
     _cacheClient = cacheClient;
     _elasticClient = elasticClient;
     _eventIndex = eventIndex;
 }