Use this endpoint to re-attach an alert that currently has no channel, for example after its channel
was detached with DELETE /esaalert/{esaAlertId}/channel/{esaChannelId}. An alert can be attached to at
most one channel, so the request must contain exactly one channel id and is rejected if the alert
already has a channel. To alert on additional channels, create new alerts for them with
POST /esaalert instead. The channel must be active, accessible to the caller, and eligible for the
alert.
A channel is eligible only if it is a primary value or primary demand channel, has a
summarization method the alert type and direction allow (Max or Average for ‘above’; Max,
Average, or Min for ‘below’; Sum for ’total over time’), and has exactly the alert’s
unit. Units must match exactly, not merely share a unit type: no unit conversion is
performed anywhere, so a kWh channel cannot be used with an MWh alert. A meter whose
channels carry different units therefore needs one alert per unit. For ’total over time’
the alert’s Interval must also be a whole multiple of the channel’s interval (it may equal
it), since the total is accumulated from whole channel intervals. Use
GET /esaalert/{alertId}/channels to list the channels that satisfy all of this.