diff --git a/MP.IOC/Components/Pages/CallStats.razor.cs b/MP.IOC/Components/Pages/CallStats.razor.cs index 5bc73b32..d56668aa 100644 --- a/MP.IOC/Components/Pages/CallStats.razor.cs +++ b/MP.IOC/Components/Pages/CallStats.razor.cs @@ -64,12 +64,17 @@ namespace MP.IOC.Components.Pages private List DatiPareto { - get => currData.Select(x => x.Value).ToList(); + get => currData.Where(x => x.Value > 10).OrderByDescending(x => x.Value).Take(ParetoTake).Select(x => x.Value).ToList(); } private List LabelPareto { - get => currData.Select(x => x.Label).ToList(); + get => currData.Where(x => x.Value > 10).OrderByDescending(x => x.Value).Take(ParetoTake).Select(x => x.Label).ToList(); + } + + private int ParetoTake + { + get => currData.Count() <= 30 ? currData.Count() : 30; } private List LabelPlot diff --git a/MP.IOC/MP.IOC.csproj b/MP.IOC/MP.IOC.csproj index c8fcf7b9..27999560 100644 --- a/MP.IOC/MP.IOC.csproj +++ b/MP.IOC/MP.IOC.csproj @@ -4,7 +4,7 @@ net8.0 enable enable - 6.16.2604.1612 + 6.16.2604.1616 diff --git a/MP.IOC/Program.cs b/MP.IOC/Program.cs index aabf3b51..81347efd 100644 --- a/MP.IOC/Program.cs +++ b/MP.IOC/Program.cs @@ -127,7 +127,7 @@ logger.Info("Singleton Route Manager registered"); var app = builder.Build(); // aggiunt base URL x routing corretto -string baseUrl = configuration.GetValue("ServerConf:BaseUrl") ?? ""; +string baseUrl = configuration.GetValue("ServerConf:BaseUrlIoc") ?? "/MP/"; app.UsePathBase(baseUrl); string routePath = configuration.GetValue("ServerConf:RoutePath") ?? "/api/RIOB"; string fullPath = $"{baseUrl}{routePath}".Replace("//", "/"); diff --git a/MP.IOC/Resources/ChangeLog.html b/MP.IOC/Resources/ChangeLog.html index b3ccad27..fa8bc407 100644 --- a/MP.IOC/Resources/ChangeLog.html +++ b/MP.IOC/Resources/ChangeLog.html @@ -1,6 +1,6 @@ Modulo MP-IOC -

Versione: 6.16.2604.1612

+

Versione: 6.16.2604.1616


Note di rilascio:
  • diff --git a/MP.IOC/Resources/VersNum.txt b/MP.IOC/Resources/VersNum.txt index c468233b..f88e592c 100644 --- a/MP.IOC/Resources/VersNum.txt +++ b/MP.IOC/Resources/VersNum.txt @@ -1 +1 @@ -6.16.2604.1612 +6.16.2604.1616 diff --git a/MP.IOC/Resources/manifest.xml b/MP.IOC/Resources/manifest.xml index 025c377c..1efa5261 100644 --- a/MP.IOC/Resources/manifest.xml +++ b/MP.IOC/Resources/manifest.xml @@ -1,6 +1,6 @@ - 6.16.2604.1612 + 6.16.2604.1616 https://nexus.steamware.net/repository/SWS/MP-IOC/stable/LAST/MP.IOC.zip https://nexus.steamware.net/repository/SWS/MP-IOC/stable/LAST/ChangeLog.html false diff --git a/MP.IOC/appsettings.Production.json b/MP.IOC/appsettings.Production.json index 4949dbd3..ad5fa751 100644 --- a/MP.IOC/appsettings.Production.json +++ b/MP.IOC/appsettings.Production.json @@ -5,10 +5,29 @@ "Microsoft.AspNetCore": "Warning" } }, + "ReverseProxy": { + "Routes": [ + { + "RouteId": "route-man-r-iob", + "ClusterId": "cluster-placeholder", + "Match": { "Path": "/api/RIOB/{**catch-all}" } + } + ], + "Clusters": { + "cluster-old": { + "Destinations": { "old1": { "Address": "https://iis01.egalware.com/MP/IO/IOB/" } } + }, + "cluster-new": { + "Destinations": { "new1": { "Address": "https://iis01.egalware.com/MP/IOC/api/IOB/" } } + } + } + }, "AllowedHosts": "*", "CodApp": "MP.IOC", "ConnectionStrings": { "MP.Data": "Server=localhost\\SQLEXPRESS;Database=MoonPro;User ID=steamware;Password=viadante16; integrated security=False; MultipleActiveResultSets=True; App=MP.IOC;", + "MP.Flux": "Server=localhost\\SQLEXPRESS;Database=MoonPro_FluxData; User ID=steamware;Password=viadante16; integrated security=False; MultipleActiveResultSets=True; App=MP.SPEC;", + "MP.Utils": "Server=localhost\\SQLEXPRESS;Database=MoonPro_Utils; User ID=steamware;Password=viadante16; integrated security=False; App=MP.IOC;", "Redis": "localhost:6379,DefaultDatabase=5,connectTimeout=5000,syncTimeout=5000,asyncTimeout=5000,abortConnect=false,ssl=false", "RedisAdmin": "localhost:6379,DefaultDatabase=5,connectTimeout=5000,syncTimeout=5000,asyncTimeout=5000,abortConnect=false,ssl=false,allowAdmin=true", "mdbConnString": "mongodb://localhost:27017" diff --git a/MP.IOC/appsettings.json b/MP.IOC/appsettings.json index 05264599..281c7e6f 100644 --- a/MP.IOC/appsettings.json +++ b/MP.IOC/appsettings.json @@ -79,7 +79,7 @@ "DeleteExpiredMetrics": true }, "ServerConf": { - "BaseUrl": "/MP/IOC/", + "BaseUrlIoc": "/MP/IOC/", "MpIoNS": "MoonPro:SQL2016DEV:MoonPro", "RedisBaseKey": "MP-IOC", "RedisWeight": true,