Skip to content

Commit

Permalink
[Monitor Query] Hotfix/monitor query 1.0.4 (Azure#25752)
Browse files Browse the repository at this point in the history
  • Loading branch information
KarishmaGhiya authored and minhanh-phan committed Jun 12, 2023

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
1 parent ec7cbc2 commit 182d086
Showing 16 changed files with 42 additions and 21 deletions.
18 changes: 17 additions & 1 deletion sdk/monitor/monitor-query/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,29 @@
# Release History

## 1.1.0 (2023-05-09)

### Features Added

- Added Resource centric query logs api for `LogsIngestionClient` from (`1.1.0-beta.1` release).

## 1.0.4 (2023-05-05)

### Bugs Fixed

- Fixed the ISO8601 value for `twentyFourHours`to reflect `P24H`, instead of `P1D` under `Durations` object.

### Other Changes

- Added alias `fortyEightHours` for ISO8601 value `P48H` under `Durations` object.
- Deprecated alias name `fourtyEightHours` and fixed the ISO8601 value to be `P48H` instead of `P2D` under `Durations` object.

## 1.1.0-beta.1 (2023-05-02)

### Features Added

- Added Resource centric query logs api for `LogsIngestionClient`.

## 1.0.3 (2022-10-05)

### Bugs Fixed

- #23349 Fixed endpoint resolution to allow endpoints from sovereign clouds
2 changes: 1 addition & 1 deletion sdk/monitor/monitor-query/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@azure/monitor-query",
"version": "1.1.0-beta.1",
"version": "1.1.0",
"description": "An isomorphic client library for querying Azure Monitor's Logs and Metrics data sources.",
"sdk-type": "client",
"main": "dist/index.js",

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions sdk/monitor/monitor-query/review/monitor-query.api.md
Original file line number Diff line number Diff line change
@@ -20,8 +20,9 @@ export const Durations: {
readonly oneDay: "P1D";
readonly oneHour: "PT1H";
readonly fourHours: "PT4H";
readonly twentyFourHours: "P1D";
readonly fourtyEightHours: "P2D";
readonly twentyFourHours: "P24H";
readonly fortyEightHours: "P48H";
readonly fourtyEightHours: "P48H";
readonly thirtyMinutes: "PT30M";
readonly fiveMinutes: "PT5M";
};
2 changes: 1 addition & 1 deletion sdk/monitor/monitor-query/src/constants.ts
Original file line number Diff line number Diff line change
@@ -4,4 +4,4 @@
/**
* @internal
*/
export const SDK_VERSION: string = "1.1.0-beta.1";
export const SDK_VERSION: string = "1.1.0";

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 8 additions & 4 deletions sdk/monitor/monitor-query/src/models/constants.ts
Original file line number Diff line number Diff line change
@@ -17,10 +17,14 @@ export const Durations = {
oneHour: "PT1H",
/** Alias for ISO8601 value 'PT4H' */
fourHours: "PT4H",
/** Alias for ISO8601 value 'P1D' */
twentyFourHours: "P1D",
/** Alias for ISO8601 value 'P2D' */
fourtyEightHours: "P2D",
/** Alias for ISO8601 value 'P24H' */
twentyFourHours: "P24H",
/** Alias for ISO8601 value 'P48H' */
fortyEightHours: "P48H",
/**
* @deprecated Alias name `fourtyEightHours` for ISO8601 value 'P48H' is deprecated
*/
fourtyEightHours: "P48H",
/** Alias for ISO8601 value 'PT30M' */
thirtyMinutes: "PT30M",
/** Alias for ISO8601 value 'PT5M' */
Original file line number Diff line number Diff line change
@@ -69,7 +69,7 @@ describe("MetricsClient live tests", function () {
if (i % 20 === 0 || i === metricDefinitionsLength) {
const newResults = await metricsQueryClient.queryResource(resourceId, definitionNames, {
timespan: {
duration: Durations.twentyFourHours,
duration: Durations.oneDay,
},
});
assert.ok(newResults);
@@ -87,7 +87,7 @@ describe("MetricsClient live tests", function () {
resourceId,
[firstResult.name!],
{
timespan: { duration: Durations.twentyFourHours },
timespan: { duration: Durations.oneDay },
metricNamespace: firstResult.namespace,
}
);

0 comments on commit 182d086

Please sign in to comment.