-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* WIP arbiter history, try jdk 14 * add-exports jvmArg, jdk 17 * WIP * WIP flapping * arbiter changes to support flapping detection and notification settings * notification settings schema and case class * notification setings doc * scalastyle fix * use spike filtering nomenclature * minor naming change * spike filter tidy up * minor refactoring * scalafix --------- Co-authored-by: tomas mccandless <tomas.mccandless@workday.com>
- Loading branch information
Showing
9 changed files
with
253 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
warp-core/src/main/resources/db/migration/V3__Spike_Filter_Settings.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; | ||
SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; | ||
SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='TRADITIONAL,ALLOW_INVALID_DATES'; | ||
|
||
|
||
CREATE TABLE IF NOT EXISTS `SpikeFilterSettings` ( | ||
`idTestDefinition` INT(11) NOT NULL COMMENT 'Foreign key pointing to the test definition.', | ||
`spikeFilterEnabled` TINYINT(1) NOT NULL DEFAULT FALSE COMMENT 'Whether arbiter spike filter is enabled.', | ||
`responseTimeRequirement` DOUBLE NOT NULL, | ||
`alertOnNth` INT(11) NOT NULL DEFAULT 1, | ||
PRIMARY KEY (`idTestDefinition`), | ||
CONSTRAINT `definition_SpikeFilterSettings` | ||
FOREIGN KEY (`idTestDefinition`) | ||
REFERENCES `TestDefinition` (`idTestDefinition`) | ||
ON DELETE CASCADE | ||
ON UPDATE NO ACTION | ||
) | ||
ENGINE = InnoDB | ||
DEFAULT CHARACTER SET = utf8; | ||
|
||
|
||
SET SQL_MODE=@OLD_SQL_MODE; | ||
SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS; | ||
SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.