fetchThresholdStatus.tsx 479 B

123456789101112131415161718
  1. import type {Client} from 'sentry/api';
  2. import type {Organization} from 'sentry/types';
  3. import type {ThresholdStatus, ThresholdStatusesQuery} from './types';
  4. export function fetchThresholdStatuses(
  5. organization: Organization,
  6. api: Client,
  7. query: ThresholdStatusesQuery
  8. ): Promise<{[key: string]: ThresholdStatus[]}> {
  9. return api.requestPromise(
  10. `/organizations/${organization.slug}/release-threshold-statuses/`,
  11. {
  12. method: 'GET',
  13. query,
  14. }
  15. );
  16. }