共用方式為


AzureCosmosDbDataFeedSource(String, String, String, String) Constructor

Definition

Initializes a new instance of the AzureCosmosDbDataFeedSource class.

public AzureCosmosDbDataFeedSource (string connectionString, string sqlQuery, string database, string collectionId);
new Azure.AI.MetricsAdvisor.Administration.AzureCosmosDbDataFeedSource : string * string * string * string -> Azure.AI.MetricsAdvisor.Administration.AzureCosmosDbDataFeedSource
Public Sub New (connectionString As String, sqlQuery As String, database As String, collectionId As String)

Parameters

connectionString
String

The connection string for authenticating to the Azure Cosmos DB service.

sqlQuery
String

The SQL query to retrieve the data to be ingested.

database
String

The name of the database.

collectionId
String

The collection ID.

Exceptions

connectionString, sqlQuery, database, or collectionId is null.

connectionString, sqlQuery, database, or collectionId is empty.

Applies to