index.tsx 1.0 KB

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