-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathappsettings.example.json
More file actions
82 lines (82 loc) · 2.34 KB
/
Copy pathappsettings.example.json
File metadata and controls
82 lines (82 loc) · 2.34 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
78
79
80
81
82
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
}
},
"Scheduler": {
"PollSeconds": 5,
"MaxParallelism": 2,
"DefaultTimeZone": "UTC"
},
"Monitoring": {
"EnableHttpEndpoint": true,
"AdminKey": "<YOUR_STRONG_RANDOM_ADMIN_KEY_HERE>",
"MaxRequestBodyBytes": 65536,
"HttpPrefixes": [ "http://localhost:5058/" ],
"ExecutionHistory": {
"Enabled": true,
"DatabasePath": "Data/executions.db",
"RetentionDays": 90,
"MaxRecords": 100000
},
"Dashboard": {
"Enabled": true,
"HtmlPath": "dashboard.html",
"AutoRefreshSeconds": 5,
"ShowRawJsonToggle": true
},
"AlertOn": {
"ConsecutiveFailures": 2,
"SlowRunMs": 60000
},
"Notifiers": {
"Email": {
"Enabled": false,
"SmtpHost": "smtp.example.com",
"SmtpPort": 587,
"UseSsl": true,
"User": "alerts@example.com",
"Password": "<YOUR_SMTP_PASSWORD>",
"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\nAttempts: ${AttemptCount}/${MaxAttempts}\nError: ${Error}\nMessage: ${CustomMessage}"
},
"Webhook": {
"Enabled": false,
"Url": "https://hooks.example.com/your-webhook",
"AuthorizationHeader": "Bearer <YOUR_WEBHOOK_TOKEN>"
}
}
},
"ScheduledCommands": [
{
"Id": "SchedulerSelfTest",
"Command": "cmd /c \"ver > NUL\"",
"CronExpression": "*/5 * * * *",
"TimeZone": "UTC",
"Enabled": true,
"AllowParallelRuns": false,
"ConcurrencyKey": "selftest",
"MaxRuntimeMinutes": 1,
"AlertOnFail": true,
"CaptureOutput": true,
"MaxOutputKB": 512,
"TreatStdErrAsFailure": false,
"Retry": {
"MaxAttempts": 3,
"InitialDelaySeconds": 10,
"BackoffMultiplier": 2.0,
"MaxDelaySeconds": 300,
"JitterPercent": 20,
"RetryableExitCodes": [ 1, 2 ],
"RetryOnTimeout": false,
"RetryOnException": false
},
"QuietStartLog": false
}
]
}