I am building a plugin which adds a custom panel action for visualizations.
I want to trigger dashboard refresh from with the code. I have access to data and dashboard plugin inside plugin , but I didn't find any function to trigger refresh manually.
From the ActionContext in your panel action, you should have access to the embeddable that triggered the action - if that embeddable is contained within a dashboard, its parent will be the Dashboard container! Once you have this, you should be able to call reload in order to refresh the dashboard. Putting this all together, you will get something like:
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.