This is also a bit, what I requested in the following topic: Making custom ES queries form a Kibana plugin
I think your use case, should be on the Dashboard page not the discover, but won't need aggregations, but should be linked to filters, query, time range, etc. This is exactly what I asked for in the other topic. Please also comment there if you wish a feature like that