-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnetwatch.example.php
More file actions
31 lines (28 loc) · 879 Bytes
/
Copy pathnetwatch.example.php
File metadata and controls
31 lines (28 loc) · 879 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?php
use MathiasGrimm\Netwatch\Probe\HttpProbe;
use MathiasGrimm\Netwatch\Probe\PdoProbe;
use MathiasGrimm\Netwatch\Probe\PhpRedisProbe;
use MathiasGrimm\Netwatch\Probe\TcpPingProbe;
return [
'iterations' => 10,
'probes' => [
'redis' => [
'probe' => new PhpRedisProbe('tcp://127.0.0.1:6379'),
],
'mysql' => [
'probe' => new PdoProbe('mysql:host=127.0.0.1;port=3306', 'root', ''),
],
'pgsql' => [
'probe' => new PdoProbe('pgsql:host=127.0.0.1;port=5432;dbname=postgres', 'postgres', ''),
],
'laravel' => [
'probe' => new HttpProbe('https://laravel.com'),
],
'cloudflare' => [
'probe' => new TcpPingProbe('1.1.1.1', 443),
],
'google-dns' => [
'probe' => new TcpPingProbe('8.8.8.8', 443),
],
],
];