Skip to content

Commit

Permalink
instance metrics: model changes
Browse files Browse the repository at this point in the history
This commit introduces model changes for telemetry service client in
order to publish instance metrics.
  • Loading branch information
aaithal committed Jan 15, 2025
1 parent fb1fb40 commit 80f898b
Show file tree
Hide file tree
Showing 2 changed files with 85 additions and 9 deletions.
36 changes: 28 additions & 8 deletions ecs-agent/tcs/model/api/api-2.json
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,8 @@
"members":{
"containerName":{"shape":"String"},
"healthStatus":{"shape":"HealthStatus"},
"statusSince":{"shape":"Timestamp"}
"statusSince":{"shape":"Timestamp"},
"statusMessage":{"shape":"String"}
}
},
"ContainerHealths":{
Expand All @@ -139,12 +140,6 @@
"restartStatsSet":{"shape":"RestartStatsSet"}
}
},
"RestartStatsSet":{
"type":"structure",
"members":{
"restartCount":{"shape":"UInteger"}
}
},
"ContainerMetrics":{
"type":"list",
"member":{"shape":"ContainerMetric"}
Expand All @@ -164,7 +159,7 @@
"EphemeralStorageMetrics":{
"type":"structure",
"members":{
"bytesUtilized":{"shape":"ULongStatsSet"}
"BytesUtilized":{"shape":"ULongStatsSet"}
}
},
"GeneralMetric":{
Expand Down Expand Up @@ -219,6 +214,12 @@
"INITIALIZING"
]
},
"InstanceMetrics":{
"type":"structure",
"members":{
"storage":{"shape":"InstanceStorageMetrics"}
}
},
"InstanceStatus":{
"type":"structure",
"members":{
Expand All @@ -240,6 +241,13 @@
"type":"list",
"member":{"shape":"InstanceStatus"}
},
"InstanceStorageMetrics":{
"type":"structure",
"members":{
"OSFilesystem":{"shape":"Percentage"},
"DataFilesystem":{"shape":"Percentage"}
}
},
"InvalidParameterException":{
"type":"structure",
"members":{
Expand Down Expand Up @@ -288,6 +296,11 @@
"txPackets":{"shape":"ULongStatsSet"}
}
},
"Percentage":{
"type":"double",
"max":100.0,
"min":0.0
},
"PublishHealthRequest":{
"type":"structure",
"members":{
Expand All @@ -308,6 +321,7 @@
"type":"structure",
"members":{
"metadata":{"shape":"MetricsMetadata"},
"instanceMetrics":{"shape":"InstanceMetrics"},
"taskMetrics":{"shape":"TaskMetrics"},
"timestamp":{"shape":"Timestamp"}
}
Expand All @@ -319,6 +333,12 @@
},
"exception":true
},
"RestartStatsSet":{
"type":"structure",
"members":{
"restartCount":{"shape":"UInteger"}
}
},
"ServerException":{
"type":"structure",
"members":{
Expand Down
58 changes: 57 additions & 1 deletion ecs-agent/tcs/model/ecstcs/api.go

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

0 comments on commit 80f898b

Please sign in to comment.