diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index c8ea488bf12fc..3f68efa0b9bdd 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -78,6 +78,9 @@ # PRLabel: %Mixed Reality Authentication /sdk/mixedreality/azure-mixedreality-authentication @craigktreasure +# PRLabel: %Mixed Reality Authentication +/sdk/mixedreality/azure-mixedreality-authentication @craigktreasure + # PRLabel: %Remote Rendering /sdk/remoterendering/ @MalcolmTyrrell diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt index 7c3db4eb133e8..51b01c4f490e7 100644 --- a/eng/versioning/version_client.txt +++ b/eng/versioning/version_client.txt @@ -308,6 +308,7 @@ com.azure.resourcemanager:azure-resourcemanager-deviceprovisioningservices;1.0.0 # In the pom, the version update tag after the version should name the unreleased package and the dependency version: # unreleased_com.azure:azure-core-amqp;2.1.0-beta.1 +unreleased_com.azure:azure-core-management;1.3.0-beta.1 # Released Beta dependencies: Copy the entry from above, prepend "beta_", remove the current # version and set the version to the released beta. Released beta dependencies are only valid diff --git a/sdk/core/azure-core/CHANGELOG.md b/sdk/core/azure-core/CHANGELOG.md index c47b664d9ccad..c742fce0e06ee 100644 --- a/sdk/core/azure-core/CHANGELOG.md +++ b/sdk/core/azure-core/CHANGELOG.md @@ -2,6 +2,9 @@ ## 1.18.0-beta.1 (Unreleased) +### Features Added + +- Added `AsyncCloseable` ## 1.17.0 (2021-06-07) diff --git a/sdk/monitor/azure-monitor-query/README.md b/sdk/monitor/azure-monitor-query/README.md index 084857bae8a20..3e31ea70fa516 100644 --- a/sdk/monitor/azure-monitor-query/README.md +++ b/sdk/monitor/azure-monitor-query/README.md @@ -90,7 +90,127 @@ LogsQueryAsyncClient logsQueryAsyncClient = new LogsQueryClientBuilder() + "; value = " + logsTableCell.getValueAsString())); } } -} + +``` +### Get logs for a query and read the response as a model type + +```java + + LogsQueryResult queryResults = logsClient + .queryLogs("d2d0e126-fa1e-4b0a-b647-250cdd471e68", "AppRequests", null); + + // Sample to use a model type to read the results + for (LogsTable table : queryResults.getLogsTables()) { + for (LogsTableRow row : table.getTableRows()) { + CustomModel model = row.getRowAsObject(CustomModel.class); + System.out.println("Time generated " + model.getTimeGenerated() + "; success = " + model.getSuccess() + + "; operation name = " + model.getOperationName()); + } + } + + + public class CustomModel { + private OffsetDateTime timeGenerated; + private String tenantId; + private String id; + private String source; + private Boolean success; + private Double durationMs; + private Object properties; + private Object measurements; + private String operationName; + private String operationId; + private Object operationLinks; + + + public OffsetDateTime getTimeGenerated() { + return timeGenerated; + } + + public void setTimeGenerated(OffsetDateTime timeGenerated) { + this.timeGenerated = timeGenerated; + } + + public String getTenantId() { + return tenantId; + } + + public void setTenantId(String tenantId) { + this.tenantId = tenantId; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getSource() { + return source; + } + + public void setSource(String source) { + this.source = source; + } + + public Boolean getSuccess() { + return success; + } + + public void setSuccess(Boolean success) { + this.success = success; + } + + public Double getDurationMs() { + return durationMs; + } + + public void setDurationMs(Double durationMs) { + this.durationMs = durationMs; + } + + public Object getProperties() { + return properties; + } + + public void setProperties(Object properties) { + this.properties = properties; + } + + public Object getMeasurements() { + return measurements; + } + + public void setMeasurements(Object measurements) { + this.measurements = measurements; + } + + public String getOperationName() { + return operationName; + } + + public void setOperationName(String operationName) { + this.operationName = operationName; + } + + public String getOperationId() { + return operationId; + } + + public void setOperationId(String operationId) { + this.operationId = operationId; + } + + public Object getOperationLinks() { + return operationLinks; + } + + public void setOperationLinks(Object operationLinks) { + this.operationLinks = operationLinks; + } + } ``` ### Get logs for a query and read the response as a model type diff --git a/sdk/monitor/azure-monitor-query/pom.xml b/sdk/monitor/azure-monitor-query/pom.xml index 3a33e9af9ac84..fff78d47ac1b7 100644 --- a/sdk/monitor/azure-monitor-query/pom.xml +++ b/sdk/monitor/azure-monitor-query/pom.xml @@ -79,6 +79,12 @@ 1.2.4 test + + com.azure + azure-core-serializer-json-jackson + 1.2.3 + test +