mirror of
https://github.com/floci-io/floci.git
synced 2026-11-23 22:11:36 -05:00
fix(cloudwatchlogs): return creationTime in DescribeLogGroups and DescribeLogStreams (#4137)
The LogGroup and LogStream API shapes carry the creation timestamp as creationTime, but both responses wrote it as createdTime, so SDK clients and the CLI saw it as unset. Only the response key changes; the persisted model field keeps its name so existing data is unaffected. Closes #4084 Signed-off-by: Matheus André <matheusandr2@gmail.com>
This commit is contained in:
1 parent
5d9986aa6c
commit
cde8f48084
3 files changed
+82
-2
No files matched your search
+2
-2
@@ -125,7 +125,7 @@ public class CloudWatchLogsHandler {
|
||||
for (LogGroup g : groups) {
|
||||
ObjectNode node = objectMapper.createObjectNode();
|
||||
node.put("logGroupName", g.getLogGroupName());
|
||||
node.put("createdTime", g.getCreatedTime());
|
||||
node.put("creationTime", g.getCreatedTime());
|
||||
String logGroupArn = logsService.buildArn(g.getLogGroupName(), region);
|
||||
node.put("arn", logGroupArn + ":*");
|
||||
node.put("logGroupArn", logGroupArn);
|
||||
@@ -276,7 +276,7 @@ public class CloudWatchLogsHandler {
|
||||
ObjectNode node = objectMapper.createObjectNode();
|
||||
node.put("logStreamName", s.getLogStreamName());
|
||||
node.put("arn", logGroupArn + ":log-stream:" + s.getLogStreamName());
|
||||
node.put("createdTime", s.getCreatedTime());
|
||||
node.put("creationTime", s.getCreatedTime());
|
||||
node.put("lastIngestionTime", s.getLastIngestionTime());
|
||||
node.put("uploadSequenceToken", s.getUploadSequenceToken());
|
||||
node.put("storedBytes", s.getStoredBytes());
|
||||
|
||||
Reference in new issue
Block a user