This commit is contained in:
2020-05-25 13:17:28 +00:00
parent 5610ba3944
commit db312efd7d
5 changed files with 50 additions and 13 deletions

View File

@@ -0,0 +1,26 @@
using System;
using System.ComponentModel.DataAnnotations;
namespace AyaNova.Models
{
/// <summary>
/// Metric for cpu
/// </summary>
public class MetricCPU
{
//DATA TYPES .net to postgres map
//http://www.npgsql.org/doc/types/basic.html
[Required]
public DateTime t { get; set; }
[Required]
public double v { get; set; }
public MetricCPU()
{
t = System.DateTime.UtcNow;
v=0;
}
}//eoc
}//eons