public final class AzureDataExplorerDataFeedSource extends DataFeedSource
Modifier and Type | Method and Description |
---|---|
static AzureDataExplorerDataFeedSource |
fromBasicCredential(String connectionString,
String query)
Create a AzureDataExplorerDataFeedSource with credential included in the
connectionString as plain text. |
static AzureDataExplorerDataFeedSource |
fromManagedIdentityCredential(String connectionString,
String query)
Create a AzureDataExplorerDataFeedSource with the
connectionString containing the resource
id of the SQL server on which metrics advisor has MSI access. |
static AzureDataExplorerDataFeedSource |
fromServicePrincipalCredential(String connectionString,
String query,
String credentialId)
Create a AzureDataExplorerDataFeedSource with the
credentialId identifying a credential
entity of type DatasourceServicePrincipal , the entity contains
Service Principal to access the SQL Server. |
static AzureDataExplorerDataFeedSource |
fromServicePrincipalInKeyVaultCredential(String connectionString,
String query,
String credentialId)
Create a AzureDataExplorerDataFeedSource 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. |
DatasourceAuthenticationType |
getAuthenticationType()
Gets the authentication type to access the data source.
|
String |
getCredentialId()
Gets the id of the
credential resource to authenticate the data source. |
String |
getQuery()
Get the query property: Query script.
|
public static AzureDataExplorerDataFeedSource fromBasicCredential(String connectionString, String query)
connectionString
as plain text.connectionString
- The connection string.query
- The query that retrieves the values to be analyzed for anomalies.public static AzureDataExplorerDataFeedSource fromManagedIdentityCredential(String connectionString, String query)
connectionString
containing the resource
id of the SQL server on which metrics advisor has MSI access.connectionString
- The connection string.query
- The query that retrieves the values to be analyzed for anomalies.public static AzureDataExplorerDataFeedSource fromServicePrincipalCredential(String connectionString, String query, String credentialId)
credentialId
identifying a credential
entity of type DatasourceServicePrincipal
, the entity contains
Service Principal to access the SQL Server.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 type
DatasourceServicePrincipal
.public static AzureDataExplorerDataFeedSource fromServicePrincipalInKeyVaultCredential(String connectionString, String query, String credentialId)
credentialId
identifying a credential
entity of type DatasourceServicePrincipalInKeyVault
, the entity contains
details of the KeyVault holding the Service Principal to access the SQL Server.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 type
DatasourceServicePrincipalInKeyVault
.public String getQuery()
public String getCredentialId()
credential resource
to authenticate the data source.public DatasourceAuthenticationType getAuthenticationType()
Copyright © 2021 Microsoft Corporation. All rights reserved.