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>
This commit is contained in:
parent
262a204bb4
commit
f3b43cbf3f
|
@ -31,6 +31,9 @@ export type ActionTypeSecrets = Record<string, unknown>;
|
|||
export type ActionTypeParams = Record<string, unknown>;
|
||||
|
||||
export interface Services {
|
||||
/**
|
||||
* @deprecated Use `scopedClusterClient` instead.
|
||||
*/
|
||||
callCluster: ILegacyScopedClusterClient['callAsCurrentUser'];
|
||||
savedObjectsClient: SavedObjectsClientContract;
|
||||
scopedClusterClient: ElasticsearchClient;
|
||||
|
|
|
@ -47,6 +47,9 @@ declare module 'src/core/server' {
|
|||
}
|
||||
|
||||
export interface Services {
|
||||
/**
|
||||
* @deprecated Use `scopedClusterClient` instead.
|
||||
*/
|
||||
callCluster: ILegacyScopedClusterClient['callAsCurrentUser'];
|
||||
savedObjectsClient: SavedObjectsClientContract;
|
||||
scopedClusterClient: ElasticsearchClient;
|
||||
|
|
Loading…
Reference in a new issue