/// <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);
     }
 }
 internal TimeSeries(TimeSeriesDescription descript, AquariusClient client)
 {
     this.client     = client;
     Id              = descript.AqDataID;
     Type            = descript.Aqtimeseriestype;
     LastRecord      = descript.EndTime;
     Units           = descript.Units;
     NumberOfSamples = descript.TotalSamples;
     Identifier      = descript.Identifier;
     LastModified    = descript.LastModified;
     Name            = descript.Label;
     ValueType       = descript.ParameterType;
     ValueName       = descript.ParameterName;
     Builder         = new TimeSeriesBuilder(descript);
 }
 /// <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");
 }