useProjectWebVitalsTimeseriesQuery.tsx 665 B

123456789101112131415161718
  1. import type {Sort} from 'sentry/utils/discover/fields';
  2. import {useProjectWebVitalsScoresTimeseriesQuery} from 'sentry/views/performance/browser/webVitals/utils/queries/storedScoreQueries/useProjectWebVitalsScoresTimeseriesQuery';
  3. import type {WebVitals} from 'sentry/views/performance/browser/webVitals/utils/types';
  4. type Props = {
  5. defaultSort?: Sort;
  6. limit?: number;
  7. orderBy?: WebVitals | null;
  8. sortName?: string;
  9. transaction?: string | null;
  10. };
  11. export const useProjectWebVitalsTimeseriesQuery = ({transaction}: Props) => {
  12. const storedScoresResult = useProjectWebVitalsScoresTimeseriesQuery({
  13. transaction,
  14. });
  15. return storedScoresResult;
  16. };