Skip to content

Commit

Permalink
chore: jsonfmt cost-management (#6321)
Browse files Browse the repository at this point in the history
Ran `jsonfmt -w "specification/cost-management/**/*.json"
  • Loading branch information
nschonni authored and jhendrixMSFT committed Jun 18, 2019
1 parent 6ccd231 commit 09d5bc0
Show file tree
Hide file tree
Showing 17 changed files with 182 additions and 77 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,4 +125,4 @@
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@
"scopes": null,
"details": {
"pricesheet": "Pay-As-You-Go (0003P)",
"benefits": ["None"],
"benefits": [
"None"
],
"markups": null
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@
],
"details": {
"pricesheet": "Pay-As-You-Go (0003P)",
"benefits": ["None"],
"benefits": [
"None"
],
"markups": [
{
"percentage": "1.1"
Expand All @@ -45,7 +47,9 @@
"scopes": null,
"details": {
"pricesheet": "Pay-As-You-Go (0003P)",
"benefits": ["None"],
"benefits": [
"None"
],
"markups": [
{
"percentage": "1.1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@
"scopes": null,
"details": {
"pricesheet": "Pay-As-You-Go (0003P)",
"benefits": ["None"],
"benefits": [
"None"
],
"markups": null
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
}
}
},
"paths": {
"paths": {
"/providers/Microsoft.CostManagement/views": {
"get": {
"tags": [
Expand Down Expand Up @@ -378,10 +378,12 @@
}
}
}
},
},
"/{scope}/providers/Microsoft.CostManagement/budgets": {
"get": {
"tags": ["Budgets"],
"tags": [
"Budgets"
],
"operationId": "Budgets_List",
"description": "Lists all budgets for the defined scope.",
"externalDocs": {
Expand Down Expand Up @@ -421,7 +423,9 @@
},
"/{scope}/providers/Microsoft.CostManagement/budgets/{budgetName}": {
"get": {
"tags": ["Budgets"],
"tags": [
"Budgets"
],
"operationId": "Budget_Get",
"description": "Gets the budget for the scope by budget name.",
"externalDocs": {
Expand Down Expand Up @@ -459,7 +463,9 @@
}
},
"put": {
"tags": ["Budgets"],
"tags": [
"Budgets"
],
"operationId": "Budget_CreateOrUpdate",
"description": "The operation to create or update a budget. Update operation requires latest eTag to be set in the request mandatorily. You may obtain the latest eTag by performing a get operation. Create operation does not require eTag.",
"externalDocs": {
Expand Down Expand Up @@ -512,7 +518,9 @@
}
},
"delete": {
"tags": ["Budgets"],
"tags": [
"Budgets"
],
"operationId": "Budget_Delete",
"description": "The operation to delete a budget.",
"externalDocs": {
Expand Down Expand Up @@ -1136,14 +1144,14 @@
"type": "array",
"items": {
"$ref": "#/definitions/KpiProperties"
}
}
},
"pivots": {
"description": "Configuration of 3 sub-views in the Cost Analysis UI.",
"type": "array",
"items": {
"$ref": "#/definitions/PivotProperties"
}
}
}
}
},
Expand Down Expand Up @@ -1234,7 +1242,10 @@
"category": {
"description": "The category of the budget, whether the budget tracks cost or usage.",
"type": "string",
"enum": ["Cost", "Usage"],
"enum": [
"Cost",
"Usage"
],
"x-ms-enum": {
"name": "CategoryType",
"modelAsString": true
Expand All @@ -1248,7 +1259,11 @@
"timeGrain": {
"description": "The time covered by a budget. Tracking of the amount will be reset based on the time grain.",
"type": "string",
"enum": ["Monthly", "Quarterly", "Annually"],
"enum": [
"Monthly",
"Quarterly",
"Annually"
],
"x-ms-enum": {
"name": "TimeGrainType",
"modelAsString": true
Expand Down Expand Up @@ -1278,7 +1293,12 @@
"maxItems": 5
}
},
"required": ["category", "amount", "timeGrain", "timePeriod"]
"required": [
"category",
"amount",
"timeGrain",
"timePeriod"
]
},
"BudgetTimePeriod": {
"description": "The start and end date for a budget.",
Expand All @@ -1294,7 +1314,9 @@
"format": "date-time"
}
},
"required": ["startDate"]
"required": [
"startDate"
]
},
"CurrentSpend": {
"description": "The current amount of cost which is being tracked for a budget.",
Expand Down Expand Up @@ -1322,7 +1344,11 @@
"operator": {
"description": "The comparison operator.",
"type": "string",
"enum": ["EqualTo", "GreaterThan", "GreaterThanOrEqualTo"],
"enum": [
"EqualTo",
"GreaterThan",
"GreaterThanOrEqualTo"
],
"x-ms-enum": {
"name": "NotificationOperatorType",
"modelAsString": true
Expand Down Expand Up @@ -1359,7 +1385,12 @@
"maxItems": 50
}
},
"required": ["enabled", "operator", "threshold", "contactEmails"]
"required": [
"enabled",
"operator",
"threshold",
"contactEmails"
]
}
},
"parameters": {
Expand Down Expand Up @@ -1451,4 +1482,4 @@
"x-ms-parameter-location": "method"
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@
"dimension": {
"name": "ResourceGroupName",
"operator": "In",
"values": ["MYDEVTESTRG"]
"values": [
"MYDEVTESTRG"
]
}
},
{
Expand All @@ -44,14 +46,18 @@
"dimension": {
"name": "Meter",
"operator": "In",
"values": ["00000000-0000-0000-0000-000000000000"]
"values": [
"00000000-0000-0000-0000-000000000000"
]
}
},
{
"tag": {
"name": "Dev",
"operator": "In",
"values": ["engineering"]
"values": [
"engineering"
]
}
}
]
Expand All @@ -65,8 +71,14 @@
"enabled": true,
"operator": "GreaterThan",
"threshold": 80,
"contactEmails": ["[email protected]", "[email protected]"],
"contactRoles": ["Contributor", "Reader"],
"contactEmails": [
"[email protected]",
"[email protected]"
],
"contactRoles": [
"Contributor",
"Reader"
],
"contactGroups": [
"/subscriptions/{subscription-id}/resourceGroups/MYDEVTESTRG/providers/microsoft.insights/actionGroups/SampleActionGroup"
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@
"dimension": {
"name": "ResourceGroupName",
"operator": "In",
"values": ["MYDEVTESTRG"]
"values": [
"MYDEVTESTRG"
]
}
},
{
Expand All @@ -45,14 +47,18 @@
"dimension": {
"name": "Meter",
"operator": "In",
"values": ["00000000-0000-0000-0000-000000000000"]
"values": [
"00000000-0000-0000-0000-000000000000"
]
}
},
{
"tag": {
"name": "Dev",
"operator": "In",
"values": ["engineering"]
"values": [
"engineering"
]
}
}
]
Expand All @@ -70,7 +76,10 @@
"[email protected]",
"[email protected]"
],
"contactRoles": ["Contributor", "Reader"]
"contactRoles": [
"Contributor",
"Reader"
]
},
"Actual_GreaterThanOrEqualTo_90_Percent": {
"enabled": true,
Expand All @@ -80,7 +89,10 @@
"[email protected]",
"[email protected]"
],
"contactRoles": ["Contributor", "Reader"],
"contactRoles": [
"Contributor",
"Reader"
],
"contactGroups": [
"/subscriptions/{subscription-id}/resourceGroups/MYDEVTESTRG/providers/microsoft.insights/actionGroups/SampleActionGroup"
]
Expand All @@ -107,7 +119,9 @@
"dimension": {
"name": "ResourceGroupName",
"operator": "In",
"values": ["MYDEVTESTRG"]
"values": [
"MYDEVTESTRG"
]
}
},
{
Expand All @@ -124,14 +138,18 @@
"dimension": {
"name": "Meter",
"operator": "In",
"values": ["00000000-0000-0000-0000-000000000000"]
"values": [
"00000000-0000-0000-0000-000000000000"
]
}
},
{
"tag": {
"name": "Dev",
"operator": "In",
"values": ["engineering"]
"values": [
"engineering"
]
}
}
]
Expand All @@ -149,7 +167,10 @@
"[email protected]",
"[email protected]"
],
"contactRoles": ["Contributor", "Reader"]
"contactRoles": [
"Contributor",
"Reader"
]
},
"Actual_GreaterThanOrEqualTo_60_Percent": {
"enabled": true,
Expand All @@ -159,7 +180,10 @@
"[email protected]",
"[email protected]"
],
"contactRoles": ["Contributor", "Reader"],
"contactRoles": [
"Contributor",
"Reader"
],
"contactGroups": [
"/subscriptions/{subscription-id}/resourceGroups/MYDEVTESTRG/providers/microsoft.insights/actionGroups/SampleActionGroup"
]
Expand Down
Loading

0 comments on commit 09d5bc0

Please sign in to comment.