// (C) 2020-2026 GoodData Corporation
/**
 * Creates the SaveAlert command. Dispatching this command will result in the creating alert on the backend.
 *
 * @param alert - specify alert to create.
 * @param correlationId - specify correlation id to use for this command. this will be included in all
 *  events that will be emitted during the command processing
 * @beta
 */
export function createAlert(alert, correlationId) {
    return {
        type: "GDC.DASH/CMD.ALERT.CREATE",
        correlationId,
        payload: {
            alert,
        },
    };
}
/**
 * Creates the SaveAlert command. Dispatching this command will result in the saving alert on the backend.
 *
 * @param alert - specify alert to save.
 * @param correlationId - specify correlation id to use for this command. this will be included in all
 *  events that will be emitted during the command processing

 * @beta
 */
export function saveAlert(alert, correlationId) {
    return {
        type: "GDC.DASH/CMD.ALERT.SAVE",
        correlationId,
        payload: {
            alert,
        },
    };
}
