projectAlertRule.js 345 B

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