Add a sample data source to an eventstream

To get a better understanding of how an eventstream works, you can use the out-of-box sample data provided and send the data to the eventstream. This article shows you how to add the sample data source to an eventstream.

Note

If you want to use enhanced capabilities that are in preview, select Enhanced Capabilities at the top. Otherwise, select Standard Capabilities. For information about enhanced capabilities that are in preview, see Introduction to Fabric event streams.

Prerequisites

  • Access to the Fabric premium workspace with Contributor or higher permissions.

Important

Enhanced capabilities of Fabric event streams are currently in preview.

Note

The maximum number of sources and destinations for one eventstream is 11.

Add sample data as a source

Follow these steps to add a sample data source:

  1. To create a new eventstream, select Eventstream from the Home screen. Make sure the Enhanced Capabilities (preview) option is enabled.

    A screenshot of creating a new eventstream.

  2. To add sample data source, on the get-started page, select Use sample data.

    A screenshot of selecting Use sample data.

    Or, if you already have a published eventstream and want to add sample data as a source, switch to Edit mode. Then select Add source in the ribbon, and select Sample data.

    A screenshot of selecting Sample data to add to an existing eventstream.

  3. On the TridentStreaming_SampleData screen, enter a Source name, select the source data you want under Sample data, and then select Add.

    • Bicycles: Sample bicycles data with a preset schema that includes fields such as BikepointID, Street, Neighborhood, and Latitude.
    • Yellow Taxi: Sample taxi data with a preset schema that includes fields such as pickup time, drop-off time, distance, and total fee.
    • Stock Market: Sample data of a stock exchange with preset schema columns such as time, symbol, price, and volume.

    A screenshot showing the choices on the Sample data screen.

  4. After you create the sample data source, you see it added to your eventstream on the canvas in Edit mode. To implement this newly added sample data, select Publish.

    A screenshot showing the eventstream in Edit mode, with the Publish button highlighted.

Once you complete these steps, the sample data is available for visualization in Live view.

A screenshot showing the eventstream in Live view.

To learn how to add other sources to an eventstream, see the following articles:

Prerequisites

Before you start, you must complete the following prerequisites:

  • Get access to a premium workspace with Contributor or above permissions where your eventstream is located.

Note

The maximum number of sources and destinations for one eventstream is 11.

Add sample data as a source

To get a better understanding of how an eventstream works, you can use the out-of-box sample data provided and send data to the eventstream. Follow these steps to add a sample data source:

  1. Select New source on the ribbon or "+" in the main editor canvas and then Sample data.

  2. On the right pane, enter a source name to appear on the canvas, select the sample data you want to add to your eventstream, and then select Add.

    • Bicycles: sample bicycles data with a preset schema that includes fields such as BikepointID, Street, Neighborhood, Latitude, and more.

    • Yellow Taxi: sample taxi data with a preset schema that includes fields such as pickup time, drop-off time, distance, total fee, and more.

    • Stock Market: sample data of a stock exchange with a preset schema column such as time, symbol, price, volume, and more.

      Screenshot showing the sample data source configuration.

  3. When the sample data source is added successfully, you can find it on the canvas and navigation pane.

To verify if the sample data is added successfully, select Data preview in the bottom pane.

Screenshot showing the sample data source.

To learn how to add other sources to an eventstream, see the following articles: