Modifier

Partager via


Get Job events in Real-Time hub (preview)

This article describes how to get Job events as an eventstream in Fabric Real-Time hub.

Real-Time hub allows you to discover and subscribe to changes produced when Fabric runs a job. For example, you can react to changes when refreshing a semantic model, running a scheduled pipeline, or running a notebook. Each of these activities can generate a corresponding job, which in turn generates a set of corresponding job events.

Job events allow you to monitor job results in time and set up alerts using Data Activator alerting capabilities. For example, when the scheduler triggers a new job, or a job fails, you can receive an email alert. This way, even if you aren't in front of the computer, you can still get the information you care about.

With Fabric event streams, you can capture these Job events, transform them, and route them to various destinations in Fabric for further analysis. This seamless integration of Job events within Fabric event streams gives you greater flexibility for monitoring and analyzing activities in your Job.

Event types

Event type name Description
Microsoft.Fabric.ItemJobCreated Raised when the Fabric platform creates or triggers a job, manually or scheduled.
Microsoft.Fabric.ItemJobStatusChanged Raised when the job status changes to another non-terminal state.

This event isn't raised if the workload doesn't push when the status changes. The job status might change from created to completed soon.

Microsoft.Fabric.ItemJobSucceeded Raised when the job completes.
Microsoft.Fabric.ItemJobFailed Raised when the job fails, including job getting stuck or canceled.

For more information, see Explore Job events.

Note

Consuming Fabric and Azure events via eventstream or Fabric Activator is not supported if the capacity region of the eventstream or Activator is in the following regions: Germany West Central, South-Central US, West US2, West US3, West India.

Prerequisites

  • Access to a workspace in the Fabric capacity license mode (or) the Trial license mode with Contributor or higher permissions.

Create streams for Job events

You can create streams for Job events in Real-Time hub using one of the ways:

Data sources page

  1. Sign in to Microsoft Fabric.

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

  3. On the Real-Time hub page, select + Data sources under Connect to on the left navigation menu. You can also get to the Data sources page from All data streams or My data streams pages by selecting the + Connect data source button in the top-right corner.

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

  1. On the Data sources page, select Job events category at the top, and then select Connect on the Job events tile. You can also use the search bar to search for Job events.

    Screenshot that shows the Get events page with Job events selected.

    Now, use instructions from the Configure and create an eventstream section.

Fabric events page

In Real-Time hub, select Fabric events on the left menu. You can use either the list view of Fabric events or the detail view of Job events to create an eventstream for Job events.

Using the list view

Move the mouse over Job events, and select the Create Eventstream link or select ... (Ellipsis) and then select Create Eventstream.

Screenshot that shows the Real-Time hub Fabric events page.

Using the detail view

  1. On the Fabric events page, select Job events from the list of Fabric events supported.

  2. On the Detail page, select + Create eventstream from the menu.

    Screenshot that shows the detail page for Job events.

    Now, use instructions from the Configure and create an eventstream section, but skip the first step of using the Add source page.

Configure and create an eventstream

  1. On the Connect page, for Event types, select the event types that you want to monitor.

    Screenshot that shows the selection of Job event types on the Connect page.

  2. This step is optional. To see the schemas for event types, select View selected event type schemas. If you select it, browse through schemas for the events, and then navigate back to previous page by selecting the backward arrow button at the top.

  3. For Event source, confirm that By item is selected.

  4. For Workspace, select a workspace where the Fabric item is.

  5. For Item, select the Fabric item.

    Screenshot that shows the configuration of source, workspace, and item.

  6. Now, on the Configure connection settings page, you can add filters to set the filter conditions by selecting fields to watch and the alert value. To add a filter:

    1. Select + Filter.

    2. Select a field.

    3. Select an operator.

    4. Select one or more values to match.

      Screenshot that shows the addition of a filter.

  7. In the Stream details section to the right, follow these steps.

    1. Select the workspace where you want to save the eventstream.
    2. Enter a name for the eventstream. The Stream name is automatically generated for you. Screenshot that shows the name of the stream.
  8. Then, select Next at the bottom of the page.

    Screenshot that shows the selection of the Next button.

  9. On the Review + connect page, review settings, and select Connect.

    Screenshot that shows the Review and create page.

  10. When the wizard succeeds in creating a stream, use Open eventstream link to open the eventstream that was created for you. Select Finish to close the wizard.

    Screenshot that shows the Review and create page with links to open the eventstream.

View stream from the All data streams page

  1. In Real-Time hub, select My data streams or All data streams.

  2. Confirm that you see the stream you created.

    Screenshot that shows data stream in the My data streams page.

To learn about consuming data streams, see the following articles: