Class PrometheusAlertRule

    • Constructor Detail

      • PrometheusAlertRule

        public PrometheusAlertRule()
      • PrometheusAlertRule

        public PrometheusAlertRule​(PrometheusAlertRule 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 - 规则名称
      • getRule

        public String getRule()
        Get prometheus语句
        Returns:
        Rule prometheus语句
      • setRule

        public void setRule​(String Rule)
        Set prometheus语句
        Parameters:
        Rule - prometheus语句
      • getLabels

        public Label[] getLabels()
        Get 额外标签
        Returns:
        Labels 额外标签
      • setLabels

        public void setLabels​(Label[] Labels)
        Set 额外标签
        Parameters:
        Labels - 额外标签
      • getTemplate

        public String getTemplate()
        Get 告警发送模板
        Returns:
        Template 告警发送模板
      • setTemplate

        public void setTemplate​(String Template)
        Set 告警发送模板
        Parameters:
        Template - 告警发送模板
      • getFor

        public String getFor()
        Get 持续时间
        Returns:
        For 持续时间
      • setFor

        public void setFor​(String For)
        Set 持续时间
        Parameters:
        For - 持续时间
      • getDescribe

        public String getDescribe()
        Get 该条规则的描述信息 注意:此字段可能返回 null,表示取不到有效值。
        Returns:
        Describe 该条规则的描述信息 注意:此字段可能返回 null,表示取不到有效值。
      • setDescribe

        public void setDescribe​(String Describe)
        Set 该条规则的描述信息 注意:此字段可能返回 null,表示取不到有效值。
        Parameters:
        Describe - 该条规则的描述信息 注意:此字段可能返回 null,表示取不到有效值。
      • getAnnotations

        public Label[] getAnnotations()
        Get 参考prometheus rule中的annotations 注意:此字段可能返回 null,表示取不到有效值。
        Returns:
        Annotations 参考prometheus rule中的annotations 注意:此字段可能返回 null,表示取不到有效值。
      • setAnnotations

        public void setAnnotations​(Label[] Annotations)
        Set 参考prometheus rule中的annotations 注意:此字段可能返回 null,表示取不到有效值。
        Parameters:
        Annotations - 参考prometheus rule中的annotations 注意:此字段可能返回 null,表示取不到有效值。
      • getRuleState

        public Long getRuleState()
        Get 告警规则状态 注意:此字段可能返回 null,表示取不到有效值。
        Returns:
        RuleState 告警规则状态 注意:此字段可能返回 null,表示取不到有效值。
      • setRuleState

        public void setRuleState​(Long RuleState)
        Set 告警规则状态 注意:此字段可能返回 null,表示取不到有效值。
        Parameters:
        RuleState - 告警规则状态 注意:此字段可能返回 null,表示取不到有效值。