Eng Zer Jun
7a05bdcb82
refactor: move from io/ioutil to io and os packages
...
The io/ioutil package has been deprecated as of Go 1.16, see
https://golang.org/doc/go1.16#ioutil . This commit replaces the existing
io/ioutil functions with their new definitions in io and os packages.
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2021-12-03 14:44:17 +08:00
TwiN
d3805cd77a
Fix #197 ; Fix #198 : Deprecate storage.file in favor of storage.path and deprecate persistence with memory storage type
2021-11-04 21:33:13 -04:00
TwiN
dd70136e6c
Omit empty hostname and errors field
2021-11-03 22:18:23 -04:00
TwiN
a94c480c22
Fix typo in comment
2021-11-03 22:17:58 -04:00
TwiN
fb2448c15a
Omit fields that are not set
2021-10-24 15:03:41 -04:00
TwiN
6ed93d4b82
Rename Service to Endpoint ( #192 )
...
* Add clarifications in comments
* #191 : Rename Service to Endpoint
2021-10-23 16:47:12 -04:00
TwiN
6c45f5b99c
⚠ Migrate TwinProduction/gatus to TwiN/gatus
2021-10-07 21:28:04 -04:00
TwiN
422eaa6d37
Fix typo
2021-10-07 20:55:15 -04:00
TwinProduction
2d3fe9795f
Add v3 to module path
...
Gatus wasn't intended to be used as a library, but I have a use case now.
2021-10-03 21:53:59 -04:00
TwinProduction
dee04945d0
Minor update
2021-10-03 15:03:09 -04:00
TwinProduction
ac43ef4ab7
Refactor some code
2021-09-30 20:56:09 -04:00
Carlotronics
30cb7b6ec8
Health check for SSL/TLS services ( #177 )
...
* protocol: starttls: add timeout support
Signed-off-by: Charles Decoux <charles@phowork.fr>
* protocol: add ssl support
Signed-off-by: Charles Decoux <charles@phowork.fr>
2021-09-30 16:15:17 -04:00
TwinProduction
044f0454f8
Domain migration
2021-09-18 12:42:11 -04:00
newsr
9bd5c38a96
Add enabled parameter to service ( #175 )
...
* feat: Add enabled flag to service
* Add IsEnabled method
Co-authored-by: 1newsr <1newsr@users.noreply.github.com>
2021-09-18 11:52:11 -04:00
TwinProduction
f41560cd3e
Add configuration for whether to resolve failed conditions or not
2021-09-14 19:34:46 -04:00
TwinProduction
06ef7f9efe
Add test for NewEventFromResult
2021-09-06 16:34:03 -04:00
TwinProduction
66e312b72f
Remove old memory uptime implementation and auto migration
2021-09-06 13:28:35 -04:00
TwinProduction
6e38114e27
Remove deprecated service[].insecure parameter (in favor of service[].client.insecure)
2021-09-06 13:28:35 -04:00
TwinProduction
9c99cc522d
Close #159 : Add the ability to hide the hostname of a service
2021-09-06 13:28:35 -04:00
TwinProduction
becc17202b
Remove uptime from /api/v1/services/{key}/statuses and return the entire service status instead of a map
2021-09-06 13:28:35 -04:00
TwinProduction
bab69478dd
Improve comment on HourlyUptimeStatistics.TotalExecutionsResponseTime
2021-08-21 18:12:06 -04:00
TwinProduction
d65cebb1fb
Remove Uptime.Last* parameters
2021-08-13 01:25:50 -04:00
TwinProduction
0b6fc6b520
Add GetUptimeByKey to store interface
2021-08-13 01:25:50 -04:00
TwinProduction
f6c32a90ac
Add small comment
2021-08-10 19:58:19 -04:00
TwinProduction
4ada6ee7c9
Remove unneeded constants
2021-08-07 11:54:22 -04:00
TwinProduction
9cd6355056
#126 : Add client configuration
2021-07-28 21:52:14 -04:00
TwinProduction
627173e64f
Refactor duplicate functions
2021-07-18 17:29:08 -04:00
TwinProduction
7126d36d85
Implement paging and refactor stores to match new store interface with paging
2021-07-18 17:29:08 -04:00
TwinProduction
8dedcf7c74
Refactor code
2021-07-18 17:29:08 -04:00
TwinProduction
943d0a19d1
Use time.Truncate instead of manually flooring the hour
2021-07-18 17:29:08 -04:00
TwinProduction
1498b6d8a2
Add Service.Key() method to generate the unique service key
2021-07-18 17:29:08 -04:00
TwinProduction
7aed826d65
Fix typo
2021-07-18 17:29:08 -04:00
TwinProduction
b904afb8b5
Replace - by _ in file names
2021-07-02 20:04:05 -04:00
TwinProduction
fc0c3499f4
Remove comment that no longer applies
2021-06-18 09:59:39 -04:00
TwinProduction
e214d56af1
Add errors through result.AddError()
2021-06-05 18:51:51 -04:00
TwinProduction
8997eeef05
Fix #123 : Deduplicate result errors
2021-06-05 18:50:24 -04:00
gopher-johns
2131fa4412
#120 : Add support for StartTLS protocol
...
* add starttls
* remove starttls from default config
Co-authored-by: Gopher Johns <gopher.johns28@gmail.com>
2021-06-05 15:47:11 -04:00
TwinProduction
8e02572880
Remove unused code
2021-05-28 18:48:17 -04:00
TwinProduction
263b2f0f94
Fix failing tests
2021-05-18 23:27:43 -04:00
TwinProduction
db23bd9073
#29 : Automatically reload on configuration file update
2021-05-18 22:29:15 -04:00
TwinProduction
a85c5d5486
Close #91 : Implement default provider alert
2021-05-15 21:31:32 -04:00
TwinProduction
50f530a05c
Fix #107 : Correctly parse placeholder when [BODY] is an array
2021-05-09 13:28:22 -04:00
TwinProduction
8b3b2f70bf
Add deprecation comment on Uptime.migrateToHourlyStatistics
2021-04-25 19:56:09 -04:00
TwinProduction
752e82d80b
Tidy up comments
2021-04-18 01:01:10 -04:00
TwinProduction
e91462ce41
Unify uptime hourly metrics under Uptime.HourlyStatistics and add metric for response time
2021-04-18 00:51:47 -04:00
TwinProduction
347297a8ea
Fix typo
2021-04-17 20:09:10 -04:00
Jonah
24da853820
Add Telegram Alerting ( #102 )
2021-03-30 19:38:34 -04:00
TwinProduction
4e5a86031f
Add comment for future breaking change
2021-03-27 21:22:34 -04:00
TwinProduction
c9acc83141
Extract magic number into a constant
2021-03-14 16:52:59 -04:00
TwinProduction
8c4c360472
Minor update
2021-03-14 13:36:54 -04:00