Documentation ¶
Overview ¶
* Copyright (c) 2024 OceanBase. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CdbObRestoreHistory ¶
type CdbObRestoreProgress ¶
type CdbObRestoreProgress struct { RestoreInfo RecoverScn int64 `json:"recover_scn"` RecoverScnDisplay string `json:"recover_scn_display"` RecoverProgress string `json:"recover_progress"` RestoreProgress string `json:"restore_progress"` }
type DagInstance ¶
type DagInstance struct { Id int64 Name string Type string Stage int MaxStage int State int ExecuterAgentIp string ExecuterAgentPort int IsMaintenance bool MaintenanceType int MaintenanceKey string IsFinished bool Context []byte Operator int StartTime time.Time EndTime time.Time GmtCreate time.Time GmtModify time.Time }
type DbaObTenantJobBo ¶
type DbaObTenantJobBo struct { JobId int JobType string JobStatus string ResultCode int Progress int TenantId int SqlText string ExtraInfo string StartTime time.Time ModifyTime time.Time CurrentTarget interface{} }
func (*DbaObTenantJobBo) TargetIs ¶
func (a *DbaObTenantJobBo) TargetIs(target interface{}) bool
type NodeInstance ¶
type ObUnitConfig ¶
type ObUnitConfig struct { GmtCreate time.Time `json:"create_time"` GmtModified time.Time `json:"modify_time"` UnitConfigId int `json:"unit_config_id"` Name string `json:"name"` MaxCpu float64 `json:"max_cpu"` MinCpu float64 `json:"min_cpu"` MemorySize int `json:"memory_size"` LogDiskSize int `json:"log_disk_size"` MaxIops uint `json:"max_iops"` MinIops uint `json:"min_iops"` }
type PartialMaintenance ¶
type ResourcePoolWithUnit ¶
type ResourcePoolWithUnit struct { Name string `json:"pool_name"` Id int `json:"pool_id"` ZoneList string `json:"zone_list"` UnitNum int `json:"unit_num"` Unit *ObUnitConfig `json:"unit_config"` }
type RestoreInfo ¶
type RestoreInfo struct { TenantId int64 `json:"tenant_id"` JobID int64 `json:"job_id"` RestoreTenantName string `json:"restore_tenant_name"` RestoreTenantId int64 `json:"restore_tenant_id"` BackupTenantName string `json:"backup_tenant_name"` BackupTenantId int64 `json:"backup_tenant_id"` BackupClusterName string `json:"backup_cluster_name"` RestoreOption string `json:"restore_option"` RestoreScn int64 `json:"restore_scn"` RestoreScnDisplay string `json:"restore_scn_display"` Status string `json:"status"` StartTimestamp string `json:"start_timestamp"` BackupSetList string `json:"backup_set_list"` BackupPieceList string `json:"backup_piece_list"` TabletCount int64 `json:"tablet_count"` FinishTabletCount int64 `json:"finish_tablet_count"` TotalBytes int64 `json:"total_bytes"` TotalBytesDisplay string `json:"total_bytes_display"` FinishBytes int64 `json:"finish_bytes"` FinishBytesDisplay string `json:"finish_bytes_display"` Description string `json:"description"` }
type SubTaskInstance ¶
type SubTaskInstance struct { Id int64 NodeId int64 Name string StructName string ExecuterAgentIp string ExecuterAgentPort int ExecuteTimes int CanCancel bool CanContinue bool CanPass bool CanRetry bool CanRollback bool Context []byte State int Operator int StartTime time.Time EndTime time.Time GmtCreate time.Time GmtModify time.Time }
type SubTaskLog ¶
type TenantInfo ¶
type TenantInfo struct { Name string `json:"tenant_name"` Id int `json:"tenant_id"` CreatedTime time.Time `json:"created_time"` Mode string `json:"mode"` Status string `json:"status"` Locked string `json:"locked"` PrimaryZone string `json:"primary_zone"` Locality string `json:"locality"` InRecyclebin string `json:"in_recyclebin"` Charset string `json:"charset"` // Only for ORACLE tenant Collation string `json:"collation"` // Only for ORACLE tenant Whitelist string `json:"whitelist"` Pools []*ResourcePoolWithUnit `json:"pools"` }
Click to show internal directories.
Click to hide internal directories.