utils.tsx 527 B

12345678910111213141516171819202122
  1. import type {Organization} from 'sentry/types/organization';
  2. export function makeMonitorErrorsQueryKey(
  3. organization: Organization,
  4. projectId: string,
  5. monitorSlug: string
  6. ) {
  7. return [
  8. `/projects/${organization.slug}/${projectId}/monitors/${monitorSlug}/processing-errors/`,
  9. {},
  10. ] as const;
  11. }
  12. export function makeMonitorListErrorsQueryKey(
  13. organization: Organization,
  14. project?: string[]
  15. ) {
  16. return [
  17. `/organizations/${organization.slug}/processing-errors/`,
  18. {query: {project}},
  19. ] as const;
  20. }