Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This page describes how to create artifacts for the Analytics Project. It contains the following sections:

...

The new project has now been created in the workspace. If you browse inside the project, you will see a project structure as below, with folders created for different resources such as execution-plan, publisher, receiver, and stream.

Creating an Execution-plan

Creating a new Execution-plan

Follow these steps to create a new execution-plan. Alternatively, you can import an existing execution-plan.

  1. Open the Developer Studio Dashboard (click Developer Studio > Open Dashboard) and click Execution-plan in the Analytics category.
  2. Select Create New Execution-plan and click Next.
  3. Type a unique name for the Execution-plan.
  4. Do one of the following:
    • To save the execution-plan in an existing Analytics project in your workspace, click Browse and select that project.
    • To save the execution-plan in a new Analytics project, click Create new Project and create the new project.
  5. Click Finish. The execution-plan is created in the execution-plan folder under the Analytics project you specified, and the execution-plan is open in the editor.

Importing an Execution-plan

Follow these steps to import an existing execution-plan from a .siddhiql file into an Analytics project. Alternatively, you can create a new execution-plan.

  1. Open the Developer Studio Dashboard (click Developer Studio > Open Dashboard) and click Execution-plan in the Analytics category.
  2. Select Import Execution-plan and click Next.
  3. Type a unique name for the Execution-plan.
  4. Specify the execution-plan file by typing its full path name or clicking Browse and navigating to the file.
  5. In the Save Execution-plan In field, specify an existing Analytics project in your workspace where you want to save the execution-plan, or click Create new Project to create a new Analytics project and save the execution-plan there.
  6. Click Finish. The execution-plan is created in the execution-plan folder under the Analytics project you specified, and the execution-plan is open in the editor.

Creating a Stream

Creating a new Stream

Follow these steps to create a new stream. Alternatively, you can import an existing stream.

  1. Open the Developer Studio Dashboard (click Developer Studio > Open Dashboard) and click Stream in the Analytics category.
  2. Select Create New Stream and click Next.
  3. Type a unique name for the Stream.
  4. Do one of the following:
    • To save the stream in an existing Analytics project in your workspace, click  Browse  and select that project.
    • To save the stream in a new Analytics project, click Create new Project and create the new project.
  5. Click Finish . The stream is created in the stream folder under the Analytics project you specified, and the stream is open in the editor.

Importing a Stream

Follow these steps to import an existing stream from a .json file into an Analytics project. Alternatively, you can create a new stream.

  1. Open the Developer Studio Dashboard (click Developer Studio > Open Dashboard) and click Stream in the Analytics category. 
  2. Select Import Stream and click Next
  3. Type a unique name for the Stream. 
  4. Specify the stream file by typing its full path name or clicking Browse and navigating to the file. 
  5. In the Save Stream In field, specify an existing Analytics project in your workspace where you want to save the stream, or click Create new Project to create a new Analytics project and save the stream there. 
  6. Click Finish. The stream is created in the stream folder under the Analytics project you specified, and the stream is open in the editor.

Creating a Publisher

Creating a new Publisher

Follow these steps to create a new publisher. Alternatively, you can import an existing publisher.

  1. Open the Developer Studio Dashboard (click Developer Studio > Open Dashboard) and click Publisher in the Analytics category.
  2. Select Create New Publisher and click Next.
  3. Type a unique name for the Publisher.
  4. Do one of the following:
      • To save the publisher in an existing Analytics project in your workspace, click Browse and select that project.
      • To save the publisher in a new Analytics project, click Create new Project and create the new project.
  5. Click Finish. The publisher is created in the publisher folder under the Analytics project you specified, and the publisher is open in the editor.

Importing a Publisher 

Follow these steps to import an existing publisher from an XML file into an Analytics project. Alternatively, you can create a new publisher.

  1. Open the Developer Studio Dashboard (click Developer Studio > Open Dashboard) and click Publisher in the Analytics category.
  2. Select Import Publisher and click Next.
  3. Type a unique name for the Publisher.
  4. Specify the publisher file by typing its full path name or clicking Browse and navigating to the file.
  5. In the Save Publisher In field, specify an existing Analytics project in your workspace where you want to save the publisher, or click Create new Project to create a new Analytics project and save the publisher there.
  6. Click Finish. The publisher is created in the publisher folder under the Analytics project you specified, and the publisher is open in the editor.



 

 

Excerpt
hiddentrue

Creating a Complex Event Processor (CEP) Project in Developer Studio.