Skip to content

Commit 39bffde

Browse files
committed
Fixed Analytics issues + CloudError from common
1 parent 526ce10 commit 39bffde

File tree

1 file changed

+45
-55
lines changed
  • specification/securityinsights/resource-manager/Microsoft.SecurityInsights/stable/2020-01-01

1 file changed

+45
-55
lines changed

specification/securityinsights/resource-manager/Microsoft.SecurityInsights/stable/2020-01-01/SecurityInsights.json

Lines changed: 45 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -1490,16 +1490,17 @@
14901490
"allOf": [
14911491
{
14921492
"$ref": "#/definitions/ResourceWithEtag"
1493-
},
1494-
{
1495-
"$ref": "#/definitions/AlertRuleKind"
14961493
}
14971494
],
14981495
"description": "Alert rule.",
14991496
"discriminator": "kind",
15001497
"required": [
15011498
"kind"
15021499
],
1500+
"properties": {
1501+
"$ref": "#/definitions/AlertRuleKind",
1502+
"description": "The Kind of the alert rule"
1503+
},
15031504
"type": "object"
15041505
},
15051506
"AlertRuleKind": {
@@ -1539,16 +1540,17 @@
15391540
"allOf": [
15401541
{
15411542
"$ref": "#/definitions/Resource"
1542-
},
1543-
{
1544-
"$ref": "#/definitions/AlertRuleKind"
15451543
}
15461544
],
15471545
"description": "Alert rule template.",
15481546
"discriminator": "kind",
15491547
"required": [
15501548
"kind"
15511549
],
1550+
"properties": {
1551+
"$ref": "#/definitions/AlertRuleKind",
1552+
"description": "The Kind of the alert rule"
1553+
},
15521554
"type": "object"
15531555
},
15541556
"AlertRuleTemplateDataSource": {
@@ -1913,33 +1915,13 @@
19131915
"type": "object"
19141916
},
19151917
"CloudError": {
1916-
"description": "Error response structure.",
1918+
"x-ms-external": true,
19171919
"properties": {
19181920
"error": {
1919-
"$ref": "#/definitions/CloudErrorBody",
1920-
"description": "Error data",
1921-
"x-ms-client-flatten": true
1922-
}
1923-
},
1924-
"type": "object",
1925-
"x-ms-external": true
1926-
},
1927-
"CloudErrorBody": {
1928-
"description": "Error details.",
1929-
"properties": {
1930-
"code": {
1931-
"description": "An identifier for the error. Codes are invariant and are intended to be consumed programmatically.",
1932-
"readOnly": true,
1933-
"type": "string"
1934-
},
1935-
"message": {
1936-
"description": "A message describing the error, intended to be suitable for display in a user interface.",
1937-
"readOnly": true,
1938-
"type": "string"
1921+
"$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse"
19391922
}
19401923
},
1941-
"type": "object",
1942-
"x-ms-external": true
1924+
"description": "An error response for a resource management request."
19431925
},
19441926
"DataConnector": {
19451927
"allOf": [
@@ -2138,25 +2120,8 @@
21382120
"description": "Represents Fusion alert rule template.",
21392121
"properties": {
21402122
"properties": {
2141-
"allOf": [
2142-
{
2143-
"$ref": "#/definitions/AlertRuleTemplatePropertiesBase"
2144-
}
2145-
],
2123+
"$ref": "#/definitions/FusionAlertRuleTemplateProperties",
21462124
"description": "Fusion alert rule template properties",
2147-
"properties": {
2148-
"severity": {
2149-
"$ref": "#/definitions/AlertSeverity",
2150-
"description": "The severity for alerts created by this alert rule."
2151-
},
2152-
"tactics": {
2153-
"description": "The tactics of the alert rule template",
2154-
"items": {
2155-
"$ref": "#/definitions/AttackTactic"
2156-
},
2157-
"type": "array"
2158-
}
2159-
},
21602125
"required": [
21612126
"displayName",
21622127
"description",
@@ -2170,6 +2135,26 @@
21702135
"type": "object",
21712136
"x-ms-discriminator-value": "Fusion"
21722137
},
2138+
"FusionAlertRuleTemplateProperties": {
2139+
"allOf": [
2140+
{
2141+
"$ref": "#/definitions/AlertRuleTemplatePropertiesBase"
2142+
}
2143+
],
2144+
"properties": {
2145+
"severity": {
2146+
"$ref": "#/definitions/AlertSeverity",
2147+
"description": "The severity for alerts created by this alert rule."
2148+
},
2149+
"tactics": {
2150+
"description": "The tactics of the alert rule template",
2151+
"items": {
2152+
"$ref": "#/definitions/AttackTactic"
2153+
},
2154+
"type": "array"
2155+
}
2156+
},
2157+
},
21732158
"Incident": {
21742159
"allOf": [
21752160
{
@@ -2763,14 +2748,7 @@
27632748
"description": "Represents MicrosoftSecurityIncidentCreation rule template.",
27642749
"properties": {
27652750
"properties": {
2766-
"allOf": [
2767-
{
2768-
"$ref": "#/definitions/AlertRuleTemplatePropertiesBase"
2769-
},
2770-
{
2771-
"$ref": "#/definitions/MicrosoftSecurityIncidentCreationAlertRuleCommonProperties"
2772-
}
2773-
],
2751+
"$ref": "#/definitions/MicrosoftSecurityIncidentCreationAlertRuleTemplateProperties",
27742752
"description": "MicrosoftSecurityIncidentCreation rule template properties",
27752753
"required": [
27762754
"displayName",
@@ -2786,6 +2764,18 @@
27862764
"type": "object",
27872765
"x-ms-discriminator-value": "MicrosoftSecurityIncidentCreation"
27882766
},
2767+
"MicrosoftSecurityIncidentCreationAlertRuleTemplateProperties": {
2768+
"allOf": [
2769+
{
2770+
"$ref": "#/definitions/AlertRuleTemplatePropertiesBase"
2771+
}
2772+
],
2773+
"properties": {
2774+
"$ref": "#/definitions/MicrosoftSecurityIncidentCreationAlertRuleCommonProperties",
2775+
"description": "MicrosoftSecurityIncidentCreation rule template common properties"
2776+
},
2777+
"description": "MicrosoftSecurityIncidentCreation rule template properties"
2778+
}
27892779
"OfficeConsent": {
27902780
"allOf": [
27912781
{

0 commit comments

Comments
 (0)