mirror of
https://github.com/alexjustesen/speedtest-tracker.git
synced 2026-06-23 06:20:09 +00:00
a47e3225e5
Co-authored-by: Sven van Ginkel <svenvanginkel@icloud.com> Co-authored-by: Alex Justesen <1144087+alexjustesen@users.noreply.github.com>
106 lines
2.1 KiB
PHP
106 lines
2.1 KiB
PHP
<?php
|
|
|
|
namespace App\Settings;
|
|
|
|
use Spatie\LaravelSettings\Settings;
|
|
|
|
class NotificationSettings extends Settings
|
|
{
|
|
public bool $database_enabled;
|
|
|
|
public bool $database_on_speedtest_run;
|
|
|
|
public bool $database_on_threshold_failure;
|
|
|
|
public bool $mail_enabled;
|
|
|
|
public bool $mail_on_speedtest_run;
|
|
|
|
public bool $mail_on_threshold_failure;
|
|
|
|
public ?array $mail_recipients;
|
|
|
|
public bool $telegram_enabled;
|
|
|
|
public bool $telegram_disable_notification;
|
|
|
|
public bool $telegram_on_speedtest_run;
|
|
|
|
public bool $telegram_on_threshold_failure;
|
|
|
|
public ?array $telegram_recipients;
|
|
|
|
public bool $webhook_enabled;
|
|
|
|
public bool $webhook_on_speedtest_run;
|
|
|
|
public bool $webhook_on_threshold_failure;
|
|
|
|
public ?array $webhook_urls;
|
|
|
|
public bool $discord_enabled;
|
|
|
|
public bool $discord_on_speedtest_run;
|
|
|
|
public bool $discord_on_threshold_failure;
|
|
|
|
public ?array $discord_webhooks;
|
|
|
|
public bool $ntfy_enabled;
|
|
|
|
public bool $ntfy_on_speedtest_run;
|
|
|
|
public bool $ntfy_on_threshold_failure;
|
|
|
|
public ?array $ntfy_webhooks;
|
|
|
|
public bool $pushover_enabled;
|
|
|
|
public bool $pushover_on_speedtest_run;
|
|
|
|
public bool $pushover_on_threshold_failure;
|
|
|
|
public ?array $pushover_webhooks;
|
|
|
|
public bool $healthcheck_enabled;
|
|
|
|
public bool $healthcheck_on_speedtest_run;
|
|
|
|
public bool $healthcheck_on_threshold_failure;
|
|
|
|
public ?array $healthcheck_webhooks;
|
|
|
|
public bool $slack_enabled;
|
|
|
|
public bool $slack_on_speedtest_run;
|
|
|
|
public bool $slack_on_threshold_failure;
|
|
|
|
public ?array $slack_webhooks;
|
|
|
|
public bool $gotify_enabled;
|
|
|
|
public bool $gotify_on_speedtest_run;
|
|
|
|
public bool $gotify_on_threshold_failure;
|
|
|
|
public ?array $gotify_webhooks;
|
|
|
|
public bool $apprise_enabled;
|
|
|
|
public ?string $apprise_server_url;
|
|
|
|
public bool $apprise_on_speedtest_run;
|
|
|
|
public bool $apprise_on_threshold_failure;
|
|
|
|
public bool $apprise_verify_ssl;
|
|
|
|
public ?array $apprise_channel_urls;
|
|
|
|
public static function group(): string
|
|
{
|
|
return 'notification';
|
|
}
|
|
}
|