Skip to content

Commit

Permalink
Deprecate callCluster in alerts and actions services
Browse files Browse the repository at this point in the history
  • Loading branch information
mikecote committed Dec 18, 2020
1 parent 12ddcbf commit ad1d6a3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions x-pack/plugins/actions/server/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ export type ActionTypeSecrets = Record<string, unknown>;
export type ActionTypeParams = Record<string, unknown>;

export interface Services {
/**
* @deprecated use `scopedClusterClient`
*/
callCluster: ILegacyScopedClusterClient['callAsCurrentUser'];
savedObjectsClient: SavedObjectsClientContract;
scopedClusterClient: ElasticsearchClient;
Expand Down
3 changes: 3 additions & 0 deletions x-pack/plugins/alerts/server/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ declare module 'src/core/server' {
}

export interface Services {
/**
* @deprecated use `scopedClusterClient`
*/
callCluster: ILegacyScopedClusterClient['callAsCurrentUser'];
savedObjectsClient: SavedObjectsClientContract;
scopedClusterClient: ElasticsearchClient;
Expand Down

0 comments on commit ad1d6a3

Please sign in to comment.