Class CreateAlarmPolicyRequest

    • Constructor Detail

      • CreateAlarmPolicyRequest

        public CreateAlarmPolicyRequest()
      • CreateAlarmPolicyRequest

        public CreateAlarmPolicyRequest​(CreateAlarmPolicyRequest source)
        NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy, and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
    • Method Detail

      • getModule

        public String getModule()
        Get 固定值,为"monitor"
        Returns:
        Module 固定值,为"monitor"
      • setModule

        public void setModule​(String Module)
        Set 固定值,为"monitor"
        Parameters:
        Module - 固定值,为"monitor"
      • getPolicyName

        public String getPolicyName()
        Get 策略名称,不超过20字符
        Returns:
        PolicyName 策略名称,不超过20字符
      • setPolicyName

        public void setPolicyName​(String PolicyName)
        Set 策略名称,不超过20字符
        Parameters:
        PolicyName - 策略名称,不超过20字符
      • getMonitorType

        public String getMonitorType()
        Get 监控类型 MT_QCE=云产品监控
        Returns:
        MonitorType 监控类型 MT_QCE=云产品监控
      • setMonitorType

        public void setMonitorType​(String MonitorType)
        Set 监控类型 MT_QCE=云产品监控
        Parameters:
        MonitorType - 监控类型 MT_QCE=云产品监控
      • getNamespace

        public String getNamespace()
        Get 告警策略类型,由 [DescribeAllNamespaces](https://cloud.tencent.com/document/product/248/48683) 获得。对于云产品监控,取接口出参的 QceNamespacesNew.N.Id,例如 cvm_device
        Returns:
        Namespace 告警策略类型,由 [DescribeAllNamespaces](https://cloud.tencent.com/document/product/248/48683) 获得。对于云产品监控,取接口出参的 QceNamespacesNew.N.Id,例如 cvm_device
      • setNamespace

        public void setNamespace​(String Namespace)
        Set 告警策略类型,由 [DescribeAllNamespaces](https://cloud.tencent.com/document/product/248/48683) 获得。对于云产品监控,取接口出参的 QceNamespacesNew.N.Id,例如 cvm_device
        Parameters:
        Namespace - 告警策略类型,由 [DescribeAllNamespaces](https://cloud.tencent.com/document/product/248/48683) 获得。对于云产品监控,取接口出参的 QceNamespacesNew.N.Id,例如 cvm_device
      • getRemark

        public String getRemark()
        Get 备注,不超过100字符,仅支持中英文、数字、下划线、-
        Returns:
        Remark 备注,不超过100字符,仅支持中英文、数字、下划线、-
      • setRemark

        public void setRemark​(String Remark)
        Set 备注,不超过100字符,仅支持中英文、数字、下划线、-
        Parameters:
        Remark - 备注,不超过100字符,仅支持中英文、数字、下划线、-
      • getEnable

        public Long getEnable()
        Get 是否启用 0=停用 1=启用,可不传 默认为1
        Returns:
        Enable 是否启用 0=停用 1=启用,可不传 默认为1
      • setEnable

        public void setEnable​(Long Enable)
        Set 是否启用 0=停用 1=启用,可不传 默认为1
        Parameters:
        Enable - 是否启用 0=停用 1=启用,可不传 默认为1
      • getProjectId

        public Long getProjectId()
        Get 项目 Id,对于区分项目的产品必须传入非 -1 的值。 -1=无项目 0=默认项目,如不传 默认为 -1。支持的项目 Id 可以在控制台 [账号中心-项目管理](https://console.cloud.tencent.com/project) 中查看。
        Returns:
        ProjectId 项目 Id,对于区分项目的产品必须传入非 -1 的值。 -1=无项目 0=默认项目,如不传 默认为 -1。支持的项目 Id 可以在控制台 [账号中心-项目管理](https://console.cloud.tencent.com/project) 中查看。
      • setProjectId

        public void setProjectId​(Long ProjectId)
        Set 项目 Id,对于区分项目的产品必须传入非 -1 的值。 -1=无项目 0=默认项目,如不传 默认为 -1。支持的项目 Id 可以在控制台 [账号中心-项目管理](https://console.cloud.tencent.com/project) 中查看。
        Parameters:
        ProjectId - 项目 Id,对于区分项目的产品必须传入非 -1 的值。 -1=无项目 0=默认项目,如不传 默认为 -1。支持的项目 Id 可以在控制台 [账号中心-项目管理](https://console.cloud.tencent.com/project) 中查看。
      • getConditionTemplateId

        public Long getConditionTemplateId()
        Get 触发条件模板 Id,该参数与 Condition 参数二选一。如果策略绑定触发条件模板,则传该参数;否则不传该参数,而是传 Condition 参数。触发条件模板 Id 可以从 [DescribeConditionsTemplateList](https://cloud.tencent.com/document/api/248/70250) 接口获取。
        Returns:
        ConditionTemplateId 触发条件模板 Id,该参数与 Condition 参数二选一。如果策略绑定触发条件模板,则传该参数;否则不传该参数,而是传 Condition 参数。触发条件模板 Id 可以从 [DescribeConditionsTemplateList](https://cloud.tencent.com/document/api/248/70250) 接口获取。
      • setConditionTemplateId

        public void setConditionTemplateId​(Long ConditionTemplateId)
        Set 触发条件模板 Id,该参数与 Condition 参数二选一。如果策略绑定触发条件模板,则传该参数;否则不传该参数,而是传 Condition 参数。触发条件模板 Id 可以从 [DescribeConditionsTemplateList](https://cloud.tencent.com/document/api/248/70250) 接口获取。
        Parameters:
        ConditionTemplateId - 触发条件模板 Id,该参数与 Condition 参数二选一。如果策略绑定触发条件模板,则传该参数;否则不传该参数,而是传 Condition 参数。触发条件模板 Id 可以从 [DescribeConditionsTemplateList](https://cloud.tencent.com/document/api/248/70250) 接口获取。
      • getCondition

        public AlarmPolicyCondition getCondition()
        Get 指标触发条件,支持的指标可以从 [DescribeAlarmMetrics](https://cloud.tencent.com/document/product/248/51283) 查询。
        Returns:
        Condition 指标触发条件,支持的指标可以从 [DescribeAlarmMetrics](https://cloud.tencent.com/document/product/248/51283) 查询。
      • setCondition

        public void setCondition​(AlarmPolicyCondition Condition)
        Set 指标触发条件,支持的指标可以从 [DescribeAlarmMetrics](https://cloud.tencent.com/document/product/248/51283) 查询。
        Parameters:
        Condition - 指标触发条件,支持的指标可以从 [DescribeAlarmMetrics](https://cloud.tencent.com/document/product/248/51283) 查询。
      • getEventCondition

        public AlarmPolicyEventCondition getEventCondition()
        Get 事件触发条件,支持的事件可以从 [DescribeAlarmEvents](https://cloud.tencent.com/document/product/248/51284) 查询。
        Returns:
        EventCondition 事件触发条件,支持的事件可以从 [DescribeAlarmEvents](https://cloud.tencent.com/document/product/248/51284) 查询。
      • setEventCondition

        public void setEventCondition​(AlarmPolicyEventCondition EventCondition)
        Set 事件触发条件,支持的事件可以从 [DescribeAlarmEvents](https://cloud.tencent.com/document/product/248/51284) 查询。
        Parameters:
        EventCondition - 事件触发条件,支持的事件可以从 [DescribeAlarmEvents](https://cloud.tencent.com/document/product/248/51284) 查询。
      • getNoticeIds

        public String[] getNoticeIds()
        Get 通知规则 Id 列表,由 [DescribeAlarmNotices](https://cloud.tencent.com/document/product/248/51280) 获得
        Returns:
        NoticeIds 通知规则 Id 列表,由 [DescribeAlarmNotices](https://cloud.tencent.com/document/product/248/51280) 获得
      • setNoticeIds

        public void setNoticeIds​(String[] NoticeIds)
        Set 通知规则 Id 列表,由 [DescribeAlarmNotices](https://cloud.tencent.com/document/product/248/51280) 获得
        Parameters:
        NoticeIds - 通知规则 Id 列表,由 [DescribeAlarmNotices](https://cloud.tencent.com/document/product/248/51280) 获得
      • getTriggerTasks

        public AlarmPolicyTriggerTask[] getTriggerTasks()
        Get 触发任务列表
        Returns:
        TriggerTasks 触发任务列表
      • setTriggerTasks

        public void setTriggerTasks​(AlarmPolicyTriggerTask[] TriggerTasks)
        Set 触发任务列表
        Parameters:
        TriggerTasks - 触发任务列表
      • getFilter

        public AlarmPolicyFilter getFilter()
        Get 全局过滤条件
        Returns:
        Filter 全局过滤条件
      • setFilter

        public void setFilter​(AlarmPolicyFilter Filter)
        Set 全局过滤条件
        Parameters:
        Filter - 全局过滤条件
      • getGroupBy

        public String[] getGroupBy()
        Get 聚合维度列表,指定按哪些维度 key 来做 group by
        Returns:
        GroupBy 聚合维度列表,指定按哪些维度 key 来做 group by
      • setGroupBy

        public void setGroupBy​(String[] GroupBy)
        Set 聚合维度列表,指定按哪些维度 key 来做 group by
        Parameters:
        GroupBy - 聚合维度列表,指定按哪些维度 key 来做 group by
      • getTags

        public Tag[] getTags()
        Get 模板绑定的标签
        Returns:
        Tags 模板绑定的标签
      • setTags

        public void setTags​(Tag[] Tags)
        Set 模板绑定的标签
        Parameters:
        Tags - 模板绑定的标签
      • getLogAlarmReqInfo

        public LogAlarmReq getLogAlarmReqInfo()
        Get 日志告警信息
        Returns:
        LogAlarmReqInfo 日志告警信息
      • setLogAlarmReqInfo

        public void setLogAlarmReqInfo​(LogAlarmReq LogAlarmReqInfo)
        Set 日志告警信息
        Parameters:
        LogAlarmReqInfo - 日志告警信息
      • getHierarchicalNotices

        public AlarmHierarchicalNotice[] getHierarchicalNotices()
        Get 告警分级通知规则配置
        Returns:
        HierarchicalNotices 告警分级通知规则配置
      • setHierarchicalNotices

        public void setHierarchicalNotices​(AlarmHierarchicalNotice[] HierarchicalNotices)
        Set 告警分级通知规则配置
        Parameters:
        HierarchicalNotices - 告警分级通知规则配置
      • getMigrateFlag

        public Long getMigrateFlag()
        Get 迁移策略专用字段,0-走鉴权逻辑,1-跳过鉴权逻辑
        Returns:
        MigrateFlag 迁移策略专用字段,0-走鉴权逻辑,1-跳过鉴权逻辑
      • setMigrateFlag

        public void setMigrateFlag​(Long MigrateFlag)
        Set 迁移策略专用字段,0-走鉴权逻辑,1-跳过鉴权逻辑
        Parameters:
        MigrateFlag - 迁移策略专用字段,0-走鉴权逻辑,1-跳过鉴权逻辑
      • getEbSubject

        public String getEbSubject()
        Get 事件配置的告警
        Returns:
        EbSubject 事件配置的告警
      • setEbSubject

        public void setEbSubject​(String EbSubject)
        Set 事件配置的告警
        Parameters:
        EbSubject - 事件配置的告警