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; }
    }
}
