Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add upsert capability for Crons #2925

Closed
gaprl opened this issue Apr 1, 2024 · 0 comments · Fixed by #2929
Closed

Add upsert capability for Crons #2925

gaprl opened this issue Apr 1, 2024 · 0 comments · Fixed by #2929
Assignees
Labels
Enhancement New feature or request Feature: Crons

Comments

@gaprl
Copy link
Member

gaprl commented Apr 1, 2024

Problem Statement

Currently, the Python SDK does not support upserting monitors. Given it allows customers to provide the monitor configuration in-code, it can be helpful for organizations, especially if they have a lot of monitors to create/manage.

Here's an example of our upsert for our Node.JS SDK.

Solution Brainstorm

Be able to provide the following config in the @monitor decorator:

{
  schedule: {
    type: "crontab",
    value: "* * * * *",
  },
  checkinMargin: 2, // In minutes. Optional.
  maxRuntime: 10, // In minutes. Optional.
  timezone: "America/Los_Angeles", // Optional.
  failure_issue_threshold: 1, // Optional
  recovery_threshold: 1, // Optional
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request Feature: Crons
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants