Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UsageV3 S360 Updates #22637

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
aee0c7f
UsageV3 S360 Updates
JoeBeach-msft Feb 15, 2023
ec6e963
Removed 202 Response for Ratecard
JoeBeach-msft Feb 15, 2023
db07b08
Undo ErrorMessage Properties
JoeBeach-msft Feb 15, 2023
84ba8cf
Ran Prettier
JoeBeach-msft Feb 17, 2023
3100822
Added xm-ms-long-running-operation Property
JoeBeach-msft Feb 17, 2023
d06261e
Added x-ms-long-running-operation-options
JoeBeach-msft Feb 17, 2023
965a325
Prettier Run
JoeBeach-msft Feb 17, 2023
fe55db3
Added x-ms-example for GetUsageAggregates_List
JoeBeach-msft Feb 17, 2023
8adaf21
Added example file for UsageAggregates List
JoeBeach-msft Feb 21, 2023
6d3a7ac
Corrected Formatting for UsageAggregatesList Example
JoeBeach-msft Feb 21, 2023
e2c79ac
Corrected Example File Name
JoeBeach-msft Feb 21, 2023
9d55593
Added Location Header to 202 Response
JoeBeach-msft Feb 21, 2023
370ac6a
Corrected Location to use double quotes
JoeBeach-msft Feb 21, 2023
32c5ae1
Updated Example Fields
JoeBeach-msft Feb 21, 2023
e3be735
Added 202 Response
JoeBeach-msft Feb 21, 2023
443f9df
GetUsageAggregatesList.json Prettier Update
JoeBeach-msft Feb 24, 2023
ebbcd6f
Updated case 'Daily' and Example 202 Response
JoeBeach-msft Feb 24, 2023
2252fc6
Removed Error from 202 Body
JoeBeach-msft Feb 24, 2023
09e8436
Removed InfoFields properties.
JoeBeach-msft Feb 27, 2023
00f2b16
Removed Infofields properties.
JoeBeach-msft Feb 27, 2023
95bf03e
Removed InfoFields Properties
JoeBeach-msft Feb 27, 2023
01250ea
Removed LongRunning operation
JoeBeach-msft Mar 2, 2023
c80b871
Removed Location Header
JoeBeach-msft Mar 2, 2023
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
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@
"externalDocs": {
"url": "https://docs.microsoft.com/rest/api/commerce/usageaggregates"
},
"x-ms-examples": {
"GetUsageAggregatesList": {
"$ref": "./examples/GetUsageAggregatesList.json"
}
},
"parameters": [
{
"name": "reportedStartTime",
Expand Down Expand Up @@ -88,6 +93,12 @@
"$ref": "#/definitions/UsageAggregationListResult"
}
},
"202": {
"description": "Response indicating that a request has been accepted for processing. However, the processing has not been completed.",
JoeBeach-msft marked this conversation as resolved.
Show resolved Hide resolved
"schema": {
"$ref": "#/definitions/ErrorResponse"
Copy link
Member

Choose a reason for hiding this comment

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

This 202 is wrong.

Why 202 returns ErrorResponse?

Copy link
Member

@weidongxu-microsoft weidongxu-microsoft Mar 3, 2023

Choose a reason for hiding this comment

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

And what 202 do for a GET (and it is not LRO)?

}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
Expand Down Expand Up @@ -150,12 +161,6 @@
},
"definitions": {
"InfoField": {
"properties": {
"project": {
"type": "string",
"description": "Identifies the name of the instance provisioned by the user."
}
},
"description": "Key-value pairs of instance details in the legacy format."
},
"UsageSample": {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"title": "Get UsageAggregatesList",
"parameters": {
"subscriptionId": "f68815e6-3c41-45ef-bbd8-5f83303c396b",
"api-version": "2015-06-01-preview",
"reportedStartTime": "2014-05-01T00:00:00+00:00",
"reportedEndTime": "2015-06-01T00:00:00+00:00",
"aggregationGranularity": "Daily",
"showDetails": "true"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/f68815e6-3c41-45ef-bbd8-5f83303c396b/providers/Microsoft.Commerce/UsageAggregates/Daily_BRSDT_20140501_0000",
"name": "Daily_BRSDT_20140501_0000",
"type": "Microsoft.Commerce/UsageAggregate",
"properties": {
"subscriptionId": "f68815e6-3c41-45ef-bbd8-5f83303c396b",
"usageStartTime": "2015-03-03T00:00:00+00:00",
"usageEndTime": "2015-03-04T00:00:00+00:00",
"meterName": "Standard IO – Page Blob/Disk (GB)",
"meterCategory": "Storage",
"meterSubCategory": "Geo Redundant",
"unit": "GB",
"meterId": "0e9d0c9b-ab6d-4312-9c7e-3794e22af9c4",
"infoFields": {},
"quantity": 0.057865
}
}
]
}
},
"202": {
"body": {
"code": "aaaaaaaaaaaaaaaaaaaaaa",
"message": "aaaaaaaaaaaaaaaaaaaa"
}
}
}
}