/// <summary> /// Uploads timeseries data to aquarius /// </summary> /// <param name="ts">The timeseries to upload</param> public void UploadTimeSeries(TimeSeriesBuilder ts) { KeepAlive(); try { acuisitionClient.AppendTimeSeriesFromBytes(acuisitionToken, ts.TimeSeriesDescription.AqDataID, Encoding.UTF8.GetBytes(ts.Csv), @"service_acc", @"Automatic Service Upload"); } catch (Exception ex) { EventLogManager.Instance.MakeEntry($@"There was an error appending {ts.Name} to Aquarius({ts.TimeSeriesDescription.AqDataID})", ex, EventId.AQUARIUS_UPLOAD_EVENT); } }
/// <summary> /// Uploads timeseries data to aquarius /// </summary> /// <param name="ts">The timeseries to upload</param> public void UploadTimeSeries(TimeSeriesBuilder ts) { KeepAlive(); acuisitionClient.AppendTimeSeriesFromBytes(acuisitionToken, ts.TimeSeriesDescription.AqDataID, Encoding.UTF8.GetBytes(ts.Csv), @"service_acc", @"Automatic Service Upload"); }