Exemple #1
0
 /// <summary>
 /// Inserts a measure for a particular system sensor of a device into the database.
 /// </summary>
 /// <param name="deviceName">Device producing the data</param>
 /// <param name="outputDescription">Parameter to me inserted</param>
 /// <param name="unit">Unit used in device</param>
 /// <param name="value">Value of parameter.</param>
 /// <param name="time">Time of insertion.</param>
 public void InsertSystemEvent(string deviceName, string outputDescription, string unit, string value, string time)
 {
     _dbConnector.AddDataOrigin(deviceName);
     _dbConnector.AddDataOutput(deviceName, outputDescription);
     if (unit != null)
     {
         _dbConnector.AddDataUnit(deviceName, outputDescription, unit);
     }
     _dbConnector.AddSystemData(deviceName, outputDescription, value, time, CurrentSessionId);
 }