Skip to content

Support team assignment for cron monitors via SDK #5609

Closed

Description

@julwhitney13

Problem Statement

When creating cron monitors via sentry_monitor(), there's no way to assign the monitor to a team. Currently, team ownership must be set manually through the Sentry UI or via a separate API call after the monitor is created.

Solution Brainstorm

Add support for team assignment in the MonitorConfig TypedDict so monitors can be assigned to teams programmatically:

monitor_config = {
    "schedule": {"type": "crontab", "value": "0 7 * * *"},
    "checkin_margin": 5,
    "max_runtime": 30,
    "timezone": "UTC",
    "team": "my-team-slug"  # or team_id
}
  with sentry_monitor(
      monitor_slug="my-cron-job",
      monitor_config=monitor_config
  ):
      execute_job()

For teams managing a lot of cron jobs (and multiple teams that all own different cron jobs) auto-assigning monitors to the right team during creation improves:

  • Discoverability (team members see their jobs automatically)
  • Ownership clarity and triaging of alerts
  • Automation (no manual UI steps post-deployment)

Thanks!

Activity

  1. linear-code commented on Mar 6, 2026

    @linear-code
  2. moved this to Waiting for: Product Owner in GitHub Issues with 👀 3on Mar 6, 2026
  3. self-assigned this
    on Mar 9, 2026
  4. ericapisani commented on Mar 9, 2026

    @ericapisani
    Member

    Hi @julwhitney13 ,

    Thanks for opening an issue with us and for the pull requests! We'll take a look at these as soon as we can.

  5. moved this from Waiting for: Product Owner to No status in GitHub Issues with 👀 3on Mar 9, 2026
  6. added a commit that references this issue on Mar 10, 2026
    adcd90c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions