Skip to content

Commit

Permalink
Add skipped rules to Bulk Edit rules API response
Browse files Browse the repository at this point in the history
  • Loading branch information
jpdjere committed Dec 12, 2022
1 parent 2ed9278 commit 8d326f6
Show file tree
Hide file tree
Showing 28 changed files with 4,966 additions and 12,973 deletions.
16 changes: 16 additions & 0 deletions x-pack/plugins/alerting/common/bulk_edit.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0; you may not use this file except in compliance with the Elastic License
* 2.0.
*/

import { Rule } from './rule';

export type BulkEditSkipReason = 'RULE_NOT_MODIFIED';

export interface BulkActionSkipResult {
id: Rule['id'];
name?: Rule['name'];
skip_reason: BulkEditSkipReason;
}
1 change: 1 addition & 0 deletions x-pack/plugins/alerting/common/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export * from './rule_navigation';
export * from './alert_instance';
export * from './alert_summary';
export * from './builtin_action_groups';
export * from './bulk_edit';
export * from './disabled_action_groups';
export * from './rule_notify_when_type';
export * from './parse_duration';
Expand Down

0 comments on commit 8d326f6

Please sign in to comment.