feat: Перенесены внешние сервисы в Infrastructure. Удалены лишние проекты.
This commit is contained in:
35
PARR.Domain/Settings/InfluxDbSettings.cs
Normal file
35
PARR.Domain/Settings/InfluxDbSettings.cs
Normal file
@@ -0,0 +1,35 @@
|
||||
namespace PARR.Domain.Settings
|
||||
{
|
||||
/// <summary>
|
||||
/// Настройки подключения к InfluxDb
|
||||
/// </summary>
|
||||
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