Add a DataWorks DataService Studio data source

更新时间:
复制 MD 格式

This topic describes how to add a DataWorks DataService Studio data source in DataV and use an API generated from a DataWorks data table to display data in a DataV visualization.

Prerequisites

A DataWorks DataService Studio data source is available.

Background information

  • By default, APIs generated by DataWorks DataService Studio do not support the HTTPS protocol. Therefore, you must open DataV using HTTP at http://datav.aliyun.com.

  • To use an API generated by DataWorks DataService Studio over HTTPS, you must attach a certificate to API Gateway. For more information, see How to enable HTTPS for your API.

  • After an API generated by DataWorks DataService Studio is published, it connects to API Gateway. The default second-level domain from API Gateway limits calls to 1,000 per day. To remove this limit, you must attach an independent domain to a group in the API Gateway console.

Add a DataWorks DataService Studio data source

  1. Log on to the DataV console.

  2. On the My Data tab, select Data Source Management and click Add Data.

  3. From the Type list, select DataWorks DataService Studio.

  4. Enter the information for DataWorks DataService Studio.

    Parameter

    Description

    Custom Data Source Name

    The display name of the data source. You can name it as needed.

    Region

    The region where the DataWorks project is located.

    Project

    The DataWorks project (workspace).

    AppKey

    The AppKey for an account with access permissions to the project in DataWorks DataService Studio. This key is used for API calls. Obtain this key from the DataWorks DataService Studio console.

    AppSecret

    The AppSecret for an account with access permissions to the project in DataWorks DataService Studio. Obtain this secret from the DataWorks DataService Studio console.

    Note

    To obtain your AppKey and AppSecret, go to the DataWorks DataService Studio console and click Service Management > API Call.

  5. After you enter the information, click OK to add the data source.

    The new data source appears in the data source list.

Use a DataWorks DataService Studio data source

  1. Prepare the API data output by DataWorks DataService Studio.

    Log on to the DataWorks DataService Studio console and generate an API. For more information, see Overview of API generation.

  2. Log on to the DataV console.

  3. On the My Visualization page, hover the pointer over the visualization application that you want to edit, and then click Edit.

    Important

    If you do not have any visualization applications on the My Visualization page, create one. For more information, see Create a PC visualization application using a template.

  4. On the canvas editor page, click a widget on the canvas.

    If the canvas does not have any widgets, add one. For more information, see Add an asset.

  5. In the configuration panel for the widget on the right, click the Data tab, and then click Configure Data Source.

  6. On the Set Data Source page, set Data Source Type to DataWorks DataService Studio.

  7. From the Select Existing Data Source list, select the DataWorks DataService Studio data source that you added.

  8. From the Select API list, select the DataWorks DataService Studio API that you generated in Step 1.

  9. Click Preview Data Source Response to view the returned data.