-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(pdl): Refactoring Assertion model enums out (#9191)
Co-authored-by: Harshal Sheth <[email protected]>
- Loading branch information
1 parent
70692b4
commit f87983d
Showing
4 changed files
with
37 additions
and
24 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
23 changes: 23 additions & 0 deletions
23
metadata-models/src/main/pegasus/com/linkedin/assertion/AssertionResultType.pdl
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,23 @@ | ||
namespace com.linkedin.assertion | ||
|
||
/** | ||
* The final result of evaluating an assertion, e.g. SUCCESS, FAILURE, or ERROR. | ||
*/ | ||
enum AssertionResultType { | ||
/** | ||
* The Assertion has not yet been fully evaluated | ||
*/ | ||
INIT | ||
/** | ||
* The Assertion Succeeded | ||
*/ | ||
SUCCESS | ||
/** | ||
* The Assertion Failed | ||
*/ | ||
FAILURE | ||
/** | ||
* The Assertion encountered an Error | ||
*/ | ||
ERROR | ||
} |
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
12 changes: 12 additions & 0 deletions
12
metadata-models/src/main/pegasus/com/linkedin/assertion/AssertionRunStatus.pdl
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,12 @@ | ||
namespace com.linkedin.assertion | ||
|
||
|
||
/** | ||
* The lifecycle status of an assertion run. | ||
*/ | ||
enum AssertionRunStatus { | ||
/** | ||
* The Assertion Run has completed | ||
*/ | ||
COMPLETE | ||
} |