-
Notifications
You must be signed in to change notification settings - Fork 2
/
config.php.dist
49 lines (38 loc) · 1.04 KB
/
config.php.dist
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<?php
//!\\ Configuration file, you MUST edit it with you credentials or you strategy to retrieve data
//!\\ These callables can be edited with your own logic to fetch parameters (environment variables, database...)
const ENDPOINT_TO_CHECK = ['www.google.com', 'https://127.0.0.1:8000', 'web.application.docker'];
const SLACK_ACTIVE = false;
const SLACK_CHANNEL = 'Channel Id';
const SLACK_URL = 'https://slack.com/api/chat.postMessage'; // https://api.slack.com/messaging/sending
const SLACK_TOKEN = 'Token';
const DISCORD_ACTIVE = false;
const DISCORD_URL = 'https://discord.com/api/webhooks/XXXXXXXXX/YYYYYYYYYYYY';
function isSlackActive(): bool
{
return SLACK_ACTIVE;
}
function getSlackUrl(): string
{
return SLACK_URL;
}
function getEndPointToCheck(): array
{
return ENDPOINT_TO_CHECK;
}
function getSlackToken(): string
{
return SLACK_TOKEN;
}
function getSlackChannel(): string
{
return SLACK_CHANNEL;
}
function isDiscordActive(): bool
{
return DISCORD_ACTIVE;
}
function getDiscordUrl(): string
{
return DISCORD_URL;
}