projectAlertRule.js 410 B

123456789101112131415
  1. export function ProjectAlertRule(params = {}) {
  2. return {
  3. id: '1',
  4. name: 'My alert rule',
  5. environment: 'staging',
  6. actionMatch: 'all',
  7. filterMatch: 'all',
  8. conditions: [{name: 'An alert is first seen', id: 'sentry.rules.conditions.1'}],
  9. actions: [
  10. {name: 'Send a notification to all services', id: 'sentry.rules.actions.notify1'},
  11. ],
  12. filters: [],
  13. ...params,
  14. };
  15. }