From 7c92d54c63c947936990562f6488908d1a6fab18 Mon Sep 17 00:00:00 2001 From: arunma Date: Wed, 30 Aug 2023 14:48:41 +0800 Subject: [PATCH] fix: update tmp filter --- go.mod | 4 +- go.sum | 5 + tencentcloud/service_tencentcloud_monitor.go | 15 +- .../tencentcloud/common/http/request.go | 3 +- .../tencentcloud/monitor/v20180724/client.go | 350 ++++++++++-------- .../tencentcloud/monitor/v20180724/errors.go | 3 + .../tencentcloud/monitor/v20180724/models.go | 293 +++++++++------ vendor/modules.txt | 4 +- 8 files changed, 395 insertions(+), 282 deletions(-) diff --git a/go.mod b/go.mod index 7e22c07fbf..21a8f8ee18 100644 --- a/go.mod +++ b/go.mod @@ -42,7 +42,7 @@ require ( github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/clb v1.0.693 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cloudaudit v1.0.544 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cls v1.0.711 - github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.730 + github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.734 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cvm v1.0.624 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cwp v1.0.589 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cynosdb v1.0.692 @@ -63,7 +63,7 @@ require ( github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/live v1.0.535 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/mariadb v1.0.672 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/mongodb v1.0.651 - github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/monitor v1.0.616 + github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/monitor v1.0.734 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/mps v1.0.584 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/organization v1.0.540 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/postgres v1.0.676 diff --git a/go.sum b/go.sum index 08e2eacd81..fa0b95ab85 100644 --- a/go.sum +++ b/go.sum @@ -860,8 +860,11 @@ github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.715/go.mod github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.725/go.mod h1:7sCQWVkxcsR38nffDW057DRGk8mUjK1Ing/EFOK8s8Y= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.726 h1:ZHyvJ5yedfZGccd1ZUJD8ChnFq7BX621RdGQDfcJf4w= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.726/go.mod h1:7sCQWVkxcsR38nffDW057DRGk8mUjK1Ing/EFOK8s8Y= +github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.729/go.mod h1:7sCQWVkxcsR38nffDW057DRGk8mUjK1Ing/EFOK8s8Y= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.730 h1:5biRUxcz/QWdzP6yH3bUBz1XAS19QYTjE9Hv59WM3q0= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.730/go.mod h1:7sCQWVkxcsR38nffDW057DRGk8mUjK1Ing/EFOK8s8Y= +github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.734 h1:oyMFKLXe3MMF/556ee4nrJfVrAm3gE/URNg3JZCBcBk= +github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.734/go.mod h1:7sCQWVkxcsR38nffDW057DRGk8mUjK1Ing/EFOK8s8Y= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cvm v1.0.624 h1:nEZqsoqt1pEoaP9JjkHQy3/H00suCfzlHW1qOm2nYD8= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cvm v1.0.624/go.mod h1:+TXSVyeKwt1IhZRqKPbTREteBcP+K07Q846/ilNzLWA= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cwp v1.0.589 h1:LZihgirMH0vsaGScYexxwY0fTss9vHaSZs/YOQUVESg= @@ -908,6 +911,8 @@ github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/mongodb v1.0.651 h1:Ohb github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/mongodb v1.0.651/go.mod h1:HLqsSgUnwgkE+XecQajekinjz1B7S+1U1J66puH4jpQ= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/monitor v1.0.616 h1:+4NM1Repe514qc4H9qFuDS0IEe0TBmC5snea//YL7Kk= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/monitor v1.0.616/go.mod h1:n7vl5IwlMQS/XzBzj3UEkp1dvQorzuAMq6RYNgl/MjM= +github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/monitor v1.0.734 h1:VJli3mzhAiwmA949M0eIgp6KLJsPuCtpQ20UBdNI9mY= +github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/monitor v1.0.734/go.mod h1:H2gtCj02D5k7h0JttS9RMoRgkJ8m9qia/9RlMjbvT0o= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/mps v1.0.584 h1:FJxYOAolkBhXjQMWoiTek9Ag0bslcKFHyrM7w2Jsxos= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/mps v1.0.584/go.mod h1:CY/hEcXbaOZBU9Qm/MMIctafi8FFJaMIGTlGUjnymW0= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/organization v1.0.540 h1:gUVuwcjt9baj+/5LFafjdR53/xSdQxfA45Vp6E65rXU= diff --git a/tencentcloud/service_tencentcloud_monitor.go b/tencentcloud/service_tencentcloud_monitor.go index a72ffb4a5b..5cc820c3a9 100644 --- a/tencentcloud/service_tencentcloud_monitor.go +++ b/tencentcloud/service_tencentcloud_monitor.go @@ -1056,9 +1056,8 @@ func (me *MonitorService) DescribeTkeTmpAlertPolicy(ctx context.Context, instanc }() request.InstanceId = &instanceId request.Filters = append(request.Filters, &monitor.Filter{ - Type: helper.String("="), - Key: helper.String("ID"), - Value: &tmpAlertPolicyId, + Name: helper.String("ID"), + Values: []*string{&tmpAlertPolicyId}, }) response, err := me.client.UseMonitorClient().DescribePrometheusAlertPolicy(request) @@ -1302,9 +1301,8 @@ func (me *MonitorService) DescribeTmpTkeTemplateById(ctx context.Context, templa request.Filters = append( request.Filters, &monitor.Filter{ - Type: helper.String("="), - Key: helper.String("ID"), - Value: &templateId, + Name: helper.String("ID"), + Values: []*string{&templateId}, }, ) ratelimit.Check(request.GetAction()) @@ -1420,9 +1418,8 @@ func (me *MonitorService) DescribePrometheusRecordRuleByName(ctx context.Context if name != "" { request.Filters = []*monitor.Filter{ { - Type: helper.String("="), - Key: helper.String("Name"), - Value: &name, + Name: helper.String("Name"), + Values: []*string{&name}, }, } } diff --git a/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/http/request.go b/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/http/request.go index 3d0ee8ab0a..dfbf78989b 100644 --- a/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/http/request.go +++ b/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/http/request.go @@ -3,7 +3,6 @@ package common import ( "context" "io" - //"log" "math/rand" "net/url" @@ -266,7 +265,7 @@ func CompleteCommonParams(request Request, region string, requestClient string) params["Action"] = request.GetAction() params["Timestamp"] = strconv.FormatInt(time.Now().Unix(), 10) params["Nonce"] = strconv.Itoa(rand.Int()) - params["RequestClient"] = "SDK_GO_1.0.730" + params["RequestClient"] = "SDK_GO_1.0.734" if requestClient != "" { params["RequestClient"] += ": " + requestClient } diff --git a/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/monitor/v20180724/client.go b/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/monitor/v20180724/client.go index cec2a7afd6..9b6da34951 100644 --- a/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/monitor/v20180724/client.go +++ b/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/monitor/v20180724/client.go @@ -219,6 +219,7 @@ func NewCheckIsPrometheusNewUserResponse() (response *CheckIsPrometheusNewUserRe // 判断用户是否为云原生监控新用户,即在任何地域下均未创建过监控实例的用户 // // 可能返回的错误码: +// FAILEDOPERATION_DOTRPCTRANSFERFAILED = "FailedOperation.DoTRPCTransferFailed" // INTERNALERROR = "InternalError" // INTERNALERROR_DB = "InternalError.Db" // INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" @@ -232,6 +233,7 @@ func (c *Client) CheckIsPrometheusNewUser(request *CheckIsPrometheusNewUserReque // 判断用户是否为云原生监控新用户,即在任何地域下均未创建过监控实例的用户 // // 可能返回的错误码: +// FAILEDOPERATION_DOTRPCTRANSFERFAILED = "FailedOperation.DoTRPCTransferFailed" // INTERNALERROR = "InternalError" // INTERNALERROR_DB = "InternalError.Db" // INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" @@ -384,10 +386,11 @@ func NewCreateAlarmPolicyResponse() (response *CreateAlarmPolicyResponse) { } // CreateAlarmPolicy -// 创建云监控告警策略 +// 创建告警策略 // // 可能返回的错误码: // FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_DOHTTPTRANSFERFAILED = "FailedOperation.DoHTTPTransferFailed" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -399,10 +402,11 @@ func (c *Client) CreateAlarmPolicy(request *CreateAlarmPolicyRequest) (response } // CreateAlarmPolicy -// 创建云监控告警策略 +// 创建告警策略 // // 可能返回的错误码: // FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_DOHTTPTRANSFERFAILED = "FailedOperation.DoHTTPTransferFailed" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -590,7 +594,7 @@ func NewCreateGrafanaInstanceResponse() (response *CreateGrafanaInstanceResponse } // CreateGrafanaInstance -// 创建 Grafana 实例 +// 本接口(CreateGrafanaInstance)用于创建 Grafana 包年包月实例,默认基础版、到期自动续费、不可使用代金券。 // // 可能返回的错误码: // FAILEDOPERATION = "FailedOperation" @@ -604,7 +608,7 @@ func (c *Client) CreateGrafanaInstance(request *CreateGrafanaInstanceRequest) (r } // CreateGrafanaInstance -// 创建 Grafana 实例 +// 本接口(CreateGrafanaInstance)用于创建 Grafana 包年包月实例,默认基础版、到期自动续费、不可使用代金券。 // // 可能返回的错误码: // FAILEDOPERATION = "FailedOperation" @@ -885,12 +889,16 @@ func NewCreatePrometheusAlertPolicyResponse() (response *CreatePrometheusAlertPo // 创建告警策略 // // 可能返回的错误码: +// FAILEDOPERATION_COMPONENTCLIENTUNPACK = "FailedOperation.ComponentClientUnpack" +// FAILEDOPERATION_DB = "FailedOperation.Db" +// FAILEDOPERATION_DOTRPCTRANSFERFAILED = "FailedOperation.DoTRPCTransferFailed" // FAILEDOPERATION_KUBECLIENTCONF = "FailedOperation.KubeClientConf" // FAILEDOPERATION_KUBECOMMON = "FailedOperation.KubeCommon" // INTERNALERROR = "InternalError" // INTERNALERROR_PARAM = "InternalError.Param" // INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" // INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// INVALIDPARAMETER_PROMCLUSTERNOTFOUND = "InvalidParameter.PromClusterNotFound" // INVALIDPARAMETER_PROMINSTANCENOTFOUND = "InvalidParameter.PromInstanceNotFound" // RESOURCENOTFOUND = "ResourceNotFound" func (c *Client) CreatePrometheusAlertPolicy(request *CreatePrometheusAlertPolicyRequest) (response *CreatePrometheusAlertPolicyResponse, err error) { @@ -901,12 +909,16 @@ func (c *Client) CreatePrometheusAlertPolicy(request *CreatePrometheusAlertPolic // 创建告警策略 // // 可能返回的错误码: +// FAILEDOPERATION_COMPONENTCLIENTUNPACK = "FailedOperation.ComponentClientUnpack" +// FAILEDOPERATION_DB = "FailedOperation.Db" +// FAILEDOPERATION_DOTRPCTRANSFERFAILED = "FailedOperation.DoTRPCTransferFailed" // FAILEDOPERATION_KUBECLIENTCONF = "FailedOperation.KubeClientConf" // FAILEDOPERATION_KUBECOMMON = "FailedOperation.KubeCommon" // INTERNALERROR = "InternalError" // INTERNALERROR_PARAM = "InternalError.Param" // INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" // INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// INVALIDPARAMETER_PROMCLUSTERNOTFOUND = "InvalidParameter.PromClusterNotFound" // INVALIDPARAMETER_PROMINSTANCENOTFOUND = "InvalidParameter.PromInstanceNotFound" // RESOURCENOTFOUND = "ResourceNotFound" func (c *Client) CreatePrometheusAlertPolicyWithContext(ctx context.Context, request *CreatePrometheusAlertPolicyRequest) (response *CreatePrometheusAlertPolicyResponse, err error) { @@ -944,7 +956,7 @@ func NewCreatePrometheusClusterAgentResponse() (response *CreatePrometheusCluste } // CreatePrometheusClusterAgent -// 与云监控融合的2.0实例关联集群 +// 与腾讯云可观测融合的2.0实例关联集群 // // 可能返回的错误码: // FAILEDOPERATION_COMPONENTCLIENTCOMMON = "FailedOperation.ComponentClientCommon" @@ -961,7 +973,7 @@ func (c *Client) CreatePrometheusClusterAgent(request *CreatePrometheusClusterAg } // CreatePrometheusClusterAgent -// 与云监控融合的2.0实例关联集群 +// 与腾讯云可观测融合的2.0实例关联集群 // // 可能返回的错误码: // FAILEDOPERATION_COMPONENTCLIENTCOMMON = "FailedOperation.ComponentClientCommon" @@ -1012,6 +1024,7 @@ func NewCreatePrometheusConfigResponse() (response *CreatePrometheusConfigRespon // // 可能返回的错误码: // FAILEDOPERATION_COMPONENTCLIENTHTTP = "FailedOperation.ComponentClientHttp" +// FAILEDOPERATION_DOTRPCTRANSFERFAILED = "FailedOperation.DoTRPCTransferFailed" // FAILEDOPERATION_KUBECOMMON = "FailedOperation.KubeCommon" // INTERNALERROR = "InternalError" // INTERNALERROR_PARAM = "InternalError.Param" @@ -1031,6 +1044,7 @@ func (c *Client) CreatePrometheusConfig(request *CreatePrometheusConfigRequest) // // 可能返回的错误码: // FAILEDOPERATION_COMPONENTCLIENTHTTP = "FailedOperation.ComponentClientHttp" +// FAILEDOPERATION_DOTRPCTRANSFERFAILED = "FailedOperation.DoTRPCTransferFailed" // FAILEDOPERATION_KUBECOMMON = "FailedOperation.KubeCommon" // INTERNALERROR = "InternalError" // INTERNALERROR_PARAM = "InternalError.Param" @@ -1201,6 +1215,7 @@ func NewCreatePrometheusRecordRuleYamlResponse() (response *CreatePrometheusReco // 以Yaml的方式创建聚合规则 // // 可能返回的错误码: +// FAILEDOPERATION_COMPONENTCLIENTCOMMON = "FailedOperation.ComponentClientCommon" // FAILEDOPERATION_COMPONENTCLIENTUNPACK = "FailedOperation.ComponentClientUnpack" // FAILEDOPERATION_KUBECOMMON = "FailedOperation.KubeCommon" // INTERNALERROR = "InternalError" @@ -1219,6 +1234,7 @@ func (c *Client) CreatePrometheusRecordRuleYaml(request *CreatePrometheusRecordR // 以Yaml的方式创建聚合规则 // // 可能返回的错误码: +// FAILEDOPERATION_COMPONENTCLIENTCOMMON = "FailedOperation.ComponentClientCommon" // FAILEDOPERATION_COMPONENTCLIENTUNPACK = "FailedOperation.ComponentClientUnpack" // FAILEDOPERATION_KUBECOMMON = "FailedOperation.KubeCommon" // INTERNALERROR = "InternalError" @@ -1604,11 +1620,12 @@ func NewDeleteAlarmNoticesResponse() (response *DeleteAlarmNoticesResponse) { } // DeleteAlarmNotices -// 云监控告警删除告警通知模板 +// 删除告警通知模板 // // 可能返回的错误码: // AUTHFAILURE = "AuthFailure" // FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_DOHTTPTRANSFERFAILED = "FailedOperation.DoHTTPTransferFailed" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // RESOURCENOTFOUND = "ResourceNotFound" @@ -1618,11 +1635,12 @@ func (c *Client) DeleteAlarmNotices(request *DeleteAlarmNoticesRequest) (respons } // DeleteAlarmNotices -// 云监控告警删除告警通知模板 +// 删除告警通知模板 // // 可能返回的错误码: // AUTHFAILURE = "AuthFailure" // FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_DOHTTPTRANSFERFAILED = "FailedOperation.DoHTTPTransferFailed" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // RESOURCENOTFOUND = "ResourceNotFound" @@ -1866,7 +1884,7 @@ func NewDeleteGrafanaInstanceResponse() (response *DeleteGrafanaInstanceResponse } // DeleteGrafanaInstance -// 删除 Grafana 实例 +// 本接口(DeleteGrafanaInstance)用于 Grafana 包年包月实例的退费,调用后实例处于停服状态,不可使用,7天后自动销毁。 // // 可能返回的错误码: // AUTHFAILURE_ACCESSCAMFAIL = "AuthFailure.AccessCAMFail" @@ -1877,7 +1895,7 @@ func (c *Client) DeleteGrafanaInstance(request *DeleteGrafanaInstanceRequest) (r } // DeleteGrafanaInstance -// 删除 Grafana 实例 +// 本接口(DeleteGrafanaInstance)用于 Grafana 包年包月实例的退费,调用后实例处于停服状态,不可使用,7天后自动销毁。 // // 可能返回的错误码: // AUTHFAILURE_ACCESSCAMFAIL = "AuthFailure.AccessCAMFail" @@ -2267,6 +2285,7 @@ func NewDeletePrometheusConfigResponse() (response *DeletePrometheusConfigRespon // 删除Prometheus配置,如果目标不存在,将返回成功 // // 可能返回的错误码: +// FAILEDOPERATION_COMPONENTCLIENTHTTP = "FailedOperation.ComponentClientHttp" // INTERNALERROR = "InternalError" // INTERNALERROR_PARAM = "InternalError.Param" // INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" @@ -2281,6 +2300,7 @@ func (c *Client) DeletePrometheusConfig(request *DeletePrometheusConfigRequest) // 删除Prometheus配置,如果目标不存在,将返回成功 // // 可能返回的错误码: +// FAILEDOPERATION_COMPONENTCLIENTHTTP = "FailedOperation.ComponentClientHttp" // INTERNALERROR = "InternalError" // INTERNALERROR_PARAM = "InternalError.Param" // INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" @@ -2325,8 +2345,11 @@ func NewDeletePrometheusRecordRuleYamlResponse() (response *DeletePrometheusReco // 删除聚合实例 // // 可能返回的错误码: +// FAILEDOPERATION_COMPONENTCLIENTCOMMON = "FailedOperation.ComponentClientCommon" +// FAILEDOPERATION_KUBECOMMON = "FailedOperation.KubeCommon" // INTERNALERROR = "InternalError" // INTERNALERROR_PARAM = "InternalError.Param" +// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" // INVALIDPARAMETER_PARAM = "InvalidParameter.Param" // INVALIDPARAMETER_PROMINSTANCENOTFOUND = "InvalidParameter.PromInstanceNotFound" func (c *Client) DeletePrometheusRecordRuleYaml(request *DeletePrometheusRecordRuleYamlRequest) (response *DeletePrometheusRecordRuleYamlResponse, err error) { @@ -2337,8 +2360,11 @@ func (c *Client) DeletePrometheusRecordRuleYaml(request *DeletePrometheusRecordR // 删除聚合实例 // // 可能返回的错误码: +// FAILEDOPERATION_COMPONENTCLIENTCOMMON = "FailedOperation.ComponentClientCommon" +// FAILEDOPERATION_KUBECOMMON = "FailedOperation.KubeCommon" // INTERNALERROR = "InternalError" // INTERNALERROR_PARAM = "InternalError.Param" +// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" // INVALIDPARAMETER_PARAM = "InvalidParameter.Param" // INVALIDPARAMETER_PROMINSTANCENOTFOUND = "InvalidParameter.PromInstanceNotFound" func (c *Client) DeletePrometheusRecordRuleYamlWithContext(ctx context.Context, request *DeletePrometheusRecordRuleYamlRequest) (response *DeletePrometheusRecordRuleYamlResponse, err error) { @@ -2508,6 +2534,7 @@ func NewDeletePrometheusTempSyncResponse() (response *DeletePrometheusTempSyncRe // FAILEDOPERATION_COMPONENTCLIENTCOMMON = "FailedOperation.ComponentClientCommon" // FAILEDOPERATION_COMPONENTCLIENTHTTP = "FailedOperation.ComponentClientHttp" // FAILEDOPERATION_DBRECORDNOTFOUND = "FailedOperation.DbRecordNotFound" +// FAILEDOPERATION_KUBECOMMON = "FailedOperation.KubeCommon" // INTERNALERROR = "InternalError" // INTERNALERROR_DB = "InternalError.Db" // INTERNALERROR_DBRECORDNOTFOUND = "InternalError.DbRecordNotFound" @@ -2526,6 +2553,7 @@ func (c *Client) DeletePrometheusTempSync(request *DeletePrometheusTempSyncReque // FAILEDOPERATION_COMPONENTCLIENTCOMMON = "FailedOperation.ComponentClientCommon" // FAILEDOPERATION_COMPONENTCLIENTHTTP = "FailedOperation.ComponentClientHttp" // FAILEDOPERATION_DBRECORDNOTFOUND = "FailedOperation.DbRecordNotFound" +// FAILEDOPERATION_KUBECOMMON = "FailedOperation.KubeCommon" // INTERNALERROR = "InternalError" // INTERNALERROR_DB = "InternalError.Db" // INTERNALERROR_DBRECORDNOTFOUND = "InternalError.DbRecordNotFound" @@ -2896,6 +2924,7 @@ func NewDescribeAlarmHistoriesResponse() (response *DescribeAlarmHistoriesRespon // // 可能返回的错误码: // FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_DOHTTPTRANSFERFAILED = "FailedOperation.DoHTTPTransferFailed" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -2915,6 +2944,7 @@ func (c *Client) DescribeAlarmHistories(request *DescribeAlarmHistoriesRequest) // // 可能返回的错误码: // FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_DOHTTPTRANSFERFAILED = "FailedOperation.DoHTTPTransferFailed" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -3070,7 +3100,7 @@ func NewDescribeAlarmNoticeCallbacksResponse() (response *DescribeAlarmNoticeCal } // DescribeAlarmNoticeCallbacks -// 云监控告警获取告警通知模板所有回调URL +// 获取告警通知模板所有回调URL // // 可能返回的错误码: // AUTHFAILURE = "AuthFailure" @@ -3085,7 +3115,7 @@ func (c *Client) DescribeAlarmNoticeCallbacks(request *DescribeAlarmNoticeCallba } // DescribeAlarmNoticeCallbacks -// 云监控告警获取告警通知模板所有回调URL +// 获取告警通知模板所有回调URL // // 可能返回的错误码: // AUTHFAILURE = "AuthFailure" @@ -3427,8 +3457,6 @@ func NewDescribeBaseMetricsResponse() (response *DescribeBaseMetricsResponse) { // 获取基础指标属性 // // 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// FAILEDOPERATION_DOHTTPTRANSFERFAILED = "FailedOperation.DoHTTPTransferFailed" // UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) DescribeBaseMetrics(request *DescribeBaseMetricsRequest) (response *DescribeBaseMetricsResponse, err error) { return c.DescribeBaseMetricsWithContext(context.Background(), request) @@ -3438,8 +3466,6 @@ func (c *Client) DescribeBaseMetrics(request *DescribeBaseMetricsRequest) (respo // 获取基础指标属性 // // 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// FAILEDOPERATION_DOHTTPTRANSFERFAILED = "FailedOperation.DoHTTPTransferFailed" // UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) DescribeBaseMetricsWithContext(ctx context.Context, request *DescribeBaseMetricsRequest) (response *DescribeBaseMetricsResponse, err error) { if request == nil { @@ -3558,6 +3584,7 @@ func NewDescribeBindingPolicyObjectListResponse() (response *DescribeBindingPoli // FAILEDOPERATION_DBTRANSACTIONCOMMITFAILED = "FailedOperation.DbTransactionCommitFailed" // FAILEDOPERATION_DIMQUERYREQUESTFAILED = "FailedOperation.DimQueryRequestFailed" // FAILEDOPERATION_DIVISIONBYZERO = "FailedOperation.DivisionByZero" +// FAILEDOPERATION_DOHTTPTRANSFERFAILED = "FailedOperation.DoHTTPTransferFailed" // FAILEDOPERATION_DRUIDQUERYFAILED = "FailedOperation.DruidQueryFailed" // FAILEDOPERATION_DRUIDTABLENOTFOUND = "FailedOperation.DruidTableNotFound" // FAILEDOPERATION_DUPLICATENAME = "FailedOperation.DuplicateName" @@ -3604,6 +3631,7 @@ func (c *Client) DescribeBindingPolicyObjectList(request *DescribeBindingPolicyO // FAILEDOPERATION_DBTRANSACTIONCOMMITFAILED = "FailedOperation.DbTransactionCommitFailed" // FAILEDOPERATION_DIMQUERYREQUESTFAILED = "FailedOperation.DimQueryRequestFailed" // FAILEDOPERATION_DIVISIONBYZERO = "FailedOperation.DivisionByZero" +// FAILEDOPERATION_DOHTTPTRANSFERFAILED = "FailedOperation.DoHTTPTransferFailed" // FAILEDOPERATION_DRUIDQUERYFAILED = "FailedOperation.DruidQueryFailed" // FAILEDOPERATION_DRUIDTABLENOTFOUND = "FailedOperation.DruidTableNotFound" // FAILEDOPERATION_DUPLICATENAME = "FailedOperation.DuplicateName" @@ -3641,6 +3669,56 @@ func (c *Client) DescribeBindingPolicyObjectListWithContext(ctx context.Context, return } +func NewDescribeClusterAgentCreatingProgressRequest() (request *DescribeClusterAgentCreatingProgressRequest) { + request = &DescribeClusterAgentCreatingProgressRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("monitor", APIVersion, "DescribeClusterAgentCreatingProgress") + + + return +} + +func NewDescribeClusterAgentCreatingProgressResponse() (response *DescribeClusterAgentCreatingProgressResponse) { + response = &DescribeClusterAgentCreatingProgressResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// DescribeClusterAgentCreatingProgress +// 获取prom实例中集群详细的关联状态 +// +// 可能返回的错误码: +// FAILEDOPERATION_DOTRPCTRANSFERFAILED = "FailedOperation.DoTRPCTransferFailed" +// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +func (c *Client) DescribeClusterAgentCreatingProgress(request *DescribeClusterAgentCreatingProgressRequest) (response *DescribeClusterAgentCreatingProgressResponse, err error) { + return c.DescribeClusterAgentCreatingProgressWithContext(context.Background(), request) +} + +// DescribeClusterAgentCreatingProgress +// 获取prom实例中集群详细的关联状态 +// +// 可能返回的错误码: +// FAILEDOPERATION_DOTRPCTRANSFERFAILED = "FailedOperation.DoTRPCTransferFailed" +// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +func (c *Client) DescribeClusterAgentCreatingProgressWithContext(ctx context.Context, request *DescribeClusterAgentCreatingProgressRequest) (response *DescribeClusterAgentCreatingProgressResponse, err error) { + if request == nil { + request = NewDescribeClusterAgentCreatingProgressRequest() + } + + if c.GetCredential() == nil { + return nil, errors.New("DescribeClusterAgentCreatingProgress require credential") + } + + request.SetContext(ctx) + + response = NewDescribeClusterAgentCreatingProgressResponse() + err = c.Send(request, response) + return +} + func NewDescribeConditionsTemplateListRequest() (request *DescribeConditionsTemplateListRequest) { request = &DescribeConditionsTemplateListRequest{ BaseRequest: &tchttp.BaseRequest{}, @@ -3679,6 +3757,7 @@ func NewDescribeConditionsTemplateListResponse() (response *DescribeConditionsTe // FAILEDOPERATION_DBTRANSACTIONBEGINFAILED = "FailedOperation.DbTransactionBeginFailed" // FAILEDOPERATION_DBTRANSACTIONCOMMITFAILED = "FailedOperation.DbTransactionCommitFailed" // FAILEDOPERATION_DIMQUERYREQUESTFAILED = "FailedOperation.DimQueryRequestFailed" +// FAILEDOPERATION_DOHTTPTRANSFERFAILED = "FailedOperation.DoHTTPTransferFailed" // FAILEDOPERATION_DRUIDQUERYFAILED = "FailedOperation.DruidQueryFailed" // FAILEDOPERATION_DUPLICATENAME = "FailedOperation.DuplicateName" // FAILEDOPERATION_SERVICENOTENABLED = "FailedOperation.ServiceNotEnabled" @@ -3723,6 +3802,7 @@ func (c *Client) DescribeConditionsTemplateList(request *DescribeConditionsTempl // FAILEDOPERATION_DBTRANSACTIONBEGINFAILED = "FailedOperation.DbTransactionBeginFailed" // FAILEDOPERATION_DBTRANSACTIONCOMMITFAILED = "FailedOperation.DbTransactionCommitFailed" // FAILEDOPERATION_DIMQUERYREQUESTFAILED = "FailedOperation.DimQueryRequestFailed" +// FAILEDOPERATION_DOHTTPTRANSFERFAILED = "FailedOperation.DoHTTPTransferFailed" // FAILEDOPERATION_DRUIDQUERYFAILED = "FailedOperation.DruidQueryFailed" // FAILEDOPERATION_DUPLICATENAME = "FailedOperation.DuplicateName" // FAILEDOPERATION_SERVICENOTENABLED = "FailedOperation.ServiceNotEnabled" @@ -4290,18 +4370,20 @@ func NewDescribeMonitorTypesResponse() (response *DescribeMonitorTypesResponse) } // DescribeMonitorTypes -// 云监控支持多种类型的监控,此接口列出支持的所有类型 +// 腾讯云可观测平台支持多种类型的监控,此接口列出支持的所有类型 // // 可能返回的错误码: +// FAILEDOPERATION_DOHTTPTRANSFERFAILED = "FailedOperation.DoHTTPTransferFailed" // UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) DescribeMonitorTypes(request *DescribeMonitorTypesRequest) (response *DescribeMonitorTypesResponse, err error) { return c.DescribeMonitorTypesWithContext(context.Background(), request) } // DescribeMonitorTypes -// 云监控支持多种类型的监控,此接口列出支持的所有类型 +// 腾讯云可观测平台支持多种类型的监控,此接口列出支持的所有类型 // // 可能返回的错误码: +// FAILEDOPERATION_DOHTTPTRANSFERFAILED = "FailedOperation.DoHTTPTransferFailed" // UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) DescribeMonitorTypesWithContext(ctx context.Context, request *DescribeMonitorTypesRequest) (response *DescribeMonitorTypesResponse, err error) { if request == nil { @@ -4341,6 +4423,7 @@ func NewDescribePluginOverviewsResponse() (response *DescribePluginOverviewsResp // 列出可安装的所有 Grafana 插件 // // 可能返回的错误码: +// FAILEDOPERATION_DOHTTPTRANSFERFAILED = "FailedOperation.DoHTTPTransferFailed" // UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) DescribePluginOverviews(request *DescribePluginOverviewsRequest) (response *DescribePluginOverviewsResponse, err error) { return c.DescribePluginOverviewsWithContext(context.Background(), request) @@ -4350,6 +4433,7 @@ func (c *Client) DescribePluginOverviews(request *DescribePluginOverviewsRequest // 列出可安装的所有 Grafana 插件 // // 可能返回的错误码: +// FAILEDOPERATION_DOHTTPTRANSFERFAILED = "FailedOperation.DoHTTPTransferFailed" // UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) DescribePluginOverviewsWithContext(ctx context.Context, request *DescribePluginOverviewsRequest) (response *DescribePluginOverviewsResponse, err error) { if request == nil { @@ -4405,6 +4489,7 @@ func NewDescribePolicyConditionListResponse() (response *DescribePolicyCondition // FAILEDOPERATION_DBTRANSACTIONBEGINFAILED = "FailedOperation.DbTransactionBeginFailed" // FAILEDOPERATION_DBTRANSACTIONCOMMITFAILED = "FailedOperation.DbTransactionCommitFailed" // FAILEDOPERATION_DIMQUERYREQUESTFAILED = "FailedOperation.DimQueryRequestFailed" +// FAILEDOPERATION_DOHTTPTRANSFERFAILED = "FailedOperation.DoHTTPTransferFailed" // FAILEDOPERATION_DRUIDQUERYFAILED = "FailedOperation.DruidQueryFailed" // FAILEDOPERATION_DUPLICATENAME = "FailedOperation.DuplicateName" // FAILEDOPERATION_SERVICENOTENABLED = "FailedOperation.ServiceNotEnabled" @@ -4449,6 +4534,7 @@ func (c *Client) DescribePolicyConditionList(request *DescribePolicyConditionLis // FAILEDOPERATION_DBTRANSACTIONBEGINFAILED = "FailedOperation.DbTransactionBeginFailed" // FAILEDOPERATION_DBTRANSACTIONCOMMITFAILED = "FailedOperation.DbTransactionCommitFailed" // FAILEDOPERATION_DIMQUERYREQUESTFAILED = "FailedOperation.DimQueryRequestFailed" +// FAILEDOPERATION_DOHTTPTRANSFERFAILED = "FailedOperation.DoHTTPTransferFailed" // FAILEDOPERATION_DRUIDQUERYFAILED = "FailedOperation.DruidQueryFailed" // FAILEDOPERATION_DUPLICATENAME = "FailedOperation.DuplicateName" // FAILEDOPERATION_SERVICENOTENABLED = "FailedOperation.ServiceNotEnabled" @@ -4806,7 +4892,7 @@ func NewDescribeProductListResponse() (response *DescribeProductListResponse) { } // DescribeProductList -// 查询云监控产品列表,支持云服务器CVM、云数据库、云消息队列、负载均衡、容器服务、专线等云产品。 +// 查询腾讯云可观测平台云产品列表,支持云服务器CVM、云数据库、云消息队列、负载均衡、容器服务、专线等云产品。 // // 可能返回的错误码: // FAILEDOPERATION = "FailedOperation" @@ -4825,7 +4911,7 @@ func (c *Client) DescribeProductList(request *DescribeProductListRequest) (respo } // DescribeProductList -// 查询云监控产品列表,支持云服务器CVM、云数据库、云消息队列、负载均衡、容器服务、专线等云产品。 +// 查询腾讯云可观测平台云产品列表,支持云服务器CVM、云数据库、云消息队列、负载均衡、容器服务、专线等云产品。 // // 可能返回的错误码: // FAILEDOPERATION = "FailedOperation" @@ -4998,6 +5084,7 @@ func NewDescribePrometheusAlertPolicyResponse() (response *DescribePrometheusAle // FAILEDOPERATION_COMPONENTCLIENTCOMMON = "FailedOperation.ComponentClientCommon" // FAILEDOPERATION_COMPONENTCLIENTHTTP = "FailedOperation.ComponentClientHttp" // FAILEDOPERATION_COMPONENTCLIENTUNPACK = "FailedOperation.ComponentClientUnpack" +// FAILEDOPERATION_DOTRPCTRANSFERFAILED = "FailedOperation.DoTRPCTransferFailed" // FAILEDOPERATION_KUBECLIENTCONF = "FailedOperation.KubeClientConf" // FAILEDOPERATION_KUBECOMMON = "FailedOperation.KubeCommon" // INTERNALERROR = "InternalError" @@ -5006,7 +5093,9 @@ func NewDescribePrometheusAlertPolicyResponse() (response *DescribePrometheusAle // INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// INVALIDPARAMETER_PROMCLUSTERNOTFOUND = "InvalidParameter.PromClusterNotFound" // INVALIDPARAMETER_PROMINSTANCENOTFOUND = "InvalidParameter.PromInstanceNotFound" +// RESOURCENOTFOUND = "ResourceNotFound" func (c *Client) DescribePrometheusAlertPolicy(request *DescribePrometheusAlertPolicyRequest) (response *DescribePrometheusAlertPolicyResponse, err error) { return c.DescribePrometheusAlertPolicyWithContext(context.Background(), request) } @@ -5018,6 +5107,7 @@ func (c *Client) DescribePrometheusAlertPolicy(request *DescribePrometheusAlertP // FAILEDOPERATION_COMPONENTCLIENTCOMMON = "FailedOperation.ComponentClientCommon" // FAILEDOPERATION_COMPONENTCLIENTHTTP = "FailedOperation.ComponentClientHttp" // FAILEDOPERATION_COMPONENTCLIENTUNPACK = "FailedOperation.ComponentClientUnpack" +// FAILEDOPERATION_DOTRPCTRANSFERFAILED = "FailedOperation.DoTRPCTransferFailed" // FAILEDOPERATION_KUBECLIENTCONF = "FailedOperation.KubeClientConf" // FAILEDOPERATION_KUBECOMMON = "FailedOperation.KubeCommon" // INTERNALERROR = "InternalError" @@ -5026,7 +5116,9 @@ func (c *Client) DescribePrometheusAlertPolicy(request *DescribePrometheusAlertP // INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// INVALIDPARAMETER_PROMCLUSTERNOTFOUND = "InvalidParameter.PromClusterNotFound" // INVALIDPARAMETER_PROMINSTANCENOTFOUND = "InvalidParameter.PromInstanceNotFound" +// RESOURCENOTFOUND = "ResourceNotFound" func (c *Client) DescribePrometheusAlertPolicyWithContext(ctx context.Context, request *DescribePrometheusAlertPolicyRequest) (response *DescribePrometheusAlertPolicyResponse, err error) { if request == nil { request = NewDescribePrometheusAlertPolicyRequest() @@ -5066,11 +5158,21 @@ func NewDescribePrometheusClusterAgentsResponse() (response *DescribePrometheusC // // 可能返回的错误码: // FAILEDOPERATION_COMPONENTCLIENTCOMMON = "FailedOperation.ComponentClientCommon" +// FAILEDOPERATION_COMPONENTCLIENTHTTP = "FailedOperation.ComponentClientHttp" // FAILEDOPERATION_COMPONENTCLIENTUNPACK = "FailedOperation.ComponentClientUnpack" +// FAILEDOPERATION_DB = "FailedOperation.Db" +// FAILEDOPERATION_DOTRPCTRANSFERFAILED = "FailedOperation.DoTRPCTransferFailed" +// FAILEDOPERATION_INSTANCENOTFOUND = "FailedOperation.InstanceNotFound" +// FAILEDOPERATION_KUBECOMMON = "FailedOperation.KubeCommon" // INTERNALERROR = "InternalError" +// INTERNALERROR_DB = "InternalError.Db" // INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" // INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_CLUSTERNOTFOUND = "InvalidParameter.ClusterNotFound" // INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// INVALIDPARAMETER_PROMCLUSTERNOTFOUND = "InvalidParameter.PromClusterNotFound" +// INVALIDPARAMETER_PROMINSTANCENOTFOUND = "InvalidParameter.PromInstanceNotFound" +// INVALIDPARAMETER_RESOURCENOTFOUND = "InvalidParameter.ResourceNotFound" func (c *Client) DescribePrometheusClusterAgents(request *DescribePrometheusClusterAgentsRequest) (response *DescribePrometheusClusterAgentsResponse, err error) { return c.DescribePrometheusClusterAgentsWithContext(context.Background(), request) } @@ -5080,11 +5182,21 @@ func (c *Client) DescribePrometheusClusterAgents(request *DescribePrometheusClus // // 可能返回的错误码: // FAILEDOPERATION_COMPONENTCLIENTCOMMON = "FailedOperation.ComponentClientCommon" +// FAILEDOPERATION_COMPONENTCLIENTHTTP = "FailedOperation.ComponentClientHttp" // FAILEDOPERATION_COMPONENTCLIENTUNPACK = "FailedOperation.ComponentClientUnpack" +// FAILEDOPERATION_DB = "FailedOperation.Db" +// FAILEDOPERATION_DOTRPCTRANSFERFAILED = "FailedOperation.DoTRPCTransferFailed" +// FAILEDOPERATION_INSTANCENOTFOUND = "FailedOperation.InstanceNotFound" +// FAILEDOPERATION_KUBECOMMON = "FailedOperation.KubeCommon" // INTERNALERROR = "InternalError" +// INTERNALERROR_DB = "InternalError.Db" // INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" // INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_CLUSTERNOTFOUND = "InvalidParameter.ClusterNotFound" // INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// INVALIDPARAMETER_PROMCLUSTERNOTFOUND = "InvalidParameter.PromClusterNotFound" +// INVALIDPARAMETER_PROMINSTANCENOTFOUND = "InvalidParameter.PromInstanceNotFound" +// INVALIDPARAMETER_RESOURCENOTFOUND = "InvalidParameter.ResourceNotFound" func (c *Client) DescribePrometheusClusterAgentsWithContext(ctx context.Context, request *DescribePrometheusClusterAgentsRequest) (response *DescribePrometheusClusterAgentsResponse, err error) { if request == nil { request = NewDescribePrometheusClusterAgentsRequest() @@ -5126,6 +5238,7 @@ func NewDescribePrometheusConfigResponse() (response *DescribePrometheusConfigRe // FAILEDOPERATION_COMPONENTCLIENTHTTP = "FailedOperation.ComponentClientHttp" // FAILEDOPERATION_COMPONENTCLIENTUNPACK = "FailedOperation.ComponentClientUnpack" // FAILEDOPERATION_DB = "FailedOperation.Db" +// FAILEDOPERATION_DOTRPCTRANSFERFAILED = "FailedOperation.DoTRPCTransferFailed" // FAILEDOPERATION_KUBECLIENTCONF = "FailedOperation.KubeClientConf" // FAILEDOPERATION_KUBECOMMON = "FailedOperation.KubeCommon" // INTERNALERROR = "InternalError" @@ -5148,6 +5261,7 @@ func (c *Client) DescribePrometheusConfig(request *DescribePrometheusConfigReque // FAILEDOPERATION_COMPONENTCLIENTHTTP = "FailedOperation.ComponentClientHttp" // FAILEDOPERATION_COMPONENTCLIENTUNPACK = "FailedOperation.ComponentClientUnpack" // FAILEDOPERATION_DB = "FailedOperation.Db" +// FAILEDOPERATION_DOTRPCTRANSFERFAILED = "FailedOperation.DoTRPCTransferFailed" // FAILEDOPERATION_KUBECLIENTCONF = "FailedOperation.KubeClientConf" // FAILEDOPERATION_KUBECOMMON = "FailedOperation.KubeCommon" // INTERNALERROR = "InternalError" @@ -5204,6 +5318,8 @@ func NewDescribePrometheusGlobalConfigResponse() (response *DescribePrometheusGl // INTERNALERROR_PARAM = "InternalError.Param" // INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" // INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_CLUSTERNOTFOUND = "InvalidParameter.ClusterNotFound" +// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" // INVALIDPARAMETER_PROMINSTANCENOTFOUND = "InvalidParameter.PromInstanceNotFound" func (c *Client) DescribePrometheusGlobalConfig(request *DescribePrometheusGlobalConfigRequest) (response *DescribePrometheusGlobalConfigResponse, err error) { return c.DescribePrometheusGlobalConfigWithContext(context.Background(), request) @@ -5220,6 +5336,8 @@ func (c *Client) DescribePrometheusGlobalConfig(request *DescribePrometheusGloba // INTERNALERROR_PARAM = "InternalError.Param" // INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" // INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_CLUSTERNOTFOUND = "InvalidParameter.ClusterNotFound" +// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" // INVALIDPARAMETER_PROMINSTANCENOTFOUND = "InvalidParameter.PromInstanceNotFound" func (c *Client) DescribePrometheusGlobalConfigWithContext(ctx context.Context, request *DescribePrometheusGlobalConfigRequest) (response *DescribePrometheusGlobalConfigResponse, err error) { if request == nil { @@ -5265,6 +5383,7 @@ func NewDescribePrometheusGlobalNotificationResponse() (response *DescribePromet // FAILEDOPERATION_KUBECOMMON = "FailedOperation.KubeCommon" // INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" // INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// INVALIDPARAMETER_PROMCLUSTERNOTFOUND = "InvalidParameter.PromClusterNotFound" // INVALIDPARAMETER_PROMINSTANCENOTFOUND = "InvalidParameter.PromInstanceNotFound" func (c *Client) DescribePrometheusGlobalNotification(request *DescribePrometheusGlobalNotificationRequest) (response *DescribePrometheusGlobalNotificationResponse, err error) { return c.DescribePrometheusGlobalNotificationWithContext(context.Background(), request) @@ -5280,6 +5399,7 @@ func (c *Client) DescribePrometheusGlobalNotification(request *DescribePrometheu // FAILEDOPERATION_KUBECOMMON = "FailedOperation.KubeCommon" // INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" // INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// INVALIDPARAMETER_PROMCLUSTERNOTFOUND = "InvalidParameter.PromClusterNotFound" // INVALIDPARAMETER_PROMINSTANCENOTFOUND = "InvalidParameter.PromInstanceNotFound" func (c *Client) DescribePrometheusGlobalNotificationWithContext(ctx context.Context, request *DescribePrometheusGlobalNotificationRequest) (response *DescribePrometheusGlobalNotificationResponse, err error) { if request == nil { @@ -5376,6 +5496,7 @@ func NewDescribePrometheusInstanceInitStatusResponse() (response *DescribePromet // // 可能返回的错误码: // FAILEDOPERATION_COMPONENTCLIENTCOMMON = "FailedOperation.ComponentClientCommon" +// FAILEDOPERATION_DOTRPCTRANSFERFAILED = "FailedOperation.DoTRPCTransferFailed" // INTERNALERROR = "InternalError" // INTERNALERROR_DB = "InternalError.Db" // INTERNALERROR_DBRECORDNOTFOUND = "InternalError.DbRecordNotFound" @@ -5392,6 +5513,7 @@ func (c *Client) DescribePrometheusInstanceInitStatus(request *DescribePrometheu // // 可能返回的错误码: // FAILEDOPERATION_COMPONENTCLIENTCOMMON = "FailedOperation.ComponentClientCommon" +// FAILEDOPERATION_DOTRPCTRANSFERFAILED = "FailedOperation.DoTRPCTransferFailed" // INTERNALERROR = "InternalError" // INTERNALERROR_DB = "InternalError.Db" // INTERNALERROR_DBRECORDNOTFOUND = "InternalError.DbRecordNotFound" @@ -5586,11 +5708,12 @@ func NewDescribePrometheusInstancesOverviewResponse() (response *DescribePrometh } // DescribePrometheusInstancesOverview -// 获取与云监控融合实例列表 +// 获取与 Prometheus 监控融合实例列表 // // 可能返回的错误码: // FAILEDOPERATION_COMPONENTCLIENTCOMMON = "FailedOperation.ComponentClientCommon" // FAILEDOPERATION_COMPONENTCLIENTUNPACK = "FailedOperation.ComponentClientUnpack" +// FAILEDOPERATION_DOTRPCTRANSFERFAILED = "FailedOperation.DoTRPCTransferFailed" // INTERNALERROR = "InternalError" // INTERNALERROR_PARAM = "InternalError.Param" // INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" @@ -5600,11 +5723,12 @@ func (c *Client) DescribePrometheusInstancesOverview(request *DescribePrometheus } // DescribePrometheusInstancesOverview -// 获取与云监控融合实例列表 +// 获取与 Prometheus 监控融合实例列表 // // 可能返回的错误码: // FAILEDOPERATION_COMPONENTCLIENTCOMMON = "FailedOperation.ComponentClientCommon" // FAILEDOPERATION_COMPONENTCLIENTUNPACK = "FailedOperation.ComponentClientUnpack" +// FAILEDOPERATION_DOTRPCTRANSFERFAILED = "FailedOperation.DoTRPCTransferFailed" // INTERNALERROR = "InternalError" // INTERNALERROR_PARAM = "InternalError.Param" // INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" @@ -5727,6 +5851,7 @@ func NewDescribePrometheusRecordRulesResponse() (response *DescribePrometheusRec // INTERNALERROR_PARAM = "InternalError.Param" // INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" // INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_PROMCLUSTERNOTFOUND = "InvalidParameter.PromClusterNotFound" // INVALIDPARAMETER_PROMINSTANCENOTFOUND = "InvalidParameter.PromInstanceNotFound" func (c *Client) DescribePrometheusRecordRules(request *DescribePrometheusRecordRulesRequest) (response *DescribePrometheusRecordRulesResponse, err error) { return c.DescribePrometheusRecordRulesWithContext(context.Background(), request) @@ -5746,6 +5871,7 @@ func (c *Client) DescribePrometheusRecordRules(request *DescribePrometheusRecord // INTERNALERROR_PARAM = "InternalError.Param" // INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" // INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_PROMCLUSTERNOTFOUND = "InvalidParameter.PromClusterNotFound" // INVALIDPARAMETER_PROMINSTANCENOTFOUND = "InvalidParameter.PromInstanceNotFound" func (c *Client) DescribePrometheusRecordRulesWithContext(ctx context.Context, request *DescribePrometheusRecordRulesRequest) (response *DescribePrometheusRecordRulesResponse, err error) { if request == nil { @@ -5854,12 +5980,14 @@ func NewDescribePrometheusTargetsTMPResponse() (response *DescribePrometheusTarg // // 可能返回的错误码: // FAILEDOPERATION_COMPONENTCLIENTHTTP = "FailedOperation.ComponentClientHttp" +// FAILEDOPERATION_DOTRPCTRANSFERFAILED = "FailedOperation.DoTRPCTransferFailed" // INTERNALERROR = "InternalError" // INTERNALERROR_DBRECORDNOTFOUND = "InternalError.DbRecordNotFound" // INTERNALERROR_PARAM = "InternalError.Param" // INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETER_CLUSTERNOTFOUND = "InvalidParameter.ClusterNotFound" +// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" // INVALIDPARAMETER_PROMCLUSTERNOTFOUND = "InvalidParameter.PromClusterNotFound" // INVALIDPARAMETER_PROMINSTANCENOTFOUND = "InvalidParameter.PromInstanceNotFound" func (c *Client) DescribePrometheusTargetsTMP(request *DescribePrometheusTargetsTMPRequest) (response *DescribePrometheusTargetsTMPResponse, err error) { @@ -5871,12 +5999,14 @@ func (c *Client) DescribePrometheusTargetsTMP(request *DescribePrometheusTargets // // 可能返回的错误码: // FAILEDOPERATION_COMPONENTCLIENTHTTP = "FailedOperation.ComponentClientHttp" +// FAILEDOPERATION_DOTRPCTRANSFERFAILED = "FailedOperation.DoTRPCTransferFailed" // INTERNALERROR = "InternalError" // INTERNALERROR_DBRECORDNOTFOUND = "InternalError.DbRecordNotFound" // INTERNALERROR_PARAM = "InternalError.Param" // INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETER_CLUSTERNOTFOUND = "InvalidParameter.ClusterNotFound" +// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" // INVALIDPARAMETER_PROMCLUSTERNOTFOUND = "InvalidParameter.PromClusterNotFound" // INVALIDPARAMETER_PROMINSTANCENOTFOUND = "InvalidParameter.PromInstanceNotFound" func (c *Client) DescribePrometheusTargetsTMPWithContext(ctx context.Context, request *DescribePrometheusTargetsTMPRequest) (response *DescribePrometheusTargetsTMPResponse, err error) { @@ -5918,6 +6048,7 @@ func NewDescribePrometheusTempResponse() (response *DescribePrometheusTempRespon // // 可能返回的错误码: // FAILEDOPERATION_COMPONENTCLIENTUNPACK = "FailedOperation.ComponentClientUnpack" +// FAILEDOPERATION_DOTRPCTRANSFERFAILED = "FailedOperation.DoTRPCTransferFailed" // INTERNALERROR_DB = "InternalError.Db" // INTERNALERROR_PARAM = "InternalError.Param" // INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" @@ -5931,6 +6062,7 @@ func (c *Client) DescribePrometheusTemp(request *DescribePrometheusTempRequest) // // 可能返回的错误码: // FAILEDOPERATION_COMPONENTCLIENTUNPACK = "FailedOperation.ComponentClientUnpack" +// FAILEDOPERATION_DOTRPCTRANSFERFAILED = "FailedOperation.DoTRPCTransferFailed" // INTERNALERROR_DB = "InternalError.Db" // INTERNALERROR_PARAM = "InternalError.Param" // INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" @@ -5973,6 +6105,7 @@ func NewDescribePrometheusTempSyncResponse() (response *DescribePrometheusTempSy // 获取模板关联实例信息,针对V2版本实例 // // 可能返回的错误码: +// FAILEDOPERATION_DOTRPCTRANSFERFAILED = "FailedOperation.DoTRPCTransferFailed" // INTERNALERROR = "InternalError" // INTERNALERROR_DB = "InternalError.Db" // INTERNALERROR_PARAM = "InternalError.Param" @@ -5987,6 +6120,7 @@ func (c *Client) DescribePrometheusTempSync(request *DescribePrometheusTempSyncR // 获取模板关联实例信息,针对V2版本实例 // // 可能返回的错误码: +// FAILEDOPERATION_DOTRPCTRANSFERFAILED = "FailedOperation.DoTRPCTransferFailed" // INTERNALERROR = "InternalError" // INTERNALERROR_DB = "InternalError.Db" // INTERNALERROR_PARAM = "InternalError.Param" @@ -6806,7 +6940,7 @@ func NewModifyAlarmNoticeResponse() (response *ModifyAlarmNoticeResponse) { } // ModifyAlarmNotice -// 云监控告警编辑告警通知模板 +// 编辑告警通知模板 // // 可能返回的错误码: // AUTHFAILURE = "AuthFailure" @@ -6822,7 +6956,7 @@ func (c *Client) ModifyAlarmNotice(request *ModifyAlarmNoticeRequest) (response } // ModifyAlarmNotice -// 云监控告警编辑告警通知模板 +// 编辑告警通知模板 // // 可能返回的错误码: // AUTHFAILURE = "AuthFailure" @@ -6872,6 +7006,7 @@ func NewModifyAlarmPolicyConditionResponse() (response *ModifyAlarmPolicyConditi // // 可能返回的错误码: // FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_DOHTTPTRANSFERFAILED = "FailedOperation.DoHTTPTransferFailed" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -6886,6 +7021,7 @@ func (c *Client) ModifyAlarmPolicyCondition(request *ModifyAlarmPolicyConditionR // // 可能返回的错误码: // FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_DOHTTPTRANSFERFAILED = "FailedOperation.DoHTTPTransferFailed" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -6986,10 +7122,11 @@ func NewModifyAlarmPolicyNoticeResponse() (response *ModifyAlarmPolicyNoticeResp } // ModifyAlarmPolicyNotice -// 云监控告警修改告警策略绑定的告警通知模板 +// 修改告警策略绑定的告警通知模板 // // 可能返回的错误码: // FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_DOHTTPTRANSFERFAILED = "FailedOperation.DoHTTPTransferFailed" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // RESOURCENOTFOUND = "ResourceNotFound" @@ -6999,10 +7136,11 @@ func (c *Client) ModifyAlarmPolicyNotice(request *ModifyAlarmPolicyNoticeRequest } // ModifyAlarmPolicyNotice -// 云监控告警修改告警策略绑定的告警通知模板 +// 修改告警策略绑定的告警通知模板 // // 可能返回的错误码: // FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_DOHTTPTRANSFERFAILED = "FailedOperation.DoHTTPTransferFailed" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // RESOURCENOTFOUND = "ResourceNotFound" @@ -7046,6 +7184,7 @@ func NewModifyAlarmPolicyStatusResponse() (response *ModifyAlarmPolicyStatusResp // // 可能返回的错误码: // FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_DOHTTPTRANSFERFAILED = "FailedOperation.DoHTTPTransferFailed" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -7060,6 +7199,7 @@ func (c *Client) ModifyAlarmPolicyStatus(request *ModifyAlarmPolicyStatusRequest // // 可能返回的错误码: // FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_DOHTTPTRANSFERFAILED = "FailedOperation.DoHTTPTransferFailed" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -7100,7 +7240,7 @@ func NewModifyAlarmPolicyTasksResponse() (response *ModifyAlarmPolicyTasksRespon } // ModifyAlarmPolicyTasks -// 云监控告警修改告警策略的触发任务,TriggerTasks字段放触发任务列表,TriggerTasks传空数组时,代表解绑该策略的所有触发任务。 +// 修改告警策略的触发任务,TriggerTasks字段放触发任务列表,TriggerTasks传空数组时,代表解绑该策略的所有触发任务。 // // 可能返回的错误码: // FAILEDOPERATION = "FailedOperation" @@ -7113,7 +7253,7 @@ func (c *Client) ModifyAlarmPolicyTasks(request *ModifyAlarmPolicyTasksRequest) } // ModifyAlarmPolicyTasks -// 云监控告警修改告警策略的触发任务,TriggerTasks字段放触发任务列表,TriggerTasks传空数组时,代表解绑该策略的所有触发任务。 +// 修改告警策略的触发任务,TriggerTasks字段放触发任务列表,TriggerTasks传空数组时,代表解绑该策略的所有触发任务。 // // 可能返回的错误码: // FAILEDOPERATION = "FailedOperation" @@ -7418,6 +7558,7 @@ func NewModifyPrometheusAlertPolicyResponse() (response *ModifyPrometheusAlertPo // FAILEDOPERATION_COMPONENTCLIENTCOMMON = "FailedOperation.ComponentClientCommon" // FAILEDOPERATION_COMPONENTCLIENTHTTP = "FailedOperation.ComponentClientHttp" // FAILEDOPERATION_COMPONENTCLIENTUNPACK = "FailedOperation.ComponentClientUnpack" +// FAILEDOPERATION_DOTRPCTRANSFERFAILED = "FailedOperation.DoTRPCTransferFailed" // FAILEDOPERATION_KUBECOMMON = "FailedOperation.KubeCommon" // INTERNALERROR = "InternalError" // INTERNALERROR_PARAM = "InternalError.Param" @@ -7435,6 +7576,7 @@ func (c *Client) ModifyPrometheusAlertPolicy(request *ModifyPrometheusAlertPolic // FAILEDOPERATION_COMPONENTCLIENTCOMMON = "FailedOperation.ComponentClientCommon" // FAILEDOPERATION_COMPONENTCLIENTHTTP = "FailedOperation.ComponentClientHttp" // FAILEDOPERATION_COMPONENTCLIENTUNPACK = "FailedOperation.ComponentClientUnpack" +// FAILEDOPERATION_DOTRPCTRANSFERFAILED = "FailedOperation.DoTRPCTransferFailed" // FAILEDOPERATION_KUBECOMMON = "FailedOperation.KubeCommon" // INTERNALERROR = "InternalError" // INTERNALERROR_PARAM = "InternalError.Param" @@ -7544,6 +7686,7 @@ func NewModifyPrometheusGlobalNotificationResponse() (response *ModifyPrometheus // FAILEDOPERATION_COMPONENTCLIENTCOMMON = "FailedOperation.ComponentClientCommon" // FAILEDOPERATION_KUBECOMMON = "FailedOperation.KubeCommon" // INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// INVALIDPARAMETER_PROMCLUSTERNOTFOUND = "InvalidParameter.PromClusterNotFound" // INVALIDPARAMETER_PROMINSTANCENOTFOUND = "InvalidParameter.PromInstanceNotFound" func (c *Client) ModifyPrometheusGlobalNotification(request *ModifyPrometheusGlobalNotificationRequest) (response *ModifyPrometheusGlobalNotificationResponse, err error) { return c.ModifyPrometheusGlobalNotificationWithContext(context.Background(), request) @@ -7556,6 +7699,7 @@ func (c *Client) ModifyPrometheusGlobalNotification(request *ModifyPrometheusGlo // FAILEDOPERATION_COMPONENTCLIENTCOMMON = "FailedOperation.ComponentClientCommon" // FAILEDOPERATION_KUBECOMMON = "FailedOperation.KubeCommon" // INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// INVALIDPARAMETER_PROMCLUSTERNOTFOUND = "InvalidParameter.PromClusterNotFound" // INVALIDPARAMETER_PROMINSTANCENOTFOUND = "InvalidParameter.PromInstanceNotFound" func (c *Client) ModifyPrometheusGlobalNotificationWithContext(ctx context.Context, request *ModifyPrometheusGlobalNotificationRequest) (response *ModifyPrometheusGlobalNotificationResponse, err error) { if request == nil { @@ -7755,110 +7899,6 @@ func (c *Client) ModifyPrometheusTempWithContext(ctx context.Context, request *M return } -func NewPutMonitorDataRequest() (request *PutMonitorDataRequest) { - request = &PutMonitorDataRequest{ - BaseRequest: &tchttp.BaseRequest{}, - } - - request.Init().WithApiInfo("monitor", APIVersion, "PutMonitorData") - - - return -} - -func NewPutMonitorDataResponse() (response *PutMonitorDataResponse) { - response = &PutMonitorDataResponse{ - BaseResponse: &tchttp.BaseResponse{}, - } - return -} - -// PutMonitorData -// 默认接口请求频率限制:50次/秒。 -// -// 默认单租户指标上限:100个。 -// -// 单次上报最多 30 个指标/值对,请求返回错误时,请求中所有的指标/值均不会被保存。 -// -// -// -// 上报的时间戳为期望保存的时间戳,建议构造整数分钟时刻的时间戳。 -// -// 时间戳时间范围必须为当前时间到 300 秒前之间。 -// -// 同一 IP 指标对的数据需按分钟先后顺序上报。 -// -// 可能返回的错误码: -// DRYRUNOPERATION = "DryRunOperation" -// FAILEDOPERATION = "FailedOperation" -// FAILEDOPERATION_SERVICENOTENABLED = "FailedOperation.ServiceNotEnabled" -// INTERNALERROR = "InternalError" -// INTERNALERROR_EXETIMEOUT = "InternalError.ExeTimeout" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETER_INVALIDPARAMETER = "InvalidParameter.InvalidParameter" -// INVALIDPARAMETER_INVALIDPARAMETERPARAM = "InvalidParameter.InvalidParameterParam" -// INVALIDPARAMETERVALUE = "InvalidParameterValue" -// LIMITEXCEEDED = "LimitExceeded" -// LIMITEXCEEDED_METRICQUOTAEXCEEDED = "LimitExceeded.MetricQuotaExceeded" -// MISSINGPARAMETER = "MissingParameter" -// RESOURCENOTFOUND = "ResourceNotFound" -// RESOURCEUNAVAILABLE = "ResourceUnavailable" -// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" -// UNKNOWNPARAMETER = "UnknownParameter" -// UNSUPPORTEDOPERATION = "UnsupportedOperation" -func (c *Client) PutMonitorData(request *PutMonitorDataRequest) (response *PutMonitorDataResponse, err error) { - return c.PutMonitorDataWithContext(context.Background(), request) -} - -// PutMonitorData -// 默认接口请求频率限制:50次/秒。 -// -// 默认单租户指标上限:100个。 -// -// 单次上报最多 30 个指标/值对,请求返回错误时,请求中所有的指标/值均不会被保存。 -// -// -// -// 上报的时间戳为期望保存的时间戳,建议构造整数分钟时刻的时间戳。 -// -// 时间戳时间范围必须为当前时间到 300 秒前之间。 -// -// 同一 IP 指标对的数据需按分钟先后顺序上报。 -// -// 可能返回的错误码: -// DRYRUNOPERATION = "DryRunOperation" -// FAILEDOPERATION = "FailedOperation" -// FAILEDOPERATION_SERVICENOTENABLED = "FailedOperation.ServiceNotEnabled" -// INTERNALERROR = "InternalError" -// INTERNALERROR_EXETIMEOUT = "InternalError.ExeTimeout" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETER_INVALIDPARAMETER = "InvalidParameter.InvalidParameter" -// INVALIDPARAMETER_INVALIDPARAMETERPARAM = "InvalidParameter.InvalidParameterParam" -// INVALIDPARAMETERVALUE = "InvalidParameterValue" -// LIMITEXCEEDED = "LimitExceeded" -// LIMITEXCEEDED_METRICQUOTAEXCEEDED = "LimitExceeded.MetricQuotaExceeded" -// MISSINGPARAMETER = "MissingParameter" -// RESOURCENOTFOUND = "ResourceNotFound" -// RESOURCEUNAVAILABLE = "ResourceUnavailable" -// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" -// UNKNOWNPARAMETER = "UnknownParameter" -// UNSUPPORTEDOPERATION = "UnsupportedOperation" -func (c *Client) PutMonitorDataWithContext(ctx context.Context, request *PutMonitorDataRequest) (response *PutMonitorDataResponse, err error) { - if request == nil { - request = NewPutMonitorDataRequest() - } - - if c.GetCredential() == nil { - return nil, errors.New("PutMonitorData require credential") - } - - request.SetContext(ctx) - - response = NewPutMonitorDataResponse() - err = c.Send(request, response) - return -} - func NewResumeGrafanaInstanceRequest() (request *ResumeGrafanaInstanceRequest) { request = &ResumeGrafanaInstanceRequest{ BaseRequest: &tchttp.BaseRequest{}, @@ -7878,51 +7918,29 @@ func NewResumeGrafanaInstanceResponse() (response *ResumeGrafanaInstanceResponse } // ResumeGrafanaInstance -// 恢复 Grafana 实例 +// 本接口(ResumeGrafanaInstance)用于 Grafana 包年包月实例的停服续费,调用后按原版本续费一个月。仍在运行中的实例无法使用该接口进行续费。 // // 可能返回的错误码: -// DRYRUNOPERATION = "DryRunOperation" -// FAILEDOPERATION = "FailedOperation" -// FAILEDOPERATION_SERVICENOTENABLED = "FailedOperation.ServiceNotEnabled" // INTERNALERROR = "InternalError" -// INTERNALERROR_EXETIMEOUT = "InternalError.ExeTimeout" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETER_INVALIDPARAMETER = "InvalidParameter.InvalidParameter" -// INVALIDPARAMETER_INVALIDPARAMETERPARAM = "InvalidParameter.InvalidParameterParam" -// INVALIDPARAMETERVALUE = "InvalidParameterValue" -// LIMITEXCEEDED = "LimitExceeded" -// LIMITEXCEEDED_METRICQUOTAEXCEEDED = "LimitExceeded.MetricQuotaExceeded" -// MISSINGPARAMETER = "MissingParameter" +// INTERNALERROR_DB = "InternalError.Db" +// INTERNALERROR_PARAM = "InternalError.Param" +// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// INVALIDPARAMETER_RESOURCENOTFOUND = "InvalidParameter.ResourceNotFound" // RESOURCENOTFOUND = "ResourceNotFound" -// RESOURCEUNAVAILABLE = "ResourceUnavailable" -// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" -// UNKNOWNPARAMETER = "UnknownParameter" -// UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) ResumeGrafanaInstance(request *ResumeGrafanaInstanceRequest) (response *ResumeGrafanaInstanceResponse, err error) { return c.ResumeGrafanaInstanceWithContext(context.Background(), request) } // ResumeGrafanaInstance -// 恢复 Grafana 实例 +// 本接口(ResumeGrafanaInstance)用于 Grafana 包年包月实例的停服续费,调用后按原版本续费一个月。仍在运行中的实例无法使用该接口进行续费。 // // 可能返回的错误码: -// DRYRUNOPERATION = "DryRunOperation" -// FAILEDOPERATION = "FailedOperation" -// FAILEDOPERATION_SERVICENOTENABLED = "FailedOperation.ServiceNotEnabled" // INTERNALERROR = "InternalError" -// INTERNALERROR_EXETIMEOUT = "InternalError.ExeTimeout" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETER_INVALIDPARAMETER = "InvalidParameter.InvalidParameter" -// INVALIDPARAMETER_INVALIDPARAMETERPARAM = "InvalidParameter.InvalidParameterParam" -// INVALIDPARAMETERVALUE = "InvalidParameterValue" -// LIMITEXCEEDED = "LimitExceeded" -// LIMITEXCEEDED_METRICQUOTAEXCEEDED = "LimitExceeded.MetricQuotaExceeded" -// MISSINGPARAMETER = "MissingParameter" +// INTERNALERROR_DB = "InternalError.Db" +// INTERNALERROR_PARAM = "InternalError.Param" +// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// INVALIDPARAMETER_RESOURCENOTFOUND = "InvalidParameter.ResourceNotFound" // RESOURCENOTFOUND = "ResourceNotFound" -// RESOURCEUNAVAILABLE = "ResourceUnavailable" -// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" -// UNKNOWNPARAMETER = "UnknownParameter" -// UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) ResumeGrafanaInstanceWithContext(ctx context.Context, request *ResumeGrafanaInstanceRequest) (response *ResumeGrafanaInstanceResponse, err error) { if request == nil { request = NewResumeGrafanaInstanceRequest() @@ -8141,8 +8159,10 @@ func NewSyncPrometheusTempResponse() (response *SyncPrometheusTempResponse) { // 同步模板到实例或者集群,针对V2版本实例 // // 可能返回的错误码: +// FAILEDOPERATION_COMPONENTCLIENTCOMMON = "FailedOperation.ComponentClientCommon" // FAILEDOPERATION_COMPONENTCLIENTHTTP = "FailedOperation.ComponentClientHttp" // FAILEDOPERATION_COMPONENTCLIENTUNPACK = "FailedOperation.ComponentClientUnpack" +// FAILEDOPERATION_DOTRPCTRANSFERFAILED = "FailedOperation.DoTRPCTransferFailed" // FAILEDOPERATION_KUBECOMMON = "FailedOperation.KubeCommon" // INTERNALERROR_DB = "InternalError.Db" // INTERNALERROR_PARAM = "InternalError.Param" @@ -8160,8 +8180,10 @@ func (c *Client) SyncPrometheusTemp(request *SyncPrometheusTempRequest) (respons // 同步模板到实例或者集群,针对V2版本实例 // // 可能返回的错误码: +// FAILEDOPERATION_COMPONENTCLIENTCOMMON = "FailedOperation.ComponentClientCommon" // FAILEDOPERATION_COMPONENTCLIENTHTTP = "FailedOperation.ComponentClientHttp" // FAILEDOPERATION_COMPONENTCLIENTUNPACK = "FailedOperation.ComponentClientUnpack" +// FAILEDOPERATION_DOTRPCTRANSFERFAILED = "FailedOperation.DoTRPCTransferFailed" // FAILEDOPERATION_KUBECOMMON = "FailedOperation.KubeCommon" // INTERNALERROR_DB = "InternalError.Db" // INTERNALERROR_PARAM = "InternalError.Param" diff --git a/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/monitor/v20180724/errors.go b/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/monitor/v20180724/errors.go index 5028d9665f..0c6b3f786f 100644 --- a/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/monitor/v20180724/errors.go +++ b/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/monitor/v20180724/errors.go @@ -128,6 +128,9 @@ const ( // 后端服务超时 FAILEDOPERATION_DOHTTPTRANSFERFAILED = "FailedOperation.DoHTTPTransferFailed" + // DoTRPCTransferFailed + FAILEDOPERATION_DOTRPCTRANSFERFAILED = "FailedOperation.DoTRPCTransferFailed" + // 查询分析数据失败。 FAILEDOPERATION_DRUIDQUERYFAILED = "FailedOperation.DruidQueryFailed" diff --git a/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/monitor/v20180724/models.go b/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/monitor/v20180724/models.go index ed4b39d468..0734cbd513 100644 --- a/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/monitor/v20180724/models.go +++ b/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/monitor/v20180724/models.go @@ -670,6 +670,12 @@ type BindingPolicyTagRequestParams struct { // 批量绑定标签 BatchTag []*PolicyTag `json:"BatchTag,omitempty" name:"BatchTag"` + + // 是否同步eb + EbEventFlag *int64 `json:"EbEventFlag,omitempty" name:"EbEventFlag"` + + // 事件配置的告警 + EbSubject *string `json:"EbSubject,omitempty" name:"EbSubject"` } type BindingPolicyTagRequest struct { @@ -695,6 +701,12 @@ type BindingPolicyTagRequest struct { // 批量绑定标签 BatchTag []*PolicyTag `json:"BatchTag,omitempty" name:"BatchTag"` + + // 是否同步eb + EbEventFlag *int64 `json:"EbEventFlag,omitempty" name:"EbEventFlag"` + + // 事件配置的告警 + EbSubject *string `json:"EbSubject,omitempty" name:"EbSubject"` } func (r *BindingPolicyTagRequest) ToJsonString() string { @@ -716,6 +728,8 @@ func (r *BindingPolicyTagRequest) FromJsonString(s string) error { delete(f, "Tag") delete(f, "InstanceGroupId") delete(f, "BatchTag") + delete(f, "EbEventFlag") + delete(f, "EbSubject") if len(f) > 0 { return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "BindingPolicyTagRequest has unknown keys!", "") } @@ -949,7 +963,7 @@ type Condition struct { } type ConditionsTemp struct { - // 模版名称 + // 模板名称 // 注意:此字段可能返回 null,表示取不到有效值。 TemplateName *string `json:"TemplateName,omitempty" name:"TemplateName"` @@ -1478,12 +1492,12 @@ type CreateGrafanaInstanceRequestParams struct { // 子网 ID 数组 SubnetIds []*string `json:"SubnetIds,omitempty" name:"SubnetIds"` - // Grafana 初始密码 - GrafanaInitPassword *string `json:"GrafanaInitPassword,omitempty" name:"GrafanaInitPassword"` - // 是否启用外网 EnableInternet *bool `json:"EnableInternet,omitempty" name:"EnableInternet"` + // Grafana 初始密码 + GrafanaInitPassword *string `json:"GrafanaInitPassword,omitempty" name:"GrafanaInitPassword"` + // 标签 TagSpecification []*PrometheusTag `json:"TagSpecification,omitempty" name:"TagSpecification"` } @@ -1500,12 +1514,12 @@ type CreateGrafanaInstanceRequest struct { // 子网 ID 数组 SubnetIds []*string `json:"SubnetIds,omitempty" name:"SubnetIds"` - // Grafana 初始密码 - GrafanaInitPassword *string `json:"GrafanaInitPassword,omitempty" name:"GrafanaInitPassword"` - // 是否启用外网 EnableInternet *bool `json:"EnableInternet,omitempty" name:"EnableInternet"` + // Grafana 初始密码 + GrafanaInitPassword *string `json:"GrafanaInitPassword,omitempty" name:"GrafanaInitPassword"` + // 标签 TagSpecification []*PrometheusTag `json:"TagSpecification,omitempty" name:"TagSpecification"` } @@ -1525,8 +1539,8 @@ func (r *CreateGrafanaInstanceRequest) FromJsonString(s string) error { delete(f, "InstanceName") delete(f, "VpcId") delete(f, "SubnetIds") - delete(f, "GrafanaInitPassword") delete(f, "EnableInternet") + delete(f, "GrafanaInitPassword") delete(f, "TagSpecification") if len(f) > 0 { return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateGrafanaInstanceRequest has unknown keys!", "") @@ -2347,6 +2361,9 @@ type CreatePrometheusRecordRuleYamlRequestParams struct { // yaml的内容 Content *string `json:"Content,omitempty" name:"Content"` + + // 规则名称 + Name *string `json:"Name,omitempty" name:"Name"` } type CreatePrometheusRecordRuleYamlRequest struct { @@ -2357,6 +2374,9 @@ type CreatePrometheusRecordRuleYamlRequest struct { // yaml的内容 Content *string `json:"Content,omitempty" name:"Content"` + + // 规则名称 + Name *string `json:"Name,omitempty" name:"Name"` } func (r *CreatePrometheusRecordRuleYamlRequest) ToJsonString() string { @@ -2373,6 +2393,7 @@ func (r *CreatePrometheusRecordRuleYamlRequest) FromJsonString(s string) error { } delete(f, "InstanceId") delete(f, "Content") + delete(f, "Name") if len(f) > 0 { return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreatePrometheusRecordRuleYamlRequest has unknown keys!", "") } @@ -4641,6 +4662,9 @@ type DescribeAlarmNoticesRequestParams struct { // 模板根据标签过滤 Tags []*Tag `json:"Tags,omitempty" name:"Tags"` + + // 值班列表 + OnCallFormIDs []*string `json:"OnCallFormIDs,omitempty" name:"OnCallFormIDs"` } type DescribeAlarmNoticesRequest struct { @@ -4678,6 +4702,9 @@ type DescribeAlarmNoticesRequest struct { // 模板根据标签过滤 Tags []*Tag `json:"Tags,omitempty" name:"Tags"` + + // 值班列表 + OnCallFormIDs []*string `json:"OnCallFormIDs,omitempty" name:"OnCallFormIDs"` } func (r *DescribeAlarmNoticesRequest) ToJsonString() string { @@ -4703,6 +4730,7 @@ func (r *DescribeAlarmNoticesRequest) FromJsonString(s string) error { delete(f, "GroupIds") delete(f, "NoticeIds") delete(f, "Tags") + delete(f, "OnCallFormIDs") if len(f) > 0 { return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeAlarmNoticesRequest has unknown keys!", "") } @@ -4786,7 +4814,7 @@ type DescribeAlarmPoliciesRequestParams struct { // [项目管理](https://console.cloud.tencent.com/project) ProjectIds []*int64 `json:"ProjectIds,omitempty" name:"ProjectIds"` - // 通知模版的id列表,可查询通知模版列表获取。 + // 通知模板的id列表,可查询通知模板列表获取。 // 可使用 [查询通知模板列表](https://cloud.tencent.com/document/product/248/51280) 接口查询。 NoticeIds []*string `json:"NoticeIds,omitempty" name:"NoticeIds"` @@ -4811,14 +4839,20 @@ type DescribeAlarmPoliciesRequestParams struct { // 根据一键告警策略筛选 不传展示全部策略 ONECLICK=展示一键告警策略 NOT_ONECLICK=展示非一键告警策略 OneClickPolicyType []*string `json:"OneClickPolicyType,omitempty" name:"OneClickPolicyType"` - // 根据全部对象过滤,1代表需要过滤掉全部对象,0则无需过滤 + // 返回结果过滤掉绑定全部对象的策略,1代表需要过滤,0则无需过滤 NotBindAll *int64 `json:"NotBindAll,omitempty" name:"NotBindAll"` - // 根据实例对象过滤,1代表需要过滤掉有实例对象,0则无需过滤 + // 返回结果过滤掉关联实例为实例分组的策略,1代表需要过滤,0则无需过滤 NotInstanceGroup *int64 `json:"NotInstanceGroup,omitempty" name:"NotInstanceGroup"` // 策略根据标签过滤 Tags []*Tag `json:"Tags,omitempty" name:"Tags"` + + // prom实例id,自定义指标策略时会用到 + PromInsId *string `json:"PromInsId,omitempty" name:"PromInsId"` + + // 根据排班表搜索 + ReceiverOnCallFormIDs []*string `json:"ReceiverOnCallFormIDs,omitempty" name:"ReceiverOnCallFormIDs"` } type DescribeAlarmPoliciesRequest struct { @@ -4871,7 +4905,7 @@ type DescribeAlarmPoliciesRequest struct { // [项目管理](https://console.cloud.tencent.com/project) ProjectIds []*int64 `json:"ProjectIds,omitempty" name:"ProjectIds"` - // 通知模版的id列表,可查询通知模版列表获取。 + // 通知模板的id列表,可查询通知模板列表获取。 // 可使用 [查询通知模板列表](https://cloud.tencent.com/document/product/248/51280) 接口查询。 NoticeIds []*string `json:"NoticeIds,omitempty" name:"NoticeIds"` @@ -4896,14 +4930,20 @@ type DescribeAlarmPoliciesRequest struct { // 根据一键告警策略筛选 不传展示全部策略 ONECLICK=展示一键告警策略 NOT_ONECLICK=展示非一键告警策略 OneClickPolicyType []*string `json:"OneClickPolicyType,omitempty" name:"OneClickPolicyType"` - // 根据全部对象过滤,1代表需要过滤掉全部对象,0则无需过滤 + // 返回结果过滤掉绑定全部对象的策略,1代表需要过滤,0则无需过滤 NotBindAll *int64 `json:"NotBindAll,omitempty" name:"NotBindAll"` - // 根据实例对象过滤,1代表需要过滤掉有实例对象,0则无需过滤 + // 返回结果过滤掉关联实例为实例分组的策略,1代表需要过滤,0则无需过滤 NotInstanceGroup *int64 `json:"NotInstanceGroup,omitempty" name:"NotInstanceGroup"` // 策略根据标签过滤 Tags []*Tag `json:"Tags,omitempty" name:"Tags"` + + // prom实例id,自定义指标策略时会用到 + PromInsId *string `json:"PromInsId,omitempty" name:"PromInsId"` + + // 根据排班表搜索 + ReceiverOnCallFormIDs []*string `json:"ReceiverOnCallFormIDs,omitempty" name:"ReceiverOnCallFormIDs"` } func (r *DescribeAlarmPoliciesRequest) ToJsonString() string { @@ -4942,6 +4982,8 @@ func (r *DescribeAlarmPoliciesRequest) FromJsonString(s string) error { delete(f, "NotBindAll") delete(f, "NotInstanceGroup") delete(f, "Tags") + delete(f, "PromInsId") + delete(f, "ReceiverOnCallFormIDs") if len(f) > 0 { return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeAlarmPoliciesRequest has unknown keys!", "") } @@ -5699,6 +5741,57 @@ func (r *DescribeBindingPolicyObjectListResponse) FromJsonString(s string) error return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeClusterAgentCreatingProgressRequestParams struct { + +} + +type DescribeClusterAgentCreatingProgressRequest struct { + *tchttp.BaseRequest + +} + +func (r *DescribeClusterAgentCreatingProgressRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *DescribeClusterAgentCreatingProgressRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeClusterAgentCreatingProgressRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type DescribeClusterAgentCreatingProgressResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + +type DescribeClusterAgentCreatingProgressResponse struct { + *tchttp.BaseResponse + Response *DescribeClusterAgentCreatingProgressResponseParams `json:"Response"` +} + +func (r *DescribeClusterAgentCreatingProgressResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *DescribeClusterAgentCreatingProgressResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + // Predefined struct for user type DescribeConditionsTemplateListRequestParams struct { // 固定值,为"monitor" @@ -8104,6 +8197,9 @@ type DescribePrometheusClusterAgentsResponseParams struct { // 被关联集群总量 Total *uint64 `json:"Total,omitempty" name:"Total"` + // 是否为首次绑定,需要安装预聚合规则 + IsFirstBind *bool `json:"IsFirstBind,omitempty" name:"IsFirstBind"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } @@ -8263,6 +8359,10 @@ type DescribePrometheusGlobalConfigResponseParams struct { // 注意:此字段可能返回 null,表示取不到有效值。 RawJobs []*PrometheusConfigItem `json:"RawJobs,omitempty" name:"RawJobs"` + // Probes列表以及对应targets信息 + // 注意:此字段可能返回 null,表示取不到有效值。 + Probes []*PrometheusConfigItem `json:"Probes,omitempty" name:"Probes"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } @@ -9615,7 +9715,7 @@ type DescribeStatisticDataRequestParams struct { // 所属模块,固定值,为monitor Module *string `json:"Module,omitempty" name:"Module"` - // 命名空间,目前只支持QCE/TKE + // 命名空间,目前只支持QCE/TKE2 Namespace *string `json:"Namespace,omitempty" name:"Namespace"` // 指标名列表 @@ -9648,7 +9748,7 @@ type DescribeStatisticDataRequest struct { // 所属模块,固定值,为monitor Module *string `json:"Module,omitempty" name:"Module"` - // 命名空间,目前只支持QCE/TKE + // 命名空间,目前只支持QCE/TKE2 Namespace *string `json:"Namespace,omitempty" name:"Namespace"` // 指标名列表 @@ -10052,6 +10152,12 @@ type Filter struct { // 过滤值,in过滤方式用逗号分割多个值 Value *string `json:"Value,omitempty" name:"Value"` + + // 过滤条件名称 + Name *string `json:"Name,omitempty" name:"Name"` + + // 过滤条件取值范围 + Values []*string `json:"Values,omitempty" name:"Values"` } // Predefined struct for user @@ -10597,6 +10703,14 @@ type Metric struct { // 集成中心产品ID // 注意:此字段可能返回 null,表示取不到有效值。 ProductId *int64 `json:"ProductId,omitempty" name:"ProductId"` + + // 匹配运算符 + // 注意:此字段可能返回 null,表示取不到有效值。 + Operators []*Operator `json:"Operators,omitempty" name:"Operators"` + + // 指标触发 + // 注意:此字段可能返回 null,表示取不到有效值。 + Periods []*int64 `json:"Periods,omitempty" name:"Periods"` } type MetricConfig struct { @@ -10626,14 +10740,6 @@ type MetricDataPoint struct { Values []*Point `json:"Values,omitempty" name:"Values"` } -type MetricDatum struct { - // 指标名称 - MetricName *string `json:"MetricName,omitempty" name:"MetricName"` - - // 指标的值 - Value *uint64 `json:"Value,omitempty" name:"Value"` -} - type MetricObjectMeaning struct { // 指标英文解释 En *string `json:"En,omitempty" name:"En"` @@ -10823,7 +10929,7 @@ type ModifyAlarmPolicyConditionRequestParams struct { // 日志告警创建请求参数信息 LogAlarmReqInfo *LogAlarmReq `json:"LogAlarmReqInfo,omitempty" name:"LogAlarmReqInfo"` - // 模版id,专供prom使用 + // 模板id,专供prom使用 NoticeIds []*string `json:"NoticeIds,omitempty" name:"NoticeIds"` // 启停状态,0=停用,1=启用 @@ -10863,7 +10969,7 @@ type ModifyAlarmPolicyConditionRequest struct { // 日志告警创建请求参数信息 LogAlarmReqInfo *LogAlarmReq `json:"LogAlarmReqInfo,omitempty" name:"LogAlarmReqInfo"` - // 模版id,专供prom使用 + // 模板id,专供prom使用 NoticeIds []*string `json:"NoticeIds,omitempty" name:"NoticeIds"` // 启停状态,0=停用,1=启用 @@ -11016,6 +11122,9 @@ type ModifyAlarmPolicyNoticeRequestParams struct { // 告警策略ID数组,支持给多个告警策略批量绑定通知模板。最多30个。 PolicyIds []*string `json:"PolicyIds,omitempty" name:"PolicyIds"` + + // 告警分级通知规则配置 + HierarchicalNotices []*AlarmHierarchicalNotice `json:"HierarchicalNotices,omitempty" name:"HierarchicalNotices"` } type ModifyAlarmPolicyNoticeRequest struct { @@ -11032,6 +11141,9 @@ type ModifyAlarmPolicyNoticeRequest struct { // 告警策略ID数组,支持给多个告警策略批量绑定通知模板。最多30个。 PolicyIds []*string `json:"PolicyIds,omitempty" name:"PolicyIds"` + + // 告警分级通知规则配置 + HierarchicalNotices []*AlarmHierarchicalNotice `json:"HierarchicalNotices,omitempty" name:"HierarchicalNotices"` } func (r *ModifyAlarmPolicyNoticeRequest) ToJsonString() string { @@ -11050,6 +11162,7 @@ func (r *ModifyAlarmPolicyNoticeRequest) FromJsonString(s string) error { delete(f, "PolicyId") delete(f, "NoticeIds") delete(f, "PolicyIds") + delete(f, "HierarchicalNotices") if len(f) > 0 { return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifyAlarmPolicyNoticeRequest has unknown keys!", "") } @@ -12308,6 +12421,9 @@ type PrometheusClusterAgentBasic struct { // 是否采集指标,true代表drop所有指标,false代表采集默认指标 NotScrape *bool `json:"NotScrape,omitempty" name:"NotScrape"` + + // 是否开启默认预聚合规则 + OpenDefaultRecord *bool `json:"OpenDefaultRecord,omitempty" name:"OpenDefaultRecord"` } type PrometheusClusterAgentPodConfig struct { @@ -12331,6 +12447,10 @@ type PrometheusConfigItem struct { // 用于出参,如果该配置来至模板,则为模板id // 注意:此字段可能返回 null,表示取不到有效值。 TemplateId *string `json:"TemplateId,omitempty" name:"TemplateId"` + + // 目标数 + // 注意:此字段可能返回 null,表示取不到有效值。 + Targets *Targets `json:"Targets,omitempty" name:"Targets"` } type PrometheusInstanceGrantInfo struct { @@ -12580,6 +12700,14 @@ type PrometheusInstancesOverview struct { // 绑定集群正常状态总数 BoundNormal *int64 `json:"BoundNormal,omitempty" name:"BoundNormal"` + + // 资源包状态,0-无可用资源包,1-有可用资源包 + // 注意:此字段可能返回 null,表示取不到有效值。 + ResourcePackageStatus *int64 `json:"ResourcePackageStatus,omitempty" name:"ResourcePackageStatus"` + + // 资源包规格名称 + // 注意:此字段可能返回 null,表示取不到有效值。 + ResourcePackageSpecName *string `json:"ResourcePackageSpecName,omitempty" name:"ResourcePackageSpecName"` } type PrometheusJobTargets struct { @@ -12664,6 +12792,18 @@ type PrometheusRecordRuleYamlItem struct { // 该聚合规则如果来源于用户集群crd资源定义,则ClusterId为所属集群ID // 注意:此字段可能返回 null,表示取不到有效值。 ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` + + // 状态 + // 注意:此字段可能返回 null,表示取不到有效值。 + Status *int64 `json:"Status,omitempty" name:"Status"` + + // id + // 注意:此字段可能返回 null,表示取不到有效值。 + Id *string `json:"Id,omitempty" name:"Id"` + + // 规则数量 + // 注意:此字段可能返回 null,表示取不到有效值。 + Count *int64 `json:"Count,omitempty" name:"Count"` } type PrometheusRuleKV struct { @@ -12890,81 +13030,6 @@ type PrometheusZoneItem struct { ZoneName *string `json:"ZoneName,omitempty" name:"ZoneName"` } -// Predefined struct for user -type PutMonitorDataRequestParams struct { - // 一组指标和数据 - Metrics []*MetricDatum `json:"Metrics,omitempty" name:"Metrics"` - - // 上报时自行指定的 IP - AnnounceIp *string `json:"AnnounceIp,omitempty" name:"AnnounceIp"` - - // 上报时自行指定的时间戳 - AnnounceTimestamp *uint64 `json:"AnnounceTimestamp,omitempty" name:"AnnounceTimestamp"` - - // 上报时自行指定的 IP 或 产品实例ID - AnnounceInstance *string `json:"AnnounceInstance,omitempty" name:"AnnounceInstance"` -} - -type PutMonitorDataRequest struct { - *tchttp.BaseRequest - - // 一组指标和数据 - Metrics []*MetricDatum `json:"Metrics,omitempty" name:"Metrics"` - - // 上报时自行指定的 IP - AnnounceIp *string `json:"AnnounceIp,omitempty" name:"AnnounceIp"` - - // 上报时自行指定的时间戳 - AnnounceTimestamp *uint64 `json:"AnnounceTimestamp,omitempty" name:"AnnounceTimestamp"` - - // 上报时自行指定的 IP 或 产品实例ID - AnnounceInstance *string `json:"AnnounceInstance,omitempty" name:"AnnounceInstance"` -} - -func (r *PutMonitorDataRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *PutMonitorDataRequest) FromJsonString(s string) error { - f := make(map[string]interface{}) - if err := json.Unmarshal([]byte(s), &f); err != nil { - return err - } - delete(f, "Metrics") - delete(f, "AnnounceIp") - delete(f, "AnnounceTimestamp") - delete(f, "AnnounceInstance") - if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "PutMonitorDataRequest has unknown keys!", "") - } - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type PutMonitorDataResponseParams struct { - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` -} - -type PutMonitorDataResponse struct { - *tchttp.BaseResponse - Response *PutMonitorDataResponseParams `json:"Response"` -} - -func (r *PutMonitorDataResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *PutMonitorDataResponse) FromJsonString(s string) error { - return json.Unmarshal([]byte(s), &r) -} - type ReceiverInfo struct { // 告警时间段开始时间。范围[0,86400),作为 UNIX 时间戳转成北京时间后去掉日期,例如7200表示"10:0:0" StartTime *int64 `json:"StartTime,omitempty" name:"StartTime"` @@ -13159,7 +13224,7 @@ type SendCustomAlarmMsgRequestParams struct { // 接口模块名,当前取值monitor Module *string `json:"Module,omitempty" name:"Module"` - // 消息策略ID,在云监控自定义消息页面配置 + // 消息策略ID,在自定义消息页面配置 PolicyId *string `json:"PolicyId,omitempty" name:"PolicyId"` // 用户想要发送的自定义消息内容 @@ -13172,7 +13237,7 @@ type SendCustomAlarmMsgRequest struct { // 接口模块名,当前取值monitor Module *string `json:"Module,omitempty" name:"Module"` - // 消息策略ID,在云监控自定义消息页面配置 + // 消息策略ID,在自定义消息页面配置 PolicyId *string `json:"PolicyId,omitempty" name:"PolicyId"` // 用户想要发送的自定义消息内容 @@ -13408,6 +13473,24 @@ type TagInstance struct { TagStatus *int64 `json:"TagStatus,omitempty" name:"TagStatus"` } +type Targets struct { + // 总数 + // 注意:此字段可能返回 null,表示取不到有效值。 + Total *uint64 `json:"Total,omitempty" name:"Total"` + + // 在线数 + // 注意:此字段可能返回 null,表示取不到有效值。 + Up *uint64 `json:"Up,omitempty" name:"Up"` + + // 不在线数 + // 注意:此字段可能返回 null,表示取不到有效值。 + Down *uint64 `json:"Down,omitempty" name:"Down"` + + // 未知状态数 + // 注意:此字段可能返回 null,表示取不到有效值。 + Unknown *uint64 `json:"Unknown,omitempty" name:"Unknown"` +} + type TaskStepInfo struct { // 步骤名称 Step *string `json:"Step,omitempty" name:"Step"` @@ -15275,4 +15358,8 @@ type UserNotice struct { // 通知周期 1-7表示周一到周日 // 注意:此字段可能返回 null,表示取不到有效值。 Weekday []*int64 `json:"Weekday,omitempty" name:"Weekday"` + + // 值班表id列表 + // 注意:此字段可能返回 null,表示取不到有效值。 + OnCallFormIDs []*string `json:"OnCallFormIDs,omitempty" name:"OnCallFormIDs"` } \ No newline at end of file diff --git a/vendor/modules.txt b/vendor/modules.txt index 840a0ff1f1..1135474c53 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -1094,7 +1094,7 @@ github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cloudaudit/v20190319 # github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cls v1.0.711 ## explicit; go 1.14 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cls/v20201016 -# github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.730 +# github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.734 ## explicit; go 1.14 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/errors @@ -1161,7 +1161,7 @@ github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/mariadb/v20170312 # github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/mongodb v1.0.651 ## explicit; go 1.14 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/mongodb/v20190725 -# github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/monitor v1.0.616 +# github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/monitor v1.0.734 ## explicit; go 1.14 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/monitor/v20180724 # github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/mps v1.0.584