Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

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

9 changes: 9 additions & 0 deletions ecs-agent/tmds/handlers/v4/state/response.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ type TaskResponse struct {
ServiceName string `json:"ServiceName,omitempty"`
ClockDrift *ClockDrift `json:"ClockDrift,omitempty"`
EphemeralStorageMetrics *EphemeralStorageMetrics `json:"EphemeralStorageMetrics,omitempty"`
InstanceStorageMetrics *InstanceStorageMetrics `json:"InstanceStorageMetrics,omitempty"`
CredentialsID string `json:"-"`
TaskNetworkConfig *TaskNetworkConfig `json:"-"`
FaultInjectionEnabled bool `json:"FaultInjectionEnabled"`
Expand Down Expand Up @@ -90,6 +91,14 @@ type EphemeralStorageMetrics struct {
ReservedMiBs int64 `json:"Reserved"`
}

// InstanceStorageMetrics represents instance-level storage metrics exposed via TMDS.
// Both DataFilesystemUtilization and RootFilesystemUtilization are exposed to customers,
// matching the metrics available via Container Insights.
type InstanceStorageMetrics struct {
DataFilesystemUtilization float64 `json:"DataFilesystemUtilization"`
RootFilesystemUtilization float64 `json:"RootFilesystemUtilization"`
}

// ContainerResponse is the v4 Container response. It augments the v4 Network response
// with the v2 container response object.
type ContainerResponse struct {
Expand Down
Loading