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] Public private branch 'dev-alertsmanagement-Microsoft.AlertsManagement-2021-02-01-preview' #15899

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
c901a91
Adds base for updating Microsoft.AlertsManagement from version previe…
inballeibovitch Feb 10, 2021
2c16ee6
Updates readme
inballeibovitch Feb 10, 2021
c820f24
Updates API version in new specs and examples
inballeibovitch Feb 10, 2021
01d2091
update action rule schema to new api
inballeibovitch Feb 11, 2021
b06f284
fix linter issues
inballeibovitch Feb 11, 2021
9178a5a
add alertsmanagement.json
inballeibovitch Feb 11, 2021
82eb306
fix api version
inballeibovitch Feb 11, 2021
3aadc38
fix description in targetResource
inballeibovitch Feb 11, 2021
1f07e2c
match description
inballeibovitch Feb 11, 2021
68a9ff5
match severity description
inballeibovitch Feb 11, 2021
6e1bdf3
use systemdata type
inballeibovitch Feb 11, 2021
5c227d2
run prettier-fix
inballeibovitch Feb 11, 2021
b5da629
change alertsmanagement to latest version
inballeibovitch Feb 11, 2021
7fa0b4b
add integer format
inballeibovitch Feb 11, 2021
2c93b49
add x-ms-discriminator-value
inballeibovitch Feb 14, 2021
ad53cba
remove summary
inballeibovitch Feb 18, 2021
582d4f2
make action polymorphic
inballeibovitch Feb 21, 2021
e8317f9
update readme
inballeibovitch Feb 24, 2021
5b7976c
Merge branch 'master' into dev-alertsmanagement-Microsoft.AlertsManag…
inballeibovitch Feb 24, 2021
1e055b7
prettier fix
inballeibovitch Feb 24, 2021
f7269c4
Merge branch 'dev-alertsmanagement-Microsoft.AlertsManagement-2021-02…
inballeibovitch Feb 24, 2021
83e24a1
remove space
inballeibovitch Feb 25, 2021
e6fdd0f
Merge branch 'master' of https://github.com/Azure/azure-rest-api-spec…
inballeibovitch Feb 25, 2021
a0b6e94
add examples
inballeibovitch Mar 7, 2021
fda186d
prettier fix
inballeibovitch Mar 7, 2021
755aa43
fix validation errors
inballeibovitch Mar 7, 2021
b9e8b8d
fix validation errors
inballeibovitch Mar 7, 2021
440211c
change file name
inballeibovitch Mar 8, 2021
d9e8823
update monitor service names
inballeibovitch Apr 5, 2021
7708b15
fix PR comments
inballeibovitch Apr 11, 2021
64b7b3c
fix description
inballeibovitch Apr 11, 2021
928b6c5
change actions to array
inballeibovitch Apr 18, 2021
1bd7d4f
fix prettify issue
inballeibovitch Apr 18, 2021
9d4ac01
fix lintDiff errors
inballeibovitch Apr 18, 2021
d579ddd
rename schedulingConfig to schedule
inballeibovitch Apr 25, 2021
68b0093
Merge branch 'master' into dev-alertsmanagement-Microsoft.AlertsManag…
inballeibovitch May 5, 2021
deb5b04
fix response codes for put and delete
inballeibovitch May 13, 2021
748a515
fix prettier
inballeibovitch May 19, 2021
6441cbf
remove query params
inballeibovitch May 30, 2021
979457c
add enabled default value
inballeibovitch Jun 30, 2021
c938d8f
rename api version and add severity to conditions
inballeibovitch Aug 17, 2021
9eded31
fix condition enum and remove Z from time in examples
inballeibovitch Aug 19, 2021
d9a644e
update conditions, schedule pattern and descriptions
inballeibovitch Aug 22, 2021
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

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
{
"swagger": "2.0",
"info": {
"version": "2021-08-08-preview",
"title": "Azure Alerts Management Service Resource Provider",
"description": "Azure Alerts Management Service provides a single pane of glass of alerts across Azure Monitor."
},
"host": "management.azure.com",
"schemes": [
"https"
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"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"
}
}
},
"paths": {
"/providers/Microsoft.AlertsManagement/operations": {
"get": {
"operationId": "Operations_List",
"description": "List all operations available through Azure Alerts Management Resource Provider.",
"parameters": [
{
"$ref": "#/parameters/ApiVersionParameter"
}
],
"produces": [
"application/json"
],
"responses": {
"200": {
"description": "OK. Successfully retrieved operations list.",
"schema": {
"$ref": "#/definitions/operationsList"
}
}
},
"x-ms-pageable": {
"nextLinkName": "nextLink"
}
}
}
},
"definitions": {
"operation": {
"description": "Operation provided by provider",
"properties": {
"name": {
"type": "string",
"description": "Name of the operation"
},
"display": {
"type": "object",
"description": "Properties of the operation",
"properties": {
"provider": {
"type": "string",
"description": "Provider name"
},
"resource": {
"type": "string",
"description": "Resource name"
},
"operation": {
"type": "string",
"description": "Operation name"
},
"description": {
"type": "string",
"description": "Description of the operation"
}
}
}
}
},
"operationsList": {
"description": "Lists the operations available in the AlertsManagement RP.",
"properties": {
"nextLink": {
"description": "URL to fetch the next set of operations.",
"type": "string"
},
"value": {
"description": "Array of operations",
"type": "array",
"items": {
"$ref": "#/definitions/operation"
}
}
},
"required": [
"value"
]
}
},
"parameters": {
"ApiVersionParameter": {
"name": "api-version",
"in": "query",
"required": true,
"type": "string",
"description": "Client Api Version."
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
{
"parameters": {
"api-version": "2021-08-08-preview",
"subscriptionId": "subId1",
"resourceGroupName": "alertscorrelationrg",
"actionRuleName": "AddActionGroupToSubscription",
"actionRule": {
"location": "Global",
"tags": {},
"properties": {
"scopes": [
"/subscriptions/subId1"
],
"actions": [
{
"actionType": "AddActionGroups",
"actionGroupIds": [
"/subscriptions/subId1/resourcegroups/RGId1/providers/microsoft.insights/actiongroups/ActionGroup1"
]
}
],
"description": "Add ActionGroup1 to all alerts in the subscription",
"enabled": true
}
}
},
"responses": {
"200": {
"body": {
"systemData": {
"createdBy": "[email protected]",
"createdByType": "User",
"createdAt": "2021-02-12T22:05:09Z",
"lastModifiedBy": "[email protected]",
"lastModifiedByType": "User",
"lastModifiedAt": "2021-02-13T16:15:34Z"
},
"properties": {
"scopes": [
"/subscriptions/subId1"
],
"actions": [
{
"actionType": "AddActionGroups",
"actionGroupIds": [
"/subscriptions/subId1/resourcegroups/RGId1/providers/microsoft.insights/actiongroups/ActionGroup1"
]
}
],
"description": "Add ActionGroup1 to all alerts in the subscription",
"enabled": true
},
"id": "/subscriptions/subId1/resourceGroups/alertscorrelationrg/providers/Microsoft.AlertsManagement/actionRules/AddActionGroupToSubscription",
"type": "Microsoft.AlertsManagement/actionRules",
"name": "AddActionGroupToSubscription",
"location": "Global",
"tags": {}
}
},
"201": {
"body": {
"systemData": {
"createdBy": "[email protected]",
"createdByType": "User",
"createdAt": "2021-02-12T22:05:09Z",
"lastModifiedBy": "[email protected]",
"lastModifiedByType": "User",
"lastModifiedAt": "2021-02-13T16:15:34Z"
},
"properties": {
"scopes": [
"/subscriptions/subId1"
],
"actions": [
{
"actionType": "AddActionGroups",
"actionGroupIds": [
"/subscriptions/subId1/resourcegroups/RGId1/providers/microsoft.insights/actiongroups/ActionGroup1"
]
}
],
"description": "Add ActionGroup1 to all alerts in the subscription",
"enabled": true
},
"id": "/subscriptions/subId1/resourceGroups/alertscorrelationrg/providers/Microsoft.AlertsManagement/actionRules/AddActionGroupToSubscription",
"type": "Microsoft.AlertsManagement/actionRules",
"name": "AddActionGroupToSubscription",
"location": "Global",
"tags": {}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,129 @@
{
"parameters": {
"api-version": "2021-08-08-preview",
"subscriptionId": "subId1",
"resourceGroupName": "alertscorrelationrg",
"actionRuleName": "AddActionGroupsBySeverity",
"actionRule": {
"location": "Global",
"tags": {},
"properties": {
"scopes": [
"/subscriptions/subId1/resourceGroups/RGId1",
"/subscriptions/subId1/resourceGroups/RGId2"
],
"conditions": [
{
"field": "Severity",
"operator": "Equals",
"values": [
"sev0",
"sev1"
]
}
],
"actions": [
{
"actionType": "AddActionGroups",
"actionGroupIds": [
"/subscriptions/subId1/resourcegroups/RGId1/providers/microsoft.insights/actiongroups/AGId1",
"/subscriptions/subId1/resourcegroups/RGId1/providers/microsoft.insights/actiongroups/AGId2"
]
}
],
"description": "Add AGId1 and AGId2 to all Sev0 and Sev1 alerts in these resourceGroups",
"enabled": true
}
}
},
"responses": {
"200": {
"body": {
"systemData": {
"createdBy": "[email protected]",
"createdByType": "User",
"createdAt": "2018-06-12T22:05:09Z",
"lastModifiedBy": "[email protected]",
"lastModifiedByType": "User",
"lastModifiedAt": "2018-06-13T22:05:09Z"
},
"properties": {
"scopes": [
"/subscriptions/subId1/resourceGroups/RGId1",
"/subscriptions/subId1/resourceGroups/RGId2"
],
"conditions": [
{
"field": "Severity",
"operator": "Equals",
"values": [
"sev0",
"sev1"
]
}
],
"actions": [
{
"actionType": "AddActionGroups",
"actionGroupIds": [
"/subscriptions/subId1/resourcegroups/RGId1/providers/microsoft.insights/actiongroups/AGId1",
"/subscriptions/subId1/resourcegroups/RGId1/providers/microsoft.insights/actiongroups/AGId2"
]
}
],
"description": "Add AGId1 and AGId2 to all Sev0 and Sev1 alerts in these resourceGroups",
"enabled": true
},
"id": "/subscriptions/subId1/resourceGroups/alertscorrelationrg/providers/Microsoft.AlertsManagement/actionRules/AddActionGroupsBySeverity",
"type": "Microsoft.AlertsManagement/actionRules",
"name": "AddActionGroupsBySeverity",
"location": "Global",
"tags": {}
}
},
"201": {
"body": {
"systemData": {
"createdBy": "[email protected]",
"createdByType": "User",
"createdAt": "2018-06-12T22:05:09Z",
"lastModifiedBy": "[email protected]",
"lastModifiedByType": "User",
"lastModifiedAt": "2018-06-13T22:05:09Z"
},
"properties": {
"scopes": [
"/subscriptions/subId1/resourceGroups/RGId1",
"/subscriptions/subId1/resourceGroups/RGId2"
],
"conditions": [
{
"field": "Severity",
"operator": "Equals",
"values": [
"sev0",
"sev1"
]
}
],
"actions": [
{
"actionType": "AddActionGroups",
"actionGroupIds": [
"/subscriptions/subId1/resourcegroups/RGId1/providers/microsoft.insights/actiongroups/AGId1",
"/subscriptions/subId1/resourcegroups/RGId1/providers/microsoft.insights/actiongroups/AGId2"
]
}
],
"description": "Add AGId1 and AGId2 to all Sev0 and Sev1 alerts in these resourceGroups",
"enabled": true
},
"id": "/subscriptions/subId1/resourceGroups/alertscorrelationrg/providers/Microsoft.AlertsManagement/actionRules/AddActionGroupsBySeverity",
"type": "Microsoft.AlertsManagement/actionRules",
"name": "AddActionGroupsBySeverity",
"location": "Global",
"tags": {}
}
}
}
}
Loading