Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 21 additions & 1 deletion .vscode/cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,6 @@
"sdk/parents/azure-client-sdk-parent/**",
"sdk/parents/azure-sdk-parent/**",
"sdk/parents/azure-data-sdk-parent/**",
"sdk/metricsadvisor/azure-ai-metricsadvisor/**",
"sdk/personalizer/azure-ai-personalizer/**",
"sdk/purview/azure-analytics-purview-administration/**",
"sdk/quantum/azure-quantum-jobs/**",
Expand Down Expand Up @@ -258,6 +257,7 @@
"words": [
"adal",
"amqp",
"Apim",
"AUHours",
"autoscale",
"autodetection",
Expand Down Expand Up @@ -671,6 +671,26 @@
"RAGRS",
"saoid"
]
},
{
"filename": "sdk/metricsadvisor/azure-ai-metricsadvisor/**",
"words": [
"APIV",
"bacf",
"alertme",
"adwiki",
"howto",
"bpfdfee",
"deduped",
"dedupe",
"POSTGRE",
"dgfbbbb",
"gdgfbbbb",
"dvhkl",
"yufrjo",
"kldn",
"dccf"
]
}
],
"allowCompoundWords": true
Expand Down
12 changes: 11 additions & 1 deletion sdk/metricsadvisor/azure-ai-metricsadvisor/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Release History

## 1.2.0-beta.1 (Unreleased)

### Features Added

### Breaking Changes

### Bugs Fixed

### Other Changes

## 1.1.8 (2022-10-12)

### Other Changes
Expand Down Expand Up @@ -172,7 +182,7 @@ For more information about this, and preview releases of other Azure SDK librari
https://azure.github.io/azure-sdk/releases/latest/java.html.

- Two client design:
- `MetricsAdvisorAdministrationClient` to perform creation, updation and deletion of Metrics Advisor resources.
- `MetricsAdvisorAdministrationClient` to perform creation, update and deletion of Metrics Advisor resources.
- `MetricsAdvisorClient` helps with querying API's to helps with listing incidents, listing root causes of incidents
and adding feedback to tune your model.
- Authentication with API key supported using `MetricsAdvisorKeyCredential("<subscription_key>", "<api_key>")`.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public final class MetricsAdvisorAdministrationAsyncClient {
/**
* Create a {@link MetricsAdvisorAdministrationAsyncClient} that sends requests to the Metrics Advisor
* service's endpoint. Each service call goes through the
* {@link MetricsAdvisorAdministrationClientBuilder#pipeline(HttpPipeline)} http pipeline}.
* {@link MetricsAdvisorAdministrationClientBuilder#pipeline(HttpPipeline)} http pipeline.
*
* @param service The proxy service used to perform REST calls.
* @param serviceVersion The versions of Azure Metrics Advisor supported by this client library.
Expand Down Expand Up @@ -764,7 +764,7 @@ private Mono<PagedResponse<DataFeedIngestionStatus>> listDataFeedIngestionStatus
/**
* Refresh data ingestion for a period.
* <p>
* The data in the data source for the given period will be reingested
* The data in the data source for the given period will be re-ingested
* and any ingested data for the same period will be overwritten.
* </p>
*
Expand Down Expand Up @@ -801,7 +801,7 @@ public Mono<Void> refreshDataFeedIngestion(
/**
* Refresh data ingestion for a period.
* <p>
* The data in the data source for the given period will be reingested
* The data in the data source for the given period will be re-ingested
* and any ingested data for the same period will be overwritten.
* </p>
*
Expand Down Expand Up @@ -2579,13 +2579,14 @@ public Mono<AnomalyAlertConfiguration> updateAlertConfig(
* &#125;&#41;.subscribe&#40;alertConfigurationResponse -&gt; &#123;
* System.out.printf&#40;&quot;Update anomaly alert operation status: %s%n&quot;,
* alertConfigurationResponse.getStatusCode&#40;&#41;&#41;;
* final AnomalyAlertConfiguration updatAnomalyAlertConfiguration = alertConfigurationResponse.getValue&#40;&#41;;
* final AnomalyAlertConfiguration updatedAnomalyAlertConfiguration
* = alertConfigurationResponse.getValue&#40;&#41;;
* System.out.printf&#40;&quot;Updated anomaly alert configuration Id: %s%n&quot;,
* updatAnomalyAlertConfiguration.getId&#40;&#41;&#41;;
* updatedAnomalyAlertConfiguration.getId&#40;&#41;&#41;;
* System.out.printf&#40;&quot;Updated anomaly alert configuration description: %s%n&quot;,
* updatAnomalyAlertConfiguration.getDescription&#40;&#41;&#41;;
* updatedAnomalyAlertConfiguration.getDescription&#40;&#41;&#41;;
* System.out.printf&#40;&quot;Updated anomaly alert configuration hook ids: %s%n&quot;,
* updatAnomalyAlertConfiguration.getHookIdsToAlert&#40;&#41;&#41;;
* updatedAnomalyAlertConfiguration.getHookIdsToAlert&#40;&#41;&#41;;
* &#125;&#41;;
* </pre>
* <!-- end com.azure.ai.metricsadvisor.administration.MetricsAdvisorAdministrationAsyncClient.updateAlertConfigWithResponse#AnomalyAlertConfiguration -->
Expand Down Expand Up @@ -2798,11 +2799,11 @@ private Mono<PagedResponse<AnomalyAlertConfiguration>> listAnomalyAlertConfigsNe
* final String name = &quot;sample_name&quot; + UUID.randomUUID&#40;&#41;;
* final String cId = &quot;f45668b2-bffa-11eb-8529-0246ac130003&quot;;
* final String tId = &quot;67890ded-5e07-4e52-b225-4ae8f905afb5&quot;;
* final String mockSecr = &quot;890hy69-5e07-4e52-b225-4ae8f905afb5&quot;;
* final String mockSecret = &quot;890hy69-5e07-4e52-b225-4ae8f905afb5&quot;;
*
* datasourceCredential = new DataSourceServicePrincipalInKeyVault&#40;&#41;
* .setName&#40;name&#41;
* .setKeyVaultForDataSourceSecrets&#40;&quot;kv&quot;, cId, mockSecr&#41;
* .setKeyVaultForDataSourceSecrets&#40;&quot;kv&quot;, cId, mockSecret&#41;
* .setTenantId&#40;tId&#41;
* .setSecretNameForDataSourceClientId&#40;&quot;DSClientID_1&quot;&#41;
* .setSecretNameForDataSourceClientSecret&#40;&quot;DSClientSer_1&quot;&#41;;
Expand Down Expand Up @@ -2847,11 +2848,11 @@ public Mono<DataSourceCredentialEntity> createDataSourceCredential(
* final String name = &quot;sample_name&quot; + UUID.randomUUID&#40;&#41;;
* final String cId = &quot;f45668b2-bffa-11eb-8529-0246ac130003&quot;;
* final String tId = &quot;67890ded-5e07-4e52-b225-4ae8f905afb5&quot;;
* final String mockSecr = &quot;890hy69-5e07-4e52-b225-4ae8f905afb5&quot;;
* final String mockSecret = &quot;890hy69-5e07-4e52-b225-4ae8f905afb5&quot;;
*
* datasourceCredential = new DataSourceServicePrincipalInKeyVault&#40;&#41;
* .setName&#40;name&#41;
* .setKeyVaultForDataSourceSecrets&#40;&quot;kv&quot;, cId, mockSecr&#41;
* .setKeyVaultForDataSourceSecrets&#40;&quot;kv&quot;, cId, mockSecret&#41;
* .setTenantId&#40;tId&#41;
* .setSecretNameForDataSourceClientId&#40;&quot;DSClientID_1&quot;&#41;
* .setSecretNameForDataSourceClientSecret&#40;&quot;DSClientSer_1&quot;&#41;;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ public PagedIterable<DataFeedIngestionStatus> listDataFeedIngestionStatus(
/**
* Refresh data ingestion for a period.
* <p>
* The data in the data source for the given period will be reingested
* The data in the data source for the given period will be re-ingested
* and any ingested data for the same period will be overwritten.
* </p>
*
Expand Down Expand Up @@ -476,7 +476,7 @@ public void refreshDataFeedIngestion(
/**
* Refresh data ingestion for a period.
* <p>
* The data in the data source for the given period will be reingested
* The data in the data source for the given period will be re-ingested
* and any ingested data for the same period will be overwritten.
* </p>
*
Expand Down Expand Up @@ -1831,18 +1831,18 @@ public Response<AnomalyAlertConfiguration> getAlertConfigWithResponse(
* = metricsAdvisorAdminClient.getAlertConfig&#40;alertConfigId&#41;;
* List&lt;String&gt; hookIds = new ArrayList&lt;&gt;&#40;existingAnomalyConfig.getHookIdsToAlert&#40;&#41;&#41;;
* hookIds.add&#40;additionalHookId&#41;;
* final AnomalyAlertConfiguration updatAnomalyAlertConfiguration
* final AnomalyAlertConfiguration updatedAnomalyAlertConfiguration
* = metricsAdvisorAdminClient.updateAlertConfig&#40;
* existingAnomalyConfig
* .setHookIdsToAlert&#40;hookIds&#41;
* .setDescription&#40;&quot;updated to add more hook ids&quot;&#41;
* &#41;;
*
* System.out.printf&#40;&quot;Updated anomaly alert configuration Id: %s%n&quot;, updatAnomalyAlertConfiguration.getId&#40;&#41;&#41;;
* System.out.printf&#40;&quot;Updated anomaly alert configuration Id: %s%n&quot;, updatedAnomalyAlertConfiguration.getId&#40;&#41;&#41;;
* System.out.printf&#40;&quot;Updated anomaly alert configuration description: %s%n&quot;,
* updatAnomalyAlertConfiguration.getDescription&#40;&#41;&#41;;
* updatedAnomalyAlertConfiguration.getDescription&#40;&#41;&#41;;
* System.out.printf&#40;&quot;Updated anomaly alert configuration hook ids: %s%n&quot;,
* updatAnomalyAlertConfiguration.getHookIdsToAlert&#40;&#41;&#41;;
* updatedAnomalyAlertConfiguration.getHookIdsToAlert&#40;&#41;&#41;;
* </pre>
* <!-- end com.azure.ai.metricsadvisor.administration.MetricsAdvisorAdministrationClient.updateAlertConfig#AnomalyAlertConfiguration -->
*
Expand All @@ -1864,7 +1864,7 @@ public AnomalyAlertConfiguration updateAlertConfig(
* Update anomaly alert configuration.
*
* <p><strong>Code sample</strong></p>
* <!-- src_embed com.azure.ai.metricsadvisor.administration.MetricsAdvisorAdministrationClient.updateAlertConfigWithResponse#AnomalyAlertConfiguration-Context-->
* <!-- src_embed com.azure.ai.metricsadvisor.administration.MetricsAdvisorAdministrationClient.updateAlertConfigWithResponse#AnomalyAlertConfiguration-Context -->
* <pre>
*
* String alertConfigId = &quot;1p0f8er30-6e6e-4391-b78f-bpfdfee1e6f5&quot;;
Expand All @@ -1881,12 +1881,12 @@ public AnomalyAlertConfiguration updateAlertConfig(
* .setDescription&#40;&quot;updated to add more hook ids&quot;&#41;, Context.NONE&#41;;
*
* System.out.printf&#40;&quot;Update anomaly alert operation status: %s%n&quot;, alertConfigurationResponse.getStatusCode&#40;&#41;&#41;;
* final AnomalyAlertConfiguration updatAnomalyAlertConfiguration = alertConfigurationResponse.getValue&#40;&#41;;
* System.out.printf&#40;&quot;Updated anomaly alert configuration Id: %s%n&quot;, updatAnomalyAlertConfiguration.getId&#40;&#41;&#41;;
* final AnomalyAlertConfiguration updatedAnomalyAlertConfiguration = alertConfigurationResponse.getValue&#40;&#41;;
* System.out.printf&#40;&quot;Updated anomaly alert configuration Id: %s%n&quot;, updatedAnomalyAlertConfiguration.getId&#40;&#41;&#41;;
* System.out.printf&#40;&quot;Updated anomaly alert configuration description: %s%n&quot;,
* updatAnomalyAlertConfiguration.getDescription&#40;&#41;&#41;;
* updatedAnomalyAlertConfiguration.getDescription&#40;&#41;&#41;;
* System.out.printf&#40;&quot;Updated anomaly alert configuration hook ids: %sf%n&quot;,
* updatAnomalyAlertConfiguration.getHookIdsToAlert&#40;&#41;&#41;;
* updatedAnomalyAlertConfiguration.getHookIdsToAlert&#40;&#41;&#41;;
* </pre>
* <!-- end com.azure.ai.metricsadvisor.administration.MetricsAdvisorAdministrationClient.updateAlertConfigWithResponse#AnomalyAlertConfiguration-Context -->
*
Expand Down Expand Up @@ -2038,11 +2038,11 @@ public PagedIterable<AnomalyAlertConfiguration> listAlertConfigs(
* final String name = &quot;sample_name&quot; + UUID.randomUUID&#40;&#41;;
* final String cId = &quot;f45668b2-bffa-11eb-8529-0246ac130003&quot;;
* final String tId = &quot;67890ded-5e07-4e52-b225-4ae8f905afb5&quot;;
* final String mockSecr = &quot;890hy69-5e07-4e52-b225-4ae8f905afb5&quot;;
* final String mockSecret = &quot;890hy69-5e07-4e52-b225-4ae8f905afb5&quot;;
*
* datasourceCredential = new DataSourceServicePrincipalInKeyVault&#40;&#41;
* .setName&#40;name&#41;
* .setKeyVaultForDataSourceSecrets&#40;&quot;kv&quot;, cId, mockSecr&#41;
* .setKeyVaultForDataSourceSecrets&#40;&quot;kv&quot;, cId, mockSecret&#41;
* .setTenantId&#40;tId&#41;
* .setSecretNameForDataSourceClientId&#40;&quot;DSClientID_1&quot;&#41;
* .setSecretNameForDataSourceClientSecret&#40;&quot;DSClientSer_1&quot;&#41;;
Expand Down Expand Up @@ -2084,11 +2084,11 @@ public DataSourceCredentialEntity createDataSourceCredential(DataSourceCredentia
* final String name = &quot;sample_name&quot; + UUID.randomUUID&#40;&#41;;
* final String cId = &quot;f45668b2-bffa-11eb-8529-0246ac130003&quot;;
* final String tId = &quot;67890ded-5e07-4e52-b225-4ae8f905afb5&quot;;
* final String mockSecr = &quot;890hy69-5e07-4e52-b225-4ae8f905afb5&quot;;
* final String mockSecret = &quot;890hy69-5e07-4e52-b225-4ae8f905afb5&quot;;
*
* datasourceCredential = new DataSourceServicePrincipalInKeyVault&#40;&#41;
* .setName&#40;name&#41;
* .setKeyVaultForDataSourceSecrets&#40;&quot;kv&quot;, cId, mockSecr&#41;
* .setKeyVaultForDataSourceSecrets&#40;&quot;kv&quot;, cId, mockSecret&#41;
* .setTenantId&#40;tId&#41;
* .setSecretNameForDataSourceClientId&#40;&quot;DSClientID_1&quot;&#41;
* .setSecretNameForDataSourceClientSecret&#40;&quot;DSClientSer_1&quot;&#41;;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public final class AnomalySeverity extends ExpandableStringEnum<AnomalySeverity>
/** Static value Medium for AnomalySeverity. */
public static final AnomalySeverity MEDIUM = fromString("Medium");

/** Static value High for AnomalySeveDrity. */
/** Static value High for AnomalySeverity. */
public static final AnomalySeverity HIGH = fromString("High");

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ public DataSourceServicePrincipal setClientSecret(String clientSecret) {
* Sets the tenant id.
*
* @param tenantId The tenant id
* @return an updated object with client teant id set
* @return an updated object with client tenant id set
*/
public DataSourceServicePrincipal setTenantId(String tenantId) {
this.tenantId = tenantId;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public static void main(String[] args) {
.block();

/*
Each of the above sample a varient of block() operator which will block
Each of the above sample a variant of block() operator which will block
until the operation is completed.
This is strongly discouraged for use in production as it eliminates the benefits
of asynchronous IO. It is used here to ensure the sample runs to completion.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ public static void main(String[] args) {
final String name = "sample_name" + UUID.randomUUID();
final String cId = "f45668b2-bffa-11eb-8529-0246ac130003";
final String tId = "67890ded-5e07-4e52-b225-4ae8f905afb5";
final String mockSecr = "890hy69-5e07-4e52-b225-4ae8f905afb5";
final String mockSecret = "890hy69-5e07-4e52-b225-4ae8f905afb5";

DataSourceCredentialEntity datasourceCredential = new DataSourceServicePrincipalInKeyVault()
.setName(name)
.setKeyVaultForDataSourceSecrets("kv", cId, mockSecr)
.setKeyVaultForDataSourceSecrets("kv", cId, mockSecret)
.setTenantId(tId)
.setSecretNameForDataSourceClientId("DSClientID_1")
.setSecretNameForDataSourceClientSecret("DSClientSer_1");
Expand Down Expand Up @@ -74,7 +74,7 @@ public static void main(String[] args) {
});

// Update the datasource credential entity.
Mono<DataSourceCredentialEntity> updateDatasourcCredMono = fetchDataFeedMono
Mono<DataSourceCredentialEntity> updateDatasourceCredMono = fetchDataFeedMono
.flatMap(datasourceCredEntity -> {
DataSourceServicePrincipalInKeyVault actualCredentialSPInKV = null;
if (datasourceCredEntity instanceof DataSourceServicePrincipalInKeyVault) {
Expand All @@ -95,7 +95,7 @@ public static void main(String[] args) {
});

// Delete the datasource credential entity.
Mono<Void> deleteDatasourceCredMono = updateDatasourcCredMono.flatMap(datasourceCredEntity -> {
Mono<Void> deleteDatasourceCredMono = updateDatasourceCredMono.flatMap(datasourceCredEntity -> {
return advisorAdministrationAsyncClient.deleteDataSourceCredential(datasourceCredEntity.getId())
.doOnSubscribe(__ ->
System.out.printf("Deleting datasource credential entity: %s%n", datasourceCredEntity.getId()))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ public static void main(String[] args) {
final String name = "sample_name" + UUID.randomUUID();
final String cId = "f45668b2-bffa-11eb-8529-0246ac130003";
final String tId = "67890ded-5e07-4e52-b225-4ae8f905afb5";
final String mockSecr = "890hy69-5e07-4e52-b225-4ae8f905afb5";
final String mockSecret = "890hy69-5e07-4e52-b225-4ae8f905afb5";

DataSourceCredentialEntity datasourceCredential = new DataSourceServicePrincipalInKeyVault()
.setName(name)
.setKeyVaultForDataSourceSecrets("kv", cId, mockSecr)
.setKeyVaultForDataSourceSecrets("kv", cId, mockSecret)
.setTenantId(tId)
.setSecretNameForDataSourceClientId("DSClientID_1")
.setSecretNameForDataSourceClientSecret("DSClientSer_1");
Expand Down
Loading