Title: Support team assignment for cron monitors via SDK · Issue #5609 · getsentry/sentry-python · GitHub
Open Graph Title: Support team assignment for cron monitors via SDK · Issue #5609 · getsentry/sentry-python
X Title: Support team assignment for cron monitors via SDK · Issue #5609 · getsentry/sentry-python
Description: 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 crea...
Open Graph Description: 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 sep...
X Description: 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...
Opengraph URL: https://github.com/getsentry/sentry-python/issues/5609
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Support team assignment for cron monitors via SDK","articleBody":"### Problem Statement\n\nWhen 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.\n\n### Solution Brainstorm\n\nAdd support for team assignment in the MonitorConfig TypedDict so monitors can be assigned to teams programmatically:\n\n```\nmonitor_config = {\n \"schedule\": {\"type\": \"crontab\", \"value\": \"0 7 * * *\"},\n \"checkin_margin\": 5,\n \"max_runtime\": 30,\n \"timezone\": \"UTC\",\n \"team\": \"my-team-slug\" # or team_id\n}\n```\n\n```\n with sentry_monitor(\n monitor_slug=\"my-cron-job\",\n monitor_config=monitor_config\n ):\n execute_job()\n```\n\n\nFor 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:\n - Discoverability (team members see their jobs automatically)\n - Ownership clarity and triaging of alerts\n - Automation (no manual UI steps post-deployment)\n\nThanks!","author":{"url":"https://github.com/julwhitney13","@type":"Person","name":"julwhitney13"},"datePublished":"2026-03-06T16:01:07Z","url":"https://github.com/getsentry/sentry-python/issues/5609"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:6faef015-7b07-1fb4-86b9-c3c77a40bbf8 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C4D6:EDA7A:6F0418:8ED387:6B00E322 |
| html-safe-nonce | 29d4df004ada1cfb9ff8f86b01a102dba2bb2666f00c445ad5c0ccc0b6fc2498 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNEQ2OkVEQTdBOjZGMDQxODo4RUQzODc6NkIwMEUzMjIiLCJ2aXNpdG9yX2lkIjoiNTU3NjMxODMyMzIzNjMzMjMyMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | ebeb87e5768bd5dad56d2f9eb7e07f2619f19daea383fc5dc025662047d67e1b |
| hovercard-subject-tag | issue:4034945495 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-python/5609/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6ce8a72330a696df46e63f6246ebf8eba0ca8ce77424293ac139c381bb0838e2/getsentry/sentry-python/issues/5609 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6ce8a72330a696df46e63f6246ebf8eba0ca8ce77424293ac139c381bb0838e2/getsentry/sentry-python/issues/5609 |
| og:image:alt | 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 sep... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | julwhitney13 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 27088b6977484d0d3321d9a11c907c6d6637b315cfa359ef7952dbf6292f9b14 |
| turbo-cache-control | no-preview |
| go-import | github.com/getsentry/sentry-python git https://github.com/getsentry/sentry-python.git |
| octolytics-dimension-user_id | 1396951 |
| octolytics-dimension-user_login | getsentry |
| octolytics-dimension-repository_id | 137814779 |
| octolytics-dimension-repository_nwo | getsentry/sentry-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 137814779 |
| octolytics-dimension-repository_network_root_nwo | getsentry/sentry-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 624179fb8b88d26ba5bba08894eb60a1c5a1d93d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width