Skip to content

Commit

Permalink
chore: jsonfmt alertsmanagement (Azure#6596)
Browse files Browse the repository at this point in the history
  • Loading branch information
nschonni authored and celikcigdem committed Jul 17, 2019
1 parent 3177de7 commit 5b58cfd
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 49 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2357,8 +2357,8 @@
"type": "string",
"description": "Identification of the information to be retrieved by API call",
"enum": [
"MonitorServiceList"
],
"MonitorServiceList"
],
"x-ms-enum": {
"name": "metadataIdentifier",
"modelAsString": true
Expand Down Expand Up @@ -2404,4 +2404,4 @@
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@
"type": "string",
"description": "The resource location.",
"default": "global"
},
},
"tags": {
"type": "object",
"description": "The resource tags."
Expand Down Expand Up @@ -447,7 +447,7 @@
"$ref": "#/definitions/AlertRulePatchProperties",
"description": "The properties of the alert rule.",
"minProperties": 1
}
}
},
"description": "The alert rule patch information"
},
Expand Down Expand Up @@ -649,4 +649,4 @@
"x-ms-parameter-location": "method"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -1,48 +1,50 @@
{
"parameters": {
"subscriptionId": "b368ca2f-e298-46b7-b0ab-012281956afa",
"resourceGroupName": "MyAlertRules",
"alertRuleName": "MyAlertRule",
"api-version": "2019-06-01",
"parameters": {
"subscriptionId": "b368ca2f-e298-46b7-b0ab-012281956afa",
"resourceGroupName": "MyAlertRules",
"alertRuleName": "MyAlertRule",
"api-version": "2019-06-01",
"parameters": {
"tags": {"newKey": "newVal"},
"properties": {
"description": "New description for patching",
"frequency": "PT1M"
}
}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourceGroups/MyAlertRules/providers/microsoft.alertsManagement/smartDetectorAlertRules/MyAlertRule",
"type": "Microsoft.AlertsManagement/smartDetectorAlertRules",
"name": "MyAlertRule",
"location": "global",
"tags": {
"newKey": "newVal"
},
"properties": {
"description": "New description for patching",
"state": "Enabled",
"severity": "Sev3",
"frequency": "PT1M",
"detector": {
"id": "VMMemoryLeak"
},
"scope": [
"/subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourceGroups/MyVms/providers/Microsoft.Compute/virtualMachines/vm1"
],
"actionGroups": [
{
"actionGroupId": "/subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourcegroups/actionGroups/providers/microsoft.insights/actiongroups/MyActionGroup"
}
],
"throttling": {
"duration": "PT20M"
}
}
"tags": {
"newKey": "newVal"
},
"properties": {
"description": "New description for patching",
"frequency": "PT1M"
}
}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourceGroups/MyAlertRules/providers/microsoft.alertsManagement/smartDetectorAlertRules/MyAlertRule",
"type": "Microsoft.AlertsManagement/smartDetectorAlertRules",
"name": "MyAlertRule",
"location": "global",
"tags": {
"newKey": "newVal"
},
"properties": {
"description": "New description for patching",
"state": "Enabled",
"severity": "Sev3",
"frequency": "PT1M",
"detector": {
"id": "VMMemoryLeak"
},
"scope": [
"/subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourceGroups/MyVms/providers/Microsoft.Compute/virtualMachines/vm1"
],
"actionGroups": [
{
"actionGroupId": "/subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourcegroups/actionGroups/providers/microsoft.insights/actiongroups/MyActionGroup"
}
],
"throttling": {
"duration": "PT20M"
}
}
}
}
}
}
}

0 comments on commit 5b58cfd

Please sign in to comment.