33 lines
885 B
C#
33 lines
885 B
C#
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; }
|
|
}
|
|
}
|