mirror of
https://github.com/elastic/kibana.git
synced 2025-06-28 11:05:39 -04:00
update docs for hasData service (#134899)
* update docs for hasData service * fix typo * change wording from primitive to managed
This commit is contained in:
parent
9c1202f16a
commit
bcc17e178b
3 changed files with 17 additions and 2 deletions
|
@ -84,3 +84,11 @@ await data.indexPatterns.delete(dataViewId);
|
|||
### Data view HTTP API
|
||||
|
||||
Rest-like HTTP CRUD+ API - [docs](https://www.elastic.co/guide/en/kibana/master/data-views-api.html)
|
||||
|
||||
|
||||
### Services
|
||||
|
||||
#### **hasData:** A standardized way to check the empty state for indices and data views.
|
||||
- `hasESData: () => Promise<boolean>; // Check to see if ES data exists`
|
||||
- `hasDataView: () => Promise<boolean>; // Check to see if any data view exists (managed or user created)`
|
||||
- `hasUserDataView: () => Promise<boolean>; // Check to see if user created data views exists`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue