CreateAggregateAlert is an input datatype for creating an aggregate alert. It's used by the createAggregateAlert() mutation field.

Table: CreateAggregateAlert

ParameterTypeRequiredDefaultStabilityAvailabilityDescription
actionIdsOrNamesStringyes   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 aggregate alert.
enabledBoolean    Flag indicating whether the aggregate alert is enabled.
labelsStringyes   Labels attached to the aggregate alert.
nameStringyes   Name of the aggregate alert.
queryOwnershipTypeQueryOwnershipTypeyes   Ownership of the query run by this aggregate alert. If value is User, ownership will be based on the 'runAsUserId' field.
queryStringStringyes   LogScale query to execute.
queryTimestampTypeQueryTimestampTypeyes   Timestamp type to use for a query.
runAsUserIdString    The aggregate 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.
searchIntervalSecondsLongyes   Search interval in seconds. Valid values are: 1-80 minutes in seconds divisible by 60 (60, 120, ..., 4800 seconds), 82-180 minutes in seconds divisible by 120 (4920, 5040, ..., 10800 seconds) and 4-24 hours in seconds divisible by 3600 (14400, 18000, ..., 86400 seconds).
throttleFieldString   deprecated in 1.282A field to throttle on. Can only be set if throttleTimeSeconds is set.
throttleFieldsStringyes   Fields to throttle on. Can only be set if throttleTimeSeconds is set. At most 10 throttle fields can be added.
throttleTimeSecondsLongyes   Throttle time in seconds.
triggerModeTriggerMode    Trigger mode used for triggering the alert.
viewNameRepoOrViewNameyes   Name of the view of the aggregate alert.