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));
 }
示例#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));
        }
示例#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));
        }
示例#4
0
 public StackIndex(ExceptionlessElasticConfiguration configuration) : base(configuration, configuration.Options.ScopePrefix + "stacks", 1)
 {
     _configuration = configuration;
 }
示例#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;
 }
示例#7
0
 public UserIndex(ExceptionlessElasticConfiguration configuration) : base(configuration, configuration.Options.ScopePrefix + "users", 1)
 {
     _configuration = configuration;
 }
示例#8
0
 public StackIndex(ExceptionlessElasticConfiguration configuration) : base(configuration, configuration.Settings.AppScopePrefix + "stacks", 1)
 {
     _settings     = configuration.Settings;
     AddType(Stack = new StackIndexType(this));
 }
示例#9
0
 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));
 }
示例#11
0
 public ProjectIndex(ExceptionlessElasticConfiguration configuration) : base(configuration, configuration.Options.ScopePrefix + "projects", 1)
 {
     _configuration = configuration;
 }