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

/labelpartners/{labelpartner}/streamer/power-thresholds/configuration

Sets the power thresholds alert configuration in the pt_mgmt shadow for all devices registered to a specific label partner. Each phase (mains, phase_1, phase_2, phase_3) accepts a list of threshold configurations. The label partner setting overrides any previously applied per-device configuration. Disclaimer: Any changes to the power thresholds alert configuration will be applied to all devices registered to the label partner. All user-defined configurations will be lost without a way to restore them.

put
Authorizations
x-api-keystringRequired
Path parameters
labelpartnerstringRequired

The label partner short name

Example: default
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/labelpartners/{labelpartner}/streamer/power-thresholds/configuration
PUT /v2/labelpartners/{labelpartner}/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?