Skip to content

Conversation

@taraslayshchuk
Copy link
Contributor

I was wondering why it is missing. It is bunch of manual work.

@taraslayshchuk
Copy link
Contributor Author

@yannmh, could you please review?

return no_punct.replace(" ", "_").replace("-", "_").strip("_")

format = args.format
res = api.Monitor.get_all(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This won’t work for orgs with lots of monitors as it will auto paginate. At super scale there is also an alternative pagination method, I’ve implemented in a different tool in this PR: airbnb/interferon#58

if 'id' in monitor_obj:
# Always convert to int, in case it was originally a string.
monitor_obj["id"] = int(monitor_obj["id"])
res = api.Monitor.update(**monitor_obj)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not a fan of this as it’s not very smart. For example you can’t change a monitor type but this will attempt and fail and leave the user confused.

@github-actions
Copy link

This issue has been automatically marked as stale because it has not had activity in the last 30 days.
Note that the issue will not be automatically closed, but this notification will remind us to investigate why there's been inactivity.

@github-actions github-actions bot added the stale Stale - Bot reminder label Jan 16, 2020
@jirikuncar jirikuncar added changelog/Added Added features results into a minor version bump community/help-wanted Community help wanted resource/dogshell and removed stale Stale - Bot reminder labels Jan 21, 2020
@github-actions
Copy link

This issue has been automatically marked as stale because it has not had activity in the last 30 days.
Note that the issue will not be automatically closed, but this notification will remind us to investigate why there's been inactivity.

@github-actions github-actions bot added the stale Stale - Bot reminder label Feb 21, 2020
@zippolyte zippolyte removed their request for review April 2, 2021 09:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog/Added Added features results into a minor version bump community/help-wanted Community help wanted resource/dogshell stale Stale - Bot reminder

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants