27 lines
523 B
C#
27 lines
523 B
C#
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
|