func NewHotSpotCommand() *cobra.Command {
	cmd := &cobra.Command{
		Use:   "hot",
		Short: "show the hotspot status of the cluster",
	}
	cmd.AddCommand(NewHotWriteRegionCommand())
	cmd.AddCommand(NewHotReadRegionCommand())
	cmd.AddCommand(NewHotStoreCommand())
	return cmd
}
NewHotSpotCommand return a hot subcommand of rootCmd
package command
import (
	"net/http"
	"strconv"
	"github.com/pingcap/errors"
	"github.com/spf13/cobra"
)
const (
	hotReadRegionsPrefix  = "pd/api/v1/hotspot/regions/read"
	hotWriteRegionsPrefix = "pd/api/v1/hotspot/regions/write"
	hotStoresPrefix       = "pd/api/v1/hotspot/stores"
)