Preset Metric APIs are predefined by the IoT Platform Data Service. After you enable data statistics for a Preset Metric Table and generate an API, you can view and call the API to retrieve data.
Prerequisites
-
You have backed up your product data. For more information, see data backup.
-
You have enabled data statistics for the target Preset Metric Table and generated an API from it. For more information, see Enable data statistics for a preset metric and Generate a Preset Metric Data API.
Procedure
-
In the IoT Platform console, go to the Overview page and click the ID or alias of the target Enterprise Edition instance.
-
In the left-side navigation pane, choose Data Service > Data API.
-
On the Preset Metric API tab, view all the Preset Metric APIs for your instance.
Every Preset Metric API path starts with
${instance ID}/system, where${instance ID}is the ID of your Enterprise Edition instance. You can find the instance ID on the Instance Overview page of the IoT Platform console.The page displays a table with the API Name, API Path, Last Release Time, and Actions columns. Use the search box to filter APIs by name or path. To view API details, click View.
-
(Optional) Click View in the Actions column for the corresponding API to view its Basic Information, API Monitoring, and Parameters (system parameters, request parameters, and response parameters).
For more information, see Manage and use APIs.
Next steps
-
To generate more Preset Metric APIs from Preset Metric Tables, see Generate a Preset Metric Data API.
-
Call Preset Metric APIs to monitor the operational status of all devices in an instance.
For sample calls, see the following topics: