Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
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
Next Next commit
Add cases aggregation endpoint to SecurityInsights RP swagger spec
  • Loading branch information
yaland committed Apr 1, 2019
commit f20f1d94a584bf55c225139c0991138b1c90420f
Original file line number Diff line number Diff line change
Expand Up @@ -1411,6 +1411,52 @@
}
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{operationalInsightsResourceProvider}/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/aggregations/{AggregationsName}": {
"get": {
"x-ms-examples": {
"Get aggregative data for all cases under the defined workspace, between the time range if specified.": {
"$ref": "./examples/aggregations/GetCasesAggregations.json"
}
},
"tags": [],
"description": "Get aggregative result for the given resources under the defined workspace",
"operationId": "CasesAggregations_Get",
"parameters": [
{
"$ref": "#/parameters/ApiVersion"
},
{
"$ref": "#/parameters/SubscriptionId"
},
{
"$ref": "#/parameters/ResourceGroupName"
},
{
"$ref": "#/parameters/OperationalInsightsResourceProvider"
},
{
"$ref": "#/parameters/WorkspaceName"
},
{
"$ref": "#/parameters/AggregationsName"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/Aggregations"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/CloudError"
}
}
}
}
}
},
"definitions": {
Expand Down Expand Up @@ -2797,6 +2843,36 @@
"description": "Determines whether the setting is enable or disabled."
}
}
},
"Aggregations": {
"type": "object",
"description": "The aggregation.",
"discriminator": "kind",
"allOf": [
{
"$ref": "#/definitions/Resource"
},
{
"$ref": "#/definitions/AggregationsKind"
}
]
},
"AggregationsKind": {
"type": "object",
"description": "Describes an Azure resource with kind.",
"properties": {
"kind": {
"type": "string",
"description": "The kind of the setting",
"enum": [
"CasesAggregation"
],
"x-ms-enum": {
"name": "AggregationsKind",
"modelAsString": true
}
}
}
}
},
"parameters": {
Expand Down Expand Up @@ -2970,6 +3046,14 @@
"$ref": "#/definitions/Settings"
},
"x-ms-parameter-location": "method"
},
"AggregationsName": {
"name": "aggregationsName",
"in": "path",
"required": true,
"type": "string",
"description": "The aggregation name. Supports - Cases",
"x-ms-parameter-location": "method"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"parameters": {
"api-version": "2019-01-01-preview",
"subscriptionId": "d0cfe6b2-9ac0-4464-9919-dccaee2e48c0",
"resourceGroupName": "myRg",
"workspaceName": "myWorkspace",
"operationalInsightsResourceProvider": "Microsoft.OperationalInsights",
"aggregationsName": "cases"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/aggregations/Cases",
"name": "Cases",
"type": "Microsoft.SecurityInsights/aggregations",
"kind": "CasesAggregation",
"properties": {
"aggregationBySeverity": {
"totalCriticalSeverity": 13,
"totalHighSeverity": 14,
"totalMediumSeverity": 4,
"totalLowSeverity": 15,
"totalInformationalSeverity": 26
},
"aggregationByStatus": {
"totalNewStatus": 42,
"totalInProgressStatus": 30,
"totalResolvedStatus": 2,
"totalDismissedStatus": 1
}
}
}
}
}
}