correzioni metodi x compilare
This commit is contained in:
@@ -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; }
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user