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

[Hub Generated] Review request for Microsoft.Consumption to add version stable/2021-10-01 #20403

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from
Draft
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
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"UsageDetails"
],
"operationId": "UsageDetails_List",
"description": "Lists the usage details for the defined scope. Usage details are available via this API only for May 1, 2014 or later.",
"description": "Note: _**Enterprise Agreement and Microsoft Customer Agreement customers:** Please do not use this API. Use the [Cost Details API](/rest/api/cost-management/generate-cost-details-report/create-operation?tabs=HTTP) instead._ \n\nLists the usage details for the defined scope. Usage details are available via this API only for May 1, 2014 or later.",
"externalDocs": {
"url": "https://docs.microsoft.com/en-us/rest/api/consumption/"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"parameters": {
"api-version": "2021-10-01",
"subscriptionId": "00000000-0000-0000-0000-000000000000"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/subid/providers/Microsoft.Consumption/forecasts/forecastId1",
"name": "forecastId1",
"type": "Microsoft.Consumption/forecasts",
"properties": {
"usageDate": "2018-04-01",
"grain": "Daily",
"charge": 752.000000,
"currency": "USD",
"chargeType": "Actual",
"confidenceLevels": null
}
},
{
"id": "/subscriptions/subid/providers/Microsoft.Consumption/forecasts/forecastId2",
"name": "forecastId2",
"type": "Microsoft.Consumption/forecasts",
"properties": {
"usageDate": "2018-04-02",
"grain": "Daily",
"charge": 753.809074,
"currency": "USD",
"chargeType": "Forecast",
"confidenceLevels": [
{
"percentage": 95,
"bound": "Upper",
"value": 1165.951737
},
{
"percentage": 95,
"bound": "Lower",
"value": 340.753404
}
]
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"parameters": {
"api-version": "2021-10-01",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"$filter": "properties/usagedate ge '2018-04-01' AND properties/usagedate le '2018-04-02'"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/subid/providers/Microsoft.Consumption/forecasts/forecastId1",
"name": "forecastId1",
"type": "Microsoft.Consumption/forecasts",
"properties": {
"usageDate": "2018-04-01",
"grain": "Daily",
"charge": 752.000000,
"currency": "USD",
"chargeType": "Actual",
"confidenceLevels": null
}
},
{
"id": "/subscriptions/subid/providers/Microsoft.Consumption/forecasts/forecastId2",
"name": "forecastId2",
"type": "Microsoft.Consumption/forecasts",
"properties": {
"usageDate": "2018-04-02",
"grain": "Daily",
"charge": 753.809074,
"currency": "USD",
"chargeType": "Forecast",
"confidenceLevels": [
{
"percentage": 95,
"bound": "Upper",
"value": 1165.951737
},
{
"percentage": 95,
"bound": "Lower",
"value": 340.753404
}
]
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"parameters": {
"api-version": "2021-10-01",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"$filter": "properties/Grain eq 'Monthly'"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/subid/providers/Microsoft.Consumption/forecasts/forecastId1",
"name": "forecastId1",
"type": "Microsoft.Consumption/forecasts",
"properties": {
"usageDate": "2018-04-01",
"grain": "Monthly",
"charge": 752.000000,
"currency": "USD",
"chargeType": "Actual",
"confidenceLevels": null
}
},
{
"id": "/subscriptions/subid/providers/Microsoft.Consumption/forecasts/forecastId2",
"name": "forecastId2",
"type": "Microsoft.Consumption/forecasts",
"properties": {
"usageDate": "2018-05-01",
"grain": "Monthly",
"charge": 753.809074,
"currency": "USD",
"chargeType": "Forecast",
"confidenceLevels": [
{
"percentage": 95,
"bound": "Upper",
"value": 1165.951737
},
{
"percentage": 95,
"bound": "Lower",
"value": 340.753404
}
]
}
}
]
}
}
}
}