package monitoring

type Certificate struct {
	TenantID      string          `json:"tenant_id"`
	TenantName    string          `json:"tenant_name"`
	TenantAlias   string          `json:"tenant_alias"`
	BizRegion     string          `json:"biz_region"`
	ClusterID     string          `json:"cluster_id"`
	ClusterName   string          `json:"cluster_name"`
	ClusterStatus string          `json:"cluster_status"`
	ProjectID     string          `json:"project_id"`
	Topology      ClusterTopology `json:"topology"`

	DBPdClusterSecret        string `json:"db_pd_cluster_secret"`
	DBTikvClusterSecret      string `json:"db_tikv_cluster_secret"`
	DBTidbClusterSecret      string `json:"db_tidb_cluster_secret"`
	DBTiflashClusterSecret   string `json:"db_tiflash_cluster_secret"`
	DBTidbServerSecret       string `json:"db_tidb_server_secret"`
	DBClusterClientSecret    string `json:"db_cluster_client_secret"`
	ManualDBTidbClientSecret string `json:"manual_db_tidb_client_secret"`
	ProxyCertificate         string `json:"proxy_certificate"`
	DBClusterCa              string `json:"db_cluster_ca"`
	DBCdcClusterClientSecret string `json:"db_cdc_cluster_client_secret"`
	DBCdcPdClusterSecret     string `json:"db_cdc_pd_cluster_secret"`
}

type ClusterTopology struct {
	TiDB    int32 `json:"tidb"`
	TiKV    int32 `json:"tikv"`
	PD      int32 `json:"pd"`
	TiFlash int32 `json:"tiflash"`
}
