kibana/docs/developer/architecture/development/csv-integration.asciidoc
Kaarina Tungseth 524fe6dfe2
[DOCS] Updates to the Reporting docs (#101326)
* [DOCS] Updates to thee Reporting docs

* Adds the main sharing page

* Final changes

* Changed configuring-reporting link to secure-reporting

* Updates from meeting with Tim and Larry

* Moves reporting and sharing content above ML

* Update docs/setup/configuring-reporting.asciidoc

Co-authored-by: Larry Gregory <lgregorydev@gmail.com>

* Review comments from Tim and Larry

* Fixes broken links

* Fixes redirect

* Fixes broken link from ES docs

* Adds metadata to changed pages

* Review comments

Co-authored-by: Larry Gregory <lgregorydev@gmail.com>
2021-06-30 12:10:04 -05:00

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