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 that is generated from a DataWorks table to display data on a DataV screen.

Prerequisites

A DataWorks DataService Studio service is available.

Limits

This feature is available only in DataV Enterprise Edition and later versions.

Background information

  • By default, APIs generated in DataService Studio do not support HTTPS. Therefore, you must open DataV over HTTP by clicking Log on to the console.

  • To use APIs generated in DataService Studio over HTTPS, you must bind a certificate to API Gateway. For more information, see Enable HTTPS for your API.

  • After you publish an API in DataService Studio, the API is connected to API Gateway. The default second-level domain provided by API Gateway limits the number of calls to 1,000 per day. To remove this limit, you can bind an independent domain to the group in the API Gateway console.

Add a DataWorks DataService Studio data source

  1. Access the DataV console.

  2. On the Workbench page, click Data Preparation > Data Source in the navigation pane on the left. On the Data Source page, click New Data Source.

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

  4. Enter the DataWorks DataService Studio information.

    Parameter

    Description

    Custom Data Source Name

    The display name for the data source. You can enter any name.

    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 DataService Studio. This key is used for API calls and can be obtained from the DataService Studio console.

    AppSecret

    The AppSecret for an account with access permissions to the project in DataService Studio. This secret can be obtained from the DataService Studio console.

    Note

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

  5. After you configure the parameters, click OK.

    The new data source appears in the data source list.

Use the DataWorks DataService Studio data source

  1. Prepare the API data created in DataWorks DataService Studio.

    You can log in to the DataWorks DataService Studio console and generate an API. For more information, see Overview of API generation.

  2. Access the DataV console.

  3. On the Workbench page, hover over the data dashboard you want to edit and click Edit.

    Important

    If you haven't created a data dashboard on your Workbench page, please see Create a PC Dashboard Using a Template for guidance on creating one.

  4. On the canvas editing page, select a widget from the canvas.

    If your canvas lacks widgets, please add them first. For more information, see Widget Canvas Operations.

  5. In the widget configuration panel on the right, select Data Source.

    image

  6. 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.

  9. Click View Data Response to view the data response.

What to do next

After you obtain the raw data, see Configure a widget data source to adapt the data for your widgets.

FAQ

For more information, see FAQ about data source configuration and usage.