// SPDX-License-Identifier: GPL-3.0-or-later package windows import ( "errors" "net/http" "github.com/netdata/netdata/go/go.d.plugin/pkg/prometheus" "github.com/netdata/netdata/go/go.d.plugin/pkg/web" ) func (w *Windows) validateConfig() error { if w.URL == "" { return errors.New("'url' is not set") } return nil } func (w *Windows) initHTTPClient() (*http.Client, error) { return web.NewHTTPClient(w.Client) } func (w *Windows) initPrometheusClient(client *http.Client) (prometheus.Prometheus, error) { return prometheus.New(client, w.Request), nil }