The CreateAlert input includes various settings.

Table: CreateAlert

ParameterTypeRequiredDefaultStabilityDescription
Some arguments may be required, as indicated in the Required column. For some fields, this column indicates that a result will always be returned for this column.
Table last updated: Mar 28, 2025
actions[string]yes Long-TermList of unique identifiers of actions to execute on query result.
descriptionstringyes Long-TermDescription of the alert.
enabledbooleanyestrueLong-TermFlag indicating whether the alert is enabled.
labelsbooleanyes[ ]Long-TermLabels attached to the alert.
Namestringyes Long-TermName of the alert.
queryOwnershipTypeQueryOwnershipType UserLong-TermOwnership of the query run by this alert. If value is User, ownership will be based on the runAsUserId field. See QueryOwnershipType.
queryStartstringyes Long-TermStart of the relative time interval for the query.
queryStringstringyes Long-TermLogScale query to execute.
runAsUserIdstring  Long-TermThe alert will run with the permissions of the user corresponding to this ID if the queryOwnershipType field is set to User. If the queryOwnershipType is set to Organization, whilst runAsUserId is set, this will result in an error. If not specified, the alert 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.
throttleFieldstringyes Long-TermField on which to throttle.
throttleTimeMillisstringyes Long-TermThrottle time in milliseconds.
viewNamestringyes Long-TermName of the view of the alert.