kibana/docs/development/core/server/kibana-plugin-server.elasticsearchservicesetup.md

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();

|