Class AzureLogAnalyticsDataFeedSource
java.lang.Object
com.azure.ai.metricsadvisor.administration.models.DataFeedSource
com.azure.ai.metricsadvisor.administration.models.AzureLogAnalyticsDataFeedSource
The AzureLogAnalyticsDataFeedSource model.
-
Method Summary
Modifier and TypeMethodDescriptionfromBasicCredential
(String tenantId, String clientId, String clientSecret, String workspaceId, String query) Create a AzureLogAnalyticsDataFeedSource with the giventenantId
,clientId
andclientSecret
for authentication.fromServicePrincipalCredential
(String workspaceId, String query, String credentialId) Create a AzureLogAnalyticsDataFeedSource with thecredentialId
identifying a credential entity of typeDataSourceServicePrincipal
, the entity contains details of the KeyVault holding the Service Principal to access the Data Lake storage.fromServicePrincipalInKeyVaultCredential
(String workspaceId, String query, String credentialId) Create a AzureLogAnalyticsDataFeedSource with thecredentialId
identifying a credential entity of typeDataSourceServicePrincipalInKeyVault
, the entity contains details of the KeyVault holding the Service Principal to access the Data Lake storage.Gets the authentication type to access the data source.Get the clientId property: The client id of service principal that have access to this Log Analytics.Gets the id of thecredential resource
to authenticate the data source.getQuery()
Get the query property: The KQL (Kusto Query Language) query to fetch data from this Log Analytics.Get the tenantId property: The tenant id of service principal that have access to this Log Analytics.Get the workspaceId property: The workspace id of this Log Analytics.
-
Method Details
-
fromBasicCredential
public static AzureLogAnalyticsDataFeedSource fromBasicCredential(String tenantId, String clientId, String clientSecret, String workspaceId, String query) Create a AzureLogAnalyticsDataFeedSource with the giventenantId
,clientId
andclientSecret
for authentication.- Parameters:
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.- Returns:
- The AzureLogAnalyticsDataFeedSource.
-
fromServicePrincipalCredential
public static AzureLogAnalyticsDataFeedSource fromServicePrincipalCredential(String workspaceId, String query, String credentialId) Create a AzureLogAnalyticsDataFeedSource with thecredentialId
identifying a credential entity of typeDataSourceServicePrincipal
, the entity contains details of the KeyVault holding the Service Principal to access the Data Lake storage.- Parameters:
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 type- Returns:
- The AzureLogAnalyticsDataFeedSource.
-
fromServicePrincipalInKeyVaultCredential
public static AzureLogAnalyticsDataFeedSource fromServicePrincipalInKeyVaultCredential(String workspaceId, String query, String credentialId) Create a AzureLogAnalyticsDataFeedSource with thecredentialId
identifying a credential entity of typeDataSourceServicePrincipalInKeyVault
, the entity contains details of the KeyVault holding the Service Principal to access the Data Lake storage.- Parameters:
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 type- Returns:
- The AzureLogAnalyticsDataFeedSource.
-
getTenantId
Get the tenantId property: The tenant id of service principal that have access to this Log Analytics.- Returns:
- the tenantId value.
-
getClientId
Get the clientId property: The client id of service principal that have access to this Log Analytics.- Returns:
- the clientId value.
-
getWorkspaceId
Get the workspaceId property: The workspace id of this Log Analytics.- Returns:
- the workspaceId value.
-
getQuery
Get the query property: The KQL (Kusto Query Language) query to fetch data from this Log Analytics.- 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.
-