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));
 }
 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));
 }
        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;
        }
        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));
        }
 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
 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
 public EventStats(ICacheClient cacheClient, IElasticClient elasticClient, EventIndex eventIndex) {
     _cacheClient = cacheClient;
     _elasticClient = elasticClient;
     _eventIndex = eventIndex;
 }