Skip to content

Add upsert capability for Crons #2925

Closed
@gaprl

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
};

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions