/// <summary> /// Asynchronously delete multiple time series in the same project. /// </summary> /// <param name="externalIds">The list of timeseries external ids to delete.</param> /// <param name="token">Optional cancellation token.</param> public async Task <EmptyResponse> DeleteAsync(IEnumerable <string> externalIds, CancellationToken token = default) { var query = new TimeSeriesDelete { Items = externalIds.Select(Identity.Create) }; var req = Oryx.Cognite.TimeSeries.delete(query); return(await RunAsync(req, token).ConfigureAwait(false)); }
public void Update() { if (!animationStartedOnce && MapStore.Instance.map != null) { animationStartedOnce = true; plotAnimation = new GameObject(); plotAnimation.transform.position = Vector3.zero; ts = plotAnimation.AddComponent <TimeSeries>(); ts.dataPointPrefab = dataPointPrefab; secondaryPlotAnimation = new GameObject(); secondaryPlotAnimation.transform.position = Vector3.zero; secondaryTs = secondaryPlotAnimation.AddComponent <TimeSeriesDelete>(); secondaryTs.dataPointPrefab = secondaryDataPointPrefab; //ts.BeginIndexedAnimation(0, 70, 1f, sphereColorGradient); //secondaryTs.BeginIndexedAnimation(0, 70, 1f, sphereColorGradient); currentlyScrolling = false; } }
/// <summary> /// Asynchronously delete multiple time series in the same project. /// </summary> /// <param name="query">The list of time series to delete.</param> /// <param name="token">Optional cancellation token.</param> public async Task <EmptyResponse> DeleteAsync(TimeSeriesDelete query, CancellationToken token = default) { var req = Oryx.Cognite.TimeSeries.delete(query); return(await RunAsync(req, token).ConfigureAwait(false)); }