MetricsAdvisorAdministrationClient.UpdateDataFeedAsync(DataFeed, CancellationToken) Method

Definition

Updates an existing DataFeed. In order to update your data feed, you cannot create a DataFeed directly from its constructor. You need to obtain an instance via GetDataFeedAsync(String, CancellationToken) or another CRUD operation and update it before calling this method.

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.AI.MetricsAdvisor.Models.DataFeed>> UpdateDataFeedAsync (Azure.AI.MetricsAdvisor.Models.DataFeed dataFeed, System.Threading.CancellationToken cancellationToken = default);
abstract member UpdateDataFeedAsync : Azure.AI.MetricsAdvisor.Models.DataFeed * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.AI.MetricsAdvisor.Models.DataFeed>>
override this.UpdateDataFeedAsync : Azure.AI.MetricsAdvisor.Models.DataFeed * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.AI.MetricsAdvisor.Models.DataFeed>>
Public Overridable Function UpdateDataFeedAsync (dataFeed As DataFeed, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of DataFeed))

Parameters

dataFeed
DataFeed

The DataFeed model containing the updates to be applied.

cancellationToken
System.Threading.CancellationToken

A System.Threading.CancellationToken controlling the request lifetime.

Returns

System.Threading.Tasks.Task<Response<DataFeed>>

A Response containing the result of the operation.

Exceptions

System.ArgumentNullException

dataFeed or dataFeed.Id is null.

Applies to