api(api, dal): IInfluxDbService. StatRobotStateController мониторинг роботов
This commit is contained in:
32
PARR.DAL/Settings/InfluxDbSettings.cs
Normal file
32
PARR.DAL/Settings/InfluxDbSettings.cs
Normal 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; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user