2026-04-14 16:27:27 +10:00
|
|
|
|
namespace PARR.Domain.Settings
|
2024-05-28 14:35:39 +10:00
|
|
|
|
{
|
2026-04-14 16:27:27 +10:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Настройки подключения к InfluxDb
|
|
|
|
|
|
/// </summary>
|
2024-05-28 14:35:39 +10:00
|
|
|
|
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; }
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|