metricRuleActivation.ts 433 B

123456789101112131415161718
  1. import type {AlertRuleActivation} from 'sentry/types/alerts';
  2. export function MetricRuleActivationFixture(
  3. params: Partial<AlertRuleActivation> = {}
  4. ): AlertRuleActivation {
  5. return {
  6. activator: '1234',
  7. alertRuleId: '1234',
  8. conditionType: '0',
  9. dateCreated: '2019-07-31T23:02:02.731Z',
  10. finishedAt: '',
  11. id: '1',
  12. isComplete: false,
  13. querySubscriptionId: '1',
  14. metricValue: 0,
  15. ...params,
  16. };
  17. }