public final class AzureLogAnalyticsDataFeedSource extends DataFeedSource
Modifier and Type | Method and Description |
---|---|
static AzureLogAnalyticsDataFeedSource |
fromBasicCredential(String tenantId,
String clientId,
String clientSecret,
String workspaceId,
String query)
Create a AzureLogAnalyticsDataFeedSource with the given
tenantId , clientId and
clientSecret for authentication. |
static AzureLogAnalyticsDataFeedSource |
fromServicePrincipalCredential(String workspaceId,
String query,
String credentialId)
Create a AzureLogAnalyticsDataFeedSource with the
credentialId identifying
a credential entity of type DatasourceServicePrincipal , the entity
contains details of the KeyVault holding the Service Principal to access the Data Lake storage. |
static AzureLogAnalyticsDataFeedSource |
fromServicePrincipalInKeyVaultCredential(String workspaceId,
String query,
String credentialId)
Create a AzureLogAnalyticsDataFeedSource with the
credentialId identifying
a credential entity of type DatasourceServicePrincipalInKeyVault , the entity
contains details of the KeyVault holding the Service Principal to access the Data Lake storage. |
DatasourceAuthenticationType |
getAuthenticationType()
Gets the authentication type to access the data source.
|
String |
getClientId()
Get the clientId property: The client id of service principal that have access to this Log Analytics.
|
String |
getCredentialId()
Gets the id of the
credential resource to authenticate the data source. |
String |
getQuery()
Get the query property: The KQL (Kusto Query Language) query to fetch data from this Log Analytics.
|
String |
getTenantId()
Get the tenantId property: The tenant id of service principal that have access to this Log Analytics.
|
String |
getWorkspaceId()
Get the workspaceId property: The workspace id of this Log Analytics.
|
public static AzureLogAnalyticsDataFeedSource fromBasicCredential(String tenantId, String clientId, String clientSecret, String workspaceId, String query)
tenantId
, clientId
and
clientSecret
for authentication.tenantId
- The tenant id of service principal that have access to this Log Analytics.clientId
- The client id of service principal that have access to this Log Analytics.clientSecret
- The client secret of service principal that have access to this Log Analytics.workspaceId
- the query script.query
- the KQL (Kusto Query Language) query to fetch data from this Log
Analytics.public static AzureLogAnalyticsDataFeedSource fromServicePrincipalCredential(String workspaceId, String query, String credentialId)
credentialId
identifying
a credential entity of type DatasourceServicePrincipal
, the entity
contains details of the KeyVault holding the Service Principal to access the Data Lake storage.workspaceId
- the query script.query
- the KQL (Kusto Query Language) query to fetch data from this Log Analytics.credentialId
- The unique id of a credential entity of typepublic static AzureLogAnalyticsDataFeedSource fromServicePrincipalInKeyVaultCredential(String workspaceId, 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 Data Lake storage.workspaceId
- the query script.query
- the KQL (Kusto Query Language) query to fetch data from this Log Analytics.credentialId
- The unique id of a credential entity of typepublic String getTenantId()
public String getClientId()
public String getWorkspaceId()
public String getQuery()
public String getCredentialId()
credential resource
to authenticate the data source.public DatasourceAuthenticationType getAuthenticationType()
Copyright © 2021 Microsoft Corporation. All rights reserved.