-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathappsettings.json
More file actions
77 lines (77 loc) · 2.17 KB
/
appsettings.json
File metadata and controls
77 lines (77 loc) · 2.17 KB
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
}
},
"Scheduler": {
"PollSeconds": 5,
"MaxParallelism": 2,
"DefaultTimeZone": "Eastern Standard Time"
},
"Monitoring": {
"EnableHttpEndpoint": true,
"AdminKey": "CHANGE-ME",
"HttpPrefixes": [ "http://localhost:5058/" ],
"Dashboard": {
"Enabled": true,
"HtmlPath": "dashboard.html",
"Title": "Scheduled Command Executor",
"AutoRefreshSeconds": 5,
"ShowRawJsonToggle": true
},
"AlertOn": {
"ConsecutiveFailures": 2,
"SlowRunMs": 60000
},
"Notifiers": {
"Email": {
"Enabled": false,
"SmtpHost": "smtp.example.com",
"SmtpPort": 587,
"UseSsl": true,
"User": "user@example.com",
"Password": "CHANGE_ME",
"From": "alerts@example.com",
"To": [ "ops@example.com" ],
"SubjectTemplate": "[${AlertType}] ${CommandId} (${ConsecutiveFailures}x) — ${DurationMs}ms",
"BodyTemplate": "Command: ${Command}\nStarted: ${StartUtc:o}\nEnded: ${EndUtc:o}\nExitCode: ${ExitCode}\nDuration: ${DurationMs}ms\nError: ${Error}\nMessage: ${CustomMessage}"
},
"Webhook": {
"Enabled": false,
"Url": "https://hooks.example.com/your-webhook",
"AuthorizationHeader": "Bearer <token-if-needed>"
}
}
},
"ScheduledCommands": [
{
"Id": "Notepad",
"Command": "Notepad.exe",
"CronExpression": "40 23 * * 1-5",
"TimeZone": "America/Santo_Domingo",
"Enabled": true,
"AllowParallelRuns": false,
"ConcurrencyKey": "dashboard",
"MaxRuntimeMinutes": 60,
"AlertOnFail": true,
"CaptureOutput": false,
"QuietStartLog": true
},
{
"Id": "SchedulerSelfTest",
"Command": "cmd /c \"ver > NUL\"",
"CronExpression": "*/2 * * * *",
"TimeZone": "Eastern Standard Time",
"Enabled": true,
"AllowParallelRuns": false,
"ConcurrencyKey": "selftest",
"MaxRuntimeMinutes": 1,
"AlertOnFail": true,
"CaptureOutput": false,
"QuietStartLog": true
}
]
}