Class AzureDataExplorerDataFeedSource
java.lang.Object
com.azure.ai.metricsadvisor.administration.models.DataFeedSource
com.azure.ai.metricsadvisor.administration.models.AzureDataExplorerDataFeedSource
The AzureDataExplorerDataFeedSource model.
-
Method Summary
Modifier and TypeMethodDescriptionfromBasicCredential
(String connectionString, String query) Create a AzureDataExplorerDataFeedSource with credential included in theconnectionString
as plain text.fromManagedIdentityCredential
(String connectionString, String query) Create a AzureDataExplorerDataFeedSource with theconnectionString
containing the resource id of the SQL server on which metrics advisor has MSI access.fromServicePrincipalCredential
(String connectionString, String query, String credentialId) Create a AzureDataExplorerDataFeedSource with thecredentialId
identifying a credential entity of typeDataSourceServicePrincipal
, the entity contains Service Principal to access the SQL Server.fromServicePrincipalInKeyVaultCredential
(String connectionString, String query, String credentialId) Create a AzureDataExplorerDataFeedSource with thecredentialId
identifying a credential entity of typeDataSourceServicePrincipalInKeyVault
, the entity contains details of the KeyVault holding the Service Principal to access the SQL Server.Gets the authentication type to access the data source.Gets the id of thecredential resource
to authenticate the data source.getQuery()
Get the query property: Query script.
-
Method Details
-
fromBasicCredential
public static AzureDataExplorerDataFeedSource fromBasicCredential(String connectionString, String query) Create a AzureDataExplorerDataFeedSource with credential included in theconnectionString
as plain text.- Parameters:
connectionString
- The connection string.query
- The query that retrieves the values to be analyzed for anomalies.- Returns:
- The AzureDataExplorerDataFeedSource.
-
fromManagedIdentityCredential
public static AzureDataExplorerDataFeedSource fromManagedIdentityCredential(String connectionString, String query) Create a AzureDataExplorerDataFeedSource with theconnectionString
containing the resource id of the SQL server on which metrics advisor has MSI access.- Parameters:
connectionString
- The connection string.query
- The query that retrieves the values to be analyzed for anomalies.- Returns:
- The AzureDataExplorerDataFeedSource.
-
fromServicePrincipalCredential
public static AzureDataExplorerDataFeedSource fromServicePrincipalCredential(String connectionString, String query, String credentialId) Create a AzureDataExplorerDataFeedSource with thecredentialId
identifying a credential entity of typeDataSourceServicePrincipal
, the entity contains Service Principal to access the SQL Server.- Parameters:
connectionString
- The connection string.query
- The query that retrieves the values to be analyzed for anomalies.credentialId
- The unique id of a credential entity of typeDataSourceServicePrincipal
.- Returns:
- The SQLServerDataFeedSource.
-
fromServicePrincipalInKeyVaultCredential
public static AzureDataExplorerDataFeedSource fromServicePrincipalInKeyVaultCredential(String connectionString, String query, String credentialId) Create a AzureDataExplorerDataFeedSource with thecredentialId
identifying a credential entity of typeDataSourceServicePrincipalInKeyVault
, the entity contains details of the KeyVault holding the Service Principal to access the SQL Server.- Parameters:
connectionString
- The connection string.query
- The query that retrieves the values to be analyzed for anomalies.credentialId
- The unique id of a credential entity of typeDataSourceServicePrincipalInKeyVault
.- Returns:
- The AzureDataExplorerDataFeedSource.
-
getQuery
Get the query property: Query script.- Returns:
- the query value.
-
getCredentialId
Gets the id of thecredential resource
to authenticate the data source.- Returns:
- The credential resource id.
-
getAuthenticationType
Gets the authentication type to access the data source.- Returns:
- The authentication type.
-