| 12345678910111213141516171819202122232425262728 | package functionsimport (	"fmt"	"net/http"	"github.com/gravitl/netmaker/models")// GetNodeMetrics - fetch a single node's metricsfunc GetNodeMetrics(networkName, nodeID string) *models.Metrics {	return request[models.Metrics](http.MethodGet, fmt.Sprintf("/api/metrics/%s/%s", networkName, nodeID), nil)}// GetNetworkNodeMetrics - fetch an entire network's metricsfunc GetNetworkNodeMetrics(networkName string) *models.NetworkMetrics {	return request[models.NetworkMetrics](http.MethodGet, "/api/metrics/"+networkName, nil)}// GetAllMetrics - fetch all metricsfunc GetAllMetrics() *models.NetworkMetrics {	return request[models.NetworkMetrics](http.MethodGet, "/api/metrics", nil)}// GetNetworkExtMetrics - fetch external client metrics belonging to a networkfunc GetNetworkExtMetrics(networkName string) *map[string]models.Metric {	return request[map[string]models.Metric](http.MethodGet, "/api/metrics-ext/"+networkName, nil)}
 |