21 lines
637 B
C#
21 lines
637 B
C#
namespace NatsToInfluxService.Configuration;
|
|
|
|
public class NatsSettings
|
|
{
|
|
public const string SectionName = "Nats";
|
|
|
|
public string Url { get; set; } = "nats://nats.paranet.ru:4222";
|
|
public string Subject { get; set; } = "temperature.data";
|
|
public string QueueGroup { get; set; } = "temperature-consumers";
|
|
}
|
|
|
|
public class InfluxDbSettings
|
|
{
|
|
public const string SectionName = "InfluxDb";
|
|
|
|
public string Url { get; set; } = "http://dbs.lan:8086";
|
|
public string Token { get; set; } = string.Empty;
|
|
public string Bucket { get; set; } = "sensors";
|
|
public string Organization { get; set; } = "HomeOn";
|
|
}
|