-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Reorganizing, renaming, and generally cleaning up common code in Endpoint. * Cleaning up `common/types` * Renaming things * Adding comments * Removing `export` when it's not needed
- Loading branch information
Robert Austin
committed
Apr 28, 2020
1 parent
6d0914c
commit c9b1796
Showing
21 changed files
with
172 additions
and
129 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License; | ||
* you may not use this file except in compliance with the Elastic License. | ||
*/ | ||
|
||
export class AlertConstants { | ||
/** | ||
* The prefix for all Alert APIs | ||
*/ | ||
static BASE_API_URL = '/api/endpoint'; | ||
/** | ||
* The path for the Alert's Index Pattern API. | ||
*/ | ||
static INDEX_PATTERN_ROUTE = `${AlertConstants.BASE_API_URL}/index_pattern`; | ||
/** | ||
* Alert's Index pattern | ||
*/ | ||
static ALERT_INDEX_NAME = 'events-endpoint-1'; | ||
/** | ||
* A paramter passed to Alert's Index Pattern. | ||
*/ | ||
static EVENT_DATASET = 'events'; | ||
/** | ||
* Alert's Search API default page size | ||
*/ | ||
static DEFAULT_TOTAL_HITS = 10000; | ||
/** | ||
* Alerts | ||
**/ | ||
static ALERT_LIST_DEFAULT_PAGE_SIZE = 10; | ||
static ALERT_LIST_DEFAULT_SORT = '@timestamp'; | ||
static MAX_LONG_INT = '9223372036854775807'; // 2^63-1 | ||
} |
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.