Skip to content

[Monitor] Adding multi-dim metrics API, improving error response for Action Groups API, and fixing some documentation typos (from Swagger)#3646

Merged
shahabhijeet merged 17 commits intoAzure:psSdkJson6from
AuxMon:MultiDimMetrics2
Sep 7, 2017
Merged

[Monitor] Adding multi-dim metrics API, improving error response for Action Groups API, and fixing some documentation typos (from Swagger)#3646
shahabhijeet merged 17 commits intoAzure:psSdkJson6from
AuxMon:MultiDimMetrics2

Conversation

@gucalder
Copy link
Copy Markdown
Contributor

@gucalder gucalder commented Aug 31, 2017

Description

This PR does the following:

  • Add multi-dim metrics API to replace the previous metrics API. The are backwards compatible with some differences in the syntax of the calls.
  • Improving error response for Action Groups API, i.e. return ErrorResponseException instead of the standard CloudException, and making code 409 a successful response for the Enable operation as the feature team implemented it that way.
  • Fix some documentation typos from Swagger

This PR is related to the Swagger PRs: Azure/azure-rest-api-specs#1620: New Multi-Dim metrics API, and Azure/azure-rest-api-specs#1622: fix typos and change error response.


This checklist is used to make sure that common guidelines for a pull request are followed.

General Guidelines

  • Title of the pull request is clear and informative.
  • There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

  • Pull request includes test coverage for the included changes.

SDK Generation Guidelines

  • If an SDK is being regenerated based on a new swagger spec, a link to the pull request containing these swagger spec changes has been included above.
  • The generate.cmd file for the SDK has been updated with the version of AutoRest, as well as the commitid of your swagger spec or link to the swagger spec, used to generate the code.
  • The *.csproj and AssemblyInfo.cs files have been updated with the new version of the SDK.

gucalder added 16 commits July 27, 2017 14:11
… into psSdkJson6

# Conflicts:
#	src/SDKs/Monitor/Management.Monitor/generate.cmd
…e Resource Manager dll. Enabling tests for netcoreapp1.1
… into MultiDimMetrics

# Conflicts:
#	src/SDKs/Monitor/Management.Monitor/Generated/Monitor/IMetricsOperations.cs
#	src/SDKs/Monitor/Management.Monitor/Generated/Monitor/MetricsOperations.cs
#	src/SDKs/Monitor/Management.Monitor/Generated/Monitor/MetricsOperationsExtensions.cs
#	src/SDKs/Monitor/Management.Monitor/Generated/Monitor/Models/Metric.cs
#	src/SDKs/Monitor/Management.Monitor/Generated/Monitor/Models/MetricDefinition.cs
#	src/SDKs/Monitor/Management.Monitor/Properties/AssemblyInfo.cs
#	src/SDKs/Monitor/Monitor.Tests/BasicTests/MetricsTests.cs
#	src/SDKs/Monitor/Monitor.Tests/Scenarios/MetricsTests.cs
#	src/SDKs/Monitor/Monitor.Tests/SessionRecords/Monitor.Tests.Scenarios.MetricsTests/GetMetricDefinitionsTest.json
#	src/SDKs/Monitor/Monitor.Tests/SessionRecords/Monitor.Tests.Scenarios.MetricsTests/GetMetricsTest.json
…erations do not throw standard exceptions, but return ErrorResponses with more information (PR Azure#1614).
@gucalder
Copy link
Copy Markdown
Contributor Author

This PR should be merged before PR #3636 for the assembly version to make sense, or #3636 should use assembly version 0.17.0.0 too.

Copy link
Copy Markdown
Contributor

@shahabhijeet shahabhijeet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Publish will fail if version numbers are not updated

@gucalder
Copy link
Copy Markdown
Contributor Author

gucalder commented Sep 5, 2017

Sure, I am changing from 0.16.1.0 to 0.17.0.0, Vinicius could use 0.17.0.0 if both changes are merged before we publish since his changes are also significant. Or he could use another version, say 0.17.1.0 if his changes will be backwards compatible or 0.18.0.0 if they are not.

@shahabhijeet shahabhijeet merged commit 6fdeb46 into Azure:psSdkJson6 Sep 7, 2017
JasonYang-MSFT pushed a commit to JasonYang-MSFT/azure-sdk-for-net that referenced this pull request Dec 8, 2017
…Action Groups API, and fixing some documentation typos (from Swagger) (Azure#3646)

* Adding ActivityLogAlerts and ActionGroups API calls, PATH operations, and the corresponding unit tests

* Generating code from the 'current' branch of the Swagger specs repo

* Adding scenario tests

* Improving scenario tests and re-recording them

* Making sure the scenario tests point to the more recent version of the Resource Manager dll. Enabling tests for netcoreapp1.1

* Introducing multidimensional metrics API and removing the previous one.

* Reverting netcoreapp1.1 test target since it fails to find the records.

* Returning generate.md to its Azure\psSdkJson6 state

* Re-enabling tests for netcoreapp1.1

* [Monitor] Adding multi-dim metrics API and making sure ActionGroupsOperations do not throw standard exceptions, but return ErrorResponses with more information (PR Azure#1614).

* [Monitor] Fixing documentation typos (from Swagger). Improving the error response for Action Groups API.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants