diff --git a/check_http_json.py b/check_http_json.py index 8d355d3..563c68a 100755 --- a/check_http_json.py +++ b/check_http_json.py @@ -334,7 +334,7 @@ class JsonRuleProcessor: key, alias = _getKeyAlias(k) failure += self.checkThreshold(key, alias, r) return failure - + def checkTimestamp(self, key, alias, r): failure = '' invert = False @@ -368,7 +368,7 @@ class JsonRuleProcessor: except: return " Value (%s) for key %s is not a Date in ISO format." % \ (self.helper.get(key), alias) - + now = datetime.now(timezone.utc) age = now - timestamp @@ -732,4 +732,4 @@ if __name__ == "__main__": # Program entry point main(sys.argv[1:]) -#EOF \ No newline at end of file +#EOF