I want to add dashboard through java API. I'm able to add that, but need a clarification. I have constructed one source for indexing as below
I have created a java POJO and converted that to json object, which will be input to source
My java POJO has following fields
/** The Constant serialVersionUID. */
private static final long serialVersionUID = 1L;
String title; /** hits. */ int hits; /** The description. */ String description; @JsonSerialize(using = MySerializer.class) PanelJSON panelsJSON; @JsonSerialize(using = MySerializer.class) OptionsJSON optionsJSON; @JsonSerialize(using = MySerializer.class) String uiStateJSON; Boolean timeRestore; String timeTo; String timeFrom; Interval refreshInterval; KibanaSavedObjectMeta kibanaSavedObjectMeta;
Does it mandatory to give values to all fields?? I have skipped giving value to uiStateJSON. Is it fine? what is it meant for ? Also what is use of OptionsJSON?
Is there a sample POJO example and relevant serializer class, which I can reuse?