Skip to content

Commit 2e2e722

Browse files
Deprecate services.callCluster in alerts and actions executors (#86474)
* Deprecate callCluster in alerts and actions services * Update deprecation comment Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
1 parent 125610f commit 2e2e722

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

x-pack/plugins/actions/server/types.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ export type ActionTypeSecrets = Record<string, unknown>;
3131
export type ActionTypeParams = Record<string, unknown>;
3232

3333
export interface Services {
34+
/**
35+
* @deprecated Use `scopedClusterClient` instead.
36+
*/
3437
callCluster: ILegacyScopedClusterClient['callAsCurrentUser'];
3538
savedObjectsClient: SavedObjectsClientContract;
3639
scopedClusterClient: ElasticsearchClient;

x-pack/plugins/alerts/server/types.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ declare module 'src/core/server' {
4747
}
4848

4949
export interface Services {
50+
/**
51+
* @deprecated Use `scopedClusterClient` instead.
52+
*/
5053
callCluster: ILegacyScopedClusterClient['callAsCurrentUser'];
5154
savedObjectsClient: SavedObjectsClientContract;
5255
scopedClusterClient: ElasticsearchClient;

0 commit comments

Comments
 (0)