InfluxRepo¶
Namespace: Database.Repository.InfluxRepo
Inheritance Object → InfluxRepo
Implements IInfluxRepo
Constructors¶
InfluxRepo(IConfiguration, ILogger<InfluxRepo>)¶
Constructor for the InfluxRepo class.
Parameters¶
configuration
IConfiguration
logger
ILogger<InfluxRepo>
Exceptions¶
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)¶
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¶
WriteSensorData(Double, String, Int64, Int32)¶
Parameters¶
measurement
Double
sensor
String
timestamp
Int64
sequence
Int32