Skip to main content

alerts

Creates, updates, deletes, gets or lists an alerts resource.

Overview

Namealerts
TypeResource
Idgoogle.threatintelligence.alerts

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringIdentifier. Server generated name for the alert. format is projects/{project}/alerts/{alert}
aiSummarystringOptional. AI summary of the alert.
auditobjectOutput only. Audit information for the alert. (id: Audit)
configurationsarrayOutput only. The resource names of the Configurations bound to this alert. Format: projects/{project}/configurations/{configuration}
detailobjectOutput only. Details object for the alert, not all alerts will have a details object. (id: AlertDetail)
displayNamestringOutput only. A short title for the alert.
duplicateOfstringOutput only. alert name of the alert this alert is a duplicate of. Format: projects/{project}/alerts/{alert}
duplicatedByarrayOutput only. alert names of the alerts that are duplicates of this alert. Format: projects/{project}/alerts/{alert}
etagstringOptional. If included when updating an alert, this should be set to the current etag of the alert. If the etags do not match, the update will be rejected and an ABORTED error will be returned.
externalIdstringOutput only. External ID for the alert. This is used internally to provide protection against out of order updates.
findingCountstring (int64)Output only. The number of findings associated with this alert.
findingsarrayOutput only. Findings that are covered by this alert.
priorityAnalysisobjectOutput only. High-Precision Priority Analysis for the alert. (id: PriorityAnalysis)
relevanceAnalysisobjectOutput only. High-Precision Relevance Analysis verdict for the alert. (id: RelevanceAnalysis)
severityAnalysisobjectOutput only. High-Precision Severity Analysis for the alert. (id: SeverityAnalysis)
statestringOutput only. State of the alert. (STATE_UNSPECIFIED, NEW, READ, TRIAGED, ESCALATED, RESOLVED, DUPLICATE, FALSE_POSITIVE, NOT_ACTIONABLE, BENIGN, TRACKED_EXTERNALLY)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, alertsIdGet an alert by name.
listselectprojectsIdfilter, pageToken, pageSize, orderByGet a list of alerts that meet the filter criteria.
enumerate_facetsexecprojectsIdfilterEnumerateAlertFacets returns the facets and the number of alerts that meet the filter criteria and have that value for each facet.
resolveexecprojectsId, alertsIdMarks an alert to closed state - RESOLVED.
benignexecprojectsId, alertsIdMarks an alert as benign - BENIGN.
escalateexecprojectsId, alertsIdMarks an alert as escalated - ESCALATED.
not_actionableexecprojectsId, alertsIdMarks an alert as not actionable - NOT_ACTIONABLE.
false_positiveexecprojectsId, alertsIdMarks an alert as a false positive - FALSE_POSITIVE.
duplicateexecprojectsId, alertsIdMarks an alert as a duplicate of another alert. - DUPLICATE.
triageexecprojectsId, alertsIdMarks an alert as triaged - TRIAGED.
track_externallyexecprojectsId, alertsIdMarks an alert as tracked externally - TRACKED_EXTERNALLY.
readexecprojectsId, alertsIdMarks an alert as read - READ.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
alertsIdstring
projectsIdstring
filterstring
orderBystring
pageSizeinteger (int32)
pageTokenstring

SELECT examples

Get an alert by name.

SELECT
name,
aiSummary,
audit,
configurations,
detail,
displayName,
duplicateOf,
duplicatedBy,
etag,
externalId,
findingCount,
findings,
priorityAnalysis,
relevanceAnalysis,
severityAnalysis,
state
FROM google.threatintelligence.alerts
WHERE projectsId = '{{ projectsId }}' -- required
AND alertsId = '{{ alertsId }}' -- required
;

Lifecycle Methods

EnumerateAlertFacets returns the facets and the number of alerts that meet the filter criteria and have that value for each facet.

EXEC google.threatintelligence.alerts.enumerate_facets
@projectsId='{{ projectsId }}' --required,
@filter='{{ filter }}'
;