-
Notifications
You must be signed in to change notification settings - Fork 5.6k
billingMeters - GET endpoint #20485
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
Merged
leniatgh
merged 9 commits into
Azure:Microsoft.App-2022-06-01-preview
from
trajkobal:Microsoft.App-2022-06-01-preview
Sep 16, 2022
Merged
billingMeters - GET endpoint #20485
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
9845076
Swagger documentation for /locations/{location}/billingMeters - GET e…
trajkobal 404bde2
Add example, fix validation errors
trajkobal 51042c8
Fix ARM validation errors, code review comments
trajkobal 54d80fd
Fix response validation
trajkobal 10ea6b0
add proxy resource properties
trajkobal df7c4b8
Response formatting
trajkobal cebac94
add default error response
trajkobal 1c59c0e
ARM Review feedback + small naming change for a property
trajkobal bcb461c
Change GB to GiB
trajkobal File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
127 changes: 127 additions & 0 deletions
127
...fication/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/BillingMeters.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,127 @@ | ||
| { | ||
| "swagger": "2.0", | ||
| "info": { | ||
| "version": "2022-06-01-preview", | ||
| "title": "ContainerApps API Client" | ||
| }, | ||
| "host": "management.azure.com", | ||
| "schemes": [ | ||
| "https" | ||
| ], | ||
| "produces": [ | ||
| "application/json" | ||
| ], | ||
| "paths": { | ||
| "/subscriptions/{subscriptionId}/providers/Microsoft.App/locations/{location}/billingMeters": { | ||
| "get": { | ||
| "tags": [ | ||
| "BillingMeters" | ||
| ], | ||
| "summary": "Get billing meters by location.", | ||
| "description": "Get all billingMeters for a location.", | ||
| "operationId": "BillingMeters_Get", | ||
| "parameters": [ | ||
| { | ||
| "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" | ||
| }, | ||
| { | ||
| "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/LocationParameter" | ||
| }, | ||
| { | ||
| "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" | ||
| } | ||
| ], | ||
| "responses": { | ||
| "200": { | ||
| "description": "OK", | ||
| "schema": { | ||
| "$ref": "#/definitions/BillingMeterCollection" | ||
| } | ||
| }, | ||
| "default": { | ||
| "description": "Error response.", | ||
| "schema": { | ||
| "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" | ||
| } | ||
| } | ||
| }, | ||
| "x-ms-examples": { | ||
| "BillingMeters_Get": { | ||
| "$ref": "./examples/BillingMeters_Get.json" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "definitions": { | ||
| "BillingMeter": { | ||
| "description": "A premium billing meter.", | ||
| "type": "object", | ||
| "allOf": [ | ||
| { | ||
| "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" | ||
| } | ||
| ], | ||
| "properties": { | ||
| "location": { | ||
| "type": "string", | ||
| "description": "Region for the billing meter." | ||
| }, | ||
| "properties": { | ||
| "description": "Revision resource specific properties", | ||
| "type": "object", | ||
| "properties": { | ||
| "category": { | ||
| "description": "Used to map workload profile types to billing meter.", | ||
| "type": "string", | ||
| "enum": [ | ||
| "PremiumSkuGeneralPurpose", | ||
| "PremiumSkuMemoryOptimized", | ||
| "PremiumSkuComputeOptimized" | ||
| ], | ||
| "x-ms-enum": { | ||
| "name": "Category", | ||
| "modelAsString": true | ||
| } | ||
| }, | ||
| "meterType": { | ||
| "type": "string", | ||
| "description": "Billing meter type." | ||
| }, | ||
| "displayName": { | ||
| "type": "string", | ||
| "description": "The everyday name of the billing meter." | ||
| } | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "BillingMeterCollection": { | ||
| "description": "Collection of premium workload billing meters.", | ||
| "required": [ | ||
| "value" | ||
| ], | ||
| "type": "object", | ||
| "properties": { | ||
| "value": { | ||
| "description": "Collection of billing meters.", | ||
| "type": "array", | ||
| "items": { | ||
| "$ref": "#/definitions/BillingMeter" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "securityDefinitions": { | ||
| "azure_auth": { | ||
| "type": "oauth2", | ||
| "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", | ||
| "flow": "implicit", | ||
| "description": "Azure Active Directory OAuth2 Flow", | ||
| "scopes": { | ||
| "user_impersonation": "impersonate your user account" | ||
| } | ||
| } | ||
| } | ||
| } | ||
81 changes: 81 additions & 0 deletions
81
...resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/BillingMeters_Get.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,81 @@ | ||
| { | ||
| "parameters": { | ||
| "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", | ||
| "location": "East US", | ||
| "api-version": "2022-06-01-preview" | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "body": { | ||
| "value": [ | ||
| { | ||
| "location": "East US", | ||
| "properties": { | ||
| "category": "PremiumSkuGeneralPurpose", | ||
| "meterType": "CPU", | ||
| "displayName": "Premium SKU General Purpose Cores per Second" | ||
| }, | ||
| "id": "/subscriptions/55f240e3-3d66-44f6-8358-4e4f3d7a2e51/providers/Microsoft.App/PremiumSKUGeneralPurposeCPU", | ||
| "name": "PremiumSKUGeneralPurposeCPU", | ||
| "type": "Microsoft.App/billingMeters" | ||
| }, | ||
| { | ||
| "location": "East US", | ||
| "properties": { | ||
| "category": "PremiumSkuGeneralPurpose", | ||
| "meterType": "Memory", | ||
| "displayName": "Premium SKU General Purpose Memory GiB per Second" | ||
| }, | ||
| "id": "/subscriptions/55f240e3-3d66-44f6-8358-4e4f3d7a2e51/providers/Microsoft.App/PremiumSKUGeneralPurposeMemory", | ||
| "name": "PremiumSKUGeneralPurposeMemory", | ||
| "type": "Microsoft.App/billingMeters" | ||
| }, | ||
| { | ||
| "location": "East US", | ||
| "properties": { | ||
| "category": "PremiumSkuMemoryOptimized", | ||
| "meterType": "CPU", | ||
| "displayName": "Premium SKU Memory Optimized Cores per Second" | ||
| }, | ||
| "id": "/subscriptions/55f240e3-3d66-44f6-8358-4e4f3d7a2e51/providers/Microsoft.App/PremiumSKUMemoryOptimizedCPU", | ||
| "name": "PremiumSKUMemoryOptimizedCPU", | ||
| "type": "Microsoft.App/billingMeters" | ||
| }, | ||
| { | ||
| "location": "East US", | ||
| "properties": { | ||
| "category": "PremiumSkuMemoryOptimized", | ||
| "meterType": "Memory", | ||
| "displayName": "Premium SKU Memory Optimized Memory GiB per Second" | ||
| }, | ||
| "id": "/subscriptions/55f240e3-3d66-44f6-8358-4e4f3d7a2e51/providers/Microsoft.App/PremiumSkuMemoryOptimizedMemory", | ||
| "name": "PremiumSkuMemoryOptimizedMemory", | ||
| "type": "Microsoft.App/billingMeters" | ||
| }, | ||
| { | ||
| "location": "East US", | ||
| "properties": { | ||
| "category": "PremiumSkuComputeOptimized", | ||
| "meterType": "CPU", | ||
| "displayName": "Premium SKU Compute Optimized Cores per Second" | ||
| }, | ||
| "id": "/subscriptions/55f240e3-3d66-44f6-8358-4e4f3d7a2e51/providers/Microsoft.App/PremiumSKUComputeOptimizedCPU", | ||
| "name": "PremiumSKUComputeOptimizedCPU", | ||
| "type": "Microsoft.App/billingMeters" | ||
| }, | ||
| { | ||
| "location": "East US", | ||
| "properties": { | ||
| "category": "PremiumSkuComputeOptimized", | ||
| "meterType": "Memory", | ||
| "displayName": "Premium SKU Compute Optimized Memory GiB per Second" | ||
| }, | ||
| "id": "/subscriptions/55f240e3-3d66-44f6-8358-4e4f3d7a2e51/providers/Microsoft.App/PremiumSKUGeneralComputeMemory", | ||
| "name": "PremiumSKUGeneralComputeMemory", | ||
| "type": "Microsoft.App/billingMeters" | ||
| } | ||
| ] | ||
| } | ||
| } | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.