kibana-123
Version:
Kibana is an open source (Apache Licensed), browser based analytics and search dashboard for Elasticsearch. Kibana is a snap to setup and start using. Kibana strives to be easy to get started with, while also being flexible and powerful, just like Elastic
22 lines (17 loc) • 588 B
JavaScript
import chrome from 'ui/chrome';
import Notifier from 'ui/notify/notifier';
import { intersection } from 'lodash';
const notify = new Notifier({ location: 'Scripting Lang Service' });
export function getSupportedScriptingLangs() {
return ['expression', 'painless'];
}
export function GetEnabledScriptingLangsProvider($http) {
return () => {
return $http.get(chrome.addBasePath('/api/kibana/scripts/languages'))
.then((res) => res.data)
.catch(() => {
notify.error('Error getting available scripting languages from Elasticsearch');
return [];
});
};
}