mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
[Courier] added source.get() and a stub for ._resolveIndexPattern()
This commit is contained in:
parent
d71ff32a83
commit
a46e0d44bb
1 changed files with 15 additions and 0 deletions
|
@ -62,6 +62,14 @@ define(function (require) {
|
|||
* PUBLIC API
|
||||
*****/
|
||||
|
||||
/**
|
||||
* Get values from the state
|
||||
* @param {string} name - The name of the property desired
|
||||
*/
|
||||
DataSource.prototype.get = function (name) {
|
||||
return this._state[name];
|
||||
};
|
||||
|
||||
/**
|
||||
* fetch the field names for this DataSource
|
||||
* @param {Function} cb
|
||||
|
@ -156,5 +164,12 @@ define(function (require) {
|
|||
return flatState;
|
||||
};
|
||||
|
||||
DataSource.prototype._resolveIndexPattern = function (start, end) {
|
||||
if (this._state.indexInterval) {
|
||||
throw new Error('Not implemented');
|
||||
}
|
||||
return this._state.index;
|
||||
};
|
||||
|
||||
return DataSource;
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue