CorpGlory / grafana-datasource-kit

Node.js library for running Grafana datasources on backend plus utils
MIT License
9 stars 3 forks source link

DatasourceRequest class #85

Open VargBurz opened 5 years ago

VargBurz commented 5 years ago

We should add DatasourceRequest class and move function queryByMetric into this class. Possible, function getGrafanaUrl must be DatasourceRequest method.

jonyrock commented 5 years ago

Why do you want to do it? What is the purpose?

VargBurz commented 5 years ago

Class will have some state(metric, grafana url, api key), that can define bounds condition.