package compute_engine

import (
	"net/http"

	"github.com/pingcap-inc/clinic/pkg/config"
)

var (
	GlobalCMClient *CMClient
	healthPath     = "tasks/diag-summary-op/async"
	comparisonPath = "tasks/comparison-report/async"
	fetchPath      = "instances"
)

type CMClient struct {
	client     *http.Client
	path       string
	clinicHost string
}

func NewCMClient(cfg *config.Config) *CMClient {
	client := &http.Client{}
	return &CMClient{
		client:     client,
		path:       cfg.GetComputeEngineEndPoint(),
		clinicHost: cfg.DBaasConfig.ClinicInternalServerAddr,
	}
}
