Skip to content

Commit

Permalink
version up, default GET http method, metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
hunterlong committed Jun 13, 2020
1 parent 95e294f commit e27b8de
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# 0.90.49 (06-12-2020)
- Added additional prometheus /metrics for better debugging

# 0.90.48 (06-11-2020)
- Modified shutdown routine to make command exit with code 0
- Modified install.sh for correct installation
Expand Down
1 change: 1 addition & 0 deletions types/services/samples.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ func Samples() error {
s6 := &Service{
Name: "Private Service",
Domain: "https://push.statping.com",
Method: "GET",
Interval: 30,
Type: "http",
Timeout: 120,
Expand Down
3 changes: 3 additions & 0 deletions utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,9 @@ func DurationReadable(d time.Duration) string {
func HttpRequest(url, method string, content interface{}, headers []string, body io.Reader, timeout time.Duration, verifySSL bool, customTLS *tls.Config) ([]byte, *http.Response, error) {
var err error
var req *http.Request
if method == "" {
method = "GET"
}
t1 := Now()
if req, err = http.NewRequest(method, url, body); err != nil {
return nil, nil, err
Expand Down
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.90.48
0.90.49

0 comments on commit e27b8de

Please sign in to comment.