diff --git a/ops/alert_on_missing_events/README.md b/ops/alert_on_missing_events/README.md index 14cc085a..97e5aac3 100644 --- a/ops/alert_on_missing_events/README.md +++ b/ops/alert_on_missing_events/README.md @@ -60,7 +60,8 @@ events, and resends reminder alerts at a shorter interval. Follow [these detailed instructions](https://docs.autokitteh.com/get_started/deployment) to deploy the project on a self-hosted server. -Also follow the instructions in the [Cloud Usage](#cloud-usage) section above. +Also follow the relevant instructions in the [Cloud Usage](#cloud-usage) +section above. ### Advanced Usage diff --git a/ops/alert_on_session_errors/README.md b/ops/alert_on_session_errors/README.md index deb8b733..0e5052ea 100644 --- a/ops/alert_on_session_errors/README.md +++ b/ops/alert_on_session_errors/README.md @@ -52,4 +52,4 @@ ak auth create-token Follow [these detailed instructions](https://docs.autokitteh.com/get_started/deployment) to deploy the project on a self-hosted server. -Also follow the instructions in the [Cloud Usage](#cloud-usage) section above. +Also follow steps 3-4 in the [Cloud Usage](#cloud-usage) section above. diff --git a/ops/alert_on_session_errors/program.py b/ops/alert_on_session_errors/program.py index 12f9f008..14191bd3 100644 --- a/ops/alert_on_session_errors/program.py +++ b/ops/alert_on_session_errors/program.py @@ -55,7 +55,7 @@ def _list_sessions_with_errors(): def _log_error(session): - data = json.dumps(session, indent=True) + data = json.dumps(session, indent=4) print(data) pid, did = session["projectId"], session["deploymentId"] diff --git a/purrr/slack_channel.py b/purrr/slack_channel.py index aba154da..3d4f4100 100644 --- a/purrr/slack_channel.py +++ b/purrr/slack_channel.py @@ -35,7 +35,7 @@ def initialize_for_github_pr(action: str, pr, sender) -> str: ID of the created Slack channel. """ print(f"Creating Slack channel for {pr.html_url} (PR event action: {action})") - print(json.dumps(pr, indent=2, sort_keys=True)) + print(json.dumps(pr, indent=4, sort_keys=True)) name = f"{pr.number}_{slack_helper.normalize_channel_name(pr.title)}" channel_id = slack_helper.create_channel(name) diff --git a/samples/google/gmail/program.py b/samples/google/gmail/program.py index 4bfa600b..c442e16d 100644 --- a/samples/google/gmail/program.py +++ b/samples/google/gmail/program.py @@ -72,7 +72,7 @@ def _drafts_get(id): print(f"Error: `{e.reason}`") return - print(f"```\n{json.dumps(resp, indent=2)}\n```") + print(f"```\n{json.dumps(resp, indent=4)}\n```") def _drafts_list(query): @@ -90,7 +90,7 @@ def _drafts_list(query): print(f"Result size estimate: `{resp['resultSizeEstimate']}`") for i, d in enumerate(resp.get("drafts", []), start=1): - print(f"{i}\n```\n{json.dumps(d, indent=2)}\n```") + print(f"{i}\n```\n{json.dumps(d, indent=4)}\n```") next_page_token = resp.get("nextPageToken") if next_page_token: @@ -109,7 +109,7 @@ def _messages_get(id): print(f"Error: `{e.reason}`") return - print(f"```\n{json.dumps(resp, indent=2)}\n```") + print(f"```\n{json.dumps(resp, indent=4)}\n```") def _messages_list(query): @@ -130,7 +130,7 @@ def _messages_list(query): print(f"Result size estimate: `{resp['resultSizeEstimate']}`") for i, m in enumerate(resp.get("messages", []), start=1): - print(f"{i}\n```\n{json.dumps(m, indent=2)}\n```") + print(f"{i}\n```\n{json.dumps(m, indent=4)}\n```") next_page_token = resp.get("nextPageToken") if next_page_token: