public OrganizationIndex(ExceptionlessElasticConfiguration configuration) : base(configuration, configuration.Options.ScopePrefix + "organizations", 1)
 {
     _configuration       = configuration;
     AddType(Organization = new OrganizationIndexType(this));
     AddType(Project      = new ProjectIndexType(this));
     AddType(Token        = new TokenIndexType(this));
     AddType(User         = new UserIndexType(this));
     AddType(WebHook      = new WebHookIndexType(this));
 }
Beispiel #2
0
        public EventIndex(ExceptionlessElasticConfiguration configuration) : base(configuration, configuration.Options.ScopePrefix + "events", 1)
        {
            _configuration = configuration;
            MaxIndexAge    = TimeSpan.FromDays(180);

            AddType(Event = new EventIndexType(this));
            AddAlias($"{Name}-today", TimeSpan.FromDays(1));
            AddAlias($"{Name}-last3days", TimeSpan.FromDays(7));
            AddAlias($"{Name}-last7days", TimeSpan.FromDays(7));
            AddAlias($"{Name}-last30days", TimeSpan.FromDays(30));
            AddAlias($"{Name}-last90days", TimeSpan.FromDays(90));
        }
Beispiel #3
0
        public EventIndex(ExceptionlessElasticConfiguration configuration, AppOptions appOptions) : base(configuration, configuration.Options.ScopePrefix + "events", 1, doc => ((PersistentEvent)doc).Date.UtcDateTime)
        {
            _configuration = configuration;

            if (appOptions.MaximumRetentionDays > 0)
            {
                MaxIndexAge = TimeSpan.FromDays(appOptions.MaximumRetentionDays);
            }

            AddAlias($"{Name}-today", TimeSpan.FromDays(1));
            AddAlias($"{Name}-last3days", TimeSpan.FromDays(7));
            AddAlias($"{Name}-last7days", TimeSpan.FromDays(7));
            AddAlias($"{Name}-last30days", TimeSpan.FromDays(30));
            AddAlias($"{Name}-last90days", TimeSpan.FromDays(90));
        }
Beispiel #4
0
 public StackIndex(ExceptionlessElasticConfiguration configuration) : base(configuration, configuration.Options.ScopePrefix + "stacks", 1)
 {
     _configuration = configuration;
 }
Beispiel #5
0
 public TokenIndex(ExceptionlessElasticConfiguration configuration) : base(configuration, configuration.Options.ScopePrefix + "tokens", 1)
 {
     _configuration = configuration;
 }
 public OrganizationIndex(ExceptionlessElasticConfiguration configuration) : base(configuration, configuration.Options.ScopePrefix + "organizations", 1)
 {
     _configuration = configuration;
 }
 public UserIndex(ExceptionlessElasticConfiguration configuration) : base(configuration, configuration.Options.ScopePrefix + "users", 1)
 {
     _configuration = configuration;
 }
Beispiel #8
0
 public StackIndex(ExceptionlessElasticConfiguration configuration) : base(configuration, configuration.Settings.AppScopePrefix + "stacks", 1)
 {
     _settings     = configuration.Settings;
     AddType(Stack = new StackIndexType(this));
 }
 public WebHookIndex(ExceptionlessElasticConfiguration configuration) : base(configuration, configuration.Options.ScopePrefix + "webhooks", 1)
 {
     _configuration = configuration;
 }
 public StackIndex(ExceptionlessElasticConfiguration configuration) : base(configuration, configuration.Options.ScopePrefix + "stacks", 1)
 {
     _configuration = configuration;
     AddType(Stack  = new StackIndexType(this));
 }
Beispiel #11
0
 public ProjectIndex(ExceptionlessElasticConfiguration configuration) : base(configuration, configuration.Options.ScopePrefix + "projects", 1)
 {
     _configuration = configuration;
 }