correzioni metodi x compilare

This commit is contained in:
Samuele Locatelli
2026-04-07 11:32:18 +02:00
parent d3c22d1b03
commit 3dcbfdac63
3 changed files with 13 additions and 9 deletions
@@ -16,6 +16,14 @@ namespace MP.Data.DbModels.Utils
[Key]
public int Id { get; set; }
/// <summary>
/// Ambiente IOC/IO (new/old)
/// </summary>
public string Environment { get; set; } = "";
/// <summary>
/// Codice tipo (metodo chiamato)
/// </summary>
public string Type { get; set; } = "";
/// <summary>
/// DataOra riferimento
/// </summary>
public DateTime Hour { get; set; }
+2 -2
View File
@@ -16,11 +16,11 @@ namespace MP.Data.DbModels.Utils
[Key]
public int Id { get; set; }
/// <summary>
/// Ambiente
/// Ambiente IOC/IO (new/old)
/// </summary>
public string Environment { get; set; } = "";
/// <summary>
/// Codice mode/submode
/// Codice tipo (metodo chiamato)
/// </summary>
public string Type { get; set; } = "";
/// <summary>
+3 -7
View File
@@ -73,7 +73,7 @@ namespace MP.IOC.Services
var aggRange = new DtUtils.Periodo(DtUtils.PeriodSet.Today)
{
Inicio = thirtyDaysAgo,
Inizio = thirtyDaysAgo,
Fine = utcNow
};
@@ -147,7 +147,7 @@ namespace MP.IOC.Services
var allKeys = await _db.SortedSetRangeByRankAsync(hoursIndexKey, 0, -1);
foreach (var key in allKeys)
{
if (key == null) continue;
if (!key.HasValue) continue;
var hourFromKey = ExtractHourFromKey(key);
if (hourFromKey.HasValue && hourFromKey.Value < cutoff)
{
@@ -168,7 +168,7 @@ namespace MP.IOC.Services
var allKeys = await _db.SortedSetRangeByRankAsync(daysIndexKey, 0, -1);
foreach (var key in allKeys)
{
if (key == null) continue;
if (!key.HasValue) continue;
var dayFromKey = ExtractDayFromKey(key);
if (dayFromKey.HasValue && dayFromKey.Value.Date < cutoff.Date)
{
@@ -248,8 +248,6 @@ namespace MP.IOC.Services
RequestCount = count,
AvgDuration = avgDuration,
MaxDuration = totalMs,
Perc05Duration = 0,
Perc95Duration = 0,
MinDuration = 0,
NoReply = 0
};
@@ -266,8 +264,6 @@ namespace MP.IOC.Services
RequestCount = dest.Value,
AvgDuration = totalMs / dest.Value,
MaxDuration = totalMs,
Perc05Duration = 0,
Perc95Duration = 0,
MinDuration = 0,
NoReply = 0
};