Skip to content

Commit

Permalink
API updates and prepare AMQ for release (Azure#23487)
Browse files Browse the repository at this point in the history
* Update APIs for preview 3

* prepare for release

* remove experimental module from service pom

* Fix recording
  • Loading branch information
srnagar authored Aug 11, 2021
1 parent bc2bdc4 commit fdbafaa
Show file tree
Hide file tree
Showing 29 changed files with 450 additions and 400 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ public LogsBatchQueryTest(PerfStressOptions options) {

@Override
public void run() {
logsQueryClient.queryLogsBatch(workspaceId, LOGS_BATCH_QUERIES, null);
logsQueryClient.queryBatch(workspaceId, LOGS_BATCH_QUERIES, null);
}

@Override
public Mono<Void> runAsync() {
return logsQueryAsyncClient.queryLogsBatch(workspaceId, LOGS_BATCH_QUERIES, null).then();
return logsQueryAsyncClient.queryBatch(workspaceId, LOGS_BATCH_QUERIES, null).then();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ public LogsQueryAsModelTest(PerfStressOptions options) {

@Override
public void run() {
logsQueryClient.queryLogs(workspaceId, LOGS_QUERY, null).getResultAsObject(CustomModel.class);
logsQueryClient.query(workspaceId, LOGS_QUERY, null).toObject(CustomModel.class);
}

@Override
public Mono<Void> runAsync() {
return logsQueryAsyncClient.queryLogs(workspaceId, LOGS_QUERY, null)
.map(response -> response.getResultAsObject(CustomModel.class))
return logsQueryAsyncClient.query(workspaceId, LOGS_QUERY, null)
.map(response -> response.toObject(CustomModel.class))
.then();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ public LogsQueryTest(PerfStressOptions options) {

@Override
public void run() {
logsQueryClient.queryLogs(workspaceId, LOGS_QUERY, null);
logsQueryClient.query(workspaceId, LOGS_QUERY, null);
}

@Override
public Mono<Void> runAsync() {
return logsQueryAsyncClient.queryLogs(workspaceId, LOGS_QUERY, null).then();
return logsQueryAsyncClient.query(workspaceId, LOGS_QUERY, null).then();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@ public MetricsQueryTest(PerfStressOptions options) {

@Override
public void run() {
metricsQueryClient.queryMetricsWithResponse(resourceId, Arrays.asList("SuccessfulCalls"),
metricsQueryClient.queryWithResponse(resourceId, Arrays.asList("SuccessfulCalls"),
new MetricsQueryOptions().setTop(100), Context.NONE);
}

@Override
public Mono<Void> runAsync() {
return metricsQueryAsyncClient.queryMetricsWithResponse(resourceId, Arrays.asList("SuccessfulCalls"),
return metricsQueryAsyncClient.queryWithResponse(resourceId, Arrays.asList("SuccessfulCalls"),
new MetricsQueryOptions().setTop(100)).then();
}
}
12 changes: 11 additions & 1 deletion sdk/monitor/azure-monitor-query/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
# Release History

## 1.0.0-beta.3 (Unreleased)
## 1.0.0-beta.3 (2021-08-11)

### Breaking changes
- `queryLogs` APIs on `LogsQueryClient` and `LogsQueryAsyncClient` renamed to `query`.
- `queryLogsBatch` APIs on `LogsQueryClient` and `LogsQueryAsyncClient` renamed to `queryBatch`.
- `queryMetrics` APIs on `MetricQueryClient` and `MetricsQueryAsyncClient` renamed to `query`.
- `listMetricsNamespace` APIs on `MetricQueryClient` and `MetricsQueryAsyncClient` renamed to `listMetricNamespaces`.
- `listMetricsDefinition` APIs on `MetricQueryClient` and `MetricsQueryAsyncClient` renamed to `listMetricDefinitions`.

### Dependency Updates
- Upgraded `azure-core` from `1.18.0` to `1.19.0`.
- Upgraded `azure-core-http-netty` from `1.10.1` to `1.10.2`.

## 1.0.0-beta.2 (2021-07-08)

Expand Down
Loading

0 comments on commit fdbafaa

Please sign in to comment.