Edit

Share via


Set alerts on streams in Real-Time hub

This article describes how to set alerts on streams in Real-Time hub.

  1. Sign in to Microsoft Fabric.

  2. If you see Power BI at the bottom-left of the page, switch to the Fabric workload by selecting Power BI and then by selecting Fabric.

    Screenshot that shows how to switch to the Fabric workload.

  3. Select Real-Time on the left navigation bar.

    Screenshot that shows how to launch Connect to data source experience.

Launch Set alert page

  1. In the Recent streaming data section at the bottom, select a data stream whose parent is an eventstream.

    Screenshot that shows Real-Time hub with a data stream selected.

  2. On the stream detail page, select Set alert.

    Screenshot that shows the selection of the Set alert button on the data stream detail page.

Monitor section

For Condition, select one of the following options:

  • To monitor each event with no condition, select On each event.

  • To monitor events that satisfy a condition, select On each event when, select a field, select a condition, and a value.

    Screenshot that shows the condition for an alert.

  • To monitor events grouped by, select On each event grouped by, select a grouping field, a field for filtering, condition, and a value to be checked against.

Action section

In the Action section, select one of the following actions:

Email

To configure the alert to send an email when the condition is met, follow these steps:

  1. For Select action, select Send email.

  2. For To, enter the email address of the receiver or use the drop-down list to select a property whose value is an email address.

  3. For Subject, enter a subject for the email.

  4. For Headline, enter a headline for the email.

  5. For Notes, enter notes for the emails.

    Note

    When entering subject, headline, or notes, you can refer to properties in the data by typing @ or by selecting the button next to the text boxes. For example, @BikepointID.

  6. For Context, select values from the drop-down list that you want to include in the context.

    Screenshot that shows the Add rule pane with the Send email action selected.

Teams message

To configure the alert to send a Teams message to an individual or a group chat or a channel when the condition is met, follow these steps:

  1. For Select action, select Teams -> Message to individuals or Group chat message, or Channel post.

  2. Follow one of these steps depending on the option you selected in the previous step:

    • If you selected the Message to individuals option, enter email addresses of receivers or use the drop-down list to select a property whose value is an email address. When the condition is met, an email is sent to specified individuals.
    • If you selected the Group chat message option, select a group chat from the drop-down list. When the condition is met, a message is posted to the group chat.
    • If you selected the Channel post option, select a team and a channel. When the condition is met, a message is posted in the channel.
  3. For Headline, enter a headline for the email.

  4. For Notes, enter notes for the emails.

    Note

    When entering headline, or notes, you can refer to properties in the data by typing @ or by selecting the button next to the text boxes. For example, @BikepointID.

  5. For Context, select values from the drop-down list that you want to include in the context.

    Screenshot that shows the Add rule pane with the Send Teams message option selected.

Run a Fabric item

To configure the alert to launch a Fabric item (pipeline, notebook, Spark job, etc.) when the condition is met, follow these steps:

  1. For Selection action, select Run a Fabric item.

    Screenshot that shows the Add rule pane with Run a Fabric item option selected.

  2. Choose Select Fabric item to run, and then select the Fabric item from the list.

  3. Select Add parameter and specify the name of the parameter for the Fabric item and a value for it. You can add more than one parameter.

    Screenshot that shows the Add rule pane with parameters for a Fabric item specified.

Save location section

In the Save location section, for Workspace, select the workspace where you want to Fabric activator item to be created or that already exists. If you're creating a new activator item, enter a name for the activator item.

Screenshot that shows the Add rule pane with the location for the Fabric activator item selected.

Create alert

  1. Select Create at the bottom of the page to create the alert.

    Screenshot that shows the Set alert page with all fields selected.

  2. You see the Alert created page with a link to open the rule in the Fabric activator user interface in a separate tab.

    Screenshot that shows Alert created page.

  3. You see the Activator item in the Fabric Activator editor user interface. Select the rule if it's not already selected. You can update the rule in this user interface. For example, update the subject, headline, or change the action from email to Teams message.

    Screenshot that shows the activator in an editor.