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
2 changes: 1 addition & 1 deletion eng/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@
},
{
"Name": "monitor/query/azmetrics",
"CoverageGoal": 0.75
"CoverageGoal": 0.60
}
]
}
3 changes: 2 additions & 1 deletion sdk/monitor/query/azmetrics/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# Release History

## 1.2.1 (Unreleased)
## 1.3.0-beta.1 (Unreleased)

### Features Added
* Add fakes support

### Breaking Changes

Expand Down
13 changes: 4 additions & 9 deletions sdk/monitor/query/azmetrics/autorest.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,16 @@ go: true
input-file: https://github.com/Azure/azure-rest-api-specs/blob/0b64ca7cbe3af8cd13228dfb783a16b8272b8be2/specification/monitor/data-plane/Microsoft.Insights/stable/2024-02-01/metricBatch.json
license-header: MICROSOFT_MIT_NO_VERSION
module: github.com/Azure/azure-sdk-for-go/sdk/monitor/query/azmetrics
module-version: 0.0.1
openapi-type: "data-plane"
output-folder: ../azmetrics
security: "AADToken"
use: "@autorest/[email protected].61"
use: "@autorest/[email protected].70"
inject-spans: true
version: "^3.0.0"
slice-elements-byval: true
generate-fakes: true
single-client: true

directive:
# rename Batch to QueryResources
Expand Down Expand Up @@ -86,12 +89,4 @@ directive:
- from: client.go
where: $
transform: return $.replace(/batchRequest/g, "resourceIDs");

# delete client name prefix from method options and response types
- from:
- client.go
- options.go
- response_types.go
where: $
transform: return $.replace(/Client(\w+)((?:Options|Response))/g, "$1$2");
```
3 changes: 0 additions & 3 deletions sdk/monitor/query/azmetrics/build.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
//go:build go1.18
// +build go1.18

//go:generate autorest ./autorest.md
//go:generate gofmt -w .

Expand Down
33 changes: 16 additions & 17 deletions sdk/monitor/query/azmetrics/client.go

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

3 changes: 0 additions & 3 deletions sdk/monitor/query/azmetrics/client_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
//go:build go1.18
// +build go1.18

// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.

Expand Down
3 changes: 0 additions & 3 deletions sdk/monitor/query/azmetrics/cloud_config.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
//go:build go1.18
// +build go1.18

// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.

Expand Down
3 changes: 0 additions & 3 deletions sdk/monitor/query/azmetrics/constants.go

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

3 changes: 0 additions & 3 deletions sdk/monitor/query/azmetrics/custom_client.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
//go:build go1.18
// +build go1.18

// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.

Expand Down
59 changes: 59 additions & 0 deletions sdk/monitor/query/azmetrics/fake/internal.go

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

Loading