Skip to content

Commit

Permalink
add ecs task lifecycle event (#282)
Browse files Browse the repository at this point in the history
  • Loading branch information
kangyili committed Mar 18, 2024
1 parent c2a197c commit 65cb6b2
Show file tree
Hide file tree
Showing 2 changed files with 171 additions and 53 deletions.
215 changes: 162 additions & 53 deletions contlcycle/contlcycle.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions proto/contlcycle/contlcycle.proto
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ message Event {
oneof typedEvent {
ContainerEvent container = 2;
PodEvent pod = 3;
TaskEvent task = 4;
}
}

Expand Down Expand Up @@ -50,7 +51,15 @@ message PodEvent {
optional int64 exitTimestamp = 3; // exitTimestamp contains the exit timestamp of the pod
}

// TaskEvent contains task event metadata
message TaskEvent {
string taskARN = 1; // taskARN contains the task ARN
string source = 2; // source contains the task source
optional int64 exitTimestamp = 3; // exitTimestamp contains the exit timestamp of the task
}

enum ObjectKind {
Container = 0;
Pod = 1;
Task = 2;
}

0 comments on commit 65cb6b2

Please sign in to comment.