CreateAlert is an input datatype for creating an alert. It's used by the createAlert() mutation field.

Table: CreateAlert

ParameterTypeRequiredDefaultStabilityAvailabilityDescription
actionsStringyes   List of ids or names for actions to fire on query result. At most 10 actions can be added. Actions in packages can be referred to as \"packagescope/packagename:actionname\".
descriptionString    Description of the alert.
enabledBoolean    Flag indicating whether the alert is enabled.
labelsStringyes   Labels attached to the alert.
nameStringyes   Name of the alert.
queryOwnershipTypeQueryOwnershipType    Ownership of the query run by this alert. If value is User, ownership will be based on the 'runAsUserId' field.
queryStartStringyes   Start of the relative time interval for the query.
queryStringStringyes   LogScale query to execute.
runAsUserIdString    The alert will run with the permissions of the user corresponding to this id if 'queryOwnershipType' is set to User. If 'queryOwnershipType' is set to Organization, whilst 'runAsUserId' is set, this will result in an error. If not specified, the scheduled search will run with the permissions of the calling user. It requires the 'ChangeTriggersToRunAsOtherUsers' permission to set this field to a user id different from the calling user.
throttleFieldString    Field to throttle on.
throttleTimeMillisLongyes   Throttle time in milliseconds.
viewNameStringyes   Name of the view of the legacy alert.