Skip to content

Commit 01e0c7a

Browse files
committed
feat: add runtime
1 parent ecd1585 commit 01e0c7a

4 files changed

Lines changed: 5 additions & 3 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Web Dashboard to All of My Services across provider.
55
## Prerequisite
66

77
1. AWS Credentials
8-
2. .NET 8
8+
2. .NET 10
99

1010
## Environment
1111

ServiceMonitor.AWS/Lambda.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ public async Task<ICollection<FunctionProperty>> GetFunctionsAsync(string region
4141
Status = string.Empty,
4242
Name = x.FunctionName,
4343
Version = x.Version,
44+
Runtime = x.Runtime,
4445
CreatedAt = DateTimeOffset.Parse(x.LastModified),
4546
}).ToList();
4647

ServiceMonitor.Cloud/FunctionProperty.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@
33
public class FunctionProperty : BasicProperty
44
{
55
public string Version { get; set; }
6+
public string Runtime { get; set; }
67
}
78
}

ServiceMonitor.Mailer/Program.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,11 @@
8080
{
8181
stringBuilder.AppendLine($"<br><h2>Lambda (Region: {region})</h2>");
8282
stringBuilder.AppendLine("<table>");
83-
stringBuilder.AppendLine("<tr><th>Name</th><th>Created At</th><th>Version</th><th>Status</th></tr>");
83+
stringBuilder.AppendLine("<tr><th>Name</th><th>Created At</th><th>Version</th><th>Runtime</th><th>Status</th></tr>");
8484
var functions = await lambdaFunction.GetFunctionsAsync(region);
8585
foreach (var functionData in functions)
8686
{
87-
stringBuilder.AppendLine($"<tr><td>{functionData.Name}</td><td>{functionData.CreatedAt}</td><td>{functionData.Version}</td><td>{functionData.Status}</td></tr>");
87+
stringBuilder.AppendLine($"<tr><td>{functionData.Name}</td><td>{functionData.CreatedAt}</td><td>{functionData.Version}</td><td>{functionData.Runtime}</td><td>{functionData.Status}</td></tr>");
8888
}
8989
stringBuilder.AppendLine("</table>");
9090
}

0 commit comments

Comments
 (0)