Class PrometheusAlertPolicyItem

    • Constructor Detail

      • PrometheusAlertPolicyItem

        public PrometheusAlertPolicyItem()
      • PrometheusAlertPolicyItem

        public PrometheusAlertPolicyItem​(PrometheusAlertPolicyItem 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

      • getName

        public String getName()
        Get 策略名称
        Returns:
        Name 策略名称
      • setName

        public void setName​(String Name)
        Set 策略名称
        Parameters:
        Name - 策略名称
      • getRules

        public PrometheusAlertRule[] getRules()
        Get 规则列表
        Returns:
        Rules 规则列表
      • setRules

        public void setRules​(PrometheusAlertRule[] Rules)
        Set 规则列表
        Parameters:
        Rules - 规则列表
      • getId

        public String getId()
        Get 告警策略 id 注意:此字段可能返回 null,表示取不到有效值。
        Returns:
        Id 告警策略 id 注意:此字段可能返回 null,表示取不到有效值。
      • setId

        public void setId​(String Id)
        Set 告警策略 id 注意:此字段可能返回 null,表示取不到有效值。
        Parameters:
        Id - 告警策略 id 注意:此字段可能返回 null,表示取不到有效值。
      • getTemplateId

        public String getTemplateId()
        Get 如果该告警来自模板下发,则TemplateId为模板id 注意:此字段可能返回 null,表示取不到有效值。
        Returns:
        TemplateId 如果该告警来自模板下发,则TemplateId为模板id 注意:此字段可能返回 null,表示取不到有效值。
      • setTemplateId

        public void setTemplateId​(String TemplateId)
        Set 如果该告警来自模板下发,则TemplateId为模板id 注意:此字段可能返回 null,表示取不到有效值。
        Parameters:
        TemplateId - 如果该告警来自模板下发,则TemplateId为模板id 注意:此字段可能返回 null,表示取不到有效值。
      • getNotification

        public PrometheusNotificationItem getNotification()
        Get 告警渠道,模板中使用可能返回null 注意:此字段可能返回 null,表示取不到有效值。
        Returns:
        Notification 告警渠道,模板中使用可能返回null 注意:此字段可能返回 null,表示取不到有效值。
      • setNotification

        public void setNotification​(PrometheusNotificationItem Notification)
        Set 告警渠道,模板中使用可能返回null 注意:此字段可能返回 null,表示取不到有效值。
        Parameters:
        Notification - 告警渠道,模板中使用可能返回null 注意:此字段可能返回 null,表示取不到有效值。
      • getUpdatedAt

        public String getUpdatedAt()
        Get 最后修改时间 注意:此字段可能返回 null,表示取不到有效值。
        Returns:
        UpdatedAt 最后修改时间 注意:此字段可能返回 null,表示取不到有效值。
      • setUpdatedAt

        public void setUpdatedAt​(String UpdatedAt)
        Set 最后修改时间 注意:此字段可能返回 null,表示取不到有效值。
        Parameters:
        UpdatedAt - 最后修改时间 注意:此字段可能返回 null,表示取不到有效值。
      • getClusterId

        public String getClusterId()
        Get 如果告警策略来源于用户集群CRD资源定义,则ClusterId为所属集群ID 注意:此字段可能返回 null,表示取不到有效值。
        Returns:
        ClusterId 如果告警策略来源于用户集群CRD资源定义,则ClusterId为所属集群ID 注意:此字段可能返回 null,表示取不到有效值。
      • setClusterId

        public void setClusterId​(String ClusterId)
        Set 如果告警策略来源于用户集群CRD资源定义,则ClusterId为所属集群ID 注意:此字段可能返回 null,表示取不到有效值。
        Parameters:
        ClusterId - 如果告警策略来源于用户集群CRD资源定义,则ClusterId为所属集群ID 注意:此字段可能返回 null,表示取不到有效值。