From 58bb67b3548a3076f2622b778bc3345ed8c1913e Mon Sep 17 00:00:00 2001 From: Ryan Leung Date: Wed, 21 Feb 2024 14:36:33 +0800 Subject: [PATCH 1/2] add backend supports for tso and scheduling Signed-off-by: Ryan Leung --- pkg/apiserver/apiserver.go | 10 + pkg/apiserver/clusterinfo/host.go | 16 + .../clusterinfo/hostinfo/hostinfo.go | 2 +- pkg/apiserver/clusterinfo/service.go | 32 + pkg/apiserver/clusterinfo/statistics.go | 36 + pkg/apiserver/debugapi/endpoint/payload.go | 46 +- pkg/apiserver/debugapi/service.go | 34 +- pkg/apiserver/model/common_models.go | 32 +- pkg/apiserver/profiling/fetcher.go | 40 +- pkg/apiserver/profiling/profile.go | 4 + pkg/scheduling/client.go | 78 ++ pkg/scheduling/scheduling.go | 9 + pkg/tso/client.go | 78 ++ pkg/tso/tso.go | 9 + pkg/utils/topology/models.go | 20 + pkg/utils/topology/scheduling.go | 64 ++ pkg/utils/topology/tso.go | 64 ++ .../clinic-client/src/client/api/api.ts | 4 +- .../src/client/api/api/default-api.ts | 784 ++++++++++-------- .../src/client/api/api/statement-api.ts | 24 +- .../src/client/api/models/index.ts | 2 + .../models/model-request-target-statistics.ts | 12 + .../api/models/topology-scheduling-info.ts | 66 ++ .../src/client/api/models/topology-tsoinfo.ts | 66 ++ .../tidb-dashboard-client/swagger/spec.json | 114 +++ .../src/apps/ClusterInfo/context.ts | 8 + .../src/apps/InstanceProfiling/context.ts | 6 + .../src/apps/Overview/context.ts | 8 + .../src/apps/SearchLogs/context.ts | 6 + .../src/apps/ClusterInfo/context.ts | 8 + .../src/apps/InstanceProfiling/context.ts | 6 + .../src/apps/Overview/context.ts | 8 + .../src/apps/SearchLogs/context.ts | 6 + .../src/utils/distro/strings_res.json | 2 +- .../apps/ClusterInfo/components/DiskTable.tsx | 8 +- .../apps/ClusterInfo/components/HostTable.tsx | 4 +- .../ClusterInfo/components/InstanceTable.tsx | 40 +- .../src/apps/ClusterInfo/context/index.ts | 10 +- .../apps/InstanceProfiling/context/index.ts | 10 +- .../src/apps/InstanceProfiling/pages/List.tsx | 4 + .../utils/combineTargetStats.ts | 4 +- .../apps/Overview/components/Instances.tsx | 13 + .../src/apps/Overview/context/index.ts | 10 +- .../SearchLogs/components/SearchHeader.tsx | 4 + .../src/apps/SearchLogs/context/index.ts | 10 +- .../tidb-dashboard-lib/src/client/models.ts | 118 +++ .../InstanceSelect/ValueDisplay.tsx | 4 +- .../src/components/InstanceSelect/index.tsx | 22 +- .../src/utils/instanceTable.ts | 20 +- util/client/schedulingclient/status_client.go | 22 + util/client/tsoclient/status_client.go | 22 + util/distro/distro.go | 32 +- util/topo/model.go | 50 ++ 53 files changed, 1697 insertions(+), 414 deletions(-) create mode 100644 pkg/scheduling/client.go create mode 100644 pkg/scheduling/scheduling.go create mode 100644 pkg/tso/client.go create mode 100644 pkg/tso/tso.go create mode 100644 pkg/utils/topology/scheduling.go create mode 100644 pkg/utils/topology/tso.go create mode 100644 ui/packages/tidb-dashboard-client/src/client/api/models/topology-scheduling-info.ts create mode 100644 ui/packages/tidb-dashboard-client/src/client/api/models/topology-tsoinfo.ts create mode 100644 util/client/schedulingclient/status_client.go create mode 100644 util/client/tsoclient/status_client.go diff --git a/pkg/apiserver/apiserver.go b/pkg/apiserver/apiserver.go index c2a401d575..9186d06f0f 100644 --- a/pkg/apiserver/apiserver.go +++ b/pkg/apiserver/apiserver.go @@ -32,17 +32,21 @@ import ( "github.com/pingcap/tidb-dashboard/pkg/apiserver/user/sso" "github.com/pingcap/tidb-dashboard/pkg/apiserver/user/sso/ssoauth" "github.com/pingcap/tidb-dashboard/pkg/apiserver/visualplan" + "github.com/pingcap/tidb-dashboard/pkg/scheduling" "github.com/pingcap/tidb-dashboard/pkg/ticdc" "github.com/pingcap/tidb-dashboard/pkg/tiflash" "github.com/pingcap/tidb-dashboard/pkg/tiproxy" + "github.com/pingcap/tidb-dashboard/pkg/tso" "github.com/pingcap/tidb-dashboard/pkg/utils/version" "github.com/pingcap/tidb-dashboard/util/client/httpclient" "github.com/pingcap/tidb-dashboard/util/client/pdclient" + "github.com/pingcap/tidb-dashboard/util/client/schedulingclient" "github.com/pingcap/tidb-dashboard/util/client/ticdcclient" "github.com/pingcap/tidb-dashboard/util/client/tidbclient" "github.com/pingcap/tidb-dashboard/util/client/tiflashclient" "github.com/pingcap/tidb-dashboard/util/client/tikvclient" "github.com/pingcap/tidb-dashboard/util/client/tiproxyclient" + "github.com/pingcap/tidb-dashboard/util/client/tsoclient" "github.com/pingcap/tidb-dashboard/util/featureflag" "github.com/pingcap/tidb-dashboard/util/rest" @@ -113,6 +117,8 @@ var Modules = fx.Options( httpc.NewHTTPClient, pd.NewEtcdClient, pd.NewPDClient, + tso.NewTSOClient, + scheduling.NewSchedulingClient, config.NewDynamicConfigManager, tidb.NewTiDBClient, tikv.NewTiKVClient, @@ -199,6 +205,8 @@ func newClients(lc fx.Lifecycle, config *config.Config) ( pdClient *pdclient.APIClient, ticdcClient *ticdcclient.StatusClient, tiproxyClient *tiproxyclient.StatusClient, + tsoClient *tsoclient.StatusClient, + schedulingClient *schedulingclient.StatusClient, ) { httpConfig := httpclient.Config{ TLSConfig: config.ClusterTLSConfig, @@ -209,6 +217,8 @@ func newClients(lc fx.Lifecycle, config *config.Config) ( pdClient = pdclient.NewAPIClient(httpConfig) ticdcClient = ticdcclient.NewStatusClient(httpConfig) tiproxyClient = tiproxyclient.NewStatusClient(httpConfig) + tsoClient = tsoclient.NewStatusClient(httpConfig) + schedulingClient = schedulingclient.NewStatusClient(httpConfig) lc.Append(fx.Hook{ OnStart: func(ctx context.Context) error { dbClient.SetDefaultCtx(ctx) diff --git a/pkg/apiserver/clusterinfo/host.go b/pkg/apiserver/clusterinfo/host.go index 3cf4b6a2ed..ecb1e78d9e 100644 --- a/pkg/apiserver/clusterinfo/host.go +++ b/pkg/apiserver/clusterinfo/host.go @@ -60,6 +60,22 @@ func (s *Service) fetchAllInstanceHosts() ([]string, error) { allHostsMap[i.IP] = struct{}{} } + tsoInfo, err := topology.FetchTSOTopology(s.lifecycleCtx, s.params.PDClient) + if err != nil { + return nil, err + } + for _, i := range tsoInfo { + allHostsMap[i.IP] = struct{}{} + } + + schedulingInfo, err := topology.FetchSchedulingTopology(s.lifecycleCtx, s.params.PDClient) + if err != nil { + return nil, err + } + for _, i := range schedulingInfo { + allHostsMap[i.IP] = struct{}{} + } + allHosts := lo.Keys(allHostsMap) sort.Strings(allHosts) diff --git a/pkg/apiserver/clusterinfo/hostinfo/hostinfo.go b/pkg/apiserver/clusterinfo/hostinfo/hostinfo.go index ff0ccd368d..9e9d3549c5 100644 --- a/pkg/apiserver/clusterinfo/hostinfo/hostinfo.go +++ b/pkg/apiserver/clusterinfo/hostinfo/hostinfo.go @@ -53,7 +53,7 @@ type InfoMap = map[string]*Info var clusterTableQueryTemplate = template.Must(template.New("").Parse(` SELECT *, - FIELD(LOWER(A.TYPE), 'tiflash', 'tikv', 'pd', 'tidb', 'tiproxy') AS _ORDER + FIELD(LOWER(A.TYPE), 'tiflash', 'tikv', 'pd', 'tidb', 'tiproxy', 'tso', 'scheduling') AS _ORDER FROM ( SELECT TYPE, INSTANCE, DEVICE_TYPE, DEVICE_NAME, JSON_OBJECTAGG(NAME, VALUE) AS JSON_VALUE diff --git a/pkg/apiserver/clusterinfo/service.go b/pkg/apiserver/clusterinfo/service.go index ef10767781..5458ed0b0c 100644 --- a/pkg/apiserver/clusterinfo/service.go +++ b/pkg/apiserver/clusterinfo/service.go @@ -59,6 +59,8 @@ func RegisterRouter(r *gin.RouterGroup, auth *user.AuthService, s *Service) { endpoint.DELETE("/tidb/:address", s.deleteTiDBTopology) endpoint.GET("/store", s.getStoreTopology) endpoint.GET("/pd", s.getPDTopology) + endpoint.GET("/tso", s.getTSOTopology) + endpoint.GET("/scheduling", s.getSchedulingTopology) endpoint.GET("/alertmanager", s.getAlertManagerTopology) endpoint.GET("/alertmanager/:address/count", s.getAlertManagerCounts) endpoint.GET("/grafana", s.getGrafanaTopology) @@ -156,6 +158,36 @@ func (s *Service) getTiProxyTopology(c *gin.Context) { c.JSON(http.StatusOK, instances) } +// @ID getTSOTopology +// @Summary Get all TSO instances +// @Success 200 {array} topology.TSOInfo +// @Router /topology/tso [get] +// @Security JwtAuth +// @Failure 401 {object} rest.ErrorResponse +func (s *Service) getTSOTopology(c *gin.Context) { + instances, err := topology.FetchTSOTopology(s.lifecycleCtx, s.params.PDClient) + if err != nil { + rest.Error(c, err) + return + } + c.JSON(http.StatusOK, instances) +} + +// @ID getSchedulingTopology +// @Summary Get all Scheduling instances +// @Success 200 {array} topology.SchedulingInfo +// @Router /topology/scheduling [get] +// @Security JwtAuth +// @Failure 401 {object} rest.ErrorResponse +func (s *Service) getSchedulingTopology(c *gin.Context) { + instances, err := topology.FetchSchedulingTopology(s.lifecycleCtx, s.params.PDClient) + if err != nil { + rest.Error(c, err) + return + } + c.JSON(http.StatusOK, instances) +} + type StoreTopologyResponse struct { TiKV []topology.StoreInfo `json:"tikv"` TiFlash []topology.StoreInfo `json:"tiflash"` diff --git a/pkg/apiserver/clusterinfo/statistics.go b/pkg/apiserver/clusterinfo/statistics.go index d819098d47..0ef8699032 100644 --- a/pkg/apiserver/clusterinfo/statistics.go +++ b/pkg/apiserver/clusterinfo/statistics.go @@ -77,6 +77,8 @@ func (s *Service) calculateStatistics(db *gorm.DB) (*ClusterStatistics, error) { infoByIk["tiflash"] = newInstanceKindImmediateInfo() infoByIk["ticdc"] = newInstanceKindImmediateInfo() infoByIk["tiproxy"] = newInstanceKindImmediateInfo() + infoByIk["tso"] = newInstanceKindImmediateInfo() + infoByIk["scheduling"] = newInstanceKindImmediateInfo() // Fill from topology info pdInfo, err := topology.FetchPDTopology(s.params.PDClient) @@ -135,6 +137,26 @@ func (s *Service) calculateStatistics(db *gorm.DB) (*ClusterStatistics, error) { globalInfo.instances[net.JoinHostPort(i.IP, strconv.Itoa(int(i.Port)))] = struct{}{} infoByIk["tiproxy"].instances[net.JoinHostPort(i.IP, strconv.Itoa(int(i.Port)))] = struct{}{} } + tsoInfo, err := topology.FetchTSOTopology(s.lifecycleCtx, s.params.PDClient) + if err != nil { + return nil, err + } + for _, i := range tsoInfo { + globalHostsSet[i.IP] = struct{}{} + globalVersionsSet[i.Version] = struct{}{} + globalInfo.instances[net.JoinHostPort(i.IP, strconv.Itoa(int(i.Port)))] = struct{}{} + infoByIk["tso"].instances[net.JoinHostPort(i.IP, strconv.Itoa(int(i.Port)))] = struct{}{} + } + schedulingInfo, err := topology.FetchSchedulingTopology(s.lifecycleCtx, s.params.PDClient) + if err != nil { + return nil, err + } + for _, i := range schedulingInfo { + globalHostsSet[i.IP] = struct{}{} + globalVersionsSet[i.Version] = struct{}{} + globalInfo.instances[net.JoinHostPort(i.IP, strconv.Itoa(int(i.Port)))] = struct{}{} + infoByIk["scheduling"].instances[net.JoinHostPort(i.IP, strconv.Itoa(int(i.Port)))] = struct{}{} + } // Fill from hardware info allHostsInfoMap := make(map[string]*hostinfo.Info) @@ -198,6 +220,20 @@ func (s *Service) calculateStatistics(db *gorm.DB) (*ClusterStatistics, error) { globalFailureHostsSet[i.IP] = struct{}{} } } + for _, i := range tsoInfo { + if v, ok := globalInfo.hosts[i.IP]; ok { + infoByIk["tso"].hosts[i.IP] = v + } else { + globalFailureHostsSet[i.IP] = struct{}{} + } + } + for _, i := range schedulingInfo { + if v, ok := globalInfo.hosts[i.IP]; ok { + infoByIk["scheduling"].hosts[i.IP] = v + } else { + globalFailureHostsSet[i.IP] = struct{}{} + } + } // Generate result.. versions := lo.Keys(globalVersionsSet) diff --git a/pkg/apiserver/debugapi/endpoint/payload.go b/pkg/apiserver/debugapi/endpoint/payload.go index 9ba1e72a7a..0189d8530a 100644 --- a/pkg/apiserver/debugapi/endpoint/payload.go +++ b/pkg/apiserver/debugapi/endpoint/payload.go @@ -18,11 +18,13 @@ import ( "github.com/pingcap/tidb-dashboard/pkg/utils/topology" "github.com/pingcap/tidb-dashboard/util/client/httpclient" "github.com/pingcap/tidb-dashboard/util/client/pdclient" + "github.com/pingcap/tidb-dashboard/util/client/schedulingclient" "github.com/pingcap/tidb-dashboard/util/client/ticdcclient" "github.com/pingcap/tidb-dashboard/util/client/tidbclient" "github.com/pingcap/tidb-dashboard/util/client/tiflashclient" "github.com/pingcap/tidb-dashboard/util/client/tikvclient" "github.com/pingcap/tidb-dashboard/util/client/tiproxyclient" + "github.com/pingcap/tidb-dashboard/util/client/tsoclient" "github.com/pingcap/tidb-dashboard/util/rest" "github.com/pingcap/tidb-dashboard/util/topo" ) @@ -38,12 +40,14 @@ type RequestPayload struct { } type HTTPClients struct { - PDAPIClient *pdclient.APIClient - TiDBStatusClient *tidbclient.StatusClient - TiKVStatusClient *tikvclient.StatusClient - TiFlashStatusClient *tiflashclient.StatusClient - TiCDCStatusClient *ticdcclient.StatusClient - TiProxyStatusClient *tiproxyclient.StatusClient + PDAPIClient *pdclient.APIClient + TiDBStatusClient *tidbclient.StatusClient + TiKVStatusClient *tikvclient.StatusClient + TiFlashStatusClient *tiflashclient.StatusClient + TiCDCStatusClient *ticdcclient.StatusClient + TiProxyStatusClient *tiproxyclient.StatusClient + TSOStatusClient *tsoclient.StatusClient + SchedulingStatusClient *schedulingclient.StatusClient } func (c HTTPClients) GetHTTPClientByNodeKind(kind topo.Kind) *httpclient.Client { @@ -306,6 +310,36 @@ func (p *ResolvedRequestPayload) verifyEndpoint(ctx context.Context, etcdClient if !matched { return ErrInvalidEndpoint.New("invalid endpoint '%s:%d'", p.host, p.port) } + case topo.KindTSO: + infos, err := topology.FetchTSOTopology(ctx, pdClient) + if err != nil { + return ErrInvalidEndpoint.Wrap(err, "failed to fetch tso topology") + } + matched := false + for _, info := range infos { + if info.IP == p.host && info.Port == uint(p.port) { + matched = true + break + } + } + if !matched { + return ErrInvalidEndpoint.New("invalid endpoint '%s:%d'", p.host, p.port) + } + case topo.KindScheduling: + infos, err := topology.FetchSchedulingTopology(ctx, pdClient) + if err != nil { + return ErrInvalidEndpoint.Wrap(err, "failed to fetch scheduling topology") + } + matched := false + for _, info := range infos { + if info.IP == p.host && info.Port == uint(p.port) { + matched = true + break + } + } + if !matched { + return ErrInvalidEndpoint.New("invalid endpoint '%s:%d'", p.host, p.port) + } default: return ErrUnknownComponent.New("Unknown component '%s'", p.api.Component) } diff --git a/pkg/apiserver/debugapi/service.go b/pkg/apiserver/debugapi/service.go index e5f05113f8..c55b60f9a2 100644 --- a/pkg/apiserver/debugapi/service.go +++ b/pkg/apiserver/debugapi/service.go @@ -16,11 +16,13 @@ import ( "github.com/pingcap/tidb-dashboard/pkg/apiserver/user" "github.com/pingcap/tidb-dashboard/pkg/pd" "github.com/pingcap/tidb-dashboard/util/client/pdclient" + "github.com/pingcap/tidb-dashboard/util/client/schedulingclient" "github.com/pingcap/tidb-dashboard/util/client/ticdcclient" "github.com/pingcap/tidb-dashboard/util/client/tidbclient" "github.com/pingcap/tidb-dashboard/util/client/tiflashclient" "github.com/pingcap/tidb-dashboard/util/client/tikvclient" "github.com/pingcap/tidb-dashboard/util/client/tiproxyclient" + "github.com/pingcap/tidb-dashboard/util/client/tsoclient" "github.com/pingcap/tidb-dashboard/util/rest" "github.com/pingcap/tidb-dashboard/util/rest/fileswap" ) @@ -37,14 +39,16 @@ func registerRouter(r *gin.RouterGroup, auth *user.AuthService, s *Service) { type ServiceParams struct { fx.In - PDAPIClient *pdclient.APIClient - TiDBStatusClient *tidbclient.StatusClient - TiKVStatusClient *tikvclient.StatusClient - TiFlashStatusClient *tiflashclient.StatusClient - TiCDCStatusClient *ticdcclient.StatusClient - TiProxyStatusClient *tiproxyclient.StatusClient - EtcdClient *clientv3.Client - PDClient *pd.Client + PDAPIClient *pdclient.APIClient + TiDBStatusClient *tidbclient.StatusClient + TiKVStatusClient *tikvclient.StatusClient + TiFlashStatusClient *tiflashclient.StatusClient + TiCDCStatusClient *ticdcclient.StatusClient + TiProxyStatusClient *tiproxyclient.StatusClient + EtcdClient *clientv3.Client + PDClient *pd.Client + TSOStatusClient *tsoclient.StatusClient + SchedulingStatusClient *schedulingclient.StatusClient } type Service struct { @@ -57,12 +61,14 @@ type Service struct { func newService(p ServiceParams) *Service { httpClients := endpoint.HTTPClients{ - PDAPIClient: p.PDAPIClient, - TiDBStatusClient: p.TiDBStatusClient, - TiKVStatusClient: p.TiKVStatusClient, - TiFlashStatusClient: p.TiFlashStatusClient, - TiCDCStatusClient: p.TiCDCStatusClient, - TiProxyStatusClient: p.TiProxyStatusClient, + PDAPIClient: p.PDAPIClient, + TiDBStatusClient: p.TiDBStatusClient, + TiKVStatusClient: p.TiKVStatusClient, + TiFlashStatusClient: p.TiFlashStatusClient, + TiCDCStatusClient: p.TiCDCStatusClient, + TiProxyStatusClient: p.TiProxyStatusClient, + TSOStatusClient: p.TSOStatusClient, + SchedulingStatusClient: p.SchedulingStatusClient, } return &Service{ httpClients: httpClients, diff --git a/pkg/apiserver/model/common_models.go b/pkg/apiserver/model/common_models.go index a322e7f053..dae63a6dc9 100644 --- a/pkg/apiserver/model/common_models.go +++ b/pkg/apiserver/model/common_models.go @@ -10,12 +10,14 @@ import ( type NodeKind string const ( - NodeKindTiDB NodeKind = "tidb" - NodeKindTiKV NodeKind = "tikv" - NodeKindPD NodeKind = "pd" - NodeKindTiFlash NodeKind = "tiflash" - NodeKindTiCDC NodeKind = "ticdc" - NodeKindTiProxy NodeKind = "tiproxy" + NodeKindTiDB NodeKind = "tidb" + NodeKindTiKV NodeKind = "tikv" + NodeKindPD NodeKind = "pd" + NodeKindTiFlash NodeKind = "tiflash" + NodeKindTiCDC NodeKind = "ticdc" + NodeKindTiProxy NodeKind = "tiproxy" + NodeKindTSO NodeKind = "tso" + NodeKindScheduling NodeKind = "scheduling" ) type RequestTargetNode struct { @@ -35,12 +37,14 @@ func (n *RequestTargetNode) FileName() string { } type RequestTargetStatistics struct { - NumTiKVNodes int `json:"num_tikv_nodes"` - NumTiDBNodes int `json:"num_tidb_nodes"` - NumPDNodes int `json:"num_pd_nodes"` - NumTiFlashNodes int `json:"num_tiflash_nodes"` - NumTiCDCNodes int `json:"num_ticdc_nodes"` - NumTiProxyNodes int `json:"num_tiproxy_nodes"` + NumTiKVNodes int `json:"num_tikv_nodes"` + NumTiDBNodes int `json:"num_tidb_nodes"` + NumPDNodes int `json:"num_pd_nodes"` + NumTiFlashNodes int `json:"num_tiflash_nodes"` + NumTiCDCNodes int `json:"num_ticdc_nodes"` + NumTiProxyNodes int `json:"num_tiproxy_nodes"` + NumTSONodes int `json:"num_tso_nodes"` + NumSchedulingNodes int `json:"num_scheduling_nodes"` } func NewRequestTargetStatisticsFromArray(arr *[]RequestTargetNode) RequestTargetStatistics { @@ -59,6 +63,10 @@ func NewRequestTargetStatisticsFromArray(arr *[]RequestTargetNode) RequestTarget stats.NumTiCDCNodes++ case NodeKindTiProxy: stats.NumTiProxyNodes++ + case NodeKindTSO: + stats.NumTSONodes++ + case NodeKindScheduling: + stats.NumSchedulingNodes++ } } return stats diff --git a/pkg/apiserver/profiling/fetcher.go b/pkg/apiserver/profiling/fetcher.go index 7698305b62..62d32adc92 100644 --- a/pkg/apiserver/profiling/fetcher.go +++ b/pkg/apiserver/profiling/fetcher.go @@ -17,11 +17,13 @@ import ( "github.com/pingcap/tidb-dashboard/pkg/config" "github.com/pingcap/tidb-dashboard/pkg/pd" + "github.com/pingcap/tidb-dashboard/pkg/scheduling" "github.com/pingcap/tidb-dashboard/pkg/ticdc" "github.com/pingcap/tidb-dashboard/pkg/tidb" "github.com/pingcap/tidb-dashboard/pkg/tiflash" "github.com/pingcap/tidb-dashboard/pkg/tikv" "github.com/pingcap/tidb-dashboard/pkg/tiproxy" + "github.com/pingcap/tidb-dashboard/pkg/tso" ) const ( @@ -39,12 +41,14 @@ type profileFetcher interface { } type fetchers struct { - tikv profileFetcher - tiflash profileFetcher - tidb profileFetcher - pd profileFetcher - ticdc profileFetcher - tiproxy profileFetcher + tikv profileFetcher + tiflash profileFetcher + tidb profileFetcher + pd profileFetcher + ticdc profileFetcher + tiproxy profileFetcher + tso profileFetcher + scheduling profileFetcher } var newFetchers = fx.Provide(func( @@ -54,6 +58,8 @@ var newFetchers = fx.Provide(func( tiflashClient *tiflash.Client, ticdcClient *ticdc.Client, tiproxyClient *tiproxy.Client, + tsoClient *tso.Client, + schedulingClient *scheduling.Client, config *config.Config, ) *fetchers { return &fetchers{ @@ -76,6 +82,12 @@ var newFetchers = fx.Provide(func( tiproxy: &tiproxyFecther{ client: tiproxyClient, }, + tso: &tsoFetcher{ + client: tsoClient, + }, + scheduling: &schedulingFetcher{ + client: schedulingClient, + }, } }) @@ -174,3 +186,19 @@ type tiproxyFecther struct { func (f *tiproxyFecther) fetch(op *fetchOptions) ([]byte, error) { return f.client.WithTimeout(maxProfilingTimeout).SendGetRequest(op.ip, op.port, op.path) } + +type tsoFetcher struct { + client *tso.Client +} + +func (f *tsoFetcher) fetch(op *fetchOptions) ([]byte, error) { + return f.client.WithTimeout(maxProfilingTimeout).SendGetRequest(op.ip, op.port, op.path) +} + +type schedulingFetcher struct { + client *scheduling.Client +} + +func (f *schedulingFetcher) fetch(op *fetchOptions) ([]byte, error) { + return f.client.WithTimeout(maxProfilingTimeout).SendGetRequest(op.ip, op.port, op.path) +} diff --git a/pkg/apiserver/profiling/profile.go b/pkg/apiserver/profiling/profile.go index 6d7b46857f..17fe586202 100644 --- a/pkg/apiserver/profiling/profile.go +++ b/pkg/apiserver/profiling/profile.go @@ -30,6 +30,10 @@ func profileAndWritePprof(ctx context.Context, fts *fetchers, target *model.Requ return fetchPprof(&pprofOptions{duration: profileDurationSecs, fileNameWithoutExt: fileNameWithoutExt, target: target, fetcher: &fts.ticdc, profilingType: profilingType}) case model.NodeKindTiProxy: return fetchPprof(&pprofOptions{duration: profileDurationSecs, fileNameWithoutExt: fileNameWithoutExt, target: target, fetcher: &fts.tiproxy, profilingType: profilingType}) + case model.NodeKindTSO: + return fetchPprof(&pprofOptions{duration: profileDurationSecs, fileNameWithoutExt: fileNameWithoutExt, target: target, fetcher: &fts.tso, profilingType: profilingType}) + case model.NodeKindScheduling: + return fetchPprof(&pprofOptions{duration: profileDurationSecs, fileNameWithoutExt: fileNameWithoutExt, target: target, fetcher: &fts.scheduling, profilingType: profilingType}) default: return "", "", ErrUnsupportedProfilingTarget.New(target.String()) } diff --git a/pkg/scheduling/client.go b/pkg/scheduling/client.go new file mode 100644 index 0000000000..ca2327f0af --- /dev/null +++ b/pkg/scheduling/client.go @@ -0,0 +1,78 @@ +// Copyright 2024 PingCAP, Inc. Licensed under Apache-2.0. + +package scheduling + +import ( + "context" + "fmt" + "io" + "net" + "net/http" + "strconv" + "time" + + "go.uber.org/fx" + + "github.com/pingcap/tidb-dashboard/pkg/config" + "github.com/pingcap/tidb-dashboard/pkg/httpc" + "github.com/pingcap/tidb-dashboard/util/distro" +) + +var ErrSchedulingClientRequestFailed = ErrNS.NewType("client_request_failed") + +const ( + defaultSchedulingStatusAPITimeout = time.Second * 10 +) + +type Client struct { + httpClient *httpc.Client + httpScheme string + lifecycleCtx context.Context + timeout time.Duration +} + +func NewSchedulingClient(lc fx.Lifecycle, httpClient *httpc.Client, config *config.Config) *Client { + client := &Client{ + httpClient: httpClient, + httpScheme: config.GetClusterHTTPScheme(), + lifecycleCtx: nil, + timeout: defaultSchedulingStatusAPITimeout, + } + + lc.Append(fx.Hook{ + OnStart: func(ctx context.Context) error { + client.lifecycleCtx = ctx + return nil + }, + }) + + return client +} + +func (c Client) WithTimeout(timeout time.Duration) *Client { + c.timeout = timeout + return &c +} + +func (c Client) AddRequestHeader(key, value string) *Client { + c.httpClient = c.httpClient.CloneAndAddRequestHeader(key, value) + return &c +} + +func (c *Client) Get(host string, port int, relativeURI string) (*httpc.Response, error) { + uri := fmt.Sprintf("%s://%s%s", c.httpScheme, net.JoinHostPort(host, strconv.Itoa(port)), relativeURI) + return c.httpClient.WithTimeout(c.timeout).Send(c.lifecycleCtx, uri, http.MethodGet, nil, ErrSchedulingClientRequestFailed, distro.R().Scheduling) +} + +func (c *Client) SendGetRequest(host string, port int, relativeURI string) ([]byte, error) { + res, err := c.Get(host, port, relativeURI) + if err != nil { + return nil, err + } + return res.Body() +} + +func (c *Client) SendPostRequest(host string, port int, relativeURI string, body io.Reader) ([]byte, error) { + uri := fmt.Sprintf("%s://%s%s", c.httpScheme, net.JoinHostPort(host, strconv.Itoa(port)), relativeURI) + return c.httpClient.WithTimeout(c.timeout).SendRequest(c.lifecycleCtx, uri, http.MethodPost, body, ErrSchedulingClientRequestFailed, distro.R().Scheduling) +} diff --git a/pkg/scheduling/scheduling.go b/pkg/scheduling/scheduling.go new file mode 100644 index 0000000000..455c169f9a --- /dev/null +++ b/pkg/scheduling/scheduling.go @@ -0,0 +1,9 @@ +// Copyright 2024 PingCAP, Inc. Licensed under Apache-2.0. + +package scheduling + +import ( + "github.com/joomcode/errorx" +) + +var ErrNS = errorx.NewNamespace("error.scheduling") diff --git a/pkg/tso/client.go b/pkg/tso/client.go new file mode 100644 index 0000000000..c724fddf73 --- /dev/null +++ b/pkg/tso/client.go @@ -0,0 +1,78 @@ +// Copyright 2024 PingCAP, Inc. Licensed under Apache-2.0. + +package tso + +import ( + "context" + "fmt" + "io" + "net" + "net/http" + "strconv" + "time" + + "go.uber.org/fx" + + "github.com/pingcap/tidb-dashboard/pkg/config" + "github.com/pingcap/tidb-dashboard/pkg/httpc" + "github.com/pingcap/tidb-dashboard/util/distro" +) + +var ErrTSOClientRequestFailed = ErrNS.NewType("client_request_failed") + +const ( + defaultTSOStatusAPITimeout = time.Second * 10 +) + +type Client struct { + httpClient *httpc.Client + httpScheme string + lifecycleCtx context.Context + timeout time.Duration +} + +func NewTSOClient(lc fx.Lifecycle, httpClient *httpc.Client, config *config.Config) *Client { + client := &Client{ + httpClient: httpClient, + httpScheme: config.GetClusterHTTPScheme(), + lifecycleCtx: nil, + timeout: defaultTSOStatusAPITimeout, + } + + lc.Append(fx.Hook{ + OnStart: func(ctx context.Context) error { + client.lifecycleCtx = ctx + return nil + }, + }) + + return client +} + +func (c Client) WithTimeout(timeout time.Duration) *Client { + c.timeout = timeout + return &c +} + +func (c Client) AddRequestHeader(key, value string) *Client { + c.httpClient = c.httpClient.CloneAndAddRequestHeader(key, value) + return &c +} + +func (c *Client) Get(host string, port int, relativeURI string) (*httpc.Response, error) { + uri := fmt.Sprintf("%s://%s%s", c.httpScheme, net.JoinHostPort(host, strconv.Itoa(port)), relativeURI) + return c.httpClient.WithTimeout(c.timeout).Send(c.lifecycleCtx, uri, http.MethodGet, nil, ErrTSOClientRequestFailed, distro.R().TSO) +} + +func (c *Client) SendGetRequest(host string, port int, relativeURI string) ([]byte, error) { + res, err := c.Get(host, port, relativeURI) + if err != nil { + return nil, err + } + return res.Body() +} + +func (c *Client) SendPostRequest(host string, port int, relativeURI string, body io.Reader) ([]byte, error) { + uri := fmt.Sprintf("%s://%s%s", c.httpScheme, net.JoinHostPort(host, strconv.Itoa(port)), relativeURI) + return c.httpClient.WithTimeout(c.timeout).SendRequest(c.lifecycleCtx, uri, http.MethodPost, body, ErrTSOClientRequestFailed, distro.R().TSO) +} diff --git a/pkg/tso/tso.go b/pkg/tso/tso.go new file mode 100644 index 0000000000..8a32b66277 --- /dev/null +++ b/pkg/tso/tso.go @@ -0,0 +1,9 @@ +// Copyright 2024 PingCAP, Inc. Licensed under Apache-2.0. + +package tso + +import ( + "github.com/joomcode/errorx" +) + +var ErrNS = errorx.NewNamespace("error.tso") diff --git a/pkg/utils/topology/models.go b/pkg/utils/topology/models.go index 650fb46111..96deb5b87e 100644 --- a/pkg/utils/topology/models.go +++ b/pkg/utils/topology/models.go @@ -56,6 +56,26 @@ type TiProxyInfo struct { StartTimestamp int64 `json:"start_timestamp"` } +type TSOInfo struct { + GitHash string `json:"git_hash"` + Version string `json:"version"` + IP string `json:"ip"` + Port uint `json:"port"` + DeployPath string `json:"deploy_path"` + Status ComponentStatus `json:"status"` + StartTimestamp int64 `json:"start_timestamp"` +} + +type SchedulingInfo struct { + GitHash string `json:"git_hash"` + Version string `json:"version"` + IP string `json:"ip"` + Port uint `json:"port"` + DeployPath string `json:"deploy_path"` + Status ComponentStatus `json:"status"` + StartTimestamp int64 `json:"start_timestamp"` +} + // Store may be a TiKV store or TiFlash store. type StoreInfo struct { GitHash string `json:"git_hash"` diff --git a/pkg/utils/topology/scheduling.go b/pkg/utils/topology/scheduling.go new file mode 100644 index 0000000000..c02a4cceec --- /dev/null +++ b/pkg/utils/topology/scheduling.go @@ -0,0 +1,64 @@ +// Copyright 2024 PingCAP, Inc. Licensed under Apache-2.0. + +package topology + +import ( + "context" + "encoding/json" + "sort" + + "github.com/pingcap/tidb-dashboard/pkg/pd" + "github.com/pingcap/tidb-dashboard/util/distro" + "github.com/pingcap/tidb-dashboard/util/netutil" +) + +func FetchSchedulingTopology(ctx context.Context, pdClient *pd.Client) ([]SchedulingInfo, error) { + nodes := make([]SchedulingInfo, 0) + data, err := pdClient.WithoutPrefix().SendGetRequest("pd/api/v2/ms/members/scheduling") + if err != nil { + return nil, err + } + + ds := []struct { + ServiceAddr string `json:"service-addr"` + Version string `json:"version"` + GitHash string `json:"git-hash"` + DeployPath string `json:"deploy-path"` + StartTimestamp int64 `json:"start-timestamp"` + }{} + + err = json.Unmarshal(data, &ds) + if err != nil { + return nil, ErrInvalidTopologyData.Wrap(err, "%s members API unmarshal failed", distro.R().Scheduling) + } + + for _, ds := range ds { + u := ds.ServiceAddr + hostname, port, err := netutil.ParseHostAndPortFromAddressURL(u) + if err != nil { + continue + } + + nodes = append(nodes, SchedulingInfo{ + GitHash: ds.GitHash, + Version: ds.Version, + IP: hostname, + Port: port, + DeployPath: ds.DeployPath, + Status: ComponentStatusUp, + StartTimestamp: ds.StartTimestamp, + }) + } + + sort.Slice(nodes, func(i, j int) bool { + if nodes[i].IP < nodes[j].IP { + return true + } + if nodes[i].IP > nodes[j].IP { + return false + } + return nodes[i].Port < nodes[j].Port + }) + + return nodes, nil +} diff --git a/pkg/utils/topology/tso.go b/pkg/utils/topology/tso.go new file mode 100644 index 0000000000..12c6eb1928 --- /dev/null +++ b/pkg/utils/topology/tso.go @@ -0,0 +1,64 @@ +// Copyright 2024 PingCAP, Inc. Licensed under Apache-2.0. + +package topology + +import ( + "context" + "encoding/json" + "sort" + + "github.com/pingcap/tidb-dashboard/pkg/pd" + "github.com/pingcap/tidb-dashboard/util/distro" + "github.com/pingcap/tidb-dashboard/util/netutil" +) + +func FetchTSOTopology(ctx context.Context, pdClient *pd.Client) ([]TSOInfo, error) { + nodes := make([]TSOInfo, 0) + data, err := pdClient.WithoutPrefix().SendGetRequest("pd/api/v2/ms/members/tso") + if err != nil { + return nil, err + } + + ds := []struct { + ServiceAddr string `json:"service-addr"` + Version string `json:"version"` + GitHash string `json:"git-hash"` + DeployPath string `json:"deploy-path"` + StartTimestamp int64 `json:"start-timestamp"` + }{} + + err = json.Unmarshal(data, &ds) + if err != nil { + return nil, ErrInvalidTopologyData.Wrap(err, "%s members API unmarshal failed", distro.R().TSO) + } + + for _, ds := range ds { + u := ds.ServiceAddr + hostname, port, err := netutil.ParseHostAndPortFromAddressURL(u) + if err != nil { + continue + } + + nodes = append(nodes, TSOInfo{ + GitHash: ds.GitHash, + Version: ds.Version, + IP: hostname, + Port: port, + DeployPath: ds.DeployPath, + Status: ComponentStatusUp, + StartTimestamp: ds.StartTimestamp, + }) + } + + sort.Slice(nodes, func(i, j int) bool { + if nodes[i].IP < nodes[j].IP { + return true + } + if nodes[i].IP > nodes[j].IP { + return false + } + return nodes[i].Port < nodes[j].Port + }) + + return nodes, nil +} diff --git a/ui/packages/clinic-client/src/client/api/api.ts b/ui/packages/clinic-client/src/client/api/api.ts index 8c37de37c7..7942ac4d73 100644 --- a/ui/packages/clinic-client/src/client/api/api.ts +++ b/ui/packages/clinic-client/src/client/api/api.ts @@ -115,7 +115,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati } - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -171,7 +171,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati } - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; diff --git a/ui/packages/tidb-dashboard-client/src/client/api/api/default-api.ts b/ui/packages/tidb-dashboard-client/src/client/api/api/default-api.ts index e1ea55320f..e8c9ed2379 100644 --- a/ui/packages/tidb-dashboard-client/src/client/api/api/default-api.ts +++ b/ui/packages/tidb-dashboard-client/src/client/api/api/default-api.ts @@ -135,8 +135,12 @@ import { TopologyGrafanaInfo } from '../models'; // @ts-ignore import { TopologyPDInfo } from '../models'; // @ts-ignore +import { TopologySchedulingInfo } from '../models'; +// @ts-ignore import { TopologyStoreLocation } from '../models'; // @ts-ignore +import { TopologyTSOInfo } from '../models'; +// @ts-ignore import { TopologyTiCDCInfo } from '../models'; // @ts-ignore import { TopologyTiDBInfo } from '../models'; @@ -189,7 +193,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -200,7 +204,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Get information of all hosts * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -222,7 +226,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -233,7 +237,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Get cluster statistics * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -255,7 +259,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -266,7 +270,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Edit a configuration * @param {ConfigurationEditRequest} request Request body * @param {*} [options] Override http request option. @@ -305,7 +309,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Get all configurations * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -327,7 +331,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -338,7 +342,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Get action token for download or view profile * @param {string} q target query string * @param {*} [options] Override http request option. @@ -367,7 +371,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati } - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -378,7 +382,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Get current scraping components * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -400,7 +404,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -411,7 +415,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Get Continuous Profiling Config * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -433,7 +437,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -444,7 +448,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Update Continuous Profiling Config * @param {ConprofNgMonitoringConfig} request Request body * @param {*} [options] Override http request option. @@ -483,7 +487,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Download Group Profile files * @param {number} ts timestamp * @param {*} [options] Override http request option. @@ -512,7 +516,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati } - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -523,7 +527,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Get Estimate Size * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -545,7 +549,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -556,7 +560,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Get Group Profile Detail * @param {number} ts timestamp * @param {*} [options] Override http request option. @@ -585,7 +589,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati } - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -596,7 +600,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Get Group Profiles * @param {number} [beginTime] * @param {number} [endTime] @@ -628,7 +632,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati } - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -639,7 +643,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary View Single Profile files * @param {string} [address] * @param {string} [component] @@ -681,7 +685,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati } - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -692,7 +696,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary List all deadlock records * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -714,7 +718,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -725,7 +729,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Get all endpoints * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -747,7 +751,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -758,7 +762,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Send request remote endpoint and return a token for downloading results * @param {EndpointRequestPayload} req request payload * @param {*} [options] Override http request option. @@ -797,7 +801,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Download a finished request result * @param {string} token download token * @param {*} [options] Override http request option. @@ -823,7 +827,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati } - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -860,7 +864,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -910,7 +914,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Generate metrics relationship graph. * @param {DiagnoseGenerateMetricsRelationRequest} request Request body * @param {*} [options] Override http request option. @@ -949,7 +953,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary View metrics relationship graph. * @param {string} token token * @param {*} [options] Override http request option. @@ -975,7 +979,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati } - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -1008,7 +1012,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -1042,7 +1046,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati const localVarQueryParameter = {} as any; - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -1076,7 +1080,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati const localVarQueryParameter = {} as any; - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -1113,7 +1117,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -1192,7 +1196,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati } - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -1232,7 +1236,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati } - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -1275,7 +1279,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati } - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -1286,7 +1290,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Get current alert count from AlertManager * @param {string} address ip:port * @param {*} [options] Override http request option. @@ -1312,7 +1316,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -1323,7 +1327,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Get AlertManager instance * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -1345,7 +1349,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -1356,7 +1360,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Get Grafana instance * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -1378,7 +1382,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -1389,7 +1393,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Get all PD instances * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -1411,7 +1415,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -1448,7 +1452,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -1481,7 +1485,40 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) - + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Get all Scheduling instances + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getSchedulingTopology: async (options: AxiosRequestConfig = {}): Promise => { + const localVarPath = `/topology/scheduling`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication JwtAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -1492,7 +1529,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Get location labels of all TiKV / TiFlash instances * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -1514,7 +1551,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -1525,7 +1562,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Get all TiKV / TiFlash instances * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -1547,7 +1584,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -1558,7 +1595,40 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * + * @summary Get all TSO instances + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getTSOTopology: async (options: AxiosRequestConfig = {}): Promise => { + const localVarPath = `/topology/tso`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication JwtAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * * @summary Get all TiCDC instances * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -1580,7 +1650,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -1591,7 +1661,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Get all TiDB instances * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -1613,7 +1683,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -1624,7 +1694,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Get all TiProxy instances * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -1646,7 +1716,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -1657,7 +1727,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Get information about this TiDB Dashboard * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -1679,7 +1749,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -1690,7 +1760,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary List all databases * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -1712,7 +1782,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -1723,7 +1793,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary List tables by database name * @param {string} [databaseName] Database name * @param {*} [options] Override http request option. @@ -1750,7 +1820,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati } - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -1761,7 +1831,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Get information about current session * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -1783,7 +1853,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -1794,7 +1864,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Get Key Visual Dynamic Config * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -1816,7 +1886,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -1827,7 +1897,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Set Key Visual Dynamic Config * @param {ConfigKeyVisualConfig} request Request body * @param {*} [options] Override http request option. @@ -1913,7 +1983,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati } - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -1924,7 +1994,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Generate a download token for downloading logs * @param {Array} [id] task id * @param {*} [options] Override http request option. @@ -1951,7 +2021,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati } - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -1962,7 +2032,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Download logs * @param {string} token download token * @param {*} [options] Override http request option. @@ -1988,7 +2058,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati } - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -1999,7 +2069,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Create and run a new log search task group * @param {LogsearchCreateTaskGroupRequest} request Request body * @param {*} [options] Override http request option. @@ -2038,7 +2108,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary List all log search task groups * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -2060,7 +2130,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -2071,7 +2141,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Cancel running tasks in a log search task group * @param {string} id task group id * @param {*} [options] Override http request option. @@ -2097,7 +2167,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -2108,7 +2178,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Delete a log search task group * @param {string} id task group id * @param {*} [options] Override http request option. @@ -2134,7 +2204,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -2145,7 +2215,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary List tasks in a log search task group * @param {string} id Task Group ID * @param {*} [options] Override http request option. @@ -2171,7 +2241,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -2182,7 +2252,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Preview a log search task group * @param {string} id task group id * @param {*} [options] Override http request option. @@ -2208,7 +2278,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -2219,7 +2289,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Retry failed tasks in a log search task group * @param {string} id task group id * @param {*} [options] Override http request option. @@ -2245,7 +2315,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -2256,7 +2326,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Get the Prometheus address cluster config * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -2278,7 +2348,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -2331,7 +2401,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati } - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -2342,7 +2412,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Set or clear the customized Prometheus address * @param {MetricsPutCustomPromAddressRequest} request Request body * @param {*} [options] Override http request option. @@ -2381,7 +2451,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Get Profiling Dynamic Config * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -2403,7 +2473,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -2414,7 +2484,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Set Profiling Dynamic Config * @param {ConfigProfilingConfig} request Request body * @param {*} [options] Override http request option. @@ -2453,7 +2523,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Run statements * @param {QueryeditorRunRequest} request Request body * @param {*} [options] Override http request option. @@ -2492,7 +2562,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Get calibrate of Resource Groups by actual workload * @param {number} [endTime] * @param {number} [startTime] @@ -2524,7 +2594,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati } - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -2535,7 +2605,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Get calibrate of Resource Groups by hardware deployment * @param {string} workload workload * @param {*} [options] Override http request option. @@ -2564,7 +2634,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati } - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -2575,7 +2645,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Get Resource Control enable config * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -2597,7 +2667,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -2608,7 +2678,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Get Information of Resource Groups * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -2630,7 +2700,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -2641,7 +2711,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary List all resource groups * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -2663,7 +2733,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -2696,7 +2766,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -2707,7 +2777,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Get details of a slow query * @param {string} [connectId] TODO: Switch back to uint64 when modern browser as well as Swagger handles BigInt well. * @param {string} [digest] @@ -2744,7 +2814,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati } - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -2755,7 +2825,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Download slow query statements * @param {string} token download token * @param {*} [options] Override http request option. @@ -2781,7 +2851,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati } - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -2792,7 +2862,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Generate a download token for exported slow query statements * @param {SlowqueryGetListRequest} request Request body * @param {*} [options] Override http request option. @@ -2831,7 +2901,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary List all slow queries * @param {number} [beginTime] * @param {Array} [db] @@ -2908,7 +2978,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati } - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -2980,7 +3050,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -2991,7 +3061,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Get statement configurations * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -3013,7 +3083,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -3024,7 +3094,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Update statement configurations * @param {StatementEditableConfig} request Request body * @param {*} [options] Override http request option. @@ -3063,7 +3133,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Download statements * @param {string} token download token * @param {*} [options] Override http request option. @@ -3089,7 +3159,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati } - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -3100,7 +3170,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Generate a download token for exported statements * @param {StatementGetStatementsRequest} request Request body * @param {*} [options] Override http request option. @@ -3139,7 +3209,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Get a list of statements * @param {number} [beginTime] * @param {number} [endTime] @@ -3196,7 +3266,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati } - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -3207,7 +3277,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Drop all manually created bindings for a statement * @param {string} sqlDigest query template ID (a.k.a. sql digest) * @param {*} [options] Override http request option. @@ -3236,7 +3306,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati } - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -3247,7 +3317,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Get the bound plan digest (if exists) of a statement * @param {string} sqlDigest query template id * @param {number} beginTime begin time @@ -3290,7 +3360,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati } - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -3301,7 +3371,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Create a binding for a statement and a plan * @param {string} planDigest plan digest id * @param {*} [options] Override http request option. @@ -3330,7 +3400,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati } - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -3341,7 +3411,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Get details of a statement in an execution plan * @param {number} [beginTime] * @param {string} [digest] @@ -3388,7 +3458,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati } - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -3399,7 +3469,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Get execution plans of a statement * @param {number} [beginTime] * @param {string} [digest] @@ -3441,7 +3511,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati } - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -3452,7 +3522,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Get all statement types * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -3474,7 +3544,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -3485,7 +3555,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Hide a TiDB instance * @param {string} address ip:port * @param {*} [options] Override http request option. @@ -3511,7 +3581,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -3522,7 +3592,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Get Top SQL config * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -3544,7 +3614,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -3555,7 +3625,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Update Top SQL config * @param {TopsqlEditableConfig} request Request body * @param {*} [options] Override http request option. @@ -3594,7 +3664,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Get availiable instances * @param {string} [end] * @param {string} [start] @@ -3626,7 +3696,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati } - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -3637,7 +3707,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Get summaries * @param {string} [end] * @param {string} [instance] @@ -3689,7 +3759,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati } - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -3700,7 +3770,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Get log in information, like supported authenticate types * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -3719,7 +3789,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati const localVarQueryParameter = {} as any; - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -3730,7 +3800,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Get sign out info * @param {string} [redirectUrl] * @param {*} [options] Override http request option. @@ -3757,7 +3827,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati } - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -3768,7 +3838,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Log in * @param {UserAuthenticateForm} message Credentials * @param {*} [options] Override http request option. @@ -3804,7 +3874,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Create an impersonation * @param {SsoCreateImpersonationRequest} request Request body * @param {*} [options] Override http request option. @@ -3843,7 +3913,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Get SSO Auth URL * @param {string} [codeVerifier] * @param {string} [redirectUrl] @@ -3877,7 +3947,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati } - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -3888,7 +3958,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Get SSO config * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -3910,7 +3980,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -3921,7 +3991,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary List all impersonations * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -3943,7 +4013,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -3954,7 +4024,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Set SSO config * @param {SsoSetConfigRequest} request Request body * @param {*} [options] Override http request option. @@ -3993,7 +4063,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Share current session and generate a sharing code * @param {CodeShareRequest} request Request body * @param {*} [options] Override http request option. @@ -4061,7 +4131,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati } - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -4093,7 +4163,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Get information of all hosts * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -4103,7 +4173,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Get cluster statistics * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -4113,7 +4183,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Edit a configuration * @param {ConfigurationEditRequest} request Request body * @param {*} [options] Override http request option. @@ -4124,7 +4194,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Get all configurations * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -4134,7 +4204,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Get action token for download or view profile * @param {string} q target query string * @param {*} [options] Override http request option. @@ -4145,7 +4215,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Get current scraping components * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -4155,7 +4225,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Get Continuous Profiling Config * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -4165,7 +4235,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Update Continuous Profiling Config * @param {ConprofNgMonitoringConfig} request Request body * @param {*} [options] Override http request option. @@ -4176,7 +4246,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Download Group Profile files * @param {number} ts timestamp * @param {*} [options] Override http request option. @@ -4187,7 +4257,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Get Estimate Size * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -4197,7 +4267,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Get Group Profile Detail * @param {number} ts timestamp * @param {*} [options] Override http request option. @@ -4208,7 +4278,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Get Group Profiles * @param {number} [beginTime] * @param {number} [endTime] @@ -4220,7 +4290,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary View Single Profile files * @param {string} [address] * @param {string} [component] @@ -4234,7 +4304,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary List all deadlock records * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -4244,7 +4314,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Get all endpoints * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -4254,7 +4324,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Send request remote endpoint and return a token for downloading results * @param {EndpointRequestPayload} req request payload * @param {*} [options] Override http request option. @@ -4265,7 +4335,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Download a finished request result * @param {string} token download token * @param {*} [options] Override http request option. @@ -4298,7 +4368,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Generate metrics relationship graph. * @param {DiagnoseGenerateMetricsRelationRequest} request Request body * @param {*} [options] Override http request option. @@ -4309,7 +4379,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary View metrics relationship graph. * @param {string} token token * @param {*} [options] Override http request option. @@ -4408,7 +4478,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Get current alert count from AlertManager * @param {string} address ip:port * @param {*} [options] Override http request option. @@ -4419,7 +4489,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Get AlertManager instance * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -4429,7 +4499,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Get Grafana instance * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -4439,7 +4509,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Get all PD instances * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -4470,7 +4540,17 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * + * @summary Get all Scheduling instances + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getSchedulingTopology(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getSchedulingTopology(options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * * @summary Get location labels of all TiKV / TiFlash instances * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -4480,7 +4560,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Get all TiKV / TiFlash instances * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -4490,7 +4570,17 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * + * @summary Get all TSO instances + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getTSOTopology(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getTSOTopology(options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * * @summary Get all TiCDC instances * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -4500,7 +4590,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Get all TiDB instances * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -4510,7 +4600,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Get all TiProxy instances * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -4520,7 +4610,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Get information about this TiDB Dashboard * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -4530,7 +4620,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary List all databases * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -4540,7 +4630,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary List tables by database name * @param {string} [databaseName] Database name * @param {*} [options] Override http request option. @@ -4551,7 +4641,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Get information about current session * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -4561,7 +4651,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Get Key Visual Dynamic Config * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -4571,7 +4661,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Set Key Visual Dynamic Config * @param {ConfigKeyVisualConfig} request Request body * @param {*} [options] Override http request option. @@ -4597,7 +4687,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Generate a download token for downloading logs * @param {Array} [id] task id * @param {*} [options] Override http request option. @@ -4608,7 +4698,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Download logs * @param {string} token download token * @param {*} [options] Override http request option. @@ -4619,7 +4709,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Create and run a new log search task group * @param {LogsearchCreateTaskGroupRequest} request Request body * @param {*} [options] Override http request option. @@ -4630,7 +4720,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary List all log search task groups * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -4640,7 +4730,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Cancel running tasks in a log search task group * @param {string} id task group id * @param {*} [options] Override http request option. @@ -4651,7 +4741,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Delete a log search task group * @param {string} id task group id * @param {*} [options] Override http request option. @@ -4662,7 +4752,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary List tasks in a log search task group * @param {string} id Task Group ID * @param {*} [options] Override http request option. @@ -4673,7 +4763,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Preview a log search task group * @param {string} id task group id * @param {*} [options] Override http request option. @@ -4684,7 +4774,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Retry failed tasks in a log search task group * @param {string} id task group id * @param {*} [options] Override http request option. @@ -4695,7 +4785,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Get the Prometheus address cluster config * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -4719,7 +4809,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Set or clear the customized Prometheus address * @param {MetricsPutCustomPromAddressRequest} request Request body * @param {*} [options] Override http request option. @@ -4730,7 +4820,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Get Profiling Dynamic Config * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -4740,7 +4830,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Set Profiling Dynamic Config * @param {ConfigProfilingConfig} request Request body * @param {*} [options] Override http request option. @@ -4751,7 +4841,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Run statements * @param {QueryeditorRunRequest} request Request body * @param {*} [options] Override http request option. @@ -4762,7 +4852,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Get calibrate of Resource Groups by actual workload * @param {number} [endTime] * @param {number} [startTime] @@ -4774,7 +4864,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Get calibrate of Resource Groups by hardware deployment * @param {string} workload workload * @param {*} [options] Override http request option. @@ -4785,7 +4875,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Get Resource Control enable config * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -4795,7 +4885,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Get Information of Resource Groups * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -4805,7 +4895,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary List all resource groups * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -4825,7 +4915,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Get details of a slow query * @param {string} [connectId] TODO: Switch back to uint64 when modern browser as well as Swagger handles BigInt well. * @param {string} [digest] @@ -4838,7 +4928,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Download slow query statements * @param {string} token download token * @param {*} [options] Override http request option. @@ -4849,7 +4939,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Generate a download token for exported slow query statements * @param {SlowqueryGetListRequest} request Request body * @param {*} [options] Override http request option. @@ -4860,7 +4950,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary List all slow queries * @param {number} [beginTime] * @param {Array} [db] @@ -4902,7 +4992,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Get statement configurations * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -4912,7 +5002,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Update statement configurations * @param {StatementEditableConfig} request Request body * @param {*} [options] Override http request option. @@ -4923,7 +5013,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Download statements * @param {string} token download token * @param {*} [options] Override http request option. @@ -4934,7 +5024,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Generate a download token for exported statements * @param {StatementGetStatementsRequest} request Request body * @param {*} [options] Override http request option. @@ -4945,7 +5035,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Get a list of statements * @param {number} [beginTime] * @param {number} [endTime] @@ -4962,7 +5052,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Drop all manually created bindings for a statement * @param {string} sqlDigest query template ID (a.k.a. sql digest) * @param {*} [options] Override http request option. @@ -4973,7 +5063,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Get the bound plan digest (if exists) of a statement * @param {string} sqlDigest query template id * @param {number} beginTime begin time @@ -4986,7 +5076,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Create a binding for a statement and a plan * @param {string} planDigest plan digest id * @param {*} [options] Override http request option. @@ -4997,7 +5087,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Get details of a statement in an execution plan * @param {number} [beginTime] * @param {string} [digest] @@ -5012,7 +5102,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Get execution plans of a statement * @param {number} [beginTime] * @param {string} [digest] @@ -5026,7 +5116,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Get all statement types * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -5036,7 +5126,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Hide a TiDB instance * @param {string} address ip:port * @param {*} [options] Override http request option. @@ -5047,7 +5137,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Get Top SQL config * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -5057,7 +5147,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Update Top SQL config * @param {TopsqlEditableConfig} request Request body * @param {*} [options] Override http request option. @@ -5068,7 +5158,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Get availiable instances * @param {string} [end] * @param {string} [start] @@ -5080,7 +5170,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Get summaries * @param {string} [end] * @param {string} [instance] @@ -5096,7 +5186,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Get log in information, like supported authenticate types * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -5106,7 +5196,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Get sign out info * @param {string} [redirectUrl] * @param {*} [options] Override http request option. @@ -5117,7 +5207,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Log in * @param {UserAuthenticateForm} message Credentials * @param {*} [options] Override http request option. @@ -5128,7 +5218,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Create an impersonation * @param {SsoCreateImpersonationRequest} request Request body * @param {*} [options] Override http request option. @@ -5139,7 +5229,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Get SSO Auth URL * @param {string} [codeVerifier] * @param {string} [redirectUrl] @@ -5152,7 +5242,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Get SSO config * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -5162,7 +5252,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary List all impersonations * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -5172,7 +5262,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Set SSO config * @param {SsoSetConfigRequest} request Request body * @param {*} [options] Override http request option. @@ -5183,7 +5273,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Share current session and generate a sharing code * @param {CodeShareRequest} request Request body * @param {*} [options] Override http request option. @@ -5225,7 +5315,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.cancelProfilingGroup(groupId, options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Get information of all hosts * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -5234,7 +5324,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.clusterInfoGetHostsInfo(options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Get cluster statistics * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -5243,7 +5333,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.clusterInfoGetStatistics(options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Edit a configuration * @param {ConfigurationEditRequest} request Request body * @param {*} [options] Override http request option. @@ -5253,7 +5343,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.configurationEdit(request, options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Get all configurations * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -5262,7 +5352,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.configurationGetAll(options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Get action token for download or view profile * @param {string} q target query string * @param {*} [options] Override http request option. @@ -5272,7 +5362,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.continuousProfilingActionTokenGet(q, options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Get current scraping components * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -5281,7 +5371,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.continuousProfilingComponentsGet(options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Get Continuous Profiling Config * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -5290,7 +5380,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.continuousProfilingConfigGet(options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Update Continuous Profiling Config * @param {ConprofNgMonitoringConfig} request Request body * @param {*} [options] Override http request option. @@ -5300,7 +5390,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.continuousProfilingConfigPost(request, options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Download Group Profile files * @param {number} ts timestamp * @param {*} [options] Override http request option. @@ -5310,7 +5400,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.continuousProfilingDownloadGet(ts, options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Get Estimate Size * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -5319,7 +5409,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.continuousProfilingEstimateSizeGet(options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Get Group Profile Detail * @param {number} ts timestamp * @param {*} [options] Override http request option. @@ -5329,7 +5419,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.continuousProfilingGroupProfileDetailGet(ts, options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Get Group Profiles * @param {number} [beginTime] * @param {number} [endTime] @@ -5340,7 +5430,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.continuousProfilingGroupProfilesGet(beginTime, endTime, options).then((request) => request(axios, basePath)); }, /** - * + * * @summary View Single Profile files * @param {string} [address] * @param {string} [component] @@ -5353,7 +5443,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.continuousProfilingSingleProfileViewGet(address, component, profileType, ts, options).then((request) => request(axios, basePath)); }, /** - * + * * @summary List all deadlock records * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -5362,7 +5452,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.deadlockListGet(options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Get all endpoints * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -5371,7 +5461,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.debugAPIGetEndpoints(options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Send request remote endpoint and return a token for downloading results * @param {EndpointRequestPayload} req request payload * @param {*} [options] Override http request option. @@ -5381,7 +5471,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.debugAPIRequestEndpoint(req, options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Download a finished request result * @param {string} token download token * @param {*} [options] Override http request option. @@ -5411,7 +5501,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.diagnoseDiagnosisPost(request, options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Generate metrics relationship graph. * @param {DiagnoseGenerateMetricsRelationRequest} request Request body * @param {*} [options] Override http request option. @@ -5421,7 +5511,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.diagnoseGenerateMetricsRelationship(request, options).then((request) => request(axios, basePath)); }, /** - * + * * @summary View metrics relationship graph. * @param {string} token token * @param {*} [options] Override http request option. @@ -5511,7 +5601,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.getActionToken(id, action, options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Get current alert count from AlertManager * @param {string} address ip:port * @param {*} [options] Override http request option. @@ -5521,7 +5611,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.getAlertManagerCounts(address, options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Get AlertManager instance * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -5530,7 +5620,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.getAlertManagerTopology(options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Get Grafana instance * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -5539,7 +5629,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.getGrafanaTopology(options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Get all PD instances * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -5567,7 +5657,16 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.getProfilingGroups(options).then((request) => request(axios, basePath)); }, /** - * + * + * @summary Get all Scheduling instances + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getSchedulingTopology(options?: any): AxiosPromise> { + return localVarFp.getSchedulingTopology(options).then((request) => request(axios, basePath)); + }, + /** + * * @summary Get location labels of all TiKV / TiFlash instances * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -5576,7 +5675,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.getStoreLocationTopology(options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Get all TiKV / TiFlash instances * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -5585,7 +5684,16 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.getStoreTopology(options).then((request) => request(axios, basePath)); }, /** - * + * + * @summary Get all TSO instances + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getTSOTopology(options?: any): AxiosPromise> { + return localVarFp.getTSOTopology(options).then((request) => request(axios, basePath)); + }, + /** + * * @summary Get all TiCDC instances * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -5594,7 +5702,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.getTiCDCTopology(options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Get all TiDB instances * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -5603,7 +5711,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.getTiDBTopology(options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Get all TiProxy instances * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -5612,7 +5720,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.getTiProxyTopology(options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Get information about this TiDB Dashboard * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -5621,7 +5729,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.infoGet(options).then((request) => request(axios, basePath)); }, /** - * + * * @summary List all databases * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -5630,7 +5738,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.infoListDatabases(options).then((request) => request(axios, basePath)); }, /** - * + * * @summary List tables by database name * @param {string} [databaseName] Database name * @param {*} [options] Override http request option. @@ -5640,7 +5748,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.infoListTables(databaseName, options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Get information about current session * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -5649,7 +5757,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.infoWhoami(options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Get Key Visual Dynamic Config * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -5658,7 +5766,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.keyvisualConfigGet(options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Set Key Visual Dynamic Config * @param {ConfigKeyVisualConfig} request Request body * @param {*} [options] Override http request option. @@ -5682,7 +5790,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.keyvisualHeatmapsGet(startkey, endkey, starttime, endtime, type, options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Generate a download token for downloading logs * @param {Array} [id] task id * @param {*} [options] Override http request option. @@ -5692,7 +5800,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.logsDownloadAcquireTokenGet(id, options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Download logs * @param {string} token download token * @param {*} [options] Override http request option. @@ -5702,7 +5810,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.logsDownloadGet(token, options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Create and run a new log search task group * @param {LogsearchCreateTaskGroupRequest} request Request body * @param {*} [options] Override http request option. @@ -5712,7 +5820,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.logsTaskgroupPut(request, options).then((request) => request(axios, basePath)); }, /** - * + * * @summary List all log search task groups * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -5721,7 +5829,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.logsTaskgroupsGet(options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Cancel running tasks in a log search task group * @param {string} id task group id * @param {*} [options] Override http request option. @@ -5731,7 +5839,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.logsTaskgroupsIdCancelPost(id, options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Delete a log search task group * @param {string} id task group id * @param {*} [options] Override http request option. @@ -5741,7 +5849,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.logsTaskgroupsIdDelete(id, options).then((request) => request(axios, basePath)); }, /** - * + * * @summary List tasks in a log search task group * @param {string} id Task Group ID * @param {*} [options] Override http request option. @@ -5751,7 +5859,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.logsTaskgroupsIdGet(id, options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Preview a log search task group * @param {string} id task group id * @param {*} [options] Override http request option. @@ -5761,7 +5869,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.logsTaskgroupsIdPreviewGet(id, options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Retry failed tasks in a log search task group * @param {string} id task group id * @param {*} [options] Override http request option. @@ -5771,7 +5879,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.logsTaskgroupsIdRetryPost(id, options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Get the Prometheus address cluster config * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -5793,7 +5901,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.metricsQueryGet(endTimeSec, query, startTimeSec, stepSec, options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Set or clear the customized Prometheus address * @param {MetricsPutCustomPromAddressRequest} request Request body * @param {*} [options] Override http request option. @@ -5803,7 +5911,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.metricsSetCustomPromAddress(request, options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Get Profiling Dynamic Config * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -5812,7 +5920,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.profilingConfigGet(options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Set Profiling Dynamic Config * @param {ConfigProfilingConfig} request Request body * @param {*} [options] Override http request option. @@ -5822,7 +5930,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.profilingConfigPut(request, options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Run statements * @param {QueryeditorRunRequest} request Request body * @param {*} [options] Override http request option. @@ -5832,7 +5940,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.queryEditorRun(request, options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Get calibrate of Resource Groups by actual workload * @param {number} [endTime] * @param {number} [startTime] @@ -5843,7 +5951,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.resourceManagerCalibrateActualGet(endTime, startTime, options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Get calibrate of Resource Groups by hardware deployment * @param {string} workload workload * @param {*} [options] Override http request option. @@ -5853,7 +5961,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.resourceManagerCalibrateHardwareGet(workload, options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Get Resource Control enable config * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -5862,7 +5970,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.resourceManagerConfigGet(options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Get Information of Resource Groups * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -5871,7 +5979,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.resourceManagerInformationGet(options).then((request) => request(axios, basePath)); }, /** - * + * * @summary List all resource groups * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -5889,7 +5997,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.slowQueryAvailableFieldsGet(options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Get details of a slow query * @param {string} [connectId] TODO: Switch back to uint64 when modern browser as well as Swagger handles BigInt well. * @param {string} [digest] @@ -5901,7 +6009,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.slowQueryDetailGet(connectId, digest, timestamp, options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Download slow query statements * @param {string} token download token * @param {*} [options] Override http request option. @@ -5911,7 +6019,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.slowQueryDownloadGet(token, options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Generate a download token for exported slow query statements * @param {SlowqueryGetListRequest} request Request body * @param {*} [options] Override http request option. @@ -5921,7 +6029,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.slowQueryDownloadTokenPost(request, options).then((request) => request(axios, basePath)); }, /** - * + * * @summary List all slow queries * @param {number} [beginTime] * @param {Array} [db] @@ -5960,7 +6068,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.statementsAvailableFieldsGet(options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Get statement configurations * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -5969,7 +6077,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.statementsConfigGet(options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Update statement configurations * @param {StatementEditableConfig} request Request body * @param {*} [options] Override http request option. @@ -5979,7 +6087,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.statementsConfigPost(request, options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Download statements * @param {string} token download token * @param {*} [options] Override http request option. @@ -5989,7 +6097,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.statementsDownloadGet(token, options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Generate a download token for exported statements * @param {StatementGetStatementsRequest} request Request body * @param {*} [options] Override http request option. @@ -5999,7 +6107,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.statementsDownloadTokenPost(request, options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Get a list of statements * @param {number} [beginTime] * @param {number} [endTime] @@ -6015,7 +6123,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.statementsListGet(beginTime, endTime, fields, resourceGroups, schemas, stmtTypes, text, options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Drop all manually created bindings for a statement * @param {string} sqlDigest query template ID (a.k.a. sql digest) * @param {*} [options] Override http request option. @@ -6025,7 +6133,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.statementsPlanBindingDelete(sqlDigest, options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Get the bound plan digest (if exists) of a statement * @param {string} sqlDigest query template id * @param {number} beginTime begin time @@ -6037,7 +6145,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.statementsPlanBindingGet(sqlDigest, beginTime, endTime, options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Create a binding for a statement and a plan * @param {string} planDigest plan digest id * @param {*} [options] Override http request option. @@ -6047,7 +6155,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.statementsPlanBindingPost(planDigest, options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Get details of a statement in an execution plan * @param {number} [beginTime] * @param {string} [digest] @@ -6061,7 +6169,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.statementsPlanDetailGet(beginTime, digest, endTime, plans, schemaName, options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Get execution plans of a statement * @param {number} [beginTime] * @param {string} [digest] @@ -6074,7 +6182,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.statementsPlansGet(beginTime, digest, endTime, schemaName, options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Get all statement types * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -6083,7 +6191,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.statementsStmtTypesGet(options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Hide a TiDB instance * @param {string} address ip:port * @param {*} [options] Override http request option. @@ -6093,7 +6201,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.topologyTidbAddressDelete(address, options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Get Top SQL config * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -6102,7 +6210,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.topsqlConfigGet(options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Update Top SQL config * @param {TopsqlEditableConfig} request Request body * @param {*} [options] Override http request option. @@ -6112,7 +6220,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.topsqlConfigPost(request, options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Get availiable instances * @param {string} [end] * @param {string} [start] @@ -6123,7 +6231,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.topsqlInstancesGet(end, start, options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Get summaries * @param {string} [end] * @param {string} [instance] @@ -6138,7 +6246,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.topsqlSummaryGet(end, instance, instanceType, start, top, window, options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Get log in information, like supported authenticate types * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -6147,7 +6255,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.userGetLoginInfo(options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Get sign out info * @param {string} [redirectUrl] * @param {*} [options] Override http request option. @@ -6157,7 +6265,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.userGetSignOutInfo(redirectUrl, options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Log in * @param {UserAuthenticateForm} message Credentials * @param {*} [options] Override http request option. @@ -6167,7 +6275,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.userLogin(message, options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Create an impersonation * @param {SsoCreateImpersonationRequest} request Request body * @param {*} [options] Override http request option. @@ -6177,7 +6285,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.userSSOCreateImpersonation(request, options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Get SSO Auth URL * @param {string} [codeVerifier] * @param {string} [redirectUrl] @@ -6189,7 +6297,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.userSSOGetAuthURL(codeVerifier, redirectUrl, state, options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Get SSO config * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -6198,7 +6306,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.userSSOGetConfig(options).then((request) => request(axios, basePath)); }, /** - * + * * @summary List all impersonations * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -6207,7 +6315,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.userSSOListImpersonations(options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Set SSO config * @param {SsoSetConfigRequest} request Request body * @param {*} [options] Override http request option. @@ -6217,7 +6325,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.userSSOSetConfig(request, options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Share current session and generate a sharing code * @param {CodeShareRequest} request Request body * @param {*} [options] Override http request option. @@ -7911,6 +8019,17 @@ export class DefaultApi extends BaseAPI { return DefaultApiFp(this.configuration).getProfilingGroups(options).then((request) => request(this.axios, this.basePath)); } + /** + * + * @summary Get all Scheduling instances + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + public getSchedulingTopology(options?: AxiosRequestConfig) { + return DefaultApiFp(this.configuration).getSchedulingTopology(options).then((request) => request(this.axios, this.basePath)); + } + /** * * @summary Get location labels of all TiKV / TiFlash instances @@ -7933,6 +8052,17 @@ export class DefaultApi extends BaseAPI { return DefaultApiFp(this.configuration).getStoreTopology(options).then((request) => request(this.axios, this.basePath)); } + /** + * + * @summary Get all TSO instances + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + public getTSOTopology(options?: AxiosRequestConfig) { + return DefaultApiFp(this.configuration).getTSOTopology(options).then((request) => request(this.axios, this.basePath)); + } + /** * * @summary Get all TiCDC instances diff --git a/ui/packages/tidb-dashboard-client/src/client/api/api/statement-api.ts b/ui/packages/tidb-dashboard-client/src/client/api/api/statement-api.ts index a8ea359238..7cd6e528d9 100644 --- a/ui/packages/tidb-dashboard-client/src/client/api/api/statement-api.ts +++ b/ui/packages/tidb-dashboard-client/src/client/api/api/statement-api.ts @@ -31,7 +31,7 @@ import { StatementBinding } from '../models'; export const StatementApiAxiosParamCreator = function (configuration?: Configuration) { return { /** - * + * * @summary Drop all manually created bindings for a statement * @param {string} sqlDigest query template ID (a.k.a. sql digest) * @param {*} [options] Override http request option. @@ -60,7 +60,7 @@ export const StatementApiAxiosParamCreator = function (configuration?: Configura } - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -71,7 +71,7 @@ export const StatementApiAxiosParamCreator = function (configuration?: Configura }; }, /** - * + * * @summary Get the bound plan digest (if exists) of a statement * @param {string} sqlDigest query template id * @param {number} beginTime begin time @@ -114,7 +114,7 @@ export const StatementApiAxiosParamCreator = function (configuration?: Configura } - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -125,7 +125,7 @@ export const StatementApiAxiosParamCreator = function (configuration?: Configura }; }, /** - * + * * @summary Create a binding for a statement and a plan * @param {string} planDigest plan digest id * @param {*} [options] Override http request option. @@ -154,7 +154,7 @@ export const StatementApiAxiosParamCreator = function (configuration?: Configura } - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -175,7 +175,7 @@ export const StatementApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = StatementApiAxiosParamCreator(configuration) return { /** - * + * * @summary Drop all manually created bindings for a statement * @param {string} sqlDigest query template ID (a.k.a. sql digest) * @param {*} [options] Override http request option. @@ -186,7 +186,7 @@ export const StatementApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Get the bound plan digest (if exists) of a statement * @param {string} sqlDigest query template id * @param {number} beginTime begin time @@ -199,7 +199,7 @@ export const StatementApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Create a binding for a statement and a plan * @param {string} planDigest plan digest id * @param {*} [options] Override http request option. @@ -220,7 +220,7 @@ export const StatementApiFactory = function (configuration?: Configuration, base const localVarFp = StatementApiFp(configuration) return { /** - * + * * @summary Drop all manually created bindings for a statement * @param {string} sqlDigest query template ID (a.k.a. sql digest) * @param {*} [options] Override http request option. @@ -230,7 +230,7 @@ export const StatementApiFactory = function (configuration?: Configuration, base return localVarFp.statementsPlanBindingDelete(sqlDigest, options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Get the bound plan digest (if exists) of a statement * @param {string} sqlDigest query template id * @param {number} beginTime begin time @@ -242,7 +242,7 @@ export const StatementApiFactory = function (configuration?: Configuration, base return localVarFp.statementsPlanBindingGet(sqlDigest, beginTime, endTime, options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Create a binding for a statement and a plan * @param {string} planDigest plan digest id * @param {*} [options] Override http request option. diff --git a/ui/packages/tidb-dashboard-client/src/client/api/models/index.ts b/ui/packages/tidb-dashboard-client/src/client/api/models/index.ts index daf063b7ba..38e5b0bf01 100644 --- a/ui/packages/tidb-dashboard-client/src/client/api/models/index.ts +++ b/ui/packages/tidb-dashboard-client/src/client/api/models/index.ts @@ -75,9 +75,11 @@ export * from './statement-model'; export * from './topology-alert-manager-info'; export * from './topology-grafana-info'; export * from './topology-pdinfo'; +export * from './topology-scheduling-info'; export * from './topology-store-info'; export * from './topology-store-labels'; export * from './topology-store-location'; +export * from './topology-tsoinfo'; export * from './topology-ti-cdcinfo'; export * from './topology-ti-dbinfo'; export * from './topology-ti-proxy-info'; diff --git a/ui/packages/tidb-dashboard-client/src/client/api/models/model-request-target-statistics.ts b/ui/packages/tidb-dashboard-client/src/client/api/models/model-request-target-statistics.ts index e21340d4b6..591b5452cc 100644 --- a/ui/packages/tidb-dashboard-client/src/client/api/models/model-request-target-statistics.ts +++ b/ui/packages/tidb-dashboard-client/src/client/api/models/model-request-target-statistics.ts @@ -26,6 +26,12 @@ export interface ModelRequestTargetStatistics { * @memberof ModelRequestTargetStatistics */ 'num_pd_nodes'?: number; + /** + * + * @type {number} + * @memberof ModelRequestTargetStatistics + */ + 'num_scheduling_nodes'?: number; /** * * @type {number} @@ -56,5 +62,11 @@ export interface ModelRequestTargetStatistics { * @memberof ModelRequestTargetStatistics */ 'num_tiproxy_nodes'?: number; + /** + * + * @type {number} + * @memberof ModelRequestTargetStatistics + */ + 'num_tso_nodes'?: number; } diff --git a/ui/packages/tidb-dashboard-client/src/client/api/models/topology-scheduling-info.ts b/ui/packages/tidb-dashboard-client/src/client/api/models/topology-scheduling-info.ts new file mode 100644 index 0000000000..f5611b54ab --- /dev/null +++ b/ui/packages/tidb-dashboard-client/src/client/api/models/topology-scheduling-info.ts @@ -0,0 +1,66 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Dashboard API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface TopologySchedulingInfo + */ +export interface TopologySchedulingInfo { + /** + * + * @type {string} + * @memberof TopologySchedulingInfo + */ + 'deploy_path'?: string; + /** + * + * @type {string} + * @memberof TopologySchedulingInfo + */ + 'git_hash'?: string; + /** + * + * @type {string} + * @memberof TopologySchedulingInfo + */ + 'ip'?: string; + /** + * + * @type {number} + * @memberof TopologySchedulingInfo + */ + 'port'?: number; + /** + * + * @type {number} + * @memberof TopologySchedulingInfo + */ + 'start_timestamp'?: number; + /** + * + * @type {number} + * @memberof TopologySchedulingInfo + */ + 'status'?: number; + /** + * + * @type {string} + * @memberof TopologySchedulingInfo + */ + 'version'?: string; +} + diff --git a/ui/packages/tidb-dashboard-client/src/client/api/models/topology-tsoinfo.ts b/ui/packages/tidb-dashboard-client/src/client/api/models/topology-tsoinfo.ts new file mode 100644 index 0000000000..51d75ff45d --- /dev/null +++ b/ui/packages/tidb-dashboard-client/src/client/api/models/topology-tsoinfo.ts @@ -0,0 +1,66 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Dashboard API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface TopologyTSOInfo + */ +export interface TopologyTSOInfo { + /** + * + * @type {string} + * @memberof TopologyTSOInfo + */ + 'deploy_path'?: string; + /** + * + * @type {string} + * @memberof TopologyTSOInfo + */ + 'git_hash'?: string; + /** + * + * @type {string} + * @memberof TopologyTSOInfo + */ + 'ip'?: string; + /** + * + * @type {number} + * @memberof TopologyTSOInfo + */ + 'port'?: number; + /** + * + * @type {number} + * @memberof TopologyTSOInfo + */ + 'start_timestamp'?: number; + /** + * + * @type {number} + * @memberof TopologyTSOInfo + */ + 'status'?: number; + /** + * + * @type {string} + * @memberof TopologyTSOInfo + */ + 'version'?: string; +} + diff --git a/ui/packages/tidb-dashboard-client/swagger/spec.json b/ui/packages/tidb-dashboard-client/swagger/spec.json index d30a3d71fc..a3722345d3 100644 --- a/ui/packages/tidb-dashboard-client/swagger/spec.json +++ b/ui/packages/tidb-dashboard-client/swagger/spec.json @@ -3163,6 +3163,34 @@ } } }, + "/topology/scheduling": { + "get": { + "security": [ + { + "JwtAuth": [] + } + ], + "summary": "Get all Scheduling instances", + "operationId": "getSchedulingTopology", + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/topology.SchedulingInfo" + } + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "$ref": "#/definitions/rest.ErrorResponse" + } + } + } + } + }, "/topology/store": { "get": { "security": [ @@ -3327,6 +3355,34 @@ } } }, + "/topology/tso": { + "get": { + "security": [ + { + "JwtAuth": [] + } + ], + "summary": "Get all TSO instances", + "operationId": "getTSOTopology", + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/topology.TSOInfo" + } + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "$ref": "#/definitions/rest.ErrorResponse" + } + } + } + } + }, "/topsql/config": { "get": { "security": [ @@ -4764,6 +4820,9 @@ "num_pd_nodes": { "type": "integer" }, + "num_scheduling_nodes": { + "type": "integer" + }, "num_ticdc_nodes": { "type": "integer" }, @@ -4778,6 +4837,9 @@ }, "num_tiproxy_nodes": { "type": "integer" + }, + "num_tso_nodes": { + "type": "integer" } } }, @@ -5703,6 +5765,32 @@ } } }, + "topology.SchedulingInfo": { + "type": "object", + "properties": { + "deploy_path": { + "type": "string" + }, + "git_hash": { + "type": "string" + }, + "ip": { + "type": "string" + }, + "port": { + "type": "integer" + }, + "start_timestamp": { + "type": "integer" + }, + "status": { + "type": "integer" + }, + "version": { + "type": "string" + } + } + }, "topology.StoreInfo": { "type": "object", "properties": { @@ -5769,6 +5857,32 @@ } } }, + "topology.TSOInfo": { + "type": "object", + "properties": { + "deploy_path": { + "type": "string" + }, + "git_hash": { + "type": "string" + }, + "ip": { + "type": "string" + }, + "port": { + "type": "integer" + }, + "start_timestamp": { + "type": "integer" + }, + "status": { + "type": "integer" + }, + "version": { + "type": "string" + } + } + }, "topology.TiCDCInfo": { "type": "object", "properties": { diff --git a/ui/packages/tidb-dashboard-for-clinic-cloud/src/apps/ClusterInfo/context.ts b/ui/packages/tidb-dashboard-for-clinic-cloud/src/apps/ClusterInfo/context.ts index d1a864b288..1255de4d3a 100644 --- a/ui/packages/tidb-dashboard-for-clinic-cloud/src/apps/ClusterInfo/context.ts +++ b/ui/packages/tidb-dashboard-for-clinic-cloud/src/apps/ClusterInfo/context.ts @@ -35,6 +35,14 @@ class DataSource implements IClusterInfoDataSource { return client.getInstance().getTiProxyTopology(options) } + getTSOTopology(options?: ReqConfig) { + return client.getInstance().getTSOTopology(options) + } + + getSchedulingTopology(options?: ReqConfig) { + return client.getInstance().getSchedulingTopology(options) + } + topologyTidbAddressDelete(address: string, options?: ReqConfig) { return client.getInstance().topologyTidbAddressDelete({ address }, options) } diff --git a/ui/packages/tidb-dashboard-for-clinic-cloud/src/apps/InstanceProfiling/context.ts b/ui/packages/tidb-dashboard-for-clinic-cloud/src/apps/InstanceProfiling/context.ts index 408d6881fa..8f3dbbbf8b 100644 --- a/ui/packages/tidb-dashboard-for-clinic-cloud/src/apps/InstanceProfiling/context.ts +++ b/ui/packages/tidb-dashboard-for-clinic-cloud/src/apps/InstanceProfiling/context.ts @@ -40,6 +40,12 @@ class DataSource implements IInstanceProfilingDataSource { getTiProxyTopology(options?: ReqConfig) { return client.getInstance().getTiProxyTopology(options) } + getTSOTopology(options?: ReqConfig) { + return client.getInstance().getTSOTopology(options) + } + getSchedulingTopology(options?: ReqConfig) { + return client.getInstance().getSchedulingTopology(options) + } } const ds = new DataSource() diff --git a/ui/packages/tidb-dashboard-for-clinic-cloud/src/apps/Overview/context.ts b/ui/packages/tidb-dashboard-for-clinic-cloud/src/apps/Overview/context.ts index 0f54dd710e..fcd4b5653a 100644 --- a/ui/packages/tidb-dashboard-for-clinic-cloud/src/apps/Overview/context.ts +++ b/ui/packages/tidb-dashboard-for-clinic-cloud/src/apps/Overview/context.ts @@ -29,6 +29,14 @@ class DataSource implements IOverviewDataSource { return client.getInstance().getTiProxyTopology(options) } + getTSOTopology(options?: ReqConfig) { + return client.getInstance().getTSOTopology(options) + } + + getSchedulingTopology(options?: ReqConfig) { + return client.getInstance().getSchedulingTopology(options) + } + metricsQueryGet(params: { endTimeSec?: number query?: string diff --git a/ui/packages/tidb-dashboard-for-clinic-cloud/src/apps/SearchLogs/context.ts b/ui/packages/tidb-dashboard-for-clinic-cloud/src/apps/SearchLogs/context.ts index 3d41bbf054..8d1809821d 100644 --- a/ui/packages/tidb-dashboard-for-clinic-cloud/src/apps/SearchLogs/context.ts +++ b/ui/packages/tidb-dashboard-for-clinic-cloud/src/apps/SearchLogs/context.ts @@ -61,6 +61,12 @@ class DataSource implements ISearchLogsDataSource { getTiProxyTopology(options?: ReqConfig) { return client.getInstance().getTiProxyTopology(options) } + getTSOTopology(options?: ReqConfig) { + return client.getInstance().getTSOTopology(options) + } + getSchedulingTopology(options?: ReqConfig) { + return client.getInstance().getSchedulingTopology(options) + } } const ds = new DataSource() diff --git a/ui/packages/tidb-dashboard-for-op/src/apps/ClusterInfo/context.ts b/ui/packages/tidb-dashboard-for-op/src/apps/ClusterInfo/context.ts index d1a864b288..1255de4d3a 100644 --- a/ui/packages/tidb-dashboard-for-op/src/apps/ClusterInfo/context.ts +++ b/ui/packages/tidb-dashboard-for-op/src/apps/ClusterInfo/context.ts @@ -35,6 +35,14 @@ class DataSource implements IClusterInfoDataSource { return client.getInstance().getTiProxyTopology(options) } + getTSOTopology(options?: ReqConfig) { + return client.getInstance().getTSOTopology(options) + } + + getSchedulingTopology(options?: ReqConfig) { + return client.getInstance().getSchedulingTopology(options) + } + topologyTidbAddressDelete(address: string, options?: ReqConfig) { return client.getInstance().topologyTidbAddressDelete({ address }, options) } diff --git a/ui/packages/tidb-dashboard-for-op/src/apps/InstanceProfiling/context.ts b/ui/packages/tidb-dashboard-for-op/src/apps/InstanceProfiling/context.ts index 408d6881fa..8f3dbbbf8b 100644 --- a/ui/packages/tidb-dashboard-for-op/src/apps/InstanceProfiling/context.ts +++ b/ui/packages/tidb-dashboard-for-op/src/apps/InstanceProfiling/context.ts @@ -40,6 +40,12 @@ class DataSource implements IInstanceProfilingDataSource { getTiProxyTopology(options?: ReqConfig) { return client.getInstance().getTiProxyTopology(options) } + getTSOTopology(options?: ReqConfig) { + return client.getInstance().getTSOTopology(options) + } + getSchedulingTopology(options?: ReqConfig) { + return client.getInstance().getSchedulingTopology(options) + } } const ds = new DataSource() diff --git a/ui/packages/tidb-dashboard-for-op/src/apps/Overview/context.ts b/ui/packages/tidb-dashboard-for-op/src/apps/Overview/context.ts index e615f04f08..cf24c0b3ff 100644 --- a/ui/packages/tidb-dashboard-for-op/src/apps/Overview/context.ts +++ b/ui/packages/tidb-dashboard-for-op/src/apps/Overview/context.ts @@ -28,6 +28,14 @@ class DataSource implements IOverviewDataSource { return client.getInstance().getTiProxyTopology(options) } + getTSOTopology(options?: ReqConfig) { + return client.getInstance().getTSOTopology(options) + } + + getSchedulingTopology(options?: ReqConfig) { + return client.getInstance().getSchedulingTopology(options) + } + metricsQueryGet(params: { endTimeSec?: number query?: string diff --git a/ui/packages/tidb-dashboard-for-op/src/apps/SearchLogs/context.ts b/ui/packages/tidb-dashboard-for-op/src/apps/SearchLogs/context.ts index 3d41bbf054..8d1809821d 100644 --- a/ui/packages/tidb-dashboard-for-op/src/apps/SearchLogs/context.ts +++ b/ui/packages/tidb-dashboard-for-op/src/apps/SearchLogs/context.ts @@ -61,6 +61,12 @@ class DataSource implements ISearchLogsDataSource { getTiProxyTopology(options?: ReqConfig) { return client.getInstance().getTiProxyTopology(options) } + getTSOTopology(options?: ReqConfig) { + return client.getInstance().getTSOTopology(options) + } + getSchedulingTopology(options?: ReqConfig) { + return client.getInstance().getSchedulingTopology(options) + } } const ds = new DataSource() diff --git a/ui/packages/tidb-dashboard-for-op/src/utils/distro/strings_res.json b/ui/packages/tidb-dashboard-for-op/src/utils/distro/strings_res.json index 3a1a0ea2d9..9249e9dc50 100644 --- a/ui/packages/tidb-dashboard-for-op/src/utils/distro/strings_res.json +++ b/ui/packages/tidb-dashboard-for-op/src/utils/distro/strings_res.json @@ -1 +1 @@ -{"tidb":"TiDB","tikv":"TiKV","pd":"PD","tiflash":"TiFlash","ticdc":"TiCDC","tiproxy":"TiProxy"} \ No newline at end of file +{"tidb":"TiDB","tikv":"TiKV","pd":"PD","tiflash":"TiFlash","ticdc":"TiCDC","tiproxy":"TiProxy","tso":"TSO","scheduling":"Scheduling"} diff --git a/ui/packages/tidb-dashboard-lib/src/apps/ClusterInfo/components/DiskTable.tsx b/ui/packages/tidb-dashboard-lib/src/apps/ClusterInfo/components/DiskTable.tsx index ab4677f152..d6637cd57e 100644 --- a/ui/packages/tidb-dashboard-lib/src/apps/ClusterInfo/components/DiskTable.tsx +++ b/ui/packages/tidb-dashboard-lib/src/apps/ClusterInfo/components/DiskTable.tsx @@ -43,7 +43,9 @@ function expandDisksItems(rows: HostinfoInfo[]): IExpandedDiskItem[] { tikv: 0, tiflash: 0, ticdc: 0, - tiproxy: 0 + tiproxy: 0, + tso: 0, + scheduling: 0 } } instancesPerPartition[i.partition_path_lower!][i.type!]++ @@ -76,7 +78,9 @@ function expandDisksItems(rows: HostinfoInfo[]): IExpandedDiskItem[] { tikv: 0, tiflash: 0, ticdc: 0, - tiproxy: 0 + tiproxy: 0, + tso: 0, + scheduling: 0 } }) } diff --git a/ui/packages/tidb-dashboard-lib/src/apps/ClusterInfo/components/HostTable.tsx b/ui/packages/tidb-dashboard-lib/src/apps/ClusterInfo/components/HostTable.tsx index b05ff60010..b7fb4a5f27 100644 --- a/ui/packages/tidb-dashboard-lib/src/apps/ClusterInfo/components/HostTable.tsx +++ b/ui/packages/tidb-dashboard-lib/src/apps/ClusterInfo/components/HostTable.tsx @@ -29,7 +29,9 @@ function expandHostItems(rows: HostinfoInfo[]): IExpandedHostItem[] { tikv: 0, tiflash: 0, ticdc: 0, - tiproxy: 0 + tiproxy: 0, + tso: 0, + scheduling: 0 } Object.values(row.instances ?? {}).forEach((i) => { diff --git a/ui/packages/tidb-dashboard-lib/src/apps/ClusterInfo/components/InstanceTable.tsx b/ui/packages/tidb-dashboard-lib/src/apps/ClusterInfo/components/InstanceTable.tsx index b62821244d..e0389464c1 100644 --- a/ui/packages/tidb-dashboard-lib/src/apps/ClusterInfo/components/InstanceTable.tsx +++ b/ui/packages/tidb-dashboard-lib/src/apps/ClusterInfo/components/InstanceTable.tsx @@ -91,11 +91,29 @@ export default function ListPage() { error: errTiProxy } = useClientRequest(ctx!.ds.getTiProxyTopology) + const { + data: dataTSO, + isLoading: loadingTSO, + error: errTSO + } = useClientRequest(ctx!.ds.getTSOTopology) + + const { + data: dataScheduling, + isLoading: loadingScheduling, + error: errScheduling + } = useClientRequest(ctx!.ds.getSchedulingTopology) + // query TiCDC and TiProxy components returns 404 under TiDB 7.6.0 // filter out the 404 error - const errors = [errTiDB, errStores, errPD, errTiCDC, errTiProxy].filter( - (e) => e?.response?.status !== 404 - ) + const errors = [ + errTiDB, + errStores, + errPD, + errTiCDC, + errTiProxy, + errTSO, + errScheduling + ].filter((e) => e?.response?.status !== 404) const [tableData, groupData] = useMemo( () => @@ -106,9 +124,19 @@ export default function ListPage() { dataTiFlash: dataStores?.tiflash, dataTiCDC, dataTiProxy, + dataTSO, + dataScheduling, includeTiFlash: true }), - [dataTiDB, dataStores, dataPD, dataTiCDC, dataTiProxy] + [ + dataTiDB, + dataStores, + dataPD, + dataTiCDC, + dataTiProxy, + dataTSO, + dataScheduling + ] ) const handleHideTiDB = useCallback( @@ -204,7 +232,9 @@ export default function ListPage() { loadingStores || loadingPD || loadingTiCDC || - loadingTiProxy + loadingTiProxy || + loadingTSO || + loadingScheduling } columns={columns} items={tableData} diff --git a/ui/packages/tidb-dashboard-lib/src/apps/ClusterInfo/context/index.ts b/ui/packages/tidb-dashboard-lib/src/apps/ClusterInfo/context/index.ts index f4c6a15e55..71ba06ce41 100644 --- a/ui/packages/tidb-dashboard-lib/src/apps/ClusterInfo/context/index.ts +++ b/ui/packages/tidb-dashboard-lib/src/apps/ClusterInfo/context/index.ts @@ -10,7 +10,9 @@ import { TopologyPDInfo, ClusterinfoClusterStatistics, TopologyTiCDCInfo, - TopologyTiProxyInfo + TopologyTiProxyInfo, + TopologyTSOInfo, + TopologySchedulingInfo } from '@lib/client' import { IContextConfig, ReqConfig } from '@lib/types' @@ -38,6 +40,12 @@ export interface IClusterInfoDataSource { options?: ReqConfig ): AxiosPromise> + getTSOTopology(options?: ReqConfig): AxiosPromise> + + getSchedulingTopology( + options?: ReqConfig + ): AxiosPromise> + topologyTidbAddressDelete( address: string, options?: ReqConfig diff --git a/ui/packages/tidb-dashboard-lib/src/apps/InstanceProfiling/context/index.ts b/ui/packages/tidb-dashboard-lib/src/apps/InstanceProfiling/context/index.ts index 44a00f77b3..f73c52536f 100644 --- a/ui/packages/tidb-dashboard-lib/src/apps/InstanceProfiling/context/index.ts +++ b/ui/packages/tidb-dashboard-lib/src/apps/InstanceProfiling/context/index.ts @@ -11,7 +11,9 @@ import { ClusterinfoStoreTopologyResponse, TopologyPDInfo, TopologyTiCDCInfo, - TopologyTiProxyInfo + TopologyTiProxyInfo, + TopologyTSOInfo, + TopologySchedulingInfo } from '@lib/client' import { IContextConfig, ReqConfig } from '@lib/types' @@ -54,6 +56,12 @@ export interface IInstanceProfilingDataSource { getTiProxyTopology( options?: ReqConfig ): AxiosPromise> + + getTSOTopology(options?: ReqConfig): AxiosPromise> + + getSchedulingTopology( + options?: ReqConfig + ): AxiosPromise> } export interface IInstanceProfilingContext { diff --git a/ui/packages/tidb-dashboard-lib/src/apps/InstanceProfiling/pages/List.tsx b/ui/packages/tidb-dashboard-lib/src/apps/InstanceProfiling/pages/List.tsx index f7838bb2df..64acbbb8e5 100644 --- a/ui/packages/tidb-dashboard-lib/src/apps/InstanceProfiling/pages/List.tsx +++ b/ui/packages/tidb-dashboard-lib/src/apps/InstanceProfiling/pages/List.tsx @@ -76,6 +76,8 @@ export default function Page() { let port switch (instance.instanceKind) { case 'pd': + case 'tso': + case 'scheduling': port = instance.port break case 'tidb': @@ -238,6 +240,8 @@ export default function Page() { getPDTopology={ctx!.ds.getPDTopology} getTiCDCTopology={ctx!.ds.getTiCDCTopology} getTiProxyTopology={ctx!.ds.getTiProxyTopology} + getTSOTopology={ctx!.ds.getTSOTopology} + getSchedulingTopology={ctx!.ds.getSchedulingTopology} /> diff --git a/ui/packages/tidb-dashboard-lib/src/apps/InstanceProfiling/utils/combineTargetStats.ts b/ui/packages/tidb-dashboard-lib/src/apps/InstanceProfiling/utils/combineTargetStats.ts index d88de2bcf5..194688afa6 100644 --- a/ui/packages/tidb-dashboard-lib/src/apps/InstanceProfiling/utils/combineTargetStats.ts +++ b/ui/packages/tidb-dashboard-lib/src/apps/InstanceProfiling/utils/combineTargetStats.ts @@ -7,7 +7,9 @@ const targetNameMap = { num_pd_nodes: () => instanceKindName('pd'), num_tiflash_nodes: () => instanceKindName('tiflash'), num_ticdc_nodes: () => instanceKindName('ticdc'), - num_tiproxy_nodes: () => instanceKindName('tiproxy') + num_tiproxy_nodes: () => instanceKindName('tiproxy'), + num_tso_nodes: () => instanceKindName('tso'), + num_scheduling_nodes: () => instanceKindName('scheduling') } export const combineTargetStats = (stats: ModelRequestTargetStatistics) => diff --git a/ui/packages/tidb-dashboard-lib/src/apps/Overview/components/Instances.tsx b/ui/packages/tidb-dashboard-lib/src/apps/Overview/components/Instances.tsx index 0b42209efe..b4b778a10f 100644 --- a/ui/packages/tidb-dashboard-lib/src/apps/Overview/components/Instances.tsx +++ b/ui/packages/tidb-dashboard-lib/src/apps/Overview/components/Instances.tsx @@ -82,6 +82,8 @@ export default function Nodes() { const pdResp = useClientRequest(ctx!.ds.getPDTopology) const tiCDCResp = useClientRequest(ctx!.ds.getTiCDCTopology) const tiProxyResp = useClientRequest(ctx!.ds.getTiProxyTopology) + const tsoResp = useClientRequest(ctx!.ds.getTSOTopology) + const schedulingResp = useClientRequest(ctx!.ds.getSchedulingTopology) return ( + + + + + + + + ) diff --git a/ui/packages/tidb-dashboard-lib/src/apps/Overview/context/index.ts b/ui/packages/tidb-dashboard-lib/src/apps/Overview/context/index.ts index 5be2ac0b7c..c0637abd35 100644 --- a/ui/packages/tidb-dashboard-lib/src/apps/Overview/context/index.ts +++ b/ui/packages/tidb-dashboard-lib/src/apps/Overview/context/index.ts @@ -10,7 +10,9 @@ import { ClusterinfoStoreTopologyResponse, MetricsQueryResponse, TopologyTiCDCInfo, - TopologyTiProxyInfo + TopologyTiProxyInfo, + TopologyTSOInfo, + TopologySchedulingInfo } from '@lib/client' import { IContextConfig, ReqConfig } from '@lib/types' @@ -47,6 +49,12 @@ export interface IOverviewDataSource { options?: ReqConfig ): AxiosPromise> + getTSOTopology(options?: ReqConfig): AxiosPromise> + + getSchedulingTopology( + options?: ReqConfig + ): AxiosPromise> + getGrafanaTopology(options?: ReqConfig): AxiosPromise getAlertManagerTopology( diff --git a/ui/packages/tidb-dashboard-lib/src/apps/SearchLogs/components/SearchHeader.tsx b/ui/packages/tidb-dashboard-lib/src/apps/SearchLogs/components/SearchHeader.tsx index be27eeab89..165412f01e 100644 --- a/ui/packages/tidb-dashboard-lib/src/apps/SearchLogs/components/SearchHeader.tsx +++ b/ui/packages/tidb-dashboard-lib/src/apps/SearchLogs/components/SearchHeader.tsx @@ -92,6 +92,8 @@ export default function SearchHeader({ taskGroupID }: Props) { case 'tikv': case 'tiflash': case 'ticdc': + case 'tso': + case 'scheduling': port = instance.port break case 'tidb': @@ -173,6 +175,8 @@ export default function SearchHeader({ taskGroupID }: Props) { getPDTopology={ctx!.ds.getPDTopology} getTiCDCTopology={ctx!.ds.getTiCDCTopology} getTiProxyTopology={ctx!.ds.getTiProxyTopology} + getTSOTopology={ctx!.ds.getTSOTopology} + getSchedulingTopology={ctx!.ds.getSchedulingTopology} /> diff --git a/ui/packages/tidb-dashboard-lib/src/apps/SearchLogs/context/index.ts b/ui/packages/tidb-dashboard-lib/src/apps/SearchLogs/context/index.ts index 03d2b86c18..888d5aedc3 100644 --- a/ui/packages/tidb-dashboard-lib/src/apps/SearchLogs/context/index.ts +++ b/ui/packages/tidb-dashboard-lib/src/apps/SearchLogs/context/index.ts @@ -11,7 +11,9 @@ import { ClusterinfoStoreTopologyResponse, TopologyPDInfo, TopologyTiCDCInfo, - TopologyTiProxyInfo + TopologyTiProxyInfo, + TopologyTSOInfo, + TopologySchedulingInfo } from '@lib/client' import { IContextConfig, ReqConfig } from '@lib/types' @@ -68,6 +70,12 @@ export interface ISearchLogsDataSource { getTiProxyTopology( options?: ReqConfig ): AxiosPromise> + + getTSOTopology(options?: ReqConfig): AxiosPromise> + + getSchedulingTopology( + options?: ReqConfig + ): AxiosPromise> } export interface ISearchLogsContext { diff --git a/ui/packages/tidb-dashboard-lib/src/client/models.ts b/ui/packages/tidb-dashboard-lib/src/client/models.ts index 9c5acf4d5a..64c41d53dd 100644 --- a/ui/packages/tidb-dashboard-lib/src/client/models.ts +++ b/ui/packages/tidb-dashboard-lib/src/client/models.ts @@ -1744,6 +1744,12 @@ export interface ModelRequestTargetStatistics { * @memberof ModelRequestTargetStatistics */ 'num_pd_nodes'?: number; + /** + * + * @type {number} + * @memberof ModelRequestTargetStatistics + */ + 'num_scheduling_nodes'?: number; /** * * @type {number} @@ -1774,6 +1780,12 @@ export interface ModelRequestTargetStatistics { * @memberof ModelRequestTargetStatistics */ 'num_tiproxy_nodes'?: number; + /** + * + * @type {number} + * @memberof ModelRequestTargetStatistics + */ + 'num_tso_nodes'?: number; } @@ -3496,6 +3508,59 @@ export interface TopologyPDInfo { +/** + * + * @export + * @interface TopologySchedulingInfo + */ +export interface TopologySchedulingInfo { + /** + * + * @type {string} + * @memberof TopologySchedulingInfo + */ + 'deploy_path'?: string; + /** + * + * @type {string} + * @memberof TopologySchedulingInfo + */ + 'git_hash'?: string; + /** + * + * @type {string} + * @memberof TopologySchedulingInfo + */ + 'ip'?: string; + /** + * + * @type {number} + * @memberof TopologySchedulingInfo + */ + 'port'?: number; + /** + * + * @type {number} + * @memberof TopologySchedulingInfo + */ + 'start_timestamp'?: number; + /** + * + * @type {number} + * @memberof TopologySchedulingInfo + */ + 'status'?: number; + /** + * + * @type {string} + * @memberof TopologySchedulingInfo + */ + 'version'?: string; +} + + + + /** * * @export @@ -3790,6 +3855,59 @@ export interface TopologyTiProxyInfo { +/** + * + * @export + * @interface TopologyTSOInfo + */ +export interface TopologyTSOInfo { + /** + * + * @type {string} + * @memberof TopologyTSOInfo + */ + 'deploy_path'?: string; + /** + * + * @type {string} + * @memberof TopologyTSOInfo + */ + 'git_hash'?: string; + /** + * + * @type {string} + * @memberof TopologyTSOInfo + */ + 'ip'?: string; + /** + * + * @type {number} + * @memberof TopologyTSOInfo + */ + 'port'?: number; + /** + * + * @type {number} + * @memberof TopologyTSOInfo + */ + 'start_timestamp'?: number; + /** + * + * @type {number} + * @memberof TopologyTSOInfo + */ + 'status'?: number; + /** + * + * @type {string} + * @memberof TopologyTSOInfo + */ + 'version'?: string; +} + + + + /** * * @export diff --git a/ui/packages/tidb-dashboard-lib/src/components/InstanceSelect/ValueDisplay.tsx b/ui/packages/tidb-dashboard-lib/src/components/InstanceSelect/ValueDisplay.tsx index a00114d196..4f854d487a 100644 --- a/ui/packages/tidb-dashboard-lib/src/components/InstanceSelect/ValueDisplay.tsx +++ b/ui/packages/tidb-dashboard-lib/src/components/InstanceSelect/ValueDisplay.tsx @@ -38,7 +38,9 @@ export default function ValueDisplay({ tikv: newInstanceStat(), tiflash: newInstanceStat(), ticdc: newInstanceStat(), - tiproxy: newInstanceStat() + tiproxy: newInstanceStat(), + tso: newInstanceStat(), + scheduling: newInstanceStat() } items.forEach((item) => { instanceStats[item.instanceKind].all++ diff --git a/ui/packages/tidb-dashboard-lib/src/components/InstanceSelect/index.tsx b/ui/packages/tidb-dashboard-lib/src/components/InstanceSelect/index.tsx index 1e1b96b207..8232ad8174 100644 --- a/ui/packages/tidb-dashboard-lib/src/components/InstanceSelect/index.tsx +++ b/ui/packages/tidb-dashboard-lib/src/components/InstanceSelect/index.tsx @@ -28,7 +28,9 @@ import { ClusterinfoStoreTopologyResponse, TopologyPDInfo, TopologyTiCDCInfo, - TopologyTiProxyInfo + TopologyTiProxyInfo, + TopologyTSOInfo, + TopologySchedulingInfo } from '@lib/client' import { ReqConfig } from '@lib/types' @@ -53,6 +55,10 @@ export interface IInstanceSelectProps getTiProxyTopology?: ( options?: ReqConfig ) => AxiosPromise> + getTSOTopology?: (options?: ReqConfig) => AxiosPromise> + getSchedulingTopology?: ( + options?: ReqConfig + ) => AxiosPromise> } export interface IInstanceSelectRefProps { @@ -118,6 +124,8 @@ function InstanceSelect( getStoreTopology, getTiCDCTopology, getTiProxyTopology, + getTSOTopology, + getSchedulingTopology, ...restProps } = props @@ -132,6 +140,10 @@ function InstanceSelect( useClientRequest(getTiCDCTopology) const { data: dataTiProxy, isLoading: loadingTiProxy } = useClientRequest(getTiProxyTopology) + const { data: dataTSO, isLoading: loadingTSO } = + useClientRequest(getTSOTopology) + const { data: dataScheduling, isLoading: loadingScheduling } = + useClientRequest(getSchedulingTopology) const columns: IColumn[] = useMemo( () => [ @@ -178,6 +190,8 @@ function InstanceSelect( dataTiFlash: dataStores?.tiflash, dataTiCDC, dataTiProxy, + dataTSO, + dataScheduling, includeTiFlash: enableTiFlash }) }, [ @@ -187,11 +201,15 @@ function InstanceSelect( dataPD, dataTiCDC, dataTiProxy, + dataTSO, + dataScheduling, loadingTiDB, loadingStores, loadingPD, loadingTiCDC, - loadingTiProxy + loadingTiProxy, + loadingTSO, + loadingScheduling ]) const selection = useRef( diff --git a/ui/packages/tidb-dashboard-lib/src/utils/instanceTable.ts b/ui/packages/tidb-dashboard-lib/src/utils/instanceTable.ts index 1108d42990..e58223f9fc 100644 --- a/ui/packages/tidb-dashboard-lib/src/utils/instanceTable.ts +++ b/ui/packages/tidb-dashboard-lib/src/utils/instanceTable.ts @@ -7,7 +7,9 @@ import { TopologyTiDBInfo, TopologyStoreInfo, TopologyTiCDCInfo, - TopologyTiProxyInfo + TopologyTiProxyInfo, + TopologyTSOInfo, + TopologySchedulingInfo } from '@lib/client' export const InstanceKinds = [ @@ -16,7 +18,9 @@ export const InstanceKinds = [ 'tikv', 'tiflash', 'ticdc', - 'tiproxy' + 'tiproxy', + 'tso', + 'scheduling' ] as const export type InstanceKind = typeof InstanceKinds[number] @@ -37,7 +41,9 @@ export interface IInstanceTableItem TopologyTiDBInfo, TopologyStoreInfo, TopologyTiCDCInfo, - TopologyTiProxyInfo { + TopologyTiProxyInfo, + TopologyTSOInfo, + TopologySchedulingInfo { key: string instanceKind: InstanceKind } @@ -49,6 +55,8 @@ export interface IBuildInstanceTableProps { dataTiFlash?: TopologyStoreInfo[] dataTiCDC?: TopologyTiCDCInfo[] dataTiProxy?: TopologyTiProxyInfo[] + dataTSO?: TopologyTSOInfo[] + dataScheduling?: TopologySchedulingInfo[] includeTiFlash?: boolean } @@ -59,6 +67,8 @@ export function buildInstanceTable({ dataTiFlash, dataTiCDC, dataTiProxy, + dataTSO, + dataScheduling, includeTiFlash }: IBuildInstanceTableProps): [IInstanceTableItem[], IGroup[]] { const tableData: IInstanceTableItem[] = [] @@ -72,6 +82,8 @@ export function buildInstanceTable({ | TopologyStoreInfo[] | TopologyTiCDCInfo[] | TopologyTiProxyInfo[] + | TopologyTSOInfo[] + | TopologySchedulingInfo[] | undefined } = {} kinds.pd = dataPD @@ -79,6 +91,8 @@ export function buildInstanceTable({ kinds.tikv = dataTiKV kinds.ticdc = dataTiCDC kinds.tiproxy = dataTiProxy + kinds.tso = dataTSO + kinds.scheduling = dataScheduling if (includeTiFlash) { kinds.tiflash = dataTiFlash } diff --git a/util/client/schedulingclient/status_client.go b/util/client/schedulingclient/status_client.go new file mode 100644 index 0000000000..721f116dde --- /dev/null +++ b/util/client/schedulingclient/status_client.go @@ -0,0 +1,22 @@ +// Copyright 2024 PingCAP, Inc. Licensed under Apache-2.0. + +// Package schedulingclient provides a flexible Scheduling API access to any Scheduling instance. +package schedulingclient + +import ( + "github.com/pingcap/tidb-dashboard/util/client/httpclient" + "github.com/pingcap/tidb-dashboard/util/distro" +) + +type StatusClient struct { + *httpclient.Client +} + +func NewStatusClient(config httpclient.Config) *StatusClient { + config.KindTag = distro.R().Scheduling + return &StatusClient{httpclient.New(config)} +} + +func (c *StatusClient) Clone() *StatusClient { + return &StatusClient{c.Client.Clone()} +} diff --git a/util/client/tsoclient/status_client.go b/util/client/tsoclient/status_client.go new file mode 100644 index 0000000000..a93f152417 --- /dev/null +++ b/util/client/tsoclient/status_client.go @@ -0,0 +1,22 @@ +// Copyright 2024 PingCAP, Inc. Licensed under Apache-2.0. + +// Package tsoclient provides a flexible TSO API access to any TSO instance. +package tsoclient + +import ( + "github.com/pingcap/tidb-dashboard/util/client/httpclient" + "github.com/pingcap/tidb-dashboard/util/distro" +) + +type StatusClient struct { + *httpclient.Client +} + +func NewStatusClient(config httpclient.Config) *StatusClient { + config.KindTag = distro.R().TSO + return &StatusClient{httpclient.New(config)} +} + +func (c *StatusClient) Clone() *StatusClient { + return &StatusClient{c.Client.Clone()} +} diff --git a/util/distro/distro.go b/util/distro/distro.go index a95143ef49..d2563da17c 100644 --- a/util/distro/distro.go +++ b/util/distro/distro.go @@ -17,23 +17,27 @@ import ( ) type DistributionResource struct { - IsDistro bool `json:"is_distro,omitempty"` - TiDB string `json:"tidb,omitempty"` - TiKV string `json:"tikv,omitempty"` - PD string `json:"pd,omitempty"` - TiFlash string `json:"tiflash,omitempty"` - TiCDC string `json:"ticdc,omitempty"` - TiProxy string `json:"tiproxy,omitempty"` + IsDistro bool `json:"is_distro,omitempty"` + TiDB string `json:"tidb,omitempty"` + TiKV string `json:"tikv,omitempty"` + PD string `json:"pd,omitempty"` + TiFlash string `json:"tiflash,omitempty"` + TiCDC string `json:"ticdc,omitempty"` + TiProxy string `json:"tiproxy,omitempty"` + TSO string `json:"tso,omitempty"` + Scheduling string `json:"scheduling,omitempty"` } var defaultDistroRes = DistributionResource{ - IsDistro: false, - TiDB: "TiDB", - TiKV: "TiKV", - PD: "PD", - TiFlash: "TiFlash", - TiCDC: "TiCDC", - TiProxy: "TiProxy", + IsDistro: false, + TiDB: "TiDB", + TiKV: "TiKV", + PD: "PD", + TiFlash: "TiFlash", + TiCDC: "TiCDC", + TiProxy: "TiProxy", + TSO: "TSO", + Scheduling: "Scheduling", } var ( diff --git a/util/topo/model.go b/util/topo/model.go index 307d3a690f..1dc995497d 100644 --- a/util/topo/model.go +++ b/util/topo/model.go @@ -22,6 +22,8 @@ const ( KindTiFlash Kind = "tiflash" KindTiCDC Kind = "ticdc" KindTiProxy Kind = "tiproxy" + KindTSO Kind = "tso" + KindScheduling Kind = "scheduling" KindAlertManager Kind = "alert_manager" KindGrafana Kind = "grafana" KindPrometheus Kind = "prometheus" @@ -177,6 +179,54 @@ func (i *TiProxyInfo) Info() CompInfo { } } +type TSOInfo struct { + GitHash string + Version string + IP string + Port uint + DeployPath string + Status CompStatus + StartTimestamp int64 +} + +var _ Info = &TSOInfo{} + +func (i *TSOInfo) Info() CompInfo { + return CompInfo{ + CompDescriptor: CompDescriptor{ + IP: i.IP, + Port: i.Port, + Kind: KindTSO, + }, + Version: i.Version, + Status: i.Status, + } +} + +type SchedulingInfo struct { + GitHash string + Version string + IP string + Port uint + DeployPath string + Status CompStatus + StartTimestamp int64 +} + +var _ Info = &SchedulingInfo{} + +func (i *SchedulingInfo) Info() CompInfo { + return CompInfo{ + CompDescriptor: CompDescriptor{ + IP: i.IP, + Port: i.Port, + Kind: KindScheduling, + }, + Version: i.Version, + Status: i.Status, + } +} + type StandardDeployInfo struct { IP string Port uint From a86edef44faf210e256eee657f46f41f4672da41 Mon Sep 17 00:00:00 2001 From: baurine <2008.hbl@gmail.com> Date: Thu, 14 Mar 2024 12:46:18 +0800 Subject: [PATCH 2/2] fix: fix api error and handle compatibility with lower version tidb cluster --- pkg/apiserver/clusterinfo/service.go | 15 +- pkg/utils/topology/scheduling.go | 2 +- pkg/utils/topology/tso.go | 2 +- .../src/client/api/api/default-api.ts | 670 +++++++++--------- .../src/utils/distro/strings_res.json | 2 +- .../src/apps/InstanceProfiling/pages/List.tsx | 2 +- .../src/components/InstanceSelect/index.tsx | 10 +- 7 files changed, 361 insertions(+), 342 deletions(-) diff --git a/pkg/apiserver/clusterinfo/service.go b/pkg/apiserver/clusterinfo/service.go index 5458ed0b0c..d1a4695ba8 100644 --- a/pkg/apiserver/clusterinfo/service.go +++ b/pkg/apiserver/clusterinfo/service.go @@ -9,6 +9,7 @@ import ( "context" "fmt" "net/http" + "strings" "sync" "time" @@ -167,7 +168,12 @@ func (s *Service) getTiProxyTopology(c *gin.Context) { func (s *Service) getTSOTopology(c *gin.Context) { instances, err := topology.FetchTSOTopology(s.lifecycleCtx, s.params.PDClient) if err != nil { - rest.Error(c, err) + // TODO: refine later + if strings.Contains(err.Error(), "status code 404") { + rest.Error(c, rest.ErrNotFound.Wrap(err, "api not found")) + } else { + rest.Error(c, err) + } return } c.JSON(http.StatusOK, instances) @@ -182,7 +188,12 @@ func (s *Service) getTSOTopology(c *gin.Context) { func (s *Service) getSchedulingTopology(c *gin.Context) { instances, err := topology.FetchSchedulingTopology(s.lifecycleCtx, s.params.PDClient) if err != nil { - rest.Error(c, err) + // TODO: refine later + if strings.Contains(err.Error(), "status code 404") { + rest.Error(c, rest.ErrNotFound.Wrap(err, "api not found")) + } else { + rest.Error(c, err) + } return } c.JSON(http.StatusOK, instances) diff --git a/pkg/utils/topology/scheduling.go b/pkg/utils/topology/scheduling.go index c02a4cceec..76cd786b43 100644 --- a/pkg/utils/topology/scheduling.go +++ b/pkg/utils/topology/scheduling.go @@ -14,7 +14,7 @@ import ( func FetchSchedulingTopology(ctx context.Context, pdClient *pd.Client) ([]SchedulingInfo, error) { nodes := make([]SchedulingInfo, 0) - data, err := pdClient.WithoutPrefix().SendGetRequest("pd/api/v2/ms/members/scheduling") + data, err := pdClient.WithoutPrefix().SendGetRequest("/pd/api/v2/ms/members/scheduling") if err != nil { return nil, err } diff --git a/pkg/utils/topology/tso.go b/pkg/utils/topology/tso.go index 12c6eb1928..f5bafb7560 100644 --- a/pkg/utils/topology/tso.go +++ b/pkg/utils/topology/tso.go @@ -14,7 +14,7 @@ import ( func FetchTSOTopology(ctx context.Context, pdClient *pd.Client) ([]TSOInfo, error) { nodes := make([]TSOInfo, 0) - data, err := pdClient.WithoutPrefix().SendGetRequest("pd/api/v2/ms/members/tso") + data, err := pdClient.WithoutPrefix().SendGetRequest("/pd/api/v2/ms/members/tso") if err != nil { return nil, err } diff --git a/ui/packages/tidb-dashboard-client/src/client/api/api/default-api.ts b/ui/packages/tidb-dashboard-client/src/client/api/api/default-api.ts index e8c9ed2379..2304912f1a 100644 --- a/ui/packages/tidb-dashboard-client/src/client/api/api/default-api.ts +++ b/ui/packages/tidb-dashboard-client/src/client/api/api/default-api.ts @@ -193,7 +193,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -204,7 +204,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Get information of all hosts * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -226,7 +226,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -237,7 +237,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Get cluster statistics * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -259,7 +259,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -270,7 +270,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Edit a configuration * @param {ConfigurationEditRequest} request Request body * @param {*} [options] Override http request option. @@ -309,7 +309,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Get all configurations * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -331,7 +331,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -342,7 +342,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Get action token for download or view profile * @param {string} q target query string * @param {*} [options] Override http request option. @@ -371,7 +371,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati } - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -382,7 +382,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Get current scraping components * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -404,7 +404,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -415,7 +415,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Get Continuous Profiling Config * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -437,7 +437,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -448,7 +448,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Update Continuous Profiling Config * @param {ConprofNgMonitoringConfig} request Request body * @param {*} [options] Override http request option. @@ -487,7 +487,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Download Group Profile files * @param {number} ts timestamp * @param {*} [options] Override http request option. @@ -516,7 +516,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati } - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -527,7 +527,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Get Estimate Size * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -549,7 +549,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -560,7 +560,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Get Group Profile Detail * @param {number} ts timestamp * @param {*} [options] Override http request option. @@ -589,7 +589,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati } - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -600,7 +600,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Get Group Profiles * @param {number} [beginTime] * @param {number} [endTime] @@ -632,7 +632,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati } - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -643,7 +643,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary View Single Profile files * @param {string} [address] * @param {string} [component] @@ -685,7 +685,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati } - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -696,7 +696,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary List all deadlock records * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -718,7 +718,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -729,7 +729,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Get all endpoints * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -751,7 +751,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -762,7 +762,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Send request remote endpoint and return a token for downloading results * @param {EndpointRequestPayload} req request payload * @param {*} [options] Override http request option. @@ -801,7 +801,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Download a finished request result * @param {string} token download token * @param {*} [options] Override http request option. @@ -827,7 +827,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati } - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -864,7 +864,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -914,7 +914,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Generate metrics relationship graph. * @param {DiagnoseGenerateMetricsRelationRequest} request Request body * @param {*} [options] Override http request option. @@ -953,7 +953,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary View metrics relationship graph. * @param {string} token token * @param {*} [options] Override http request option. @@ -979,7 +979,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati } - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -1012,7 +1012,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -1046,7 +1046,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati const localVarQueryParameter = {} as any; - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -1080,7 +1080,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati const localVarQueryParameter = {} as any; - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -1117,7 +1117,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -1196,7 +1196,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati } - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -1236,7 +1236,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati } - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -1279,7 +1279,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati } - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -1290,7 +1290,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Get current alert count from AlertManager * @param {string} address ip:port * @param {*} [options] Override http request option. @@ -1316,7 +1316,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -1327,7 +1327,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Get AlertManager instance * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -1349,7 +1349,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -1360,7 +1360,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Get Grafana instance * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -1382,7 +1382,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -1393,7 +1393,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Get all PD instances * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -1415,7 +1415,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -1452,7 +1452,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -1485,7 +1485,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -1496,7 +1496,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Get all Scheduling instances * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -1518,7 +1518,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -1529,7 +1529,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Get location labels of all TiKV / TiFlash instances * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -1551,7 +1551,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -1562,7 +1562,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Get all TiKV / TiFlash instances * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -1584,7 +1584,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -1595,7 +1595,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Get all TSO instances * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -1617,7 +1617,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -1628,7 +1628,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Get all TiCDC instances * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -1650,7 +1650,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -1661,7 +1661,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Get all TiDB instances * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -1683,7 +1683,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -1694,7 +1694,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Get all TiProxy instances * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -1716,7 +1716,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -1727,7 +1727,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Get information about this TiDB Dashboard * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -1749,7 +1749,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -1760,7 +1760,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary List all databases * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -1782,7 +1782,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -1793,7 +1793,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary List tables by database name * @param {string} [databaseName] Database name * @param {*} [options] Override http request option. @@ -1820,7 +1820,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati } - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -1831,7 +1831,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Get information about current session * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -1853,7 +1853,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -1864,7 +1864,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Get Key Visual Dynamic Config * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -1886,7 +1886,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -1897,7 +1897,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Set Key Visual Dynamic Config * @param {ConfigKeyVisualConfig} request Request body * @param {*} [options] Override http request option. @@ -1983,7 +1983,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati } - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -1994,7 +1994,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Generate a download token for downloading logs * @param {Array} [id] task id * @param {*} [options] Override http request option. @@ -2021,7 +2021,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati } - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -2032,7 +2032,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Download logs * @param {string} token download token * @param {*} [options] Override http request option. @@ -2058,7 +2058,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati } - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -2069,7 +2069,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Create and run a new log search task group * @param {LogsearchCreateTaskGroupRequest} request Request body * @param {*} [options] Override http request option. @@ -2108,7 +2108,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary List all log search task groups * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -2130,7 +2130,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -2141,7 +2141,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Cancel running tasks in a log search task group * @param {string} id task group id * @param {*} [options] Override http request option. @@ -2167,7 +2167,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -2178,7 +2178,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Delete a log search task group * @param {string} id task group id * @param {*} [options] Override http request option. @@ -2204,7 +2204,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -2215,7 +2215,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary List tasks in a log search task group * @param {string} id Task Group ID * @param {*} [options] Override http request option. @@ -2241,7 +2241,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -2252,7 +2252,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Preview a log search task group * @param {string} id task group id * @param {*} [options] Override http request option. @@ -2278,7 +2278,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -2289,7 +2289,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Retry failed tasks in a log search task group * @param {string} id task group id * @param {*} [options] Override http request option. @@ -2315,7 +2315,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -2326,7 +2326,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Get the Prometheus address cluster config * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -2348,7 +2348,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -2401,7 +2401,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati } - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -2412,7 +2412,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Set or clear the customized Prometheus address * @param {MetricsPutCustomPromAddressRequest} request Request body * @param {*} [options] Override http request option. @@ -2451,7 +2451,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Get Profiling Dynamic Config * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -2473,7 +2473,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -2484,7 +2484,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Set Profiling Dynamic Config * @param {ConfigProfilingConfig} request Request body * @param {*} [options] Override http request option. @@ -2523,7 +2523,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Run statements * @param {QueryeditorRunRequest} request Request body * @param {*} [options] Override http request option. @@ -2562,7 +2562,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Get calibrate of Resource Groups by actual workload * @param {number} [endTime] * @param {number} [startTime] @@ -2594,7 +2594,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati } - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -2605,7 +2605,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Get calibrate of Resource Groups by hardware deployment * @param {string} workload workload * @param {*} [options] Override http request option. @@ -2634,7 +2634,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati } - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -2645,7 +2645,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Get Resource Control enable config * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -2667,7 +2667,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -2678,7 +2678,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Get Information of Resource Groups * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -2700,7 +2700,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -2711,7 +2711,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary List all resource groups * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -2733,7 +2733,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -2766,7 +2766,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -2777,7 +2777,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Get details of a slow query * @param {string} [connectId] TODO: Switch back to uint64 when modern browser as well as Swagger handles BigInt well. * @param {string} [digest] @@ -2814,7 +2814,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati } - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -2825,7 +2825,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Download slow query statements * @param {string} token download token * @param {*} [options] Override http request option. @@ -2851,7 +2851,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati } - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -2862,7 +2862,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Generate a download token for exported slow query statements * @param {SlowqueryGetListRequest} request Request body * @param {*} [options] Override http request option. @@ -2901,7 +2901,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary List all slow queries * @param {number} [beginTime] * @param {Array} [db] @@ -2978,7 +2978,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati } - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -3050,7 +3050,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -3061,7 +3061,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Get statement configurations * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -3083,7 +3083,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -3094,7 +3094,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Update statement configurations * @param {StatementEditableConfig} request Request body * @param {*} [options] Override http request option. @@ -3133,7 +3133,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Download statements * @param {string} token download token * @param {*} [options] Override http request option. @@ -3159,7 +3159,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati } - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -3170,7 +3170,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Generate a download token for exported statements * @param {StatementGetStatementsRequest} request Request body * @param {*} [options] Override http request option. @@ -3209,7 +3209,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Get a list of statements * @param {number} [beginTime] * @param {number} [endTime] @@ -3266,7 +3266,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati } - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -3277,7 +3277,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Drop all manually created bindings for a statement * @param {string} sqlDigest query template ID (a.k.a. sql digest) * @param {*} [options] Override http request option. @@ -3306,7 +3306,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati } - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -3317,7 +3317,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Get the bound plan digest (if exists) of a statement * @param {string} sqlDigest query template id * @param {number} beginTime begin time @@ -3360,7 +3360,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati } - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -3371,7 +3371,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Create a binding for a statement and a plan * @param {string} planDigest plan digest id * @param {*} [options] Override http request option. @@ -3400,7 +3400,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati } - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -3411,7 +3411,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Get details of a statement in an execution plan * @param {number} [beginTime] * @param {string} [digest] @@ -3458,7 +3458,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati } - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -3469,7 +3469,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Get execution plans of a statement * @param {number} [beginTime] * @param {string} [digest] @@ -3511,7 +3511,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati } - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -3522,7 +3522,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Get all statement types * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -3544,7 +3544,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -3555,7 +3555,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Hide a TiDB instance * @param {string} address ip:port * @param {*} [options] Override http request option. @@ -3581,7 +3581,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -3592,7 +3592,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Get Top SQL config * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -3614,7 +3614,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -3625,7 +3625,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Update Top SQL config * @param {TopsqlEditableConfig} request Request body * @param {*} [options] Override http request option. @@ -3664,7 +3664,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Get availiable instances * @param {string} [end] * @param {string} [start] @@ -3696,7 +3696,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati } - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -3707,7 +3707,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Get summaries * @param {string} [end] * @param {string} [instance] @@ -3759,7 +3759,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati } - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -3770,7 +3770,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Get log in information, like supported authenticate types * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -3789,7 +3789,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati const localVarQueryParameter = {} as any; - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -3800,7 +3800,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Get sign out info * @param {string} [redirectUrl] * @param {*} [options] Override http request option. @@ -3827,7 +3827,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati } - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -3838,7 +3838,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Log in * @param {UserAuthenticateForm} message Credentials * @param {*} [options] Override http request option. @@ -3874,7 +3874,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Create an impersonation * @param {SsoCreateImpersonationRequest} request Request body * @param {*} [options] Override http request option. @@ -3913,7 +3913,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Get SSO Auth URL * @param {string} [codeVerifier] * @param {string} [redirectUrl] @@ -3947,7 +3947,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati } - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -3958,7 +3958,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Get SSO config * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -3980,7 +3980,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -3991,7 +3991,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary List all impersonations * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -4013,7 +4013,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -4024,7 +4024,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Set SSO config * @param {SsoSetConfigRequest} request Request body * @param {*} [options] Override http request option. @@ -4063,7 +4063,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * + * * @summary Share current session and generate a sharing code * @param {CodeShareRequest} request Request body * @param {*} [options] Override http request option. @@ -4131,7 +4131,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati } - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -4163,7 +4163,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Get information of all hosts * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -4173,7 +4173,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Get cluster statistics * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -4183,7 +4183,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Edit a configuration * @param {ConfigurationEditRequest} request Request body * @param {*} [options] Override http request option. @@ -4194,7 +4194,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Get all configurations * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -4204,7 +4204,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Get action token for download or view profile * @param {string} q target query string * @param {*} [options] Override http request option. @@ -4215,7 +4215,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Get current scraping components * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -4225,7 +4225,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Get Continuous Profiling Config * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -4235,7 +4235,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Update Continuous Profiling Config * @param {ConprofNgMonitoringConfig} request Request body * @param {*} [options] Override http request option. @@ -4246,7 +4246,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Download Group Profile files * @param {number} ts timestamp * @param {*} [options] Override http request option. @@ -4257,7 +4257,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Get Estimate Size * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -4267,7 +4267,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Get Group Profile Detail * @param {number} ts timestamp * @param {*} [options] Override http request option. @@ -4278,7 +4278,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Get Group Profiles * @param {number} [beginTime] * @param {number} [endTime] @@ -4290,7 +4290,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary View Single Profile files * @param {string} [address] * @param {string} [component] @@ -4304,7 +4304,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary List all deadlock records * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -4314,7 +4314,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Get all endpoints * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -4324,7 +4324,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Send request remote endpoint and return a token for downloading results * @param {EndpointRequestPayload} req request payload * @param {*} [options] Override http request option. @@ -4335,7 +4335,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Download a finished request result * @param {string} token download token * @param {*} [options] Override http request option. @@ -4368,7 +4368,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Generate metrics relationship graph. * @param {DiagnoseGenerateMetricsRelationRequest} request Request body * @param {*} [options] Override http request option. @@ -4379,7 +4379,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary View metrics relationship graph. * @param {string} token token * @param {*} [options] Override http request option. @@ -4478,7 +4478,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Get current alert count from AlertManager * @param {string} address ip:port * @param {*} [options] Override http request option. @@ -4489,7 +4489,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Get AlertManager instance * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -4499,7 +4499,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Get Grafana instance * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -4509,7 +4509,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Get all PD instances * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -4540,7 +4540,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Get all Scheduling instances * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -4550,7 +4550,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Get location labels of all TiKV / TiFlash instances * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -4560,7 +4560,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Get all TiKV / TiFlash instances * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -4570,7 +4570,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Get all TSO instances * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -4580,7 +4580,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Get all TiCDC instances * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -4590,7 +4590,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Get all TiDB instances * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -4600,7 +4600,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Get all TiProxy instances * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -4610,7 +4610,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Get information about this TiDB Dashboard * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -4620,7 +4620,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary List all databases * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -4630,7 +4630,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary List tables by database name * @param {string} [databaseName] Database name * @param {*} [options] Override http request option. @@ -4641,7 +4641,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Get information about current session * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -4651,7 +4651,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Get Key Visual Dynamic Config * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -4661,7 +4661,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Set Key Visual Dynamic Config * @param {ConfigKeyVisualConfig} request Request body * @param {*} [options] Override http request option. @@ -4687,7 +4687,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Generate a download token for downloading logs * @param {Array} [id] task id * @param {*} [options] Override http request option. @@ -4698,7 +4698,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Download logs * @param {string} token download token * @param {*} [options] Override http request option. @@ -4709,7 +4709,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Create and run a new log search task group * @param {LogsearchCreateTaskGroupRequest} request Request body * @param {*} [options] Override http request option. @@ -4720,7 +4720,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary List all log search task groups * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -4730,7 +4730,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Cancel running tasks in a log search task group * @param {string} id task group id * @param {*} [options] Override http request option. @@ -4741,7 +4741,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Delete a log search task group * @param {string} id task group id * @param {*} [options] Override http request option. @@ -4752,7 +4752,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary List tasks in a log search task group * @param {string} id Task Group ID * @param {*} [options] Override http request option. @@ -4763,7 +4763,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Preview a log search task group * @param {string} id task group id * @param {*} [options] Override http request option. @@ -4774,7 +4774,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Retry failed tasks in a log search task group * @param {string} id task group id * @param {*} [options] Override http request option. @@ -4785,7 +4785,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Get the Prometheus address cluster config * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -4809,7 +4809,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Set or clear the customized Prometheus address * @param {MetricsPutCustomPromAddressRequest} request Request body * @param {*} [options] Override http request option. @@ -4820,7 +4820,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Get Profiling Dynamic Config * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -4830,7 +4830,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Set Profiling Dynamic Config * @param {ConfigProfilingConfig} request Request body * @param {*} [options] Override http request option. @@ -4841,7 +4841,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Run statements * @param {QueryeditorRunRequest} request Request body * @param {*} [options] Override http request option. @@ -4852,7 +4852,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Get calibrate of Resource Groups by actual workload * @param {number} [endTime] * @param {number} [startTime] @@ -4864,7 +4864,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Get calibrate of Resource Groups by hardware deployment * @param {string} workload workload * @param {*} [options] Override http request option. @@ -4875,7 +4875,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Get Resource Control enable config * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -4885,7 +4885,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Get Information of Resource Groups * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -4895,7 +4895,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary List all resource groups * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -4915,7 +4915,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Get details of a slow query * @param {string} [connectId] TODO: Switch back to uint64 when modern browser as well as Swagger handles BigInt well. * @param {string} [digest] @@ -4928,7 +4928,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Download slow query statements * @param {string} token download token * @param {*} [options] Override http request option. @@ -4939,7 +4939,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Generate a download token for exported slow query statements * @param {SlowqueryGetListRequest} request Request body * @param {*} [options] Override http request option. @@ -4950,7 +4950,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary List all slow queries * @param {number} [beginTime] * @param {Array} [db] @@ -4992,7 +4992,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Get statement configurations * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -5002,7 +5002,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Update statement configurations * @param {StatementEditableConfig} request Request body * @param {*} [options] Override http request option. @@ -5013,7 +5013,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Download statements * @param {string} token download token * @param {*} [options] Override http request option. @@ -5024,7 +5024,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Generate a download token for exported statements * @param {StatementGetStatementsRequest} request Request body * @param {*} [options] Override http request option. @@ -5035,7 +5035,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Get a list of statements * @param {number} [beginTime] * @param {number} [endTime] @@ -5052,7 +5052,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Drop all manually created bindings for a statement * @param {string} sqlDigest query template ID (a.k.a. sql digest) * @param {*} [options] Override http request option. @@ -5063,7 +5063,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Get the bound plan digest (if exists) of a statement * @param {string} sqlDigest query template id * @param {number} beginTime begin time @@ -5076,7 +5076,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Create a binding for a statement and a plan * @param {string} planDigest plan digest id * @param {*} [options] Override http request option. @@ -5087,7 +5087,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Get details of a statement in an execution plan * @param {number} [beginTime] * @param {string} [digest] @@ -5102,7 +5102,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Get execution plans of a statement * @param {number} [beginTime] * @param {string} [digest] @@ -5116,7 +5116,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Get all statement types * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -5126,7 +5126,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Hide a TiDB instance * @param {string} address ip:port * @param {*} [options] Override http request option. @@ -5137,7 +5137,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Get Top SQL config * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -5147,7 +5147,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Update Top SQL config * @param {TopsqlEditableConfig} request Request body * @param {*} [options] Override http request option. @@ -5158,7 +5158,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Get availiable instances * @param {string} [end] * @param {string} [start] @@ -5170,7 +5170,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Get summaries * @param {string} [end] * @param {string} [instance] @@ -5186,7 +5186,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Get log in information, like supported authenticate types * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -5196,7 +5196,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Get sign out info * @param {string} [redirectUrl] * @param {*} [options] Override http request option. @@ -5207,7 +5207,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Log in * @param {UserAuthenticateForm} message Credentials * @param {*} [options] Override http request option. @@ -5218,7 +5218,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Create an impersonation * @param {SsoCreateImpersonationRequest} request Request body * @param {*} [options] Override http request option. @@ -5229,7 +5229,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Get SSO Auth URL * @param {string} [codeVerifier] * @param {string} [redirectUrl] @@ -5242,7 +5242,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Get SSO config * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -5252,7 +5252,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary List all impersonations * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -5262,7 +5262,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Set SSO config * @param {SsoSetConfigRequest} request Request body * @param {*} [options] Override http request option. @@ -5273,7 +5273,7 @@ export const DefaultApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @summary Share current session and generate a sharing code * @param {CodeShareRequest} request Request body * @param {*} [options] Override http request option. @@ -5315,7 +5315,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.cancelProfilingGroup(groupId, options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Get information of all hosts * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -5324,7 +5324,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.clusterInfoGetHostsInfo(options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Get cluster statistics * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -5333,7 +5333,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.clusterInfoGetStatistics(options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Edit a configuration * @param {ConfigurationEditRequest} request Request body * @param {*} [options] Override http request option. @@ -5343,7 +5343,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.configurationEdit(request, options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Get all configurations * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -5352,7 +5352,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.configurationGetAll(options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Get action token for download or view profile * @param {string} q target query string * @param {*} [options] Override http request option. @@ -5362,7 +5362,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.continuousProfilingActionTokenGet(q, options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Get current scraping components * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -5371,7 +5371,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.continuousProfilingComponentsGet(options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Get Continuous Profiling Config * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -5380,7 +5380,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.continuousProfilingConfigGet(options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Update Continuous Profiling Config * @param {ConprofNgMonitoringConfig} request Request body * @param {*} [options] Override http request option. @@ -5390,7 +5390,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.continuousProfilingConfigPost(request, options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Download Group Profile files * @param {number} ts timestamp * @param {*} [options] Override http request option. @@ -5400,7 +5400,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.continuousProfilingDownloadGet(ts, options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Get Estimate Size * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -5409,7 +5409,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.continuousProfilingEstimateSizeGet(options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Get Group Profile Detail * @param {number} ts timestamp * @param {*} [options] Override http request option. @@ -5419,7 +5419,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.continuousProfilingGroupProfileDetailGet(ts, options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Get Group Profiles * @param {number} [beginTime] * @param {number} [endTime] @@ -5430,7 +5430,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.continuousProfilingGroupProfilesGet(beginTime, endTime, options).then((request) => request(axios, basePath)); }, /** - * + * * @summary View Single Profile files * @param {string} [address] * @param {string} [component] @@ -5443,7 +5443,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.continuousProfilingSingleProfileViewGet(address, component, profileType, ts, options).then((request) => request(axios, basePath)); }, /** - * + * * @summary List all deadlock records * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -5452,7 +5452,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.deadlockListGet(options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Get all endpoints * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -5461,7 +5461,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.debugAPIGetEndpoints(options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Send request remote endpoint and return a token for downloading results * @param {EndpointRequestPayload} req request payload * @param {*} [options] Override http request option. @@ -5471,7 +5471,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.debugAPIRequestEndpoint(req, options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Download a finished request result * @param {string} token download token * @param {*} [options] Override http request option. @@ -5501,7 +5501,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.diagnoseDiagnosisPost(request, options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Generate metrics relationship graph. * @param {DiagnoseGenerateMetricsRelationRequest} request Request body * @param {*} [options] Override http request option. @@ -5511,7 +5511,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.diagnoseGenerateMetricsRelationship(request, options).then((request) => request(axios, basePath)); }, /** - * + * * @summary View metrics relationship graph. * @param {string} token token * @param {*} [options] Override http request option. @@ -5601,7 +5601,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.getActionToken(id, action, options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Get current alert count from AlertManager * @param {string} address ip:port * @param {*} [options] Override http request option. @@ -5611,7 +5611,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.getAlertManagerCounts(address, options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Get AlertManager instance * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -5620,7 +5620,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.getAlertManagerTopology(options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Get Grafana instance * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -5629,7 +5629,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.getGrafanaTopology(options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Get all PD instances * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -5657,7 +5657,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.getProfilingGroups(options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Get all Scheduling instances * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -5666,7 +5666,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.getSchedulingTopology(options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Get location labels of all TiKV / TiFlash instances * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -5675,7 +5675,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.getStoreLocationTopology(options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Get all TiKV / TiFlash instances * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -5684,7 +5684,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.getStoreTopology(options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Get all TSO instances * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -5693,7 +5693,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.getTSOTopology(options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Get all TiCDC instances * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -5702,7 +5702,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.getTiCDCTopology(options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Get all TiDB instances * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -5711,7 +5711,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.getTiDBTopology(options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Get all TiProxy instances * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -5720,7 +5720,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.getTiProxyTopology(options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Get information about this TiDB Dashboard * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -5729,7 +5729,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.infoGet(options).then((request) => request(axios, basePath)); }, /** - * + * * @summary List all databases * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -5738,7 +5738,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.infoListDatabases(options).then((request) => request(axios, basePath)); }, /** - * + * * @summary List tables by database name * @param {string} [databaseName] Database name * @param {*} [options] Override http request option. @@ -5748,7 +5748,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.infoListTables(databaseName, options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Get information about current session * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -5757,7 +5757,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.infoWhoami(options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Get Key Visual Dynamic Config * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -5766,7 +5766,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.keyvisualConfigGet(options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Set Key Visual Dynamic Config * @param {ConfigKeyVisualConfig} request Request body * @param {*} [options] Override http request option. @@ -5790,7 +5790,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.keyvisualHeatmapsGet(startkey, endkey, starttime, endtime, type, options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Generate a download token for downloading logs * @param {Array} [id] task id * @param {*} [options] Override http request option. @@ -5800,7 +5800,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.logsDownloadAcquireTokenGet(id, options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Download logs * @param {string} token download token * @param {*} [options] Override http request option. @@ -5810,7 +5810,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.logsDownloadGet(token, options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Create and run a new log search task group * @param {LogsearchCreateTaskGroupRequest} request Request body * @param {*} [options] Override http request option. @@ -5820,7 +5820,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.logsTaskgroupPut(request, options).then((request) => request(axios, basePath)); }, /** - * + * * @summary List all log search task groups * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -5829,7 +5829,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.logsTaskgroupsGet(options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Cancel running tasks in a log search task group * @param {string} id task group id * @param {*} [options] Override http request option. @@ -5839,7 +5839,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.logsTaskgroupsIdCancelPost(id, options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Delete a log search task group * @param {string} id task group id * @param {*} [options] Override http request option. @@ -5849,7 +5849,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.logsTaskgroupsIdDelete(id, options).then((request) => request(axios, basePath)); }, /** - * + * * @summary List tasks in a log search task group * @param {string} id Task Group ID * @param {*} [options] Override http request option. @@ -5859,7 +5859,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.logsTaskgroupsIdGet(id, options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Preview a log search task group * @param {string} id task group id * @param {*} [options] Override http request option. @@ -5869,7 +5869,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.logsTaskgroupsIdPreviewGet(id, options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Retry failed tasks in a log search task group * @param {string} id task group id * @param {*} [options] Override http request option. @@ -5879,7 +5879,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.logsTaskgroupsIdRetryPost(id, options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Get the Prometheus address cluster config * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -5901,7 +5901,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.metricsQueryGet(endTimeSec, query, startTimeSec, stepSec, options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Set or clear the customized Prometheus address * @param {MetricsPutCustomPromAddressRequest} request Request body * @param {*} [options] Override http request option. @@ -5911,7 +5911,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.metricsSetCustomPromAddress(request, options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Get Profiling Dynamic Config * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -5920,7 +5920,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.profilingConfigGet(options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Set Profiling Dynamic Config * @param {ConfigProfilingConfig} request Request body * @param {*} [options] Override http request option. @@ -5930,7 +5930,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.profilingConfigPut(request, options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Run statements * @param {QueryeditorRunRequest} request Request body * @param {*} [options] Override http request option. @@ -5940,7 +5940,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.queryEditorRun(request, options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Get calibrate of Resource Groups by actual workload * @param {number} [endTime] * @param {number} [startTime] @@ -5951,7 +5951,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.resourceManagerCalibrateActualGet(endTime, startTime, options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Get calibrate of Resource Groups by hardware deployment * @param {string} workload workload * @param {*} [options] Override http request option. @@ -5961,7 +5961,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.resourceManagerCalibrateHardwareGet(workload, options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Get Resource Control enable config * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -5970,7 +5970,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.resourceManagerConfigGet(options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Get Information of Resource Groups * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -5979,7 +5979,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.resourceManagerInformationGet(options).then((request) => request(axios, basePath)); }, /** - * + * * @summary List all resource groups * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -5997,7 +5997,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.slowQueryAvailableFieldsGet(options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Get details of a slow query * @param {string} [connectId] TODO: Switch back to uint64 when modern browser as well as Swagger handles BigInt well. * @param {string} [digest] @@ -6009,7 +6009,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.slowQueryDetailGet(connectId, digest, timestamp, options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Download slow query statements * @param {string} token download token * @param {*} [options] Override http request option. @@ -6019,7 +6019,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.slowQueryDownloadGet(token, options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Generate a download token for exported slow query statements * @param {SlowqueryGetListRequest} request Request body * @param {*} [options] Override http request option. @@ -6029,7 +6029,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.slowQueryDownloadTokenPost(request, options).then((request) => request(axios, basePath)); }, /** - * + * * @summary List all slow queries * @param {number} [beginTime] * @param {Array} [db] @@ -6068,7 +6068,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.statementsAvailableFieldsGet(options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Get statement configurations * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -6077,7 +6077,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.statementsConfigGet(options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Update statement configurations * @param {StatementEditableConfig} request Request body * @param {*} [options] Override http request option. @@ -6087,7 +6087,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.statementsConfigPost(request, options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Download statements * @param {string} token download token * @param {*} [options] Override http request option. @@ -6097,7 +6097,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.statementsDownloadGet(token, options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Generate a download token for exported statements * @param {StatementGetStatementsRequest} request Request body * @param {*} [options] Override http request option. @@ -6107,7 +6107,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.statementsDownloadTokenPost(request, options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Get a list of statements * @param {number} [beginTime] * @param {number} [endTime] @@ -6123,7 +6123,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.statementsListGet(beginTime, endTime, fields, resourceGroups, schemas, stmtTypes, text, options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Drop all manually created bindings for a statement * @param {string} sqlDigest query template ID (a.k.a. sql digest) * @param {*} [options] Override http request option. @@ -6133,7 +6133,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.statementsPlanBindingDelete(sqlDigest, options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Get the bound plan digest (if exists) of a statement * @param {string} sqlDigest query template id * @param {number} beginTime begin time @@ -6145,7 +6145,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.statementsPlanBindingGet(sqlDigest, beginTime, endTime, options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Create a binding for a statement and a plan * @param {string} planDigest plan digest id * @param {*} [options] Override http request option. @@ -6155,7 +6155,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.statementsPlanBindingPost(planDigest, options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Get details of a statement in an execution plan * @param {number} [beginTime] * @param {string} [digest] @@ -6169,7 +6169,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.statementsPlanDetailGet(beginTime, digest, endTime, plans, schemaName, options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Get execution plans of a statement * @param {number} [beginTime] * @param {string} [digest] @@ -6182,7 +6182,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.statementsPlansGet(beginTime, digest, endTime, schemaName, options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Get all statement types * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -6191,7 +6191,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.statementsStmtTypesGet(options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Hide a TiDB instance * @param {string} address ip:port * @param {*} [options] Override http request option. @@ -6201,7 +6201,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.topologyTidbAddressDelete(address, options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Get Top SQL config * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -6210,7 +6210,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.topsqlConfigGet(options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Update Top SQL config * @param {TopsqlEditableConfig} request Request body * @param {*} [options] Override http request option. @@ -6220,7 +6220,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.topsqlConfigPost(request, options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Get availiable instances * @param {string} [end] * @param {string} [start] @@ -6231,7 +6231,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.topsqlInstancesGet(end, start, options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Get summaries * @param {string} [end] * @param {string} [instance] @@ -6246,7 +6246,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.topsqlSummaryGet(end, instance, instanceType, start, top, window, options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Get log in information, like supported authenticate types * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -6255,7 +6255,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.userGetLoginInfo(options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Get sign out info * @param {string} [redirectUrl] * @param {*} [options] Override http request option. @@ -6265,7 +6265,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.userGetSignOutInfo(redirectUrl, options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Log in * @param {UserAuthenticateForm} message Credentials * @param {*} [options] Override http request option. @@ -6275,7 +6275,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.userLogin(message, options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Create an impersonation * @param {SsoCreateImpersonationRequest} request Request body * @param {*} [options] Override http request option. @@ -6285,7 +6285,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.userSSOCreateImpersonation(request, options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Get SSO Auth URL * @param {string} [codeVerifier] * @param {string} [redirectUrl] @@ -6297,7 +6297,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.userSSOGetAuthURL(codeVerifier, redirectUrl, state, options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Get SSO config * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -6306,7 +6306,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.userSSOGetConfig(options).then((request) => request(axios, basePath)); }, /** - * + * * @summary List all impersonations * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -6315,7 +6315,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.userSSOListImpersonations(options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Set SSO config * @param {SsoSetConfigRequest} request Request body * @param {*} [options] Override http request option. @@ -6325,7 +6325,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa return localVarFp.userSSOSetConfig(request, options).then((request) => request(axios, basePath)); }, /** - * + * * @summary Share current session and generate a sharing code * @param {CodeShareRequest} request Request body * @param {*} [options] Override http request option. diff --git a/ui/packages/tidb-dashboard-for-op/src/utils/distro/strings_res.json b/ui/packages/tidb-dashboard-for-op/src/utils/distro/strings_res.json index 9249e9dc50..5a1dcdbff4 100644 --- a/ui/packages/tidb-dashboard-for-op/src/utils/distro/strings_res.json +++ b/ui/packages/tidb-dashboard-for-op/src/utils/distro/strings_res.json @@ -1 +1 @@ -{"tidb":"TiDB","tikv":"TiKV","pd":"PD","tiflash":"TiFlash","ticdc":"TiCDC","tiproxy":"TiProxy","tso":"TSO","scheduling":"Scheduling"} +{"tidb":"TiDB","tikv":"TiKV","pd":"PD","tiflash":"TiFlash","ticdc":"TiCDC","tiproxy":"TiProxy","tso":"TSO","scheduling":"Scheduling"} \ No newline at end of file diff --git a/ui/packages/tidb-dashboard-lib/src/apps/InstanceProfiling/pages/List.tsx b/ui/packages/tidb-dashboard-lib/src/apps/InstanceProfiling/pages/List.tsx index 64acbbb8e5..863091b29f 100644 --- a/ui/packages/tidb-dashboard-lib/src/apps/InstanceProfiling/pages/List.tsx +++ b/ui/packages/tidb-dashboard-lib/src/apps/InstanceProfiling/pages/List.tsx @@ -129,7 +129,7 @@ export default function Page() { name: t('instance_profiling.list.table.columns.targets'), key: 'targets', minWidth: 300, - maxWidth: 400, + maxWidth: 480, onRender: (rec) => { return combineTargetStats(rec.target_stats) } diff --git a/ui/packages/tidb-dashboard-lib/src/components/InstanceSelect/index.tsx b/ui/packages/tidb-dashboard-lib/src/components/InstanceSelect/index.tsx index 8232ad8174..0330f9aaaf 100644 --- a/ui/packages/tidb-dashboard-lib/src/components/InstanceSelect/index.tsx +++ b/ui/packages/tidb-dashboard-lib/src/components/InstanceSelect/index.tsx @@ -180,7 +180,15 @@ function InstanceSelect( ) const [tableItems] = useMemo(() => { - if (loadingTiDB || loadingStores || loadingPD) { + if ( + loadingTiDB || + loadingStores || + loadingPD || + loadingTiCDC || + loadingTiProxy || + loadingTSO || + loadingScheduling + ) { return [[], []] } return buildInstanceTable({