fetchThresholdStatus.tsx 464 B

123456789101112131415161718
  1. import {Client} from 'sentry/api';
  2. import {Organization} from 'sentry/types';
  3. import {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. }