Skip to content

Commit

Permalink
Improve monitor
Browse files Browse the repository at this point in the history
  • Loading branch information
idrissneumann committed Sep 11, 2024
1 parent 2c49f8a commit e1a1b72
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.0.2
4.0.3
6 changes: 3 additions & 3 deletions src/utils/monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def check_http_monitor(monitor, gauges):
"status": "ko",
"type": "monitor",
"time": vdate.isoformat(),
"message": "Not supported http method",
"message": "Not supported http method: actual = {}".format(method),
"monitor": monitor
})
set_gauge(gauges['result'], 0)
Expand All @@ -81,7 +81,7 @@ def check_http_monitor(monitor, gauges):
"type": "monitor",
"time": vdate.isoformat(),
"duration": duration,
"message": "Not supported http method",
"message": "Not expected status code: expected = {}, actual = {}".format(expected_http_code, response.status_code),
"monitor": monitor
})
set_gauge(gauges['result'], 0)
Expand All @@ -93,7 +93,7 @@ def check_http_monitor(monitor, gauges):
"type": "monitor",
"time": vdate.isoformat(),
"duration": duration,
"message": "Response not contain {}".format(expected_contain),
"message": "Response not valid: expected = {}, actual = {}".format(expected_contain, response.text),
"monitor": monitor
})
set_gauge(gauges['result'], 0)
Expand Down

0 comments on commit e1a1b72

Please sign in to comment.