Class OpsAlertRuleSummary

java.lang.Object
ai.shipeasy.admin.model.OpsAlertRuleSummary

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.23.0") public class OpsAlertRuleSummary extends Object
The condition of a metric-rule alert.
  • Field Details

  • Constructor Details

    • OpsAlertRuleSummary

      public OpsAlertRuleSummary()
  • Method Details

    • id

      public OpsAlertRuleSummary id(@Nonnull String id)
    • getId

      @Nonnull public String getId()
      Alert-rule id.
      Returns:
      id
    • setId

      public void setId(@Nonnull String id)
    • name

      public OpsAlertRuleSummary name(@Nonnull String name)
    • getName

      @Nonnull public String getName()
      Alert-rule name.
      Returns:
      name
    • setName

      public void setName(@Nonnull String name)
    • comparator

      public OpsAlertRuleSummary comparator(@Nonnull OpsAlertRuleSummary.ComparatorEnum comparator)
    • getComparator

      @Nonnull public OpsAlertRuleSummary.ComparatorEnum getComparator()
      How `observedValue` is compared to `threshold`.
      Returns:
      comparator
    • setComparator

      public void setComparator(@Nonnull OpsAlertRuleSummary.ComparatorEnum comparator)
    • threshold

      public OpsAlertRuleSummary threshold(@Nonnull BigDecimal threshold)
    • getThreshold

      @Nonnull public BigDecimal getThreshold()
      The threshold value the rule fires on.
      Returns:
      threshold
    • setThreshold

      public void setThreshold(@Nonnull BigDecimal threshold)
    • windowHours

      public OpsAlertRuleSummary windowHours(@Nonnull BigDecimal windowHours)
    • getWindowHours

      @Nonnull public BigDecimal getWindowHours()
      Rolling evaluation window in hours.
      Returns:
      windowHours
    • setWindowHours

      public void setWindowHours(@Nonnull BigDecimal windowHours)
    • putAdditionalProperty

      public OpsAlertRuleSummary putAdditionalProperty(String key, Object value)
      Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.
      Parameters:
      key - name of the property
      value - value of the property
      Returns:
      the OpsAlertRuleSummary instance itself
    • getAdditionalProperties

      public Map<String,Object> getAdditionalProperties()
      Return the additional (undeclared) property.
      Returns:
      a map of objects
    • getAdditionalProperty

      public Object getAdditionalProperty(String key)
      Return the additional (undeclared) property with the specified name.
      Parameters:
      key - name of the property
      Returns:
      an object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • validateJsonElement

      public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOException
      Validates the JSON Element and throws an exception if issues found
      Parameters:
      jsonElement - JSON Element
      Throws:
      IOException - if the JSON Element is invalid with respect to OpsAlertRuleSummary
    • fromJson

      public static OpsAlertRuleSummary fromJson(String jsonString) throws IOException
      Create an instance of OpsAlertRuleSummary given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of OpsAlertRuleSummary
      Throws:
      IOException - if the JSON string is invalid with respect to OpsAlertRuleSummary
    • toJson

      public String toJson()
      Convert an instance of OpsAlertRuleSummary to an JSON string
      Returns:
      JSON string