Add Monitoring Metrics

Last Updated on : 2023-06-15 06:02:05

Add monitoring metrics in batches, including the bound product IDs, monitoring metrics, and product metric code relationships.

API address

POST: /v1.1/iot-03/si/products/{tuya_product_id}/monitor-indicator/batch

Request parameter

Parameter name Type IN Required Description
tuya_product_id String uri true Tuya product ID.

Description of body

Parameter name Type IN Required Description
indicator_code_list List true The codes of product metrics.
monitor_type String true The type of a specified metric.
  • core_monitor: general industrial metric.
  • energy_collect: industrial energy consumption metric.
  • environment: industrial environment metric.
  • other: others.

Return parameter

Parameter name Type Description
result Boolean The returned result.

Request example

POST: /v1.1/iot-03/si/products/pro****/monitor-indicator/batch

Return example

{ "result": true, "t": 1632730415965, "success": true }

Error code

For more information, see error code.