InfluxRepo¶
Namespace: Database.Repository.InfluxRepo.Influx
Inheritance Object → InfluxRepo
Implements IInfluxRepo
Constructors¶
InfluxRepo(IConfiguration, ILogger<InfluxRepo>)¶
Constructor for the InfluxRepo class.
Parameters¶
configuration IConfiguration
Configuration used to retrieve the settings.
logger ILogger<InfluxRepo>
Logger instance for capturing diagnostics.
Exceptions¶
ArgumentException
Thrown when the configurations are missing.
Methods¶
GetOutsideWeatherData(DateTime, DateTime, String)¶
Parameters¶
start DateTime
end DateTime
place String
Returns¶
GetSensorWeatherData(DateTime, DateTime, String)¶
Parameters¶
start DateTime
end DateTime
sensor String
Returns¶
GetUptime(String)¶
Parameters¶
sensor String
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¶
WriteSensorData(Double, String, Int64, Int32)¶
Parameters¶
measurement Double
sensor String
timestamp Int64
sequence Int32
Returns¶
WriteUptime(String, Int64)¶
Parameters¶
sensor String
timestamp Int64