mirror of
https://github.com/elastic/kibana.git
synced 2025-04-25 10:23:14 -04:00
* [DOCS] Updates to Reporting docs (#46158) * [DOCS] Updated to Reporting docs * Updated with review comments * Removed float tag
51 lines
No EOL
1.2 KiB
Text
51 lines
No EOL
1.2 KiB
Text
[float]
|
|
=== CSV
|
|
|
|
[float]
|
|
==== Job parameters
|
|
If integrating with Reporting via a custom UI, the following job parameters must be Rison encoded and posted to
|
|
the aforementioned generate job url:
|
|
|
|
----
|
|
interface jobParameters {
|
|
type: string;
|
|
title: string;
|
|
searchRequest: {
|
|
index: string;
|
|
body: object;
|
|
};
|
|
fields: string[];
|
|
metaFields: string[];
|
|
conflictedTypesFields: string[];
|
|
indexPatternId: string;
|
|
}
|
|
----
|
|
|
|
The `searchRequest.body` should abide by the {ref}/search-request-body.html[Elasticsearch Search Request Body] syntax
|
|
|
|
[float]
|
|
==== `export-config` Directive
|
|
If integrating with Reporting via the `export-config` directive, the AngularJS controller that contains the directive should expose
|
|
the following methods and the `export-config` directive will POST them to the reporting API:
|
|
|
|
----
|
|
interface sharingData {
|
|
searchRequest: {
|
|
index: string;
|
|
body: object;
|
|
};
|
|
fields: string[];
|
|
metaFields: string[];
|
|
conflictedTypesFields: string[];
|
|
indexPatternId: string;
|
|
}
|
|
|
|
function getSharingData(): sharingData;
|
|
|
|
function getSharingType(): string;
|
|
|
|
function getSharingTitle() string;
|
|
|
|
----
|
|
|
|
The `sharingData.searchRequest.body` should abide by the {ref}/search-request-body.html[Elasticsearch Search Request Body] syntax |