Share via


MetricsAdvisorAdministrationClient.CreateDataFeedAsync Method

Definition

Creates a DataFeed and assigns it a unique ID.

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

Parameters

dataFeed
DataFeed

Specifies how the created DataFeed should be configured.

cancellationToken
CancellationToken

A CancellationToken controlling the request lifetime.

Returns

A Response<T> containing the result of the operation. The result is a DataFeed instance containing information about the created data feed.

Exceptions

dataFeed, dataFeed.Name, dataFeed.DataSource, dataFeed.Granularity, dataFeed.Schema, or dataFeed.IngestionSettings is null.

dataFeed.Name is empty.

Applies to