forked from facebookresearch/fbpcp
-
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.
Create ContainerStoppedMetadata class (facebookresearch#521)
Summary: Pull Request resolved: facebookresearch#521 Added `ContainerStoppedMetadata` class in order to provide more insights to improve the debugging efficiency. For this task, we mainly focus on the metadata when a container stopped (normally or unexpectedly). `ContainerStoppedMetadata` will be an attribute of `ContainerInstance`. Reviewed By: ziqih, zhuang-93 Differential Revision: D44940312 fbshipit-source-id: 092bb315f2775b2f96e92a58eddeaf8a570dae44
- Loading branch information
1 parent
382b6eb
commit dba3a06
Showing
3 changed files
with
19 additions
and
0 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
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,16 @@ | ||
#!/usr/bin/env python3 | ||
# Copyright (c) Meta Platforms, Inc. and affiliates. | ||
# | ||
# This source code is licensed under the MIT license found in the | ||
# LICENSE file in the root directory of this source tree. | ||
|
||
# pyre-strict | ||
|
||
from dataclasses import dataclass | ||
|
||
|
||
@dataclass | ||
class ContainerStoppedMetadata: | ||
stopped_at: str | ||
stop_code: str | ||
stopped_reason: str |