private static WatchmanConfiguration CatchAllConfig() { var catchAll = new DynamoDb { Tables = new List <Table> { new Table { Pattern = ".*" } } }; return(AlertingGroupData.WrapDynamo(catchAll)); }
private static WatchmanConfiguration Config() { var dynamoConfig = new DynamoDb { Tables = new List <Table> { new Table { Pattern = "nomatchwillbefoundforthis" } } }; return(AlertingGroupData.WrapDynamo(dynamoConfig)); }
private static WatchmanConfiguration Config() { var ag = new DynamoDb { Tables = new List <Table> { new Table { Name = "authentication-tokens" } } }; return(AlertingGroupData.WrapDynamo(ag)); }
private static WatchmanConfiguration Config() { var group = new DynamoDb { Tables = new List <Table> { new Table { Pattern = ".*", Threshold = 0.75, MonitorWrites = false } } }; return(AlertingGroupData.WrapDynamo(group)); }
private static WatchmanConfiguration Config() { var allTablesReadOnly = new DynamoDb { MonitorThrottling = true, Tables = new List <Table> { new Table { Pattern = ".*", Threshold = 0.75, MonitorWrites = false } } }; return(AlertingGroupData.WrapDynamo(allTablesReadOnly)); }
private static WatchmanConfiguration Config() { var dynamoConfig = new DynamoDb { Tables = new List <Table> { new Table { Name = "orders", Threshold = 0.5 } } }; return(AlertingGroupData.WrapDynamo(dynamoConfig)); }
private static WatchmanConfiguration Config() { var throttledWithThreshold = new DynamoDb { MonitorThrottling = true, ThrottlingThreshold = 12, Tables = new List <Table> { new Table { Pattern = ".*" } } }; return(AlertingGroupData.WrapDynamo(throttledWithThreshold)); }
private static WatchmanConfiguration Config() { var ag = new DynamoDb { Tables = new List <Table> { new Table { Pattern = ".*" } }, ExcludeTablesPrefixedWith = new List <string> { "products-table" } }; return(AlertingGroupData.WrapDynamo(ag)); }
private static WatchmanConfiguration Config() { var alertingGroup = new DynamoDb { Tables = new List <Table> { "test-a-table", "this-table-does-not-exist", new Table { Name = "my-orders", Threshold = 0.5 } } }; return(AlertingGroupData.WrapDynamo(alertingGroup)); }
private static WatchmanConfiguration ConfigWithExclusions() { var dynamo = new DynamoDb { Tables = new List <Table> { new Table { Pattern = ".*" } }, ExcludeReadsForTablesPrefixedWith = new List <string> { "test-a-table" }, ExcludeWritesForTablesPrefixedWith = new List <string> { "test-supplier-table" } }; return(AlertingGroupData.WrapDynamo(dynamo)); }
private static WatchmanConfiguration Config() { var listTables = new DynamoDb { Tables = new List <Table> { new Table { Name = "happy-table-1" }, new Table { Name = "failure-table-1" }, new Table { Name = "happy-table-2" } } }; return(AlertingGroupData.WrapDynamo(listTables)); }
private static WatchmanConfiguration ConfigWithThresholds() { var alerts = new DynamoDb { // custom threshold for all tables in the alerting group, should apply to table1. // Table2 overrides it again Threshold = 0.40, Tables = new List <Table> { new Table { Name = "test1" }, new Table { Name = "test2", Threshold = 0.65 } } }; return(AlertingGroupData.WrapDynamo(alerts)); }
private static WatchmanConfiguration Config() { var allTablesReadOnly = new DynamoDb { // these should be overridden below for 1 of the 2 tables MonitorThrottling = false, ThrottlingThreshold = 123, Tables = new List <Table> { new Table { Pattern = "test", Threshold = 0.75, MonitorThrottling = true, ThrottlingThreshold = 42 } } }; return(AlertingGroupData.WrapDynamo(allTablesReadOnly)); }