kibana/x-pack/plugins/monitoring/server/types.ts
Chris Roberson e6cf4b36d3
[Monitoring] Ensure we use existing Elasticsearch config (#68389)
* Ensure we use existing Elasticsearch config

* Use separate type for this to ensure custom properties work

* PR suggestions

* PR feedback

* PR feedback

* Fix type issues

* PR feedback
2020-06-15 12:43:37 -04:00

18 lines
649 B
TypeScript

/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
import { Observable } from 'rxjs';
import { LicenseFeature, ILicense } from '../../licensing/server';
export interface MonitoringLicenseService {
refresh: () => Promise<any>;
license$: Observable<ILicense>;
getMessage: () => string | undefined;
getWatcherFeature: () => LicenseFeature;
getMonitoringFeature: () => LicenseFeature;
getSecurityFeature: () => LicenseFeature;
stop: () => void;
}