mirror of
https://github.com/elastic/kibana.git
synced 2025-04-25 02:09:32 -04:00
1.6 KiB
1.6 KiB
Home > kibana-plugin-server > ElasticsearchServiceSetup
ElasticsearchServiceSetup interface
Signature:
export interface ElasticsearchServiceSetup
Properties
Property | Type | Description |
---|---|---|
adminClient$ | Observable<IClusterClient> |
Observable of clients for the admin cluster. Observable emits when Elasticsearch config changes on the Kibana server. See IClusterClient. |
const client = await elasticsearch.adminClient$.pipe(take(1)).toPromise();
|
| createClient | (type: string, clientConfig?: Partial<ElasticsearchClientConfig>) => IClusterClient
| Create application specific Elasticsearch cluster API client with customized config. See IClusterClient. |
| dataClient$ | Observable<IClusterClient>
| Observable of clients for the data
cluster. Observable emits when Elasticsearch config changes on the Kibana server. See IClusterClient.
const client = await elasticsearch.dataClient$.pipe(take(1)).toPromise();
|