Modify Monitoring Metrics

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

Modify a monitoring metric for a specified device.

API address

PUT: /v1.0/iot-03/si/products/monitor-indicator/{indicator_id}

Request parameter

Parameter nameTypeINRequiredDescription
indicator_idStringuritrueThe ID of a specified metric.

Description of body

Parameter nameTypeINRequiredDescription
indicator_codeString trueThe code of a specified metric.
monitor_typeString trueThe 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 nameTypeDescription
resultBooleanIndicates whether the operation is successful.

Request example

PUT: /v1.0/iot-03/si/products/monitor-indicator/14****
{
  "indicator_code": "swtich****",
  "monitor_type": "core_monitor"
}

Return example

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

Error code

For more information, see error code.