podpora za gen2 plug
This commit is contained in:
@@ -39,7 +39,10 @@ app.Map("/metrics", () =>
|
||||
|
||||
foreach (var host in builder.Configuration.GetSection("Hosts").GetChildren())
|
||||
{
|
||||
sb.Append(Metrics.Get($"http://{host.Value}/status", host.Path.Replace("Hosts:", "")).Result);
|
||||
sb.Append(Metrics.Get($"http://{host["ip"]}",
|
||||
host.Path.Replace("Hosts:", ""),
|
||||
(Metrics.Version)Convert.ToInt16(host["version"]),
|
||||
(Metrics.Type)Convert.ToInt16(host["type"])).Result);
|
||||
}
|
||||
|
||||
return sb.ToString();
|
||||
|
||||
Reference in New Issue
Block a user