123456789101112 |
- export function ProjectAlertRule(params = {}) {
- return {
- id: '1',
- name: 'My alert rule',
- environment: 'staging',
- conditions: [{name: 'An alert is first seen', id: 'sentry.rules.conditions.1'}],
- actions: [
- {name: 'Send a notification to all services', id: 'sentry.rules.actions.notify1'},
- ],
- ...params,
- };
- }
|