Skip to content

Commit

Permalink
Merge pull request #5 from kevincali/master
Browse files Browse the repository at this point in the history
fix(monitor): getting timeout
  • Loading branch information
paretl authored Jul 18, 2024
2 parents c4a30cf + ec3c4c3 commit c6303a7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# v1.1.3
- resource monitor: fix getting timeout (by [@kevincali](https://github.com/kevincali))

# v1.1.2
- build: add support for darwin_arm64 by [@paretl]
- go: upgrade to version 1.17 [@paretl]
Expand Down
1 change: 1 addition & 0 deletions uptimerobot/api/monitor.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ func (client UptimeRobotApiClient) GetMonitor(id int) (m Monitor, err error) {
m.Type = intToString(monitorType, int(monitor["type"].(float64)))
m.Status = intToString(monitorStatus, int(monitor["status"].(float64)))
m.Interval = int(monitor["interval"].(float64))
m.Timeout = int(monitor["timeout"].(float64))
m.HTTPMethod = intToString(monitorHTTPMethod, int(monitor["http_method"].(float64)))

switch m.Type {
Expand Down

0 comments on commit c6303a7

Please sign in to comment.