incidentTrigger.ts 372 B

12345678910111213
  1. import {AlertRuleTriggerType, SavedTrigger} from 'sentry/views/alerts/rules/metric/types';
  2. export function IncidentTrigger(params: Partial<SavedTrigger> = {}): SavedTrigger {
  3. return {
  4. alertRuleId: '4',
  5. alertThreshold: 70,
  6. dateCreated: '2019-09-24T18:07:47.714Z',
  7. id: '1',
  8. label: AlertRuleTriggerType.CRITICAL,
  9. actions: [],
  10. ...params,
  11. };
  12. }