Added support to deliver specific alerts to endpoints (#7694)

This commit is contained in:
Matteo Biscosi 2023-08-01 10:04:11 +00:00
parent c4dbf1d135
commit 8f770d490e
44 changed files with 789 additions and 354 deletions

View file

@ -1,16 +1,18 @@
<div class="mb-3 row">
<label class="col-form-label col-sm-3">
<b>{{ i18n("notification_endpoint.webhook.url") }}</b>
<a title="{{ i18n('help') }}" target="blank" href="https://www.ntop.org/guides/ntopng/alerts/available_recipients.html#webhook"><i class="fa-regular fa-circle-question"></i></a>
</label>
<div class="col-sm-5">
<div class="col-sm-7">
<input data-pattern="https" name="webhook_url" type="text" class="form-control" required />
</div>
</div>
<div class="mb-3 row">
<label class="col-form-label col-sm-3">
{{ i18n("notification_endpoint.webhook.shared_secret") }}
<a title="{{ i18n('help') }}" target="blank" href="https://www.ntop.org/guides/ntopng/alerts/available_recipients.html#webhook"><i class="fa-regular fa-circle-question"></i></a>
</label>
<div class="col-sm-5">
<div class="col-sm-7">
<input name="webhook_sharedsecret" type="text" class="form-control" />
<small class="text-muted">{{ i18n("notification_endpoint.optional_field") }}</small>
</div>
@ -18,8 +20,9 @@
<div class="mb-3 row">
<label class="col-form-label col-sm-3">
{{ i18n("notification_endpoint.webhook.username") }}
<a title="{{ i18n('help') }}" target="blank" href="https://www.ntop.org/guides/ntopng/alerts/available_recipients.html#webhook"><i class="fa-regular fa-circle-question"></i></a>
</label>
<div class="col-sm-5">
<div class="col-sm-7">
<input data-pattern="username" name="webhook_username" type="text" class="form-control" />
<small class="text-muted">{{ i18n("notification_endpoint.optional_field") }}</small>
</div>
@ -27,10 +30,10 @@
<div class="mb-3 row">
<label class="col-form-label col-sm-3">
{{ i18n("notification_endpoint.webhook.password") }}
<a title="{{ i18n('help') }}" target="blank" href="https://www.ntop.org/guides/ntopng/alerts/available_recipients.html#webhook"><i class="fa-regular fa-circle-question"></i></a>
</label>
<div class="col-sm-5">
<div class="col-sm-7">
<input name="webhook_password" type="password" class="form-control" />
<small class="text-muted">{{ i18n("notification_endpoint.optional_field") }}</small>
</div>
</div>
<small>{* i18n('notification_endpoint.webhook.webhook_description') *}</small>