-
Notifications
You must be signed in to change notification settings - Fork 550
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Model for FailoutProperties (#789)
* Added D2FailoutProperties model. This weakly typed model will be converted to a strongly typed model elsewhere.
- Loading branch information
1 parent
cd3eabd
commit e4c851b
Showing
3 changed files
with
26 additions
and
2 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
d2-schemas/src/main/pegasus/com/linkedin/d2/D2FailoutProperties.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,16 @@ | ||
namespace com.linkedin.d2 | ||
|
||
/** | ||
* Loosely typed model containing data that controls the failout state an application. | ||
*/ | ||
record D2FailoutProperties { | ||
/** | ||
* Routing data for offline partitions. | ||
*/ | ||
failoutRedirectConfigs: array[ map[string, D2FailoutPropertiesConfigValue]] | ||
|
||
/** | ||
* Batch of buckets to failout. | ||
*/ | ||
failoutBucketConfigs: array[ map[string, D2FailoutPropertiesConfigValue]] | ||
} |
7 changes: 7 additions & 0 deletions
7
d2-schemas/src/main/pegasus/com/linkedin/d2/D2FailoutPropertiesConfigValue.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,7 @@ | ||
namespace com.linkedin.d2 | ||
|
||
|
||
/** | ||
* Weakly typed configValue containing failout data (Later to be converted in to a strongly typed object). | ||
*/ | ||
typeref D2FailoutPropertiesConfigValue = union[longValue: long, intValue: int, stringValue: string, mapValue: map[string, int]] |
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