createAlert()
Beta API. Mostly stable, but details may change in a minor release, outside SemVer. See API maturity.
Creates the SaveAlert command. Dispatching this command will result in the creating alert on the backend.
export declare function createAlert(alert: IAutomationMetadataObjectDefinition, correlationId?: string): ICreateAlert;
Parameters
Parameter | Type | Description |
|---|---|---|
alert | specify alert to create. | |
correlationId | string | (Optional) specify correlation id to use for this command. this will be included in all events that will be emitted during the command processing |
Returns