Class AzureLogAnalyticsDataFeedSource

java.lang.Object
com.azure.ai.metricsadvisor.administration.models.DataFeedSource
com.azure.ai.metricsadvisor.administration.models.AzureLogAnalyticsDataFeedSource

public final class AzureLogAnalyticsDataFeedSource extends DataFeedSource
The AzureLogAnalyticsDataFeedSource model.
  • Method Details

    • fromBasicCredential

      public 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.
      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 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.
      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 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.
      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

      public String getTenantId()
      Get the tenantId property: The tenant id of service principal that have access to this Log Analytics.
      Returns:
      the tenantId value.
    • getClientId

      public String getClientId()
      Get the clientId property: The client id of service principal that have access to this Log Analytics.
      Returns:
      the clientId value.
    • getWorkspaceId

      public String getWorkspaceId()
      Get the workspaceId property: The workspace id of this Log Analytics.
      Returns:
      the workspaceId value.
    • getQuery

      public String getQuery()
      Get the query property: The KQL (Kusto Query Language) query to fetch data from this Log Analytics.
      Returns:
      the query value.
    • getCredentialId

      public String getCredentialId()
      Gets the id of the credential resource to authenticate the data source.
      Returns:
      The credential resource id.
    • getAuthenticationType

      public DataSourceAuthenticationType getAuthenticationType()
      Gets the authentication type to access the data source.
      Returns:
      The authentication type.