added influxdb stuff
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2020-04-08 02:58:29 +02:00
parent 4b993ee5e7
commit 825cd27f3c
14 changed files with 158 additions and 9 deletions

View File

@ -4,12 +4,20 @@ namespace OutputServiceTSDB.Models
{
public class ApiObject
{
public DateTime Date { get; set; }
public string Tag { get; set; }
public bool Decision { get; set; }
private double _probability;
public double Confidence { get; set; }
public double Probability
{ get => _probability;
set
{
if (value > 1.0 || value < 0.0)
throw new ArgumentOutOfRangeException(
$"{nameof(value)} must be between 0 and 1.");
else
_probability = value;
}
}
}
}