Query Monitoring Metrics

Last Updated on : 2023-06-15 06:01:42

Query the monitoring metrics that can be set for Tuya product ID.

API address

GET: /v1.0/iot-03/si/products/{tuya_product_id}/indicator-code

Request parameter

Parameter nameTypeINRequiredDescription
tuya_product_idStringuritrueThe product ID.

Return parameter

Parameter nameTypeDescription
resultListThe returned result.

Description of result

Parameter nameTypeDescription
indicator_codeStringThe code of a specified metric.
indicator_nameStringThe name of a specified metric.
unitStringThe unit.

Request example

GET: /v1.0/iot-03/si/products/ng****/indicator-code

Return example

{
    "result": [
        {
            "indicator_code": "co2_value",
            "indicator_name": "Carbon dioxide detection",
            "unit": "ppm"
        }
    ],
    "t": 1635678811404,
    "success": true
}

Error code

For more information, see error code.