monitor

package
v1.81.61 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 22, 2023 License: MPL-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TKE_CLUSTER_OS_CENTOS72 = "centos7.2x86_64"
	TKE_CLUSTER_OS_CENTOS76 = "centos7.6.0_x64"
	TKE_CLUSTER_OS_UBUNTU18 = "ubuntu18.04.1x86_64"
	TKE_CLUSTER_OS_LINUX24  = "tlinux2.4x86_64"
	TKE_CLUSTER_OS_LINUX22  = "tlinux2.2(tkernel3)x86_64"
	TKE_CLUSTER_OS_LINUXF22 = "Tencent tlinux release 2.2 (Final)"
)
View Source
const (
	TkeClusterOsCentOS76 = "centos7.6x86_64"
	//TkeClusterOsUbuntu16 = "ubuntu16.04.1 LTSx86_64"
	TkeClusterOsUbuntu18 = "ubuntu18.04.1 LTSx86_64"
)

兼容旧的 cluster_os 定义

View Source
const (
	TKE_DEPLOY_TYPE_MANAGED     = "MANAGED_CLUSTER"
	TKE_DEPLOY_TYPE_INDEPENDENT = "INDEPENDENT_CLUSTER"
)
View Source
const (
	TKE_RUNTIME_DOCKER     = "docker"
	TKE_RUNTIME_CONTAINERD = "containerd"
)
View Source
const (
	TKE_ROLE_MASTER_ETCD = "MASTER_ETCD"
	TKE_ROLE_WORKER      = "WORKER"
)
View Source
const (
	TKE_CLUSTER_OS_TYPE_DOCKER_CUSTOMIZE = "DOCKER_CUSTOMIZE"
	TKE_CLUSTER_OS_TYPE_GENERAL          = "GENERAL"
)
View Source
const (
	TkeInternetStatusCreating      = "Creating"
	TkeInternetStatusCreateFailed  = "CreateFailed"
	TkeInternetStatusCreated       = "Created"
	TkeInternetStatusDeleting      = "Deleting"
	TkeInternetStatusDeleted       = "Deleted"
	TkeInternetStatusDeletedFailed = "DeletedFailed"
	TkeInternetStatusNotfound      = "NotFound"
)
View Source
const (
	TKE_CLUSTER_NETWORK_TYPE_GR             = "GR"
	TKE_CLUSTER_NETWORK_TYPE_VPC_CNI        = "VPC-CNI"
	TKE_CLUSTER_NETWORK_TYPE_CILIUM_OVERLAY = "CiliumOverlay"
)
View Source
const (
	TKE_CLUSTER_VPC_CNI_STATUS_RUNNING = "Running"
	TKE_CLUSTER_VPC_CNI_STATUS_SUCCEED = "Succeed"
	TKE_CLUSTER_VPC_CNI_STATUS_FAILED  = "Failed"
)
View Source
const (
	TKE_CLUSTER_NODE_NAME_TYPE_LAN_IP   = "lan-ip"
	TKE_CLUSTER_NODE_NAME_TYPE_HOSTNAME = "hostname"
)
View Source
const (
	TKE_CLUSTER_INTERNET = true
	TKE_CLUSTER_INTRANET = false

	TKE_CLUSTER_OPEN_ACCESS  = true
	TKE_CLUSTER_CLOSE_ACCESS = false
)
View Source
const (
	DefaultAuthenticationOptionsIssuer = "https://kubernetes.default.svc.cluster.local"
)
View Source
const (
	DefaultDesiredPodNum = 0
)
View Source
const (
	InstallSecurityAgentCommandId = "cmd-d8jj2skv"
)
View Source
const (
	TKE_CLUSTER_KUBE_PROXY_MODE_BPF = "kube-proxy-bpf"
)

Variables

View Source
var MonitorRegionMap = map[string]string{
	"ap-guangzhou":       "gz",
	"ap-shenzhen-fsi":    "szjr",
	"ap-guangzhou-open":  "gzopen",
	"ap-shenzhen":        "szx",
	"ap-shanghai":        "sh",
	"ap-shanghai-fsi":    "shjr",
	"ap-nanjing":         "nj",
	"ap-jinan-ec":        "jnec",
	"ap-hangzhou-ec":     "hzec",
	"ap-fuzhou-ec":       "fzec",
	"ap-beijing":         "bj",
	"ap-tianjin":         "tsn",
	"ap-shijiazhuang-ec": "sjwec",
	"ap-beijing-fsi":     "bjjr",
	"ap-wuhan-ec":        "whec",
	"ap-changsha-ec":     "csec",
	"ap-chengdu":         "cd",
	"ap-chongqing":       "cq",
	"ap-taipei":          "tpe",
	"ap-hongkong":        "hk",
	"ap-singapore":       "sg",
	"ap-bangkok":         "th",
	"ap-mumbai":          "in",
	"ap-seoul":           "kr",
	"ap-tokyo":           "jp",
	"na-siliconvalley":   "usw",
	"na-ashburn":         "use",
	"na-toronto":         "ca",
	"eu-frankfurt":       "de",
	"eu-moscow":          "ru",
}

regions in monitor

View Source
var TKE_ADDON_DEFAULT_VALUES_KEY = []string{
	"global.image.host",
	"global.cluster.id",
	"global.cluster.appid",
	"global.cluster.uin",
	"global.cluster.subuin",
	"global.cluster.type",
	"global.cluster.clustertype",
	"global.cluster.kubeversion",
	"global.cluster.kubeminor",
}

This use to filter default values the addon returns.

View Source
var TKE_CLUSTER_KUBE_PROXY_MODE = []string{TKE_CLUSTER_KUBE_PROXY_MODE_BPF}
View Source
var TKE_CLUSTER_OS_TYPES = []string{TKE_CLUSTER_OS_TYPE_GENERAL}

Functions

func AlarmPolicyRule

func AlarmPolicyRule() map[string]*schema.Schema

func DataSourceTencentCloudMonitorAlarmAllNamespaces

func DataSourceTencentCloudMonitorAlarmAllNamespaces() *schema.Resource

func DataSourceTencentCloudMonitorAlarmBasicAlarms

func DataSourceTencentCloudMonitorAlarmBasicAlarms() *schema.Resource

func DataSourceTencentCloudMonitorAlarmBasicMetric

func DataSourceTencentCloudMonitorAlarmBasicMetric() *schema.Resource

func DataSourceTencentCloudMonitorAlarmConditionsTemplate

func DataSourceTencentCloudMonitorAlarmConditionsTemplate() *schema.Resource

func DataSourceTencentCloudMonitorAlarmHistory

func DataSourceTencentCloudMonitorAlarmHistory() *schema.Resource

func DataSourceTencentCloudMonitorAlarmMetric

func DataSourceTencentCloudMonitorAlarmMetric() *schema.Resource

func DataSourceTencentCloudMonitorAlarmMonitorType

func DataSourceTencentCloudMonitorAlarmMonitorType() *schema.Resource

func DataSourceTencentCloudMonitorAlarmNoticeCallbacks

func DataSourceTencentCloudMonitorAlarmNoticeCallbacks() *schema.Resource

func DataSourceTencentCloudMonitorAlarmNotices

func DataSourceTencentCloudMonitorAlarmNotices() *schema.Resource

func DataSourceTencentCloudMonitorAlarmPolicy

func DataSourceTencentCloudMonitorAlarmPolicy() *schema.Resource

func DataSourceTencentCloudMonitorBindingObjects

func DataSourceTencentCloudMonitorBindingObjects() *schema.Resource

func DataSourceTencentCloudMonitorData

func DataSourceTencentCloudMonitorData() *schema.Resource

func DataSourceTencentCloudMonitorPolicyConditions

func DataSourceTencentCloudMonitorPolicyConditions() *schema.Resource

func DataSourceTencentCloudMonitorPolicyGroups

func DataSourceTencentCloudMonitorPolicyGroups() *schema.Resource

func DataSourceTencentCloudMonitorProductEvent

func DataSourceTencentCloudMonitorProductEvent() *schema.Resource

func DataSourceTencentCloudMonitorProductNamespace

func DataSourceTencentCloudMonitorProductNamespace() *schema.Resource

func GetTkeLabels

func GetTkeLabels(d *schema.ResourceData, k string) []*tke.Label

func GetTkeTaints

func GetTkeTaints(d *schema.ResourceData, k string) []*tke.Taint

func ModifyClusterInternetOrIntranetAccess

func ModifyClusterInternetOrIntranetAccess(ctx context.Context, d *schema.ResourceData, tkeSvc *TkeService,
	isInternet bool, enable bool, sg string, subnetId string, domain string) error

func ModifySecurityServiceOfCvmInNodePool

func ModifySecurityServiceOfCvmInNodePool(ctx context.Context, d *schema.ResourceData, tkeSvc *TkeService, cvmSvc *svccvm.CvmService, client *connectivity.TencentCloudClient, clusterId string, nodePoolId string) error

func ResourceTencentCloudMonitorAlarmNotice

func ResourceTencentCloudMonitorAlarmNotice() *schema.Resource

func ResourceTencentCloudMonitorAlarmPolicy

func ResourceTencentCloudMonitorAlarmPolicy() *schema.Resource

func ResourceTencentCloudMonitorAlarmPolicySetDefault

func ResourceTencentCloudMonitorAlarmPolicySetDefault() *schema.Resource

func ResourceTencentCloudMonitorBindingAlarmReceiver

func ResourceTencentCloudMonitorBindingAlarmReceiver() *schema.Resource

func ResourceTencentCloudMonitorBindingObject

func ResourceTencentCloudMonitorBindingObject() *schema.Resource

func ResourceTencentCloudMonitorPolicyBindingObject

func ResourceTencentCloudMonitorPolicyBindingObject() *schema.Resource

Types

type ClusterAdvancedSettings

type ClusterAdvancedSettings struct {
	Ipvs                    bool
	AsEnabled               bool
	EnableCustomizedPodCIDR bool
	BasePodNumber           int64
	ContainerRuntime        string
	RuntimeVersion          string
	NodeNameType            string
	ExtraArgs               ClusterExtraArgs
	NetworkType             string
	IsNonStaticIpMode       bool
	DeletionProtection      bool
	KubeProxyMode           string
	Property                string
	OsCustomizeType         string
	VpcCniType              string
}

type ClusterBasicSetting

type ClusterBasicSetting struct {
	ClusterId               string
	ClusterOs               string
	ClusterOsType           string
	ClusterVersion          string
	ClusterName             string
	ClusterDescription      string
	ClusterLevel            *string
	AutoUpgradeClusterLevel *bool
	VpcId                   string
	ProjectId               int64
	ClusterNodeNum          int64
	ClusterStatus           string
	SubnetId                string
	Tags                    map[string]string
}

type ClusterCidrSettings

type ClusterCidrSettings struct {
	ClusterCidr               string
	IgnoreClusterCidrConflict bool
	MaxNodePodNum             int64
	MaxClusterServiceNum      int64
	ServiceCIDR               string
	EniSubnetIds              []string
	ClaimExpiredSeconds       int64
}

type ClusterExtraArgs

type ClusterExtraArgs struct {
	KubeAPIServer         []string
	KubeControllerManager []string
	KubeScheduler         []string
}

type ClusterInfo

type ClusterInfo struct {
	ClusterBasicSetting
	ClusterCidrSettings
	ClusterAdvancedSettings

	DeployType  string
	CreatedTime string
}

type DescribeLogSwitchesResponse

type DescribeLogSwitchesResponse struct {
	tchttp.BaseResponse
	Response *DescribeLogSwitchesResponseParams `json:"Response"`
}

type DescribeLogSwitchesResponseParams

type DescribeLogSwitchesResponseParams struct {
	SwitchSet []*Switch `json:"SwitchSet,omitempty" name:"SwitchSet"`
	RequestId *string   `json:"RequestId,omitempty" name:"RequestId"`
}

type InstanceAdvancedSettings

type InstanceAdvancedSettings struct {
	MountTarget     string
	DockerGraphPath string
	UserScript      string
	Unschedulable   int64
	DesiredPodNum   int64
	Labels          []*tke.Label
	DataDisks       []*tke.DataDisk
	ExtraArgs       tke.InstanceExtraArgs
}

type InstanceInfo

type InstanceInfo struct {
	InstanceId                   string
	InstanceRole                 string
	InstanceState                string
	FailedReason                 string
	NodePoolId                   string
	CreatedTime                  string
	InstanceAdvancedSettings     *tke.InstanceAdvancedSettings
	InstanceDataDiskMountSetting *tke.InstanceDataDiskMountSetting
	LanIp                        string
}

type MonitorService

type MonitorService struct {
	// contains filtered or unexported fields
}

func (*MonitorService) CheckCanCreateMysqlROInstance

func (me *MonitorService) CheckCanCreateMysqlROInstance(ctx context.Context, mysqlId string) (can bool, errRet error)

func (*MonitorService) CleanGrafanaInstanceById

func (me *MonitorService) CleanGrafanaInstanceById(ctx context.Context, instanceId string) (errRet error)

func (*MonitorService) DeleteMonitorAlarmNoticeById

func (me *MonitorService) DeleteMonitorAlarmNoticeById(ctx context.Context, Id string) (errRet error)

func (*MonitorService) DeleteMonitorGrafanaInstanceById

func (me *MonitorService) DeleteMonitorGrafanaInstanceById(ctx context.Context, instanceId string) (errRet error)

func (*MonitorService) DeleteMonitorGrafanaIntegrationById

func (me *MonitorService) DeleteMonitorGrafanaIntegrationById(ctx context.Context, integrationId, instanceId string) (errRet error)

func (*MonitorService) DeleteMonitorGrafanaNotificationChannelById

func (me *MonitorService) DeleteMonitorGrafanaNotificationChannelById(ctx context.Context, channelId, instanceId string) (errRet error)

func (*MonitorService) DeleteMonitorGrafanaPluginById

func (me *MonitorService) DeleteMonitorGrafanaPluginById(ctx context.Context, instanceId, pluginId string) (errRet error)

func (*MonitorService) DeleteMonitorManageGrafanaAttachmentById

func (me *MonitorService) DeleteMonitorManageGrafanaAttachmentById(ctx context.Context, instanceId string) (errRet error)

func (*MonitorService) DeleteMonitorRecordingRule

func (me *MonitorService) DeleteMonitorRecordingRule(ctx context.Context, instanceId string, recordingRuleId string) (errRet error)

func (*MonitorService) DeleteMonitorSsoAccountById

func (me *MonitorService) DeleteMonitorSsoAccountById(ctx context.Context, instanceId, userId string) (errRet error)

func (*MonitorService) DeleteMonitorTmpAlertRule

func (me *MonitorService) DeleteMonitorTmpAlertRule(ctx context.Context, instanceId string, ruleId string) (errRet error)

func (*MonitorService) DeleteMonitorTmpExporterIntegrationById

func (me *MonitorService) DeleteMonitorTmpExporterIntegrationById(ctx context.Context, tmpExporterIntegrationId string) (errRet error)

func (*MonitorService) DeleteMonitorTmpInstanceById

func (me *MonitorService) DeleteMonitorTmpInstanceById(ctx context.Context, tmpInstanceId string) (errRet error)

func (*MonitorService) DeleteMonitorTmpScrapeJobById

func (me *MonitorService) DeleteMonitorTmpScrapeJobById(ctx context.Context, tmpScrapeJobId string) (errRet error)

func (*MonitorService) DeletePrometheusClusterAgent

func (me *MonitorService) DeletePrometheusClusterAgent(ctx context.Context, instanceId, clusterId, clusterType string) (errRet error)

func (*MonitorService) DeletePrometheusRecordRuleYaml

func (me *MonitorService) DeletePrometheusRecordRuleYaml(ctx context.Context, id, name string) (errRet error)

func (*MonitorService) DeleteTkeTmpAlertPolicyById

func (me *MonitorService) DeleteTkeTmpAlertPolicyById(ctx context.Context, instanceId, tmpAlertPolicyId string) (errRet error)

func (*MonitorService) DeleteTkeTmpConfigByName

func (me *MonitorService) DeleteTkeTmpConfigByName(ctx context.Context, configId string, ServiceMonitors []*string, PodMonitors []*string, RawJobs []*string) (errRet error)

func (*MonitorService) DeleteTmpTkeTemplate

func (me *MonitorService) DeleteTmpTkeTemplate(ctx context.Context, tempId string) (errRet error)

func (*MonitorService) DescribeAlarmNoticeById

func (me *MonitorService) DescribeAlarmNoticeById(ctx context.Context, alarmmap map[string]interface{}) (noticeIds []*monitor.AlarmNotice, errRet error)

func (*MonitorService) DescribeAlarmPolicyById

func (me *MonitorService) DescribeAlarmPolicyById(ctx context.Context, policyId string) (info *monitor.AlarmPolicy, errRet error)

func (*MonitorService) DescribeBindingAlarmPolicyObjectList

func (me *MonitorService) DescribeBindingAlarmPolicyObjectList(ctx context.Context, policyId string) (
	objects []*monitor.DescribeBindingPolicyObjectListInstance, errRet error)

func (*MonitorService) DescribeBindingPolicyObjectList

func (me *MonitorService) DescribeBindingPolicyObjectList(ctx context.Context, groupId int64) (objects []*monitor.DescribeBindingPolicyObjectListInstance, errRet error)

func (*MonitorService) DescribeMonitorAlarmAllNamespacesByFilter

func (me *MonitorService) DescribeMonitorAlarmAllNamespacesByFilter(ctx context.Context, param map[string]interface{}) (
	qce, custom []*monitor.CommonNamespace, common []*monitor.CommonNamespaceNew, errRet error)

func (*MonitorService) DescribeMonitorAlarmBasicAlarmsByFilter

func (me *MonitorService) DescribeMonitorAlarmBasicAlarmsByFilter(ctx context.Context, param map[string]interface{}) (alarms []*monitor.DescribeBasicAlarmListAlarms, warning *string, errRet error)

func (*MonitorService) DescribeMonitorAlarmBasicMetricByFilter

func (me *MonitorService) DescribeMonitorAlarmBasicMetricByFilter(ctx context.Context, param map[string]interface{}) (metric []*monitor.MetricSet, errRet error)

func (*MonitorService) DescribeMonitorAlarmConditionsTemplateByFilter

func (me *MonitorService) DescribeMonitorAlarmConditionsTemplateByFilter(ctx context.Context, param map[string]interface{}) (alarmConditionsTemplate []*monitor.TemplateGroup, errRet error)

func (*MonitorService) DescribeMonitorAlarmHistoryByFilter

func (me *MonitorService) DescribeMonitorAlarmHistoryByFilter(ctx context.Context, param map[string]interface{}) (alarmHistory []*monitor.AlarmHistory, errRet error)

func (*MonitorService) DescribeMonitorAlarmMetricByFilter

func (me *MonitorService) DescribeMonitorAlarmMetricByFilter(ctx context.Context, param map[string]interface{}) (alarmMetric []*monitor.Metric, errRet error)

func (*MonitorService) DescribeMonitorAlarmMonitorTypeByFilter

func (me *MonitorService) DescribeMonitorAlarmMonitorTypeByFilter(ctx context.Context, param map[string]interface{}) (alarmMonitor *monitor.DescribeMonitorTypesResponseParams, errRet error)

func (*MonitorService) DescribeMonitorAlarmNoticeCallbacksByFilter

func (me *MonitorService) DescribeMonitorAlarmNoticeCallbacksByFilter(ctx context.Context) (alarmNoticeCallbacks []*monitor.URLNotice, errRet error)

func (*MonitorService) DescribeMonitorAlarmPolicyByFilter

func (me *MonitorService) DescribeMonitorAlarmPolicyByFilter(ctx context.Context, param map[string]interface{}) (alarmPolicy []*monitor.AlarmPolicy, errRet error)

func (*MonitorService) DescribeMonitorGrafanaDnsConfigById

func (me *MonitorService) DescribeMonitorGrafanaDnsConfigById(ctx context.Context, instanceId string) (grafanaDnsConfig *monitor.DescribeDNSConfigResponseParams, errRet error)

func (*MonitorService) DescribeMonitorGrafanaEnvConfigById

func (me *MonitorService) DescribeMonitorGrafanaEnvConfigById(ctx context.Context, instanceId string) (grafanaEnvConfig *monitor.DescribeGrafanaEnvironmentsResponseParams, errRet error)

func (*MonitorService) DescribeMonitorGrafanaInstance

func (me *MonitorService) DescribeMonitorGrafanaInstance(ctx context.Context, instanceId string) (grafanaInstance *monitor.GrafanaInstanceInfo, errRet error)

func (*MonitorService) DescribeMonitorGrafanaIntegration

func (me *MonitorService) DescribeMonitorGrafanaIntegration(ctx context.Context, integrationId, instanceId string) (grafanaIntegration *monitor.GrafanaIntegrationConfig, errRet error)

func (*MonitorService) DescribeMonitorGrafanaNotificationChannel

func (me *MonitorService) DescribeMonitorGrafanaNotificationChannel(ctx context.Context, channelId, instanceId string) (grafanaNotificationChannel *monitor.GrafanaChannel, errRet error)

func (*MonitorService) DescribeMonitorGrafanaPlugin

func (me *MonitorService) DescribeMonitorGrafanaPlugin(ctx context.Context, instanceId, pluginId string) (grafanaPlugin *monitor.GrafanaPlugin, errRet error)

func (*MonitorService) DescribeMonitorGrafanaPluginOverviewsByFilter

func (me *MonitorService) DescribeMonitorGrafanaPluginOverviewsByFilter(ctx context.Context, param map[string]interface{}) (pluginOverviews []*monitor.GrafanaPlugin, errRet error)

func (*MonitorService) DescribeMonitorGrafanaWhitelistConfigById

func (me *MonitorService) DescribeMonitorGrafanaWhitelistConfigById(ctx context.Context, instanceId string) (grafanaWhitelistConfig *monitor.DescribeGrafanaWhiteListResponseParams, errRet error)

func (*MonitorService) DescribeMonitorManageGrafanaAttachmentById

func (me *MonitorService) DescribeMonitorManageGrafanaAttachmentById(ctx context.Context, instanceId string) (manageGrafanaAttachment *monitor.PrometheusInstancesItem, errRet error)

func (*MonitorService) DescribeMonitorRecordingRuleById

func (me *MonitorService) DescribeMonitorRecordingRuleById(ctx context.Context, instanceId string, recordingRuleId string) (instance *monitor.RecordingRuleSet, errRet error)

func (*MonitorService) DescribeMonitorSsoAccount

func (me *MonitorService) DescribeMonitorSsoAccount(ctx context.Context, instanceId, userId string) (ssoAccount *monitor.GrafanaAccountInfo, errRet error)

func (*MonitorService) DescribeMonitorStatisticDataByFilter

func (me *MonitorService) DescribeMonitorStatisticDataByFilter(ctx context.Context, param map[string]interface{}) (statisticData *monitor.DescribeStatisticDataResponseParams, errRet error)

func (*MonitorService) DescribeMonitorTmpAlertRuleById

func (me *MonitorService) DescribeMonitorTmpAlertRuleById(ctx context.Context, instanceId string, tmpAlertRuleId string) (instance *monitor.PrometheusRuleSet, errRet error)

func (*MonitorService) DescribeMonitorTmpCvmAgent

func (me *MonitorService) DescribeMonitorTmpCvmAgent(ctx context.Context, instanceId string, tmpCvmAgentId string) (tmpCvmAgent *monitor.PrometheusAgent, errRet error)

func (*MonitorService) DescribeMonitorTmpExporterIntegration

func (me *MonitorService) DescribeMonitorTmpExporterIntegration(ctx context.Context, tmpExporterIntegrationId string) (tmpExporterIntegration *monitor.IntegrationConfiguration, errRet error)

func (*MonitorService) DescribeMonitorTmpGrafanaConfigById

func (me *MonitorService) DescribeMonitorTmpGrafanaConfigById(ctx context.Context, instanceId string) (tmpGrafanaConfig *monitor.DescribeGrafanaConfigResponseParams, errRet error)

func (*MonitorService) DescribeMonitorTmpInstance

func (me *MonitorService) DescribeMonitorTmpInstance(ctx context.Context, tmpInstanceId string) (tmpInstance *monitor.PrometheusInstancesItem, errRet error)

DescribeMonitorTmpInstance tmp

func (*MonitorService) DescribeMonitorTmpRegionsByFilter

func (me *MonitorService) DescribeMonitorTmpRegionsByFilter(ctx context.Context, param map[string]interface{}) (tmpRegions []*monitor.PrometheusRegionItem, errRet error)

func (*MonitorService) DescribeMonitorTmpScrapeJob

func (me *MonitorService) DescribeMonitorTmpScrapeJob(ctx context.Context, tmpScrapeJobId string) (tmpScrapeJob *monitor.PrometheusScrapeJob, errRet error)

func (*MonitorService) DescribePolicyGroup

func (me *MonitorService) DescribePolicyGroup(ctx context.Context, groupId int64) (info *monitor.DescribePolicyGroupListGroup, errRet error)

func (*MonitorService) DescribePolicyGroupDetailInfo

func (me *MonitorService) DescribePolicyGroupDetailInfo(ctx context.Context, groupId int64) (response *monitor.DescribePolicyGroupInfoResponse, errRet error)

func (*MonitorService) DescribePrometheusRecordRuleByName

func (me *MonitorService) DescribePrometheusRecordRuleByName(ctx context.Context, id, name string) (
	ret *monitor.DescribePrometheusRecordRulesResponse, errRet error)

func (*MonitorService) DescribePrometheusTempSync

func (me *MonitorService) DescribePrometheusTempSync(ctx context.Context, templateId string) (targets []*monitor.PrometheusTemplateSyncTarget, errRet error)

func (*MonitorService) DescribeTkeTmpAlertPolicy

func (me *MonitorService) DescribeTkeTmpAlertPolicy(ctx context.Context, instanceId, tmpAlertPolicyId string) (tmpAlertPolicy *monitor.PrometheusAlertPolicyItem, errRet error)

func (*MonitorService) DescribeTkeTmpBasicConfigById

func (me *MonitorService) DescribeTkeTmpBasicConfigById(ctx context.Context, clusterId, clusterType, instanceId string) (respParams *monitor.DescribePrometheusConfigResponseParams, errRet error)

func (*MonitorService) DescribeTkeTmpConfigById

func (me *MonitorService) DescribeTkeTmpConfigById(ctx context.Context, configId string) (respParams *monitor.DescribePrometheusConfigResponseParams, errRet error)

func (*MonitorService) DescribeTkeTmpGlobalNotification

func (me *MonitorService) DescribeTkeTmpGlobalNotification(ctx context.Context, instanceId string) (tmpNotification *monitor.PrometheusNotificationItem, errRet error)

func (*MonitorService) DescribeTmpTkeClusterAgentsById

func (me *MonitorService) DescribeTmpTkeClusterAgentsById(ctx context.Context, instanceId, clusterId, clusterType string) (agents *monitor.PrometheusAgentOverview, errRet error)

func (*MonitorService) DescribeTmpTkeTemplateById

func (me *MonitorService) DescribeTmpTkeTemplateById(ctx context.Context, templateId string) (template *monitor.PrometheusTemp, errRet error)

func (*MonitorService) FullRegions

func (me *MonitorService) FullRegions() (regions []string, errRet error)

func (*MonitorService) GetConfigType

func (me *MonitorService) GetConfigType(name string, respParams *monitor.DescribePrometheusConfigResponseParams) (configType string, config *monitor.PrometheusConfigItem, err error)

func (*MonitorService) IsolateMonitorTmpInstanceById

func (me *MonitorService) IsolateMonitorTmpInstanceById(ctx context.Context, tmpInstanceId string) (errRet error)

func (*MonitorService) ModifyTkeTmpGlobalNotification

func (me *MonitorService) ModifyTkeTmpGlobalNotification(ctx context.Context, instanceId string, notification monitor.PrometheusNotificationItem) (response *monitor.ModifyPrometheusGlobalNotificationResponse, errRet error)

type OverrideSettings

type OverrideSettings struct {
	Master []tke.InstanceAdvancedSettings
	Work   []tke.InstanceAdvancedSettings
}

type PrometheusConfig

type PrometheusConfig struct {
	Config *string
	Regex  []string
}

func (*PrometheusConfig) MarshalToYaml

func (r *PrometheusConfig) MarshalToYaml(config *map[interface{}]interface{}) (string, error)

func (*PrometheusConfig) SetRegex

func (r *PrometheusConfig) SetRegex(configs []interface{}) (*[]interface{}, error)

func (*PrometheusConfig) UnmarshalToMap

func (r *PrometheusConfig) UnmarshalToMap() (map[interface{}]interface{}, error)

type PrometheusConfigIds

type PrometheusConfigIds struct {
	InstanceId  string
	ClusterType string
	ClusterId   string
}

type RunInstancesForNode

type RunInstancesForNode struct {
	Master []string
	Work   []string
}

type Switch

type Switch struct {
	ClusterId *string     `json:"ClusterId,omitempty" name:"ClusterId"`
	Audit     *SwitchInfo `json:"Audit,omitempty" name:"Audit"`
	Event     *SwitchInfo `json:"Event,omitempty" name:"Event"`
	Log       *SwitchInfo `json:"Log,omitempty" name:"Log"`
}

type SwitchInfo

type SwitchInfo struct {
	Enable      *bool   `json:"Enable,omitempty" name:"Enable"`
	LogsetId    *string `json:"LogsetId,omitempty" name:"LogsetId"`
	TopicId     *string `json:"TopicId,omitempty" name:"TopicId"`
	Version     *string `json:"Version,omitempty" name:"Version"`
	UpgradeAble *bool   `json:"UpgradeAble,omitempty" name:"UpgradeAble"`
}

type TkeService

type TkeService struct {
	// contains filtered or unexported fields
}

func (*TkeService) AcquireClusterAdminRole

func (me *TkeService) AcquireClusterAdminRole(ctx context.Context, clusterId string) (errRet error)

func (*TkeService) AddVpcCniSubnets

func (me *TkeService) AddVpcCniSubnets(ctx context.Context, id string, subnets []string, vpcId string) (errRet error)

func (*TkeService) CheckClusterVersion

func (me *TkeService) CheckClusterVersion(ctx context.Context, id string, clusterVersion string) (isOk bool, errRet error)

func (*TkeService) CheckInstancesUpgradeAble

func (me *TkeService) CheckInstancesUpgradeAble(ctx context.Context, id string, upgradeType string) (instanceIds []string, errRet error)

func (*TkeService) CheckOneOfClusterNodeReady

func (me *TkeService) CheckOneOfClusterNodeReady(ctx context.Context, clusterId string, mustHaveWorkers bool) error

func (*TkeService) CreateCluster

func (me *TkeService) CreateCluster(ctx context.Context,
	basic ClusterBasicSetting,
	advanced ClusterAdvancedSettings,
	cvms RunInstancesForNode,
	iAdvanced InstanceAdvancedSettings,
	cidrSetting ClusterCidrSettings,
	tags map[string]string,
	existedInstance []*tke.ExistedInstancesForNode,
	overrideSettings *OverrideSettings,
	iDiskMountSettings []*tke.InstanceDataDiskMountSetting,
	extensionAddons []*tke.ExtensionAddon,
) (id string, errRet error)

func (*TkeService) CreateClusterAsGroup

func (me *TkeService) CreateClusterAsGroup(ctx context.Context, id, groupPara, configPara string, labels []*tke.Label, iAdvanced InstanceAdvancedSettings) (asGroupId string, errRet error)

func (*TkeService) CreateClusterEndpoint

func (me *TkeService) CreateClusterEndpoint(ctx context.Context, id string, subnetId, securityGroupId string, internet bool, domain string, extensiveParameters string) (errRet error)

open internet access

func (*TkeService) CreateClusterInstances

func (me *TkeService) CreateClusterInstances(ctx context.Context,
	id string, runInstancePara string,
	iAdvanced tke.InstanceAdvancedSettings) (instanceIds []string, errRet error)

func (*TkeService) CreateClusterNodePool

func (me *TkeService) CreateClusterNodePool(ctx context.Context, clusterId, name, groupPara, configPara string, enableAutoScale bool, nodeOs string, nodeOsType string, labels []*tke.Label, taints []*tke.Taint, iAdvanced tke.InstanceAdvancedSettings, deletionProtection bool) (asGroupId string, errRet error)

func (*TkeService) CreateClusterVirtualNodePool

func (me *TkeService) CreateClusterVirtualNodePool(ctx context.Context, request *tke.CreateClusterVirtualNodePoolRequest) (id string, errRet error)

func (*TkeService) DeleteCluster

func (me *TkeService) DeleteCluster(ctx context.Context, id string) (errRet error)

func (*TkeService) DeleteClusterAsGroups

func (me *TkeService) DeleteClusterAsGroups(ctx context.Context, id, asGroupId string) (errRet error)

func (*TkeService) DeleteClusterEndpoint

func (me *TkeService) DeleteClusterEndpoint(ctx context.Context, id string, isInternet bool) (errRet error)

func (*TkeService) DeleteClusterInstances

func (me *TkeService) DeleteClusterInstances(ctx context.Context, id string, instanceIds []string) (errRet error)

if cluster is creating, return error:TencentCloudSDKError] Code=InternalError.ClusterState

func (*TkeService) DeleteClusterNodePool

func (me *TkeService) DeleteClusterNodePool(ctx context.Context, id, nodePoolId string, deleteKeepInstance bool) (errRet error)

func (*TkeService) DeleteClusterVirtualNodePool

func (me *TkeService) DeleteClusterVirtualNodePool(ctx context.Context, request *tke.DeleteClusterVirtualNodePoolRequest) (errRet error)

func (*TkeService) DeleteTkeEncryptionProtectionById

func (me *TkeService) DeleteTkeEncryptionProtectionById(ctx context.Context, clusterId string) (errRet error)

func (*TkeService) DescribeCluster

func (me *TkeService) DescribeCluster(ctx context.Context, id string) (
	clusterInfo ClusterInfo,
	has bool,
	errRet error,
)

func (*TkeService) DescribeClusterAsGroupsByGroupId

func (me *TkeService) DescribeClusterAsGroupsByGroupId(ctx context.Context, id string, groupId string) (clusterAsGroupSet *tke.ClusterAsGroup, errRet error)

func (*TkeService) DescribeClusterAuthenticationOptions

func (me *TkeService) DescribeClusterAuthenticationOptions(ctx context.Context, id string) (options *tke.ServiceAccountAuthenticationOptions, state string, oidcConfig *tke.OIDCConfigAuthenticationOptions, errRet error)

DescribeClusterAuthenticationOptions Field `ServiceAccounts.AutoCreateDiscoveryAnonymousAuth` will always return null by design

func (*TkeService) DescribeClusterCommonNames

func (me *TkeService) DescribeClusterCommonNames(ctx context.Context, request *tke.DescribeClusterCommonNamesRequest) (commonNames []*tke.CommonName, errRet error)

func (*TkeService) DescribeClusterConfig

func (me *TkeService) DescribeClusterConfig(ctx context.Context, id string, isPublic bool) (config string, errRet error)

func (*TkeService) DescribeClusterEndpointStatus

func (me *TkeService) DescribeClusterEndpointStatus(ctx context.Context, id string, isExtranet bool) (status string, message string, errRet error)

func (*TkeService) DescribeClusterEndpoints

func (me *TkeService) DescribeClusterEndpoints(ctx context.Context, id string) (response tke.DescribeClusterEndpointsResponseParams, errRet error)

func (*TkeService) DescribeClusterExtraArgs

func (me *TkeService) DescribeClusterExtraArgs(ctx context.Context, clusterId string) (extraArgs *tke.ClusterExtraArgs, errRet error)

func (*TkeService) DescribeClusterInstances

func (me *TkeService) DescribeClusterInstances(ctx context.Context, id string) (masters []InstanceInfo, workers []InstanceInfo, errRet error)

func (*TkeService) DescribeClusterInstancesByRole

func (me *TkeService) DescribeClusterInstancesByRole(ctx context.Context, id, role string) (masters []InstanceInfo, workers []InstanceInfo, errRet error)

func (*TkeService) DescribeClusterLevelAttribute

func (me *TkeService) DescribeClusterLevelAttribute(ctx context.Context, id string) (clusterLevels []*tke.ClusterLevelAttribute, errRet error)

func (*TkeService) DescribeClusterNodePoolGlobalConfig

func (me *TkeService) DescribeClusterNodePoolGlobalConfig(ctx context.Context, clusterId string) (
	npGlobalConfig *tke.ClusterAsGroupOption,
	errRet error,
)

func (*TkeService) DescribeClusterSecurity

func (me *TkeService) DescribeClusterSecurity(ctx context.Context, id string) (ret *tke.DescribeClusterSecurityResponse, errRet error)

func (*TkeService) DescribeClusterVirtualNode

func (me *TkeService) DescribeClusterVirtualNode(ctx context.Context, clusterId string) (virtualNodes []tke.VirtualNode, errRet error)

func (*TkeService) DescribeClusters

func (me *TkeService) DescribeClusters(ctx context.Context, id string, name string) (clusterInfos []ClusterInfo, errRet error)

func (*TkeService) DescribeEnableVpcCniProgress

func (me *TkeService) DescribeEnableVpcCniProgress(ctx context.Context, id string) (status, message string, errRet error)

func (*TkeService) DescribeExternalNodeSupportConfig

func (me *TkeService) DescribeExternalNodeSupportConfig(ctx context.Context, clusterId string) (resp *tke.DescribeExternalNodeSupportConfigResponseParams, errRet error)

func (*TkeService) DescribeIPAMD

func (me *TkeService) DescribeIPAMD(ctx context.Context, clusterId string) (resp *tke.DescribeIPAMDResponseParams, errRet error)

func (*TkeService) DescribeImages

func (me *TkeService) DescribeImages(ctx context.Context) (imageIds []string, errRet error)

func (*TkeService) DescribeKubernetesAvailableClusterVersionsByFilter

func (me *TkeService) DescribeKubernetesAvailableClusterVersionsByFilter(ctx context.Context, param map[string]interface{}) (availableClusterVersions *tke.DescribeAvailableClusterVersionResponseParams, errRet error)

func (*TkeService) DescribeKubernetesClusterInstancesByFilter

func (me *TkeService) DescribeKubernetesClusterInstancesByFilter(ctx context.Context, param map[string]interface{}) (clusterInstances []*tke.Instance, errRet error)

func (*TkeService) DescribeKubernetesClusterNodePoolsByFilter

func (me *TkeService) DescribeKubernetesClusterNodePoolsByFilter(ctx context.Context, param map[string]interface{}) (clusterNodePools []*tke.NodePool, errRet error)

func (*TkeService) DescribeLogSwitches

func (me *TkeService) DescribeLogSwitches(ctx context.Context, clusterId string) (resp []*tke.Switch, errRet error)

func (*TkeService) DescribeNodePool

func (me *TkeService) DescribeNodePool(ctx context.Context, clusterId string, nodePoolId string) (
	nodePool *tke.NodePool,
	has bool,
	errRet error,
)

func (*TkeService) DescribeServerlessNodePoolByClusterIdAndNodePoolId

func (me *TkeService) DescribeServerlessNodePoolByClusterIdAndNodePoolId(ctx context.Context, clusterId, nodePoolId string) (instance *tke.VirtualNodePool, has bool, errRet error)

func (*TkeService) DescribeTkeEncryptionProtectionById

func (me *TkeService) DescribeTkeEncryptionProtectionById(ctx context.Context, clusterId string) (encryptionProtection *tke.DescribeEncryptionStatusResponseParams, errRet error)

func (*TkeService) DisableClusterAudit

func (me *TkeService) DisableClusterAudit(ctx context.Context, request *tke.DisableClusterAuditRequest) (errRet error)

func (*TkeService) DisableEventPersistence

func (me *TkeService) DisableEventPersistence(ctx context.Context, request *tke.DisableEventPersistenceRequest) (errRet error)

func (*TkeService) DisableVpcCniNetworkType

func (me *TkeService) DisableVpcCniNetworkType(ctx context.Context, id string) (errRet error)

func (*TkeService) EnableClusterAudit

func (me *TkeService) EnableClusterAudit(ctx context.Context, request *tke.EnableClusterAuditRequest) (errRet error)

func (*TkeService) EnableEventPersistence

func (me *TkeService) EnableEventPersistence(ctx context.Context, request *tke.EnableEventPersistenceRequest) (errRet error)

func (*TkeService) EnableVpcCniNetworkType

func (me *TkeService) EnableVpcCniNetworkType(ctx context.Context, id string, vpcCniType string, enableStaticIp bool, subnets []string, expiredSeconds uint64) (errRet error)

func (*TkeService) GetUpgradeInstanceResult

func (me *TkeService) GetUpgradeInstanceResult(ctx context.Context, id string) (
	done bool,
	errRet error,
)

func (*TkeService) InstallLogAgent

func (me *TkeService) InstallLogAgent(ctx context.Context, request *tke.InstallLogAgentRequest) (errRet error)

func (*TkeService) ModifyClusterAsGroupAttribute

func (me *TkeService) ModifyClusterAsGroupAttribute(ctx context.Context, id, asGroupId string, maxSize, minSize int64) (errRet error)

func (*TkeService) ModifyClusterAttribute

func (me *TkeService) ModifyClusterAttribute(ctx context.Context, id string, projectId int64, clusterName, clusterDesc, clusterLevel string, autoUpgradeClusterLevel bool) (errRet error)

func (*TkeService) ModifyClusterAuthenticationOptions

func (me *TkeService) ModifyClusterAuthenticationOptions(ctx context.Context, request *tke.ModifyClusterAuthenticationOptionsRequest) (errRet error)

func (*TkeService) ModifyClusterEndpointSG

func (me *TkeService) ModifyClusterEndpointSG(ctx context.Context, id string, securityGroup string) (errRet error)

func (*TkeService) ModifyClusterEndpointSP

func (me *TkeService) ModifyClusterEndpointSP(ctx context.Context, id string, securityPolicies []string) (errRet error)

func (*TkeService) ModifyClusterNodePool

func (me *TkeService) ModifyClusterNodePool(ctx context.Context, clusterId, nodePoolId string, name string, enableAutoScale bool, minSize int64, maxSize int64, nodeOs string, nodeOsType string, labels []*tke.Label, taints []*tke.Taint, tags map[string]string, deletionProtection bool) (errRet error)

func (*TkeService) ModifyClusterNodePoolDesiredCapacity

func (me *TkeService) ModifyClusterNodePoolDesiredCapacity(ctx context.Context, clusterId, nodePoolId string, desiredCapacity int64) (errRet error)

func (*TkeService) ModifyClusterNodePoolGlobalConfig

func (me *TkeService) ModifyClusterNodePoolGlobalConfig(ctx context.Context, request *tke.ModifyClusterAsGroupOptionAttributeRequest) (errRet error)

node pool global config

func (*TkeService) ModifyClusterNodePoolInstanceTypes

func (me *TkeService) ModifyClusterNodePoolInstanceTypes(ctx context.Context, clusterId, nodePoolId string, instanceTypes []*string) (errRet error)

func (*TkeService) ModifyClusterVersion

func (me *TkeService) ModifyClusterVersion(ctx context.Context, id string, clusterVersion string, extraArgs interface{}) (errRet error)

func (*TkeService) ModifyClusterVirtualNodePool

func (me *TkeService) ModifyClusterVirtualNodePool(ctx context.Context, request *tke.ModifyClusterVirtualNodePoolRequest) (errRet error)

func (*TkeService) ModifyDeletionProtection

func (me *TkeService) ModifyDeletionProtection(ctx context.Context, id string, enable bool) (errRet error)

func (*TkeService) SwitchClusterAudit

func (me *TkeService) SwitchClusterAudit(ctx context.Context, clusterId, logSetId, topicId string,
	enable, deleteAuditLog bool) error

func (*TkeService) SwitchEventPersistence

func (me *TkeService) SwitchEventPersistence(ctx context.Context, clusterId, logSetId, topicId string,
	enable, deleteEventLog bool) error

func (*TkeService) SwitchLogAgent

func (me *TkeService) SwitchLogAgent(ctx context.Context, clusterId, rootDir string, enable bool) error

func (*TkeService) TkeEncryptionProtectionStateRefreshFunc

func (me *TkeService) TkeEncryptionProtectionStateRefreshFunc(clusterId string, failStates []string) resource.StateRefreshFunc

func (*TkeService) UninstallLogAgent

func (me *TkeService) UninstallLogAgent(ctx context.Context, request *tke.UninstallLogAgentRequest) (errRet error)

func (*TkeService) UpgradeClusterInstances

func (me *TkeService) UpgradeClusterInstances(ctx context.Context, id string, upgradeType string, instanceIds []string) (errRet error)

func (*TkeService) WaitForAuthenticationOptionsUpdateSuccess

func (me *TkeService) WaitForAuthenticationOptionsUpdateSuccess(ctx context.Context, id string) (info *tke.ServiceAccountAuthenticationOptions, oidc *tke.OIDCConfigAuthenticationOptions, errRet error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL