Open VargBurz opened 5 years ago
We should add DatasourceRequest class and move function queryByMetric into this class. Possible, function getGrafanaUrl must be DatasourceRequest method.
DatasourceRequest
queryByMetric
getGrafanaUrl
Why do you want to do it? What is the purpose?
Class will have some state(metric, grafana url, api key), that can define bounds condition.
We should add
DatasourceRequest
class and move functionqueryByMetric
into this class. Possible, functiongetGrafanaUrl
must beDatasourceRequest
method.