Class AzureBlobDataFeedSource
java.lang.Object
com.azure.ai.metricsadvisor.administration.models.DataFeedSource
com.azure.ai.metricsadvisor.administration.models.AzureBlobDataFeedSource
The AzureBlobDataFeedSource model.
-
Method Summary
Modifier and TypeMethodDescriptionstatic AzureBlobDataFeedSourcefromBasicCredential(String connectionString, String container, String blobTemplate) Create a AzureBlobDataFeedSource with credential included in theconnectionStringas plain text.static AzureBlobDataFeedSourcefromManagedIdentityCredential(String connectionString, String container, String blobTemplate) Create a SQLServerDataFeedSource with theconnectionStringcontaining the resource id of the SQL server on which metrics advisor has MSI access.Gets the authentication type to access the data source.Get the blob template name.Get the container name.
-
Method Details
-
fromBasicCredential
public static AzureBlobDataFeedSource fromBasicCredential(String connectionString, String container, String blobTemplate) Create a AzureBlobDataFeedSource with credential included in theconnectionStringas plain text.- Parameters:
connectionString- the Azure Blob connection stringcontainer- the container nameblobTemplate- the blob template name- Returns:
- The AzureBlobDataFeedSource.
-
fromManagedIdentityCredential
public static AzureBlobDataFeedSource fromManagedIdentityCredential(String connectionString, String container, String blobTemplate) Create a SQLServerDataFeedSource with theconnectionStringcontaining the resource id of the SQL server on which metrics advisor has MSI access.- Parameters:
connectionString- the Azure Blob connection stringcontainer- the container nameblobTemplate- the blob template name- Returns:
- The AzureBlobDataFeedSource.
-
getContainer
Get the container name.- Returns:
- the container value.
-
getBlobTemplate
Get the blob template name.- Returns:
- the blobTemplate value.
-
getAuthenticationType
Gets the authentication type to access the data source.- Returns:
- The authentication type.
-