Skip to content

InfluxRepo

Namespace: Database.Repository.InfluxRepo

public class InfluxRepo : IInfluxRepo

Inheritance ObjectInfluxRepo

Implements IInfluxRepo

Constructors

InfluxRepo(IConfiguration, ILogger<InfluxRepo>)

Constructor for the InfluxRepo class.

public InfluxRepo(IConfiguration configuration, ILogger<InfluxRepo> logger)

Parameters

configuration IConfiguration

logger ILogger<InfluxRepo>

Exceptions

ArgumentException

Methods

GetOutsideWeatherData(DateTime, DateTime, String)

public IAsyncEnumerable<PointDataValues> GetOutsideWeatherData(DateTime start, DateTime end, string place)

Parameters

start DateTime

end DateTime

place String

Returns

IAsyncEnumerable<PointDataValues>

GetSensorWeatherData(DateTime, DateTime)

public IAsyncEnumerable<PointDataValues> GetSensorWeatherData(DateTime start, DateTime end)

Parameters

start DateTime

end DateTime

Returns

IAsyncEnumerable<PointDataValues>

WriteOutsideWeatherData(String, String, Double, DateTime, Int32)

public Task WriteOutsideWeatherData(string place, string website, double temperature, DateTime timestamp, int postalcode)

Parameters

place String

website String

temperature Double

timestamp DateTime

postalcode Int32

Returns

Task

WriteSensorData(Double, String, Int64, Int32)

public Task WriteSensorData(double measurement, string sensor, long timestamp, int sequence)

Parameters

measurement Double

sensor String

timestamp Int64

sequence Int32

Returns

Task