SqlServerDataFeedSource Class
- java.
lang. Object - com.
azure. ai. metricsadvisor. administration. models. DataFeedSource - com.
azure. ai. metricsadvisor. administration. models. SqlServerDataFeedSource
- com.
- com.
public final class SqlServerDataFeedSource
extends DataFeedSource
The SQLServerDataFeedSource model.
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Sql |
fromBasicCredential(String connectionString, String query)
Create a SQLServer |
|
static
Sql |
fromConnectionStringCredential(String query, String credentialId)
Create a SQLServer |
|
static
Sql |
fromManagedIdentityCredential(String connectionString, String query)
Create a SQLServer |
|
static
Sql |
fromServicePrincipalCredential(String connectionString, String query, String credentialId)
Create a SQLServer |
|
static
Sql |
fromServicePrincipalInKeyVaultCredential(String connectionString, String query, String credentialId)
Create a SQLServer |
|
Data |
getAuthenticationType()
Gets the authentication type to access the data source. |
| String |
getCredentialId()
Gets the id of the DataSourceCredentialEntity to authenticate the data source. |
| String |
getQuery()
Get the query that retrieves the values to be analyzed for anomalies. |
Methods inherited from java.lang.Object
Method Details
fromBasicCredential
public static SqlServerDataFeedSource fromBasicCredential(String connectionString, String query)
Create a SQLServerDataFeedSource with credential included in the connectionString as plain text.
Parameters:
Returns:
fromConnectionStringCredential
public static SqlServerDataFeedSource fromConnectionStringCredential(String query, String credentialId)
Create a SQLServerDataFeedSource with the credentialId identifying a credential entity of type DataSourceSqlServerConnectionString that contains the SQL connection string.
Parameters:
Returns:
fromManagedIdentityCredential
public static SqlServerDataFeedSource fromManagedIdentityCredential(String connectionString, String query)
Create a SQLServerDataFeedSource with the connectionString containing the resource id of the SQL server on which metrics advisor has MSI access.
Parameters:
Returns:
fromServicePrincipalCredential
public static SqlServerDataFeedSource fromServicePrincipalCredential(String connectionString, String query, String credentialId)
Create a SQLServerDataFeedSource with the credentialId identifying a credential entity of type DataSourceServicePrincipal, the entity contains Service Principal to access the SQL Server.
Parameters:
Returns:
fromServicePrincipalInKeyVaultCredential
public static SqlServerDataFeedSource fromServicePrincipalInKeyVaultCredential(String connectionString, String query, String credentialId)
Create a SQLServerDataFeedSource with the credentialId identifying a credential entity of type DataSourceServicePrincipalInKeyVault, the entity contains details of the KeyVault holding the Service Principal to access the SQL Server.
Parameters:
Returns:
getAuthenticationType
public DataSourceAuthenticationType getAuthenticationType()
Gets the authentication type to access the data source.
Returns:
getCredentialId
public String getCredentialId()
Gets the id of the DataSourceCredentialEntity to authenticate the data source.
Returns:
getQuery
public String getQuery()
Get the query that retrieves the values to be analyzed for anomalies.
Returns: