Skip to content

Add upsert capability for Crons #2925

Closed

Description

@gaprl

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

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions