uptimeRule.ts 537 B

1234567891011121314151617
  1. import { ActorFixture } from "sentry-fixture/actor";
  2. import { UptimeMonitorMode, UptimeMonitorStatus, UptimeRule } from "sentry/views/alerts/rules/uptime/types";
  3. export function UptimeRuleFixture(params: Partial<UptimeRule> = {}): UptimeRule {
  4. return {
  5. id: '1',
  6. intervalSeconds: 5,
  7. mode: UptimeMonitorMode.AUTO_DETECTED_ACTIVE,
  8. name: 'Uptime Rule',
  9. owner: ActorFixture(),
  10. projectSlug: 'project-slug',
  11. status: UptimeMonitorStatus.OK,
  12. timeoutMs: 5000,
  13. url: 'https://sentry.io/',
  14. ...params,
  15. }
  16. }