)]}'
{"nagios/plugins/query_prometheus_alerts.py":[{"author":{"_account_id":30777,"name":"Steven Fitzpatrick","email":"steven@fitzpatrick.wtf","username":"sf280x"},"change_message_id":"ccdc6924aa452460b86e88308f6cbbc7d9addec1","unresolved":false,"context_lines":[{"line_number":147,"context_line":"        response_json \u003d response.json()"},{"line_number":148,"context_line":"    except requests.exceptions.Timeout:"},{"line_number":149,"context_line":"        error_messages.append("},{"line_number":150,"context_line":"            \"ERROR: Prometheus api connection timed out, using URL {}, the maximum timeout value of {} seconds\".format(prometheus_api,timeout))"},{"line_number":151,"context_line":"    except requests.exceptions.ConnectionError:"},{"line_number":152,"context_line":"        error_messages.append("},{"line_number":153,"context_line":"            \"ERROR:  Prometheus api cannot be connected[connection refused], using URL {}\".format(prometheus_api))"}],"source_content_type":"text/x-python","patch_set":1,"id":"1fa4df85_0d505932","line":150,"range":{"start_line":150,"start_character":97,"end_line":150,"end_character":99},"updated":"2020-03-12 18:18:36.000000000","message":"nit: Should use \"is\" here instead of \"of\"","commit_id":"c2f0a8911100732c8e5f20c30b60b9a2b5081077"},{"author":{"_account_id":20466,"name":"Tin Lam","email":"tin@lam.wtf","username":"tinlam"},"change_message_id":"95c36d34adf4fd8ceac45649020fd7a6b053965d","unresolved":false,"context_lines":[{"line_number":156,"context_line":"            \"ERROR:  Prometheus api connection failed, using URL {}\".format(prometheus_api))"},{"line_number":157,"context_line":"    except Exception as e:"},{"line_number":158,"context_line":"        error_messages.append("},{"line_number":159,"context_line":"            \"ERROR while invoking prometheus api using URL {}, got error: {}\".format(prometheus_api,str(e)))"},{"line_number":160,"context_line":""},{"line_number":161,"context_line":"    return response_json, error_messages"},{"line_number":162,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"1fa4df85_d0a896dc","line":159,"range":{"start_line":159,"start_character":99,"end_line":159,"end_character":108},"updated":"2020-03-12 18:34:57.000000000","message":"space. Also if this is py3 compatible, shouldn\u0027t this just be e instead of str(e)","commit_id":"c2f0a8911100732c8e5f20c30b60b9a2b5081077"},{"author":{"_account_id":20466,"name":"Tin Lam","email":"tin@lam.wtf","username":"tinlam"},"change_message_id":"95c36d34adf4fd8ceac45649020fd7a6b053965d","unresolved":false,"context_lines":[{"line_number":197,"context_line":"            \"ERROR:  Prometheus api connection failed, using URL {}\".format(prometheus_api))"},{"line_number":198,"context_line":"    except Exception as e:"},{"line_number":199,"context_line":"        error_messages.append("},{"line_number":200,"context_line":"            \"ERROR while invoking prometheus using URL {},  {}\".format(prometheus_api,str(e)))"},{"line_number":201,"context_line":""},{"line_number":202,"context_line":"    return metrics_available, error_messages"},{"line_number":203,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"1fa4df85_50b4a635","line":200,"range":{"start_line":200,"start_character":85,"end_line":200,"end_character":86},"updated":"2020-03-12 18:34:57.000000000","message":"space","commit_id":"c2f0a8911100732c8e5f20c30b60b9a2b5081077"}]}
