Skip to content

Commit c127a1d

Browse files
anat-gilensonAnat Gilenson
andauthored
Microsoft.security insights 2021 09 01 preview add missing resources (#15531)
* Copy missing resources specs and examples from 2019-01-01-preview * Update added resources specs and examples and extract common types * Update readme * Extract ClientInfo, UserInfo and Lable to common types * Fix SpellCheck and Avocado * Return ThreatIntelligence to readme * Fix broken refs in Watchlists * Resolve duplicate schema errors * Run prettier * Make common types prettier * Add required property to operations according to ARM requirments * Fix readme * Add file separators to readme * Rename example file * Supress OBJECT_ADDITIONAL_PROPERTIES * Add 'where' to OBJECT_ADDITIONAL_PROPERTIES supression * Move OBJECT_ADDITIONAL_PROPERTIES supression under general Supression section. * Copy dataConnectors from 2021-03-01-preview * Update version of dataConnectors (this was done as there were errors when trying to generate C# client. Copying and changing version again fixed the problem). * Add dataConnectorsCheckRequirments path, parameters and definitions from 2019-01-01-preveiw Co-authored-by: Anat Gilenson <[email protected]>
1 parent fc99fe7 commit c127a1d

File tree

95 files changed

+12039
-3362
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

95 files changed

+12039
-3362
lines changed

specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/AlertRules.json

Lines changed: 16 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -804,61 +804,6 @@
804804
"value"
805805
]
806806
},
807-
"AlertSeverity": {
808-
"description": "The severity of the alert",
809-
"enum": [
810-
"High",
811-
"Medium",
812-
"Low",
813-
"Informational"
814-
],
815-
"type": "string",
816-
"x-ms-enum": {
817-
"modelAsString": true,
818-
"name": "AlertSeverity",
819-
"values": [
820-
{
821-
"description": "High severity",
822-
"value": "High"
823-
},
824-
{
825-
"description": "Medium severity",
826-
"value": "Medium"
827-
},
828-
{
829-
"description": "Low severity",
830-
"value": "Low"
831-
},
832-
{
833-
"description": "Informational severity",
834-
"value": "Informational"
835-
}
836-
]
837-
}
838-
},
839-
"AttackTactic": {
840-
"description": "The severity for alerts created by this alert rule.",
841-
"enum": [
842-
"InitialAccess",
843-
"Execution",
844-
"Persistence",
845-
"PrivilegeEscalation",
846-
"DefenseEvasion",
847-
"CredentialAccess",
848-
"Discovery",
849-
"LateralMovement",
850-
"Collection",
851-
"Exfiltration",
852-
"CommandAndControl",
853-
"Impact",
854-
"PreAttack"
855-
],
856-
"type": "string",
857-
"x-ms-enum": {
858-
"modelAsString": true,
859-
"name": "AttackTactic"
860-
}
861-
},
862807
"MLBehaviorAnalyticsAlertRule": {
863808
"allOf": [
864809
{
@@ -904,14 +849,14 @@
904849
"type": "string"
905850
},
906851
"severity": {
907-
"$ref": "#/definitions/AlertSeverity",
852+
"$ref": "./common/AlertTypes.json#/definitions/AlertSeverityEnum",
908853
"description": "The severity for alerts created by this alert rule.",
909854
"readOnly": true
910855
},
911856
"tactics": {
912857
"description": "The tactics of the alert rule",
913858
"items": {
914-
"$ref": "#/definitions/AttackTactic"
859+
"$ref": "./common/AlertTypes.json#/definitions/AttackTactic"
915860
},
916861
"readOnly": true,
917862
"type": "array"
@@ -940,13 +885,13 @@
940885
"description": "MLBehaviorAnalytics alert rule template properties.",
941886
"properties": {
942887
"severity": {
943-
"$ref": "#/definitions/AlertSeverity",
888+
"$ref": "./common/AlertTypes.json#/definitions/AlertSeverityEnum",
944889
"description": "The severity for alerts created by this alert rule."
945890
},
946891
"tactics": {
947892
"description": "The tactics of the alert rule template.",
948893
"items": {
949-
"$ref": "#/definitions/AttackTactic"
894+
"$ref": "./common/AlertTypes.json#/definitions/AttackTactic"
950895
},
951896
"type": "array"
952897
}
@@ -1010,14 +955,14 @@
1010955
"type": "string"
1011956
},
1012957
"severity": {
1013-
"$ref": "#/definitions/AlertSeverity",
958+
"$ref": "./common/AlertTypes.json#/definitions/AlertSeverityEnum",
1014959
"description": "The severity for alerts created by this alert rule.",
1015960
"readOnly": true
1016961
},
1017962
"tactics": {
1018963
"description": "The tactics of the alert rule",
1019964
"items": {
1020-
"$ref": "#/definitions/AttackTactic"
965+
"$ref": "./common/AlertTypes.json#/definitions/AttackTactic"
1021966
},
1022967
"readOnly": true,
1023968
"type": "array"
@@ -1046,13 +991,13 @@
1046991
"description": "Fusion alert rule template properties",
1047992
"properties": {
1048993
"severity": {
1049-
"$ref": "#/definitions/AlertSeverity",
994+
"$ref": "./common/AlertTypes.json#/definitions/AlertSeverityEnum",
1050995
"description": "The severity for alerts created by this alert rule."
1051996
},
1052997
"tactics": {
1053998
"description": "The tactics of the alert rule template",
1054999
"items": {
1055-
"$ref": "#/definitions/AttackTactic"
1000+
"$ref": "./common/AlertTypes.json#/definitions/AttackTactic"
10561001
},
10571002
"type": "array"
10581003
}
@@ -1116,14 +1061,14 @@
11161061
"type": "string"
11171062
},
11181063
"severity": {
1119-
"$ref": "#/definitions/AlertSeverity",
1064+
"$ref": "./common/AlertTypes.json#/definitions/AlertSeverityEnum",
11201065
"description": "The severity for alerts created by this alert rule.",
11211066
"readOnly": true
11221067
},
11231068
"tactics": {
11241069
"description": "The tactics of the alert rule",
11251070
"items": {
1126-
"$ref": "#/definitions/AttackTactic"
1071+
"$ref": "./common/AlertTypes.json#/definitions/AttackTactic"
11271072
},
11281073
"readOnly": true,
11291074
"type": "array"
@@ -1152,13 +1097,13 @@
11521097
"description": "Threat Intelligence alert rule template properties",
11531098
"properties": {
11541099
"severity": {
1155-
"$ref": "#/definitions/AlertSeverity",
1100+
"$ref": "./common/AlertTypes.json#/definitions/AlertSeverityEnum",
11561101
"description": "The severity for alerts created by this alert rule."
11571102
},
11581103
"tactics": {
11591104
"description": "The tactics of the alert rule template",
11601105
"items": {
1161-
"$ref": "#/definitions/AttackTactic"
1106+
"$ref": "./common/AlertTypes.json#/definitions/AttackTactic"
11621107
},
11631108
"type": "array"
11641109
}
@@ -1231,7 +1176,7 @@
12311176
"severitiesFilter": {
12321177
"description": "the alerts' severities on which the cases will be generated",
12331178
"items": {
1234-
"$ref": "#/definitions/AlertSeverity"
1179+
"$ref": "./common/AlertTypes.json#/definitions/AlertSeverityEnum"
12351180
},
12361181
"type": "array"
12371182
}
@@ -1353,7 +1298,7 @@
13531298
"tactics": {
13541299
"description": "The tactics of the alert rule",
13551300
"items": {
1356-
"$ref": "#/definitions/AttackTactic"
1301+
"$ref": "./common/AlertTypes.json#/definitions/AttackTactic"
13571302
},
13581303
"type": "array"
13591304
},
@@ -1398,7 +1343,7 @@
13981343
"tactics": {
13991344
"description": "The tactics of the alert rule template",
14001345
"items": {
1401-
"$ref": "#/definitions/AttackTactic"
1346+
"$ref": "./common/AlertTypes.json#/definitions/AttackTactic"
14021347
},
14031348
"type": "array"
14041349
}
@@ -1478,7 +1423,7 @@
14781423
"type": "string"
14791424
},
14801425
"severity": {
1481-
"$ref": "#/definitions/AlertSeverity",
1426+
"$ref": "./common/AlertTypes.json#/definitions/AlertSeverityEnum",
14821427
"description": "The severity for alerts created by this alert rule."
14831428
},
14841429
"triggerOperator": {

0 commit comments

Comments
 (0)