-
Notifications
You must be signed in to change notification settings - Fork 124
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add
subscribe
interface (#2037)
- Loading branch information
Showing
3 changed files
with
57 additions
and
1 deletion.
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
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,51 @@ | ||
syntax = "proto3"; | ||
package dozer.cloud; | ||
|
||
message Notification { | ||
string namespace = 1; | ||
Level level = 2; | ||
oneof kind { | ||
PodNotification pod = 3; | ||
} | ||
} | ||
|
||
enum Level { | ||
TRACE = 0; | ||
DEBUG = 1; | ||
INFO = 2; | ||
WARN = 3; | ||
ERROR = 4; | ||
} | ||
|
||
message PodNotification { | ||
uint32 deployment = 1; | ||
oneof kind { | ||
ContainerTerminated containerTerminated = 2; | ||
} | ||
} | ||
|
||
message ContainerTerminated { | ||
ContainerTerminationKind kind = 1; | ||
ContainerTerminationReason reason = 2; | ||
ContainerTerminationDetail detail = 3; | ||
} | ||
|
||
enum ContainerTerminationKind { | ||
APP_FAILED = 0; | ||
APP_RESTARTED = 1; | ||
API_RESTARTED = 2; | ||
CACHE_BACKUP_RESTARTED = 3; | ||
} | ||
|
||
enum ContainerTerminationReason { | ||
OUT_OF_MEMORY = 0; | ||
OUT_OF_STORAGE = 1; | ||
UNKNOWN = 2; | ||
} | ||
|
||
message ContainerTerminationDetail { | ||
int32 exitCode = 1; | ||
optional string message = 2; | ||
optional string reason = 3; | ||
optional int32 signal = 4; | ||
} |