api(api, dal): IInfluxDbService. StatRobotStateController мониторинг роботов

This commit is contained in:
Mikhail Trubnikov
2024-05-28 14:35:39 +10:00
parent 0007170079
commit e5215b7dc2
12 changed files with 260 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
namespace PARR.DAL.Settings
{
public class InfluxDbSettings
{
public string Url { get; set; } = string.Empty;
public string Organization { get; set; } = string.Empty;
public InfluxDbBucketRobotsSettings? Robots { get; set; }
public InfluxDbBucketLogonsSettings? Logons { get; set; }
}
public class InfluxDbBucketRobotsSettings : IInfluxDbBucketSettings
{
public string Bucket { get; set; } = string.Empty;
public string Token { get; set; } = string.Empty;
}
public class InfluxDbBucketLogonsSettings : IInfluxDbBucketSettings
{
public string Bucket { get; set; } = string.Empty;
public string Token { get; set; } = string.Empty;
}
public interface IInfluxDbBucketSettings
{
public string Bucket { get; set; }
public string Token { get; set; }
}
}