Summary:
This diff makes the required changes for introducing db metrics export capability to
the YBA UI. The corresponding backend changes were made here: D45567 / a047574f0a45516a88b71af8d46edd0a85bd748b
This commit does some minor reorganization of existing api helpers and types in addition to
fixing the query key selection for relevant react-query calls.
Test Plan:
Create a telemetry configuration (under integrations / logs & metrics). Chose a provider
which supports both metrics and logs export.
Create a universe and enable database metrics export.
{F387605}
Verified the new menu option is hidden behind a runtime config ` yb.universe.metrics_export_enabled`
{F387941}
Reviewers: rmadhavan, skurapati
Reviewed By: rmadhavan
Differential Revision: https://phorge.dev.yugabyte.com/D46342