Skip to content
This repository was archived by the owner on May 5, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
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
13 changes: 12 additions & 1 deletion lib/services/securityManagement/lib/models/alert.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ class Alert extends models['Resource'] {
* incident
* @property {string} [actionTaken] The action that was taken as a response
* to the alert (Active, Blocked etc.)
* @property {string} [reportedSeverity] Estimated severity of this alert
* @property {string} [reportedSeverity] Estimated severity of this alert.
* Possible values include: 'Silent', 'Information', 'Low', 'High'
* @property {string} [compromisedEntity] The entity that the incident
* happened on
* @property {string} [associatedResource] Azure resource ID of the
Expand All @@ -45,6 +46,8 @@ class Alert extends models['Resource'] {
* Non-Azure)
* @property {boolean} [canBeInvestigated] Whether this alert can be
* investigated with Azure Security Center
* @property {boolean} [isIncident] Whether this alert is for incident type
* or not (otherwise - single alert)
* @property {array} [entities] objects that are related to this alerts
* @property {number} [confidenceScore] level of confidence we have on the
* alert
Expand Down Expand Up @@ -225,6 +228,14 @@ class Alert extends models['Resource'] {
name: 'Boolean'
}
},
isIncident: {
required: false,
readOnly: true,
serializedName: 'properties.isIncident',
type: {
name: 'Boolean'
}
},
entities: {
required: false,
serializedName: 'properties.entities',
Expand Down
7 changes: 6 additions & 1 deletion lib/services/securityManagement/lib/models/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,8 @@ export interface Alert extends Resource {
*/
readonly actionTaken?: string;
/**
* Estimated severity of this alert
* Estimated severity of this alert. Possible values include: 'Silent', 'Information', 'Low',
* 'High'
*/
readonly reportedSeverity?: string;
/**
Expand All @@ -441,6 +442,10 @@ export interface Alert extends Resource {
* Whether this alert can be investigated with Azure Security Center
*/
readonly canBeInvestigated?: boolean;
/**
* Whether this alert is for incident type or not (otherwise - single alert)
*/
readonly isIncident?: boolean;
/**
* objects that are related to this alerts
*/
Expand Down