Given that OpenSearch exports dashboards as .ndjsons that are not the same as the JSON required by opensearch_dashboard_object, it would be helpful to add a description of where the provided JSON structures come from. An example GET request would be helpful, too, such as
GET /.kibana*/_search { "size": 1000, "query": { "term": { "type": "dashboard" } } }
or
GET /.kibana*/_search { "size": 1000, "query": { "term": { "type": "visualization" } } }
And an explanation of what is happening with the "hits" array from the result.
Given that OpenSearch exports dashboards as .ndjsons that are not the same as the JSON required by opensearch_dashboard_object, it would be helpful to add a description of where the provided JSON structures come from. An example GET request would be helpful, too, such as
GET /.kibana*/_search { "size": 1000, "query": { "term": { "type": "dashboard" } } }or
GET /.kibana*/_search { "size": 1000, "query": { "term": { "type": "visualization" } } }And an explanation of what is happening with the "hits" array from the result.