diff --git a/sdk/monitor/query/azlogs/autorest.md b/sdk/monitor/query/azlogs/autorest.md index 4dce8a71602b..0210e643d01a 100644 --- a/sdk/monitor/query/azlogs/autorest.md +++ b/sdk/monitor/query/azlogs/autorest.md @@ -4,7 +4,7 @@ title: Logs Query Client clear-output-folder: false go: true -input-file: https://github.com/Azure/azure-rest-api-specs/blob/0373f0edc4414fd402603fac51d0df93f1f70507/specification/operationalinsights/data-plane/Microsoft.OperationalInsights/stable/2022-10-27/OperationalInsights.json +input-file: https://github.com/Azure/azure-rest-api-specs/blob/0b64ca7cbe3af8cd13228dfb783a16b8272b8be2/specification/operationalinsights/data-plane/Microsoft.OperationalInsights/stable/2022-10-27/OperationalInsights.json license-header: MICROSOFT_MIT_NO_VERSION module: github.com/Azure/azure-sdk-for-go/sdk/monitor/query/azlogs openapi-type: "data-plane" diff --git a/sdk/monitor/query/azmetrics/CHANGELOG.md b/sdk/monitor/query/azmetrics/CHANGELOG.md index 48247a495c60..1e7be6999c84 100644 --- a/sdk/monitor/query/azmetrics/CHANGELOG.md +++ b/sdk/monitor/query/azmetrics/CHANGELOG.md @@ -10,6 +10,7 @@ ### Bugs Fixed ### Other Changes +* Updated to use API version 2024-02-01 * Added code examples ## 0.1.0 (2024-02-14) diff --git a/sdk/monitor/query/azmetrics/assets.json b/sdk/monitor/query/azmetrics/assets.json index 9d1231a75b84..32a2f649fe07 100644 --- a/sdk/monitor/query/azmetrics/assets.json +++ b/sdk/monitor/query/azmetrics/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "go", "TagPrefix": "go/monitor/query/azmetrics", - "Tag": "go/monitor/query/azmetrics_9d77928835" + "Tag": "go/monitor/query/azmetrics_bb360e6fa9" } \ No newline at end of file diff --git a/sdk/monitor/query/azmetrics/autorest.md b/sdk/monitor/query/azmetrics/autorest.md index 82cd677c87a0..6fcfb3d2d784 100644 --- a/sdk/monitor/query/azmetrics/autorest.md +++ b/sdk/monitor/query/azmetrics/autorest.md @@ -2,7 +2,7 @@ title: Metrics Query Client clear-output-folder: false go: true -input-file: https://github.com/Azure/azure-rest-api-specs/blob/0373f0edc4414fd402603fac51d0df93f1f70507/specification/monitor/data-plane/Microsoft.Insights/stable/2023-10-01/metricBatch.json +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 openapi-type: "data-plane" diff --git a/sdk/monitor/query/azmetrics/client.go b/sdk/monitor/query/azmetrics/client.go index a510dd728920..10e118c3293a 100644 --- a/sdk/monitor/query/azmetrics/client.go +++ b/sdk/monitor/query/azmetrics/client.go @@ -30,7 +30,7 @@ type Client struct { // QueryResources - Lists the metric values for multiple resources. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-10-01 +// Generated from API version 2024-02-01 // - subscriptionID - The subscription identifier for the resources in this batch. // - metricNamespace - Metric namespace that contains the requested metric names. // - metricNames - The names of the metrics (comma separated) to retrieve. @@ -94,7 +94,7 @@ func (client *Client) queryResourcesCreateRequest(ctx context.Context, subscript if options != nil && options.RollUpBy != nil { reqQP.Set("rollupby", *options.RollUpBy) } - reqQP.Set("api-version", "2023-10-01") + reqQP.Set("api-version", "2024-02-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, resourceIDs); err != nil {