forked from bgido/memphis-functions
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
13 additions
and
11 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 |
---|---|---|
@@ -1 +1,12 @@ | ||
# memphis-functions | ||
## memphis-functions | ||
|
||
# This function parses a json file and replaces the severity values with other values according to the following logic - | ||
If the value of the severity = 1, it replaces 1 with low | ||
If the value of severity = 2, it replaces 2 with medium | ||
If the value of the severity = 3, it replaces 3 with high | ||
If the value of the severity = 4, it replaces 4 with critical | ||
If the value of the severity = warning, it replaces warning with low | ||
If the value of severity = minor, it replaces minor with medium | ||
If the value of the severity = major, it replaces major with high | ||
If the value of the severity = critical, it leaves critical as critical | ||
The output is json with the new values of the severity field |
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