)]}'
{"nagios/plugins/query_prometheus_alerts.py":[{"author":{"_account_id":30582,"name":"RADHIKA PAI","email":"rp592h@att.com","username":"rp592h"},"change_message_id":"7dd6c68085f672b096fc2110d4e71ebc3999bb7f","unresolved":false,"context_lines":[{"line_number":156,"context_line":"            \"ERROR:  Prometheus api connection failed, using URL {}\".format(clean_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(clean_api_address, 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":2,"id":"9f560f44_8d282c33","line":159,"updated":"2020-08-26 20:13:28.000000000","message":"needs to be only clean_api","commit_id":"a639aad460923848c8563cebdf794bef2777a5c4"},{"author":{"_account_id":30582,"name":"RADHIKA PAI","email":"rp592h@att.com","username":"rp592h"},"change_message_id":"efc0aec6ab5f63d7d3008a6c1cf82483bd2b96a5","unresolved":false,"context_lines":[{"line_number":156,"context_line":"            \"ERROR:  Prometheus api connection failed, using URL {}\".format(clean_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(clean_api_address, 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":3,"id":"9f560f44_ad81b0fd","line":159,"updated":"2020-08-26 20:21:12.000000000","message":"needs to be only clean_api","commit_id":"bfe6abc82dcc41d7910c050e4b7fd0d0260a0e93"},{"author":{"_account_id":20466,"name":"Tin Lam","email":"tin@lam.wtf","username":"tinlam"},"change_message_id":"5f09f6c347500a2ca77bde159f779c6b30e5bafd","unresolved":false,"context_lines":[{"line_number":131,"context_line":""},{"line_number":132,"context_line":""},{"line_number":133,"context_line":"def query_prometheus(prometheus_api, alertname, labels_csv, timeout):"},{"line_number":134,"context_line":"    clean_api \u003d clean_api_address(prometheus_api)"},{"line_number":135,"context_line":"    error_messages \u003d []"},{"line_number":136,"context_line":"    response_json \u003d dict()"},{"line_number":137,"context_line":"    try:"}],"source_content_type":"text/x-python","patch_set":6,"id":"9f560f44_09c8b51f","line":134,"range":{"start_line":134,"start_character":5,"end_line":134,"end_character":13},"updated":"2020-09-10 03:59:43.000000000","message":"this variable is declared but not used","commit_id":"d7fb79c1aadf7f6025c45f8c0a26a2e91df75434"},{"author":{"_account_id":28849,"name":"Meghan Heisler","email":"mkheisler93@gmail.com","username":"mh783g"},"change_message_id":"9a89e6fd99510d98f5ee01b0f51623ac7eadb744","unresolved":false,"context_lines":[{"line_number":131,"context_line":""},{"line_number":132,"context_line":""},{"line_number":133,"context_line":"def query_prometheus(prometheus_api, alertname, labels_csv, timeout):"},{"line_number":134,"context_line":"    clean_api \u003d clean_api_address(prometheus_api)"},{"line_number":135,"context_line":"    error_messages \u003d []"},{"line_number":136,"context_line":"    response_json \u003d dict()"},{"line_number":137,"context_line":"    try:"}],"source_content_type":"text/x-python","patch_set":6,"id":"9f560f44_90ecd829","line":134,"range":{"start_line":134,"start_character":5,"end_line":134,"end_character":13},"in_reply_to":"9f560f44_09c8b51f","updated":"2020-09-10 16:42:44.000000000","message":"Done","commit_id":"d7fb79c1aadf7f6025c45f8c0a26a2e91df75434"},{"author":{"_account_id":20466,"name":"Tin Lam","email":"tin@lam.wtf","username":"tinlam"},"change_message_id":"5f09f6c347500a2ca77bde159f779c6b30e5bafd","unresolved":false,"context_lines":[{"line_number":211,"context_line":""},{"line_number":212,"context_line":"def clean_api_address(prometheus_api):"},{"line_number":213,"context_line":"   try:"},{"line_number":214,"context_line":"     match\u003dre.match(r\u0027(http(s?):\\/\\/(.[^:]*):)(.[^@]*)\u0027, prometheus_api)"},{"line_number":215,"context_line":"     return  re.sub(match.group(4), \u0027REDACTED\u0027, prometheus_api)"},{"line_number":216,"context_line":"   except:"},{"line_number":217,"context_line":"     return prometheus_api"}],"source_content_type":"text/x-python","patch_set":6,"id":"9f560f44_e9caa117","line":214,"range":{"start_line":214,"start_character":10,"end_line":214,"end_character":12},"updated":"2020-09-10 03:59:43.000000000","message":"spaces before and after \u003d","commit_id":"d7fb79c1aadf7f6025c45f8c0a26a2e91df75434"},{"author":{"_account_id":28849,"name":"Meghan Heisler","email":"mkheisler93@gmail.com","username":"mh783g"},"change_message_id":"9a89e6fd99510d98f5ee01b0f51623ac7eadb744","unresolved":false,"context_lines":[{"line_number":211,"context_line":""},{"line_number":212,"context_line":"def clean_api_address(prometheus_api):"},{"line_number":213,"context_line":"   try:"},{"line_number":214,"context_line":"     match\u003dre.match(r\u0027(http(s?):\\/\\/(.[^:]*):)(.[^@]*)\u0027, prometheus_api)"},{"line_number":215,"context_line":"     return  re.sub(match.group(4), \u0027REDACTED\u0027, prometheus_api)"},{"line_number":216,"context_line":"   except:"},{"line_number":217,"context_line":"     return prometheus_api"}],"source_content_type":"text/x-python","patch_set":6,"id":"9f560f44_d0f2d004","line":214,"range":{"start_line":214,"start_character":10,"end_line":214,"end_character":12},"in_reply_to":"9f560f44_e9caa117","updated":"2020-09-10 16:42:44.000000000","message":"Done","commit_id":"d7fb79c1aadf7f6025c45f8c0a26a2e91df75434"},{"author":{"_account_id":20466,"name":"Tin Lam","email":"tin@lam.wtf","username":"tinlam"},"change_message_id":"5f09f6c347500a2ca77bde159f779c6b30e5bafd","unresolved":false,"context_lines":[{"line_number":212,"context_line":"def clean_api_address(prometheus_api):"},{"line_number":213,"context_line":"   try:"},{"line_number":214,"context_line":"     match\u003dre.match(r\u0027(http(s?):\\/\\/(.[^:]*):)(.[^@]*)\u0027, prometheus_api)"},{"line_number":215,"context_line":"     return  re.sub(match.group(4), \u0027REDACTED\u0027, prometheus_api)"},{"line_number":216,"context_line":"   except:"},{"line_number":217,"context_line":"     return prometheus_api"},{"line_number":218,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"9f560f44_49ce2d2d","line":215,"range":{"start_line":215,"start_character":12,"end_line":215,"end_character":13},"updated":"2020-09-10 03:59:43.000000000","message":"extra space","commit_id":"d7fb79c1aadf7f6025c45f8c0a26a2e91df75434"},{"author":{"_account_id":28849,"name":"Meghan Heisler","email":"mkheisler93@gmail.com","username":"mh783g"},"change_message_id":"9a89e6fd99510d98f5ee01b0f51623ac7eadb744","unresolved":false,"context_lines":[{"line_number":212,"context_line":"def clean_api_address(prometheus_api):"},{"line_number":213,"context_line":"   try:"},{"line_number":214,"context_line":"     match\u003dre.match(r\u0027(http(s?):\\/\\/(.[^:]*):)(.[^@]*)\u0027, prometheus_api)"},{"line_number":215,"context_line":"     return  re.sub(match.group(4), \u0027REDACTED\u0027, prometheus_api)"},{"line_number":216,"context_line":"   except:"},{"line_number":217,"context_line":"     return prometheus_api"},{"line_number":218,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"9f560f44_30dd0c70","line":215,"range":{"start_line":215,"start_character":12,"end_line":215,"end_character":13},"in_reply_to":"9f560f44_49ce2d2d","updated":"2020-09-10 16:42:44.000000000","message":"Done","commit_id":"d7fb79c1aadf7f6025c45f8c0a26a2e91df75434"}]}
