Files

80 lines
1.9 KiB
C#

namespace MP.Core.DTO
{
public class StatInfoDto
{
#region Public Enums
/// <summary>
/// Modalità di aggregwzione del dato
/// </summary>
public enum AggrLevel
{
/// <summary>
/// Non specificato
/// </summary>
None,
/// <summary>
/// Aggregazione x server (IO/IOC)
/// </summary>
Service,
/// <summary>
/// Aggregazione x metodo chiamato
/// </summary>
Method,
/// <summary>
/// Aggregazione x Macchina chiamante
/// </summary>
Machine
}
/// <summary>
/// Tipologia del dato collezionato
/// </summary>
public enum DataType
{
/// <summary>
/// Non specificato
/// </summary>
None,
/// <summary>
/// Conteggio
/// </summary>
Count,
/// <summary>
/// Durata temporale (Avg)
/// </summary>
AvgDuration
}
#endregion Public Enums
#region Public Properties
/// <summary>
/// Titolo della statistica
/// </summary>
public string Title { get; set; } = "";
/// <summary>
/// Livello di aggregazione delle statistiche collezionate
/// </summary>
public AggrLevel Grouping { get; set; } = AggrLevel.None;
/// <summary>
/// Tipologia di dato della statistica
/// </summary>
public DataType Type { get; set; } = DataType.None;
/// <summary>
/// Dati statistici ordinati in logica Pareto
/// </summary>
public List<StatDataDTO> DataCollection { get; set; } = new();
#endregion Public Properties
}
}