using System.ComponentModel.DataAnnotations.Schema;
using MP.Core.Objects;
//
// This is here so CodeMaid doesn't reorganize this document
//
namespace MP.Core.DTO
{
public class StatDedupDTO
{
///
/// Macchina
///
public string IdxMacchina { get; set; } = "";
///
/// Cod Flusso interessato
///
public string CodFlux { get; set; } = "";
///
/// Tipo di intervallo richiesto
///
public Enums.DataInterval Interval { get; set; } = Enums.DataInterval.hour;
///
/// num max di item per intervallo
///
public int Num4Int { get; set; } = 1;
///
/// Num record processati (iniziali)
///
public int NumRec { get; set; } = 1;
///
/// Tempo processing (secondi)
///
public double ProcTime { get; set; } = 1;
///
/// Tempo processing atteso in ms per record
///
[NotMapped]
public double ProcTimeMs
{
get => (ProcTime * 1000) / (NumRec > 1 ? NumRec : 1);
}
}
}