monitor

package
v1.81.99 Latest Latest
Warning

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

Go to latest
Published: May 28, 2024 License: MPL-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

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

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 DataSourceTencentCloudMonitorStatisticData added in v1.81.62

func DataSourceTencentCloudMonitorStatisticData() *schema.Resource

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

func ResourceTencentCloudMonitorPolicyGroup added in v1.81.62

func ResourceTencentCloudMonitorPolicyGroup() *schema.Resource

Types

type MonitorService

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

func NewMonitorService added in v1.81.62

func NewMonitorService(client *connectivity.TencentCloudClient) MonitorService

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) DeleteMonitorTmpAlertGroupById added in v1.81.70

func (me *MonitorService) DeleteMonitorTmpAlertGroupById(ctx context.Context, instanceId, groupId 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) DescribeMonitorTmpAlertGroupById added in v1.81.70

func (me *MonitorService) DescribeMonitorTmpAlertGroupById(ctx context.Context, instanceId, groupId string) (tmpAlertGroup *monitor.PrometheusAlertGroupSet, 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)

func (*MonitorService) ParseConfigId added in v1.81.62

func (me *MonitorService) ParseConfigId(configId string) (ret *svctke.PrometheusConfigIds, err error)

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)

Jump to

Keyboard shortcuts

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