This commit is contained in:
26
server/AyaNova/models/MetricCPU.cs
Normal file
26
server/AyaNova/models/MetricCPU.cs
Normal 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
|
||||||
Reference in New Issue
Block a user