Preset metrics are dimensions that the Internet of Things DataService Studio platform uses by default to describe device conditions. A preset metric table is a collection of these metrics, and by default, metric data is not counted. You can enable the preset metric table to count metric data and instantiate it as a data API to access the counted data. This topic outlines the procedures for viewing preset metric tables, enabling metric data counting, and instantiating APIs.
Prerequisites
Product data is backed up. For more information, see Data backup.
Billing information
Activating the preset metric table to count metric data incurs data processing unit (DPU) charges. For more information, see DataService Studio Billing Information.
View preset metric tables
In the IoT Platform console, click Overview. On the Overview tab, find the instance that you want to manage and click the instance ID or the instance name.
From the left-side navigation pane, select DataService Studio > Data Metric.
On the Preset Metrics tab, you can view all preset metric tables.
(Optional) Single click the Operation column of a preset metric table and select View.
On the Metric Table Details page, you can review the basic information of the preset metric table and the metrics it comprises.
Enable and disable preset metric table statistics
Enable data statistics for a specified preset metric table
On the Preset Metrics tab, single click the Operation column of the desired preset metric and select Enable Metric.
In the dialog box that appears, click Confirm Enable.
ImportantIf your instance lacks sufficient CUs, a message will prompt you to upgrade the instance type. You must increase CUs as directed. For more details on instance specifications, see Purchase an Enterprise Edition Instance.
After the upgrade, repeat the steps to enable metric data statistics.
Disable data statistics for a specified preset metric table
On the Preset Metrics tab, single click the Operation column of the desired preset metric and select Disable Metric.
In the dialog box that appears, click Confirm Disable.
Generate preset metric data API
Once you enable statistics for a preset metric table, it will automatically instantiate to create a data API. This API allows you to access the counted data of the preset metric table.
On the Preset Metrics tab, single click the Operation column of the preset metric table and select Data Preview to review the latest 20 data entries counted by the table.
Return to the Preset Metrics tab, single click the Operation column of the preset metric table and select Data API Details to view the API's basic information and usage.