mirror of
https://github.com/hanzoai/sentinel.git
synced 2026-10-30 14:49:14 +00:00
19 lines
479 B
TypeScript
19 lines
479 B
TypeScript
import type {Client} from 'sentry/api';
|
|
import type {Organization} from 'sentry/types';
|
|
|
|
import type {ThresholdStatus, ThresholdStatusesQuery} from './types';
|
|
|
|
export function fetchThresholdStatuses(
|
|
organization: Organization,
|
|
api: Client,
|
|
query: ThresholdStatusesQuery
|
|
): Promise<{[key: string]: ThresholdStatus[]}> {
|
|
return api.requestPromise(
|
|
`/organizations/${organization.slug}/release-threshold-statuses/`,
|
|
{
|
|
method: 'GET',
|
|
query,
|
|
}
|
|
);
|
|
}
|