Skip to main content

alerts

Overview

Namealerts
TypeResource
Idgoogleworkspace.alertcenter.alerts

Fields

NameDatatypeDescription
customerIdstringOutput only. The unique identifier of the Google account of the customer.
updateTimestringOutput only. The time this alert was last updated.
securityInvestigationToolLinkstringOutput only. An optional Security Investigation Tool query for this alert.
typestringRequired. The type of the alert. This is output only after alert is created. For a list of available alert types see Google Workspace Alert types.
endTimestringOptional. The time the event that caused this alert ceased being active. If provided, the end time must not be earlier than the start time. If not provided, it indicates an ongoing alert.
sourcestringRequired. A unique identifier for the system that reported the alert. This is output only after alert is created. Supported sources are any of the following: Google Operations Mobile device management Gmail phishing Data Loss Prevention Domain wide takeout State sponsored attack Google identity Apps outage
metadataobjectAn alert metadata.
dataobjectOptional. The data associated with this alert, for example google.apps.alertcenter.type.DeviceCompromised.
alertIdstringOutput only. The unique identifier for the alert.
startTimestringRequired. The time the event that caused this alert was started or detected.
createTimestringOutput only. The time this alert was created.
deletedbooleanOutput only. True if this alert is marked for deletion.
etagstringOptional. etag is used for optimistic concurrency control as a way to help prevent simultaneous updates of an alert from overwriting each other. It is strongly suggested that systems make use of the etag in the read-modify-write cycle to perform alert updates in order to avoid race conditions: An etag is returned in the response which contains alerts, and systems are expected to put that etag in the request to update alert to ensure that their change will be applied to the same version of the alert. If no etag is provided in the call to update alert, then the existing alert is overwritten blindly.

Methods

NameAccessible byRequired ParamsDescription
getSELECTalertIdGets the specified alert. Attempting to get a nonexistent alert returns NOT_FOUND error.
listSELECTLists the alerts.
deleteDELETEalertIdMarks the specified alert for deletion. An alert that has been marked for deletion is removed from Alert Center after 30 days. Marking an alert for deletion has no effect on an alert which has already been marked for deletion. Attempting to mark a nonexistent alert for deletion results in a NOT_FOUND error.
batchDeleteEXECPerforms batch delete operation on alerts.
batchUndeleteEXECPerforms batch undelete operation on alerts.
undeleteEXECalertIdRestores, or "undeletes", an alert that was marked for deletion within the past 30 days. Attempting to undelete an alert which was marked for deletion over 30 days ago (which has been removed from the Alert Center database) or a nonexistent alert returns a NOT_FOUND error. Attempting to undelete an alert which has not been marked for deletion has no effect.