|
@@ -1643,47 +1643,47 @@ ORGANIZATION_URLS = [
|
|
),
|
|
),
|
|
# Monitors
|
|
# Monitors
|
|
re_path(
|
|
re_path(
|
|
- r"^(?P<organization_slug>[^\/]+)/monitors/$",
|
|
|
|
|
|
+ r"^(?P<organization_id_or_slug>[^\/]+)/monitors/$",
|
|
OrganizationMonitorIndexEndpoint.as_view(),
|
|
OrganizationMonitorIndexEndpoint.as_view(),
|
|
name="sentry-api-0-organization-monitor-index",
|
|
name="sentry-api-0-organization-monitor-index",
|
|
),
|
|
),
|
|
re_path(
|
|
re_path(
|
|
- r"^(?P<organization_slug>[^\/]+)/monitors-stats/$",
|
|
|
|
|
|
+ r"^(?P<organization_id_or_slug>[^\/]+)/monitors-stats/$",
|
|
OrganizationMonitorIndexStatsEndpoint.as_view(),
|
|
OrganizationMonitorIndexStatsEndpoint.as_view(),
|
|
name="sentry-api-0-organization-monitor-index-stats",
|
|
name="sentry-api-0-organization-monitor-index-stats",
|
|
),
|
|
),
|
|
re_path(
|
|
re_path(
|
|
- r"^(?P<organization_slug>[^\/]+)/processing-errors/$",
|
|
|
|
|
|
+ r"^(?P<organization_id_or_slug>[^\/]+)/processing-errors/$",
|
|
OrganizationMonitorProcessingErrorsIndexEndpoint.as_view(),
|
|
OrganizationMonitorProcessingErrorsIndexEndpoint.as_view(),
|
|
name="sentry-api-0-organization-monitor-processing-errors-index",
|
|
name="sentry-api-0-organization-monitor-processing-errors-index",
|
|
),
|
|
),
|
|
re_path(
|
|
re_path(
|
|
- r"^(?P<organization_slug>[^\/]+)/monitors-schedule-data/$",
|
|
|
|
|
|
+ r"^(?P<organization_id_or_slug>[^\/]+)/monitors-schedule-data/$",
|
|
OrganizationMonitorScheduleSampleDataEndpoint.as_view(),
|
|
OrganizationMonitorScheduleSampleDataEndpoint.as_view(),
|
|
name="sentry-api-0-organization-monitors-schedule-sample-data",
|
|
name="sentry-api-0-organization-monitors-schedule-sample-data",
|
|
),
|
|
),
|
|
re_path(
|
|
re_path(
|
|
- r"^(?P<organization_slug>[^\/]+)/monitors/(?P<monitor_id_or_slug>[^\/]+)/$",
|
|
|
|
|
|
+ r"^(?P<organization_id_or_slug>[^\/]+)/monitors/(?P<monitor_id_or_slug>[^\/]+)/$",
|
|
OrganizationMonitorDetailsEndpoint.as_view(),
|
|
OrganizationMonitorDetailsEndpoint.as_view(),
|
|
name="sentry-api-0-organization-monitor-details",
|
|
name="sentry-api-0-organization-monitor-details",
|
|
),
|
|
),
|
|
re_path(
|
|
re_path(
|
|
- r"^(?P<organization_slug>[^\/]+)/monitors/(?P<monitor_id_or_slug>[^\/]+)/environments/(?P<environment>[^\/]+)$",
|
|
|
|
|
|
+ r"^(?P<organization_id_or_slug>[^\/]+)/monitors/(?P<monitor_id_or_slug>[^\/]+)/environments/(?P<environment>[^\/]+)$",
|
|
OrganizationMonitorEnvironmentDetailsEndpoint.as_view(),
|
|
OrganizationMonitorEnvironmentDetailsEndpoint.as_view(),
|
|
name="sentry-api-0-organization-monitor-environment-details",
|
|
name="sentry-api-0-organization-monitor-environment-details",
|
|
),
|
|
),
|
|
re_path(
|
|
re_path(
|
|
- r"^(?P<organization_slug>[^\/]+)/monitors/(?P<monitor_id_or_slug>[^\/]+)/stats/$",
|
|
|
|
|
|
+ r"^(?P<organization_id_or_slug>[^\/]+)/monitors/(?P<monitor_id_or_slug>[^\/]+)/stats/$",
|
|
OrganizationMonitorStatsEndpoint.as_view(),
|
|
OrganizationMonitorStatsEndpoint.as_view(),
|
|
name="sentry-api-0-organization-monitor-stats",
|
|
name="sentry-api-0-organization-monitor-stats",
|
|
),
|
|
),
|
|
re_path(
|
|
re_path(
|
|
- r"^(?P<organization_slug>[^\/]+)/monitors/(?P<monitor_id_or_slug>[^\/]+)/checkins/$",
|
|
|
|
|
|
+ r"^(?P<organization_id_or_slug>[^\/]+)/monitors/(?P<monitor_id_or_slug>[^\/]+)/checkins/$",
|
|
OrganizationMonitorCheckInIndexEndpoint.as_view(),
|
|
OrganizationMonitorCheckInIndexEndpoint.as_view(),
|
|
name="sentry-api-0-organization-monitor-check-in-index",
|
|
name="sentry-api-0-organization-monitor-check-in-index",
|
|
),
|
|
),
|
|
re_path(
|
|
re_path(
|
|
- r"^(?P<organization_slug>[^\/]+)/monitors/(?P<monitor_id_or_slug>[^\/]+)/checkins/(?P<checkin_id>[^\/]+)/attachment/$",
|
|
|
|
|
|
+ r"^(?P<organization_id_or_slug>[^\/]+)/monitors/(?P<monitor_id_or_slug>[^\/]+)/checkins/(?P<checkin_id>[^\/]+)/attachment/$",
|
|
method_dispatch(
|
|
method_dispatch(
|
|
GET=OrganizationMonitorCheckInAttachmentEndpoint.as_view(),
|
|
GET=OrganizationMonitorCheckInAttachmentEndpoint.as_view(),
|
|
OPTIONS=OrganizationMonitorCheckInAttachmentEndpoint.as_view(),
|
|
OPTIONS=OrganizationMonitorCheckInAttachmentEndpoint.as_view(),
|
|
@@ -2120,12 +2120,12 @@ ORGANIZATION_URLS = [
|
|
),
|
|
),
|
|
# Unsubscribe from organization notifications
|
|
# Unsubscribe from organization notifications
|
|
re_path(
|
|
re_path(
|
|
- r"^(?P<organization_slug>[^/]+)/unsubscribe/project/(?P<id>\d+)/$",
|
|
|
|
|
|
+ r"^(?P<organization_id_or_slug>[^/]+)/unsubscribe/project/(?P<id>\d+)/$",
|
|
OrganizationUnsubscribeProject.as_view(),
|
|
OrganizationUnsubscribeProject.as_view(),
|
|
name="sentry-api-0-organization-unsubscribe-project",
|
|
name="sentry-api-0-organization-unsubscribe-project",
|
|
),
|
|
),
|
|
re_path(
|
|
re_path(
|
|
- r"^(?P<organization_slug>[^/]+)/unsubscribe/issue/(?P<id>\d+)/$",
|
|
|
|
|
|
+ r"^(?P<organization_id_or_slug>[^/]+)/unsubscribe/issue/(?P<id>\d+)/$",
|
|
OrganizationUnsubscribeIssue.as_view(),
|
|
OrganizationUnsubscribeIssue.as_view(),
|
|
name="sentry-api-0-organization-unsubscribe-issue",
|
|
name="sentry-api-0-organization-unsubscribe-issue",
|
|
),
|
|
),
|
|
@@ -2743,22 +2743,22 @@ PROJECT_URLS: list[URLPattern | URLResolver] = [
|
|
name="sentry-api-0-project-statistical-detector",
|
|
name="sentry-api-0-project-statistical-detector",
|
|
),
|
|
),
|
|
re_path(
|
|
re_path(
|
|
- r"^(?P<organization_slug>[^\/]+)/(?P<project_id_or_slug>[^\/]+)/monitors/(?P<monitor_id_or_slug>[^\/]+)/checkins/(?P<checkin_id>[^\/]+)/attachment/$",
|
|
|
|
|
|
+ r"^(?P<organization_id_or_slug>[^\/]+)/(?P<project_id_or_slug>[^\/]+)/monitors/(?P<monitor_id_or_slug>[^\/]+)/checkins/(?P<checkin_id>[^\/]+)/attachment/$",
|
|
ProjectMonitorCheckInAttachmentEndpoint.as_view(),
|
|
ProjectMonitorCheckInAttachmentEndpoint.as_view(),
|
|
name="sentry-api-0-project-monitor-check-in-attachment",
|
|
name="sentry-api-0-project-monitor-check-in-attachment",
|
|
),
|
|
),
|
|
re_path(
|
|
re_path(
|
|
- r"^(?P<organization_slug>[^\/]+)/(?P<project_id_or_slug>[^\/]+)/monitors/(?P<monitor_id_or_slug>[^\/]+)/$",
|
|
|
|
|
|
+ r"^(?P<organization_id_or_slug>[^\/]+)/(?P<project_id_or_slug>[^\/]+)/monitors/(?P<monitor_id_or_slug>[^\/]+)/$",
|
|
ProjectMonitorDetailsEndpoint.as_view(),
|
|
ProjectMonitorDetailsEndpoint.as_view(),
|
|
name="sentry-api-0-project-monitor-details",
|
|
name="sentry-api-0-project-monitor-details",
|
|
),
|
|
),
|
|
re_path(
|
|
re_path(
|
|
- r"^(?P<organization_slug>[^\/]+)/(?P<project_id_or_slug>[^\/]+)/monitors/(?P<monitor_id_or_slug>[^\/]+)/checkins/$",
|
|
|
|
|
|
+ r"^(?P<organization_id_or_slug>[^\/]+)/(?P<project_id_or_slug>[^\/]+)/monitors/(?P<monitor_id_or_slug>[^\/]+)/checkins/$",
|
|
ProjectMonitorCheckInIndexEndpoint.as_view(),
|
|
ProjectMonitorCheckInIndexEndpoint.as_view(),
|
|
name="sentry-api-0-project-monitor-check-in-index",
|
|
name="sentry-api-0-project-monitor-check-in-index",
|
|
),
|
|
),
|
|
re_path(
|
|
re_path(
|
|
- r"^(?P<organization_slug>[^\/]+)/(?P<project_id_or_slug>[^\/]+)/monitors/(?P<monitor_id_or_slug>[^\/]+)/environments/(?P<environment>[^\/]+)$",
|
|
|
|
|
|
+ r"^(?P<organization_id_or_slug>[^\/]+)/(?P<project_id_or_slug>[^\/]+)/monitors/(?P<monitor_id_or_slug>[^\/]+)/environments/(?P<environment>[^\/]+)$",
|
|
ProjectMonitorEnvironmentDetailsEndpoint.as_view(),
|
|
ProjectMonitorEnvironmentDetailsEndpoint.as_view(),
|
|
name="sentry-api-0-project-monitor-environment-details",
|
|
name="sentry-api-0-project-monitor-environment-details",
|
|
),
|
|
),
|
|
@@ -2768,12 +2768,12 @@ PROJECT_URLS: list[URLPattern | URLResolver] = [
|
|
name="sentry-api-0-project-processing-errors-details",
|
|
name="sentry-api-0-project-processing-errors-details",
|
|
),
|
|
),
|
|
re_path(
|
|
re_path(
|
|
- r"^(?P<organization_slug>[^\/]+)/(?P<project_id_or_slug>[^\/]+)/monitors/(?P<monitor_id_or_slug>[^\/]+)/processing-errors/$",
|
|
|
|
|
|
+ r"^(?P<organization_id_or_slug>[^\/]+)/(?P<project_id_or_slug>[^\/]+)/monitors/(?P<monitor_id_or_slug>[^\/]+)/processing-errors/$",
|
|
ProjectMonitorProcessingErrorsIndexEndpoint.as_view(),
|
|
ProjectMonitorProcessingErrorsIndexEndpoint.as_view(),
|
|
name="sentry-api-0-project-monitor-processing-errors-index",
|
|
name="sentry-api-0-project-monitor-processing-errors-index",
|
|
),
|
|
),
|
|
re_path(
|
|
re_path(
|
|
- r"^(?P<organization_slug>[^\/]+)/(?P<project_id_or_slug>[^\/]+)/monitors/(?P<monitor_id_or_slug>[^\/]+)/stats/$",
|
|
|
|
|
|
+ r"^(?P<organization_id_or_slug>[^\/]+)/(?P<project_id_or_slug>[^\/]+)/monitors/(?P<monitor_id_or_slug>[^\/]+)/stats/$",
|
|
ProjectMonitorStatsEndpoint.as_view(),
|
|
ProjectMonitorStatsEndpoint.as_view(),
|
|
name="sentry-api-0-project-monitor-stats",
|
|
name="sentry-api-0-project-monitor-stats",
|
|
),
|
|
),
|