mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
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
2 changed files with 6 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue