index.tsx 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. import {Fragment} from 'react';
  2. import Panel from 'sentry/components/panels/panel';
  3. import PanelBody from 'sentry/components/panels/panelBody';
  4. import PanelHeader from 'sentry/components/panels/panelHeader';
  5. import SentryDocumentTitle from 'sentry/components/sentryDocumentTitle';
  6. import {t} from 'sentry/locale';
  7. import ApiChart from './apiChart';
  8. import EventChart from './eventChart';
  9. function AdminOverview() {
  10. const resolution = '1h';
  11. const since = new Date().getTime() / 1000 - 3600 * 24 * 7;
  12. return (
  13. <SentryDocumentTitle title={t('Admin Overview')}>
  14. <Fragment>
  15. <h3>{t('System Overview')}</h3>
  16. <Panel key="events">
  17. <PanelHeader>{t('Event Throughput')}</PanelHeader>
  18. <PanelBody withPadding>
  19. <EventChart since={since} resolution={resolution} />
  20. </PanelBody>
  21. </Panel>
  22. <Panel key="api">
  23. <PanelHeader>{t('API Responses')}</PanelHeader>
  24. <PanelBody withPadding>
  25. <ApiChart since={since} resolution={resolution} />
  26. </PanelBody>
  27. </Panel>
  28. </Fragment>
  29. </SentryDocumentTitle>
  30. );
  31. }
  32. export default AdminOverview;