Skip to content

Commit

Permalink
increased default data window size from 2min to 5min. added --window …
Browse files Browse the repository at this point in the history
…flag.
  • Loading branch information
seanshahkarami committed Mar 4, 2022
1 parent b7e51bd commit 367c863
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions check_nodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,7 @@ def main():
nodes_with_issues = set(results.node)
print("Total nodes with issues:", len(nodes_with_issues))
print("Total unique data series:", len(df))
print("Total number of issues:", len(results))


if __name__ == "__main__":
Expand Down
3 changes: 2 additions & 1 deletion report_results.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ def main():
parser.add_argument("--keep-last", default=100, type=int, help="number of old files to keep")
parser.add_argument("-p", "--path", default=".", help="path to store files")
parser.add_argument("-c", "--checker", default="check_nodes.py", help="path to checker script")
parser.add_argument("--window", default="5m", help="data window duration for check")
args = parser.parse_args()

SLACK_TOKEN = os.environ["SLACK_TOKEN"]
Expand All @@ -125,7 +126,7 @@ def main():
"python3",
args.checker,
"--window",
"2m",
args.window,
# "--ssh", # TODO provide ssh access
"--uploads",
"-o",
Expand Down

0 comments on commit 367c863

Please sign in to comment.