For the complete documentation index, see llms.txt. This page is also available as Markdown.

/gateways/{eui64}/streamer/power-thresholds/configuration

Sets the power thresholds alert configuration in the pt_mgmt shadow for a specific device. Each phase (mains, phase_1, phase_2, phase_3) accepts a list of threshold configurations. When threshold_value is omitted, the previously configured value is reused; if none exists (reset state), threshold_value is required.

put
Authorizations
x-api-keystringRequired
Path parameters
eui64stringRequired

The EUI64 of the device in hexadecimal format.

Example: 000d6f000011bcb3
Body

Contains the power thresholds configuration. At least one phase must be provided. Each phase accepts at most 4 threshold configurations.

Responses
200

Successful operation

application/json
messagestringRequired

The success message returned.

put/gateways/{eui64}/streamer/power-thresholds/configuration
PUT /v2/gateways/{eui64}/streamer/power-thresholds/configuration HTTP/1.1
Host: device-management.n2g-dev.net
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 839

{
  "mains": [
    {
      "threshold_id": "threshold_0",
      "alert_state": "enabled",
      "threshold_value": 1,
      "alert_type": "upper",
      "cooldown": 1,
      "aggregation_method": "mean",
      "aggregation_sample_count": 1,
      "aggregation_sample_interval": 1
    }
  ],
  "phase_1": [
    {
      "threshold_id": "threshold_0",
      "alert_state": "enabled",
      "threshold_value": 1,
      "alert_type": "upper",
      "cooldown": 1,
      "aggregation_method": "mean",
      "aggregation_sample_count": 1,
      "aggregation_sample_interval": 1
    }
  ],
  "phase_2": [
    {
      "threshold_id": "threshold_0",
      "alert_state": "enabled",
      "threshold_value": 1,
      "alert_type": "upper",
      "cooldown": 1,
      "aggregation_method": "mean",
      "aggregation_sample_count": 1,
      "aggregation_sample_interval": 1
    }
  ],
  "phase_3": [
    {
      "threshold_id": "threshold_0",
      "alert_state": "enabled",
      "threshold_value": 1,
      "alert_type": "upper",
      "cooldown": 1,
      "aggregation_method": "mean",
      "aggregation_sample_count": 1,
      "aggregation_sample_interval": 1
    }
  ]
}
{
  "message": "text"
}

Last updated

Was this helpful?