public class KibanaUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static Project |
ALL_ALIAS |
static Project |
EMPTY_PROJECT |
static String |
INDICIES_TYPE |
| Constructor and Description |
|---|
KibanaUtils(PluginSettings settings,
PluginClient pluginClient) |
| Modifier and Type | Method and Description |
|---|---|
String |
formatIndexPattern(Project project) |
String |
getDefaultIndexPattern(String kibanaIndex,
String defaultIfNotSet)
Gets the default index-pattern if not set or set on the wrong version of
Kibana or empty if it doesnt need to be set
|
Project |
getProjectFromIndexPattern(String index) |
Set<Project> |
getProjectsFromIndexPatterns(OpenshiftRequestContextFactory.OpenshiftRequestContext context)
Determine a set of projects based on the index patterns that
were generated by this plugin.
|
public static final String INDICIES_TYPE
public static final Project ALL_ALIAS
public static final Project EMPTY_PROJECT
public KibanaUtils(PluginSettings settings, PluginClient pluginClient)
public Set<Project> getProjectsFromIndexPatterns(OpenshiftRequestContextFactory.OpenshiftRequestContext context)
context - The OpenshiftRequestContext for this requestpublic String getDefaultIndexPattern(String kibanaIndex, String defaultIfNotSet)
kibanaIndex - The index to CheckdefaultIfNotSet - The value to use if not setCopyright © 2015–2018 Red Hat. All rights reserved.