Package ai.shipeasy.admin.model
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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumHow `observedValue` is compared to `threshold`.static class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncomparator(OpsAlertRuleSummary.ComparatorEnum comparator) booleanstatic OpsAlertRuleSummaryCreate an instance of OpsAlertRuleSummary given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.How `observedValue` is compared to `threshold`.getId()Alert-rule id.getName()Alert-rule name.The threshold value the rule fires on.Rolling evaluation window in hours.inthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetComparator(OpsAlertRuleSummary.ComparatorEnum comparator) voidvoidvoidsetThreshold(BigDecimal threshold) voidsetWindowHours(BigDecimal windowHours) threshold(BigDecimal threshold) toJson()Convert an instance of OpsAlertRuleSummary to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues foundwindowHours(BigDecimal windowHours)
-
Field Details
-
SERIALIZED_NAME_ID
- See Also:
-
SERIALIZED_NAME_NAME
- See Also:
-
SERIALIZED_NAME_COMPARATOR
- See Also:
-
SERIALIZED_NAME_THRESHOLD
- See Also:
-
SERIALIZED_NAME_WINDOW_HOURS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
OpsAlertRuleSummary
public OpsAlertRuleSummary()
-
-
Method Details
-
id
-
getId
Alert-rule id.- Returns:
- id
-
setId
-
name
-
getName
Alert-rule name.- Returns:
- name
-
setName
-
comparator
-
getComparator
How `observedValue` is compared to `threshold`.- Returns:
- comparator
-
setComparator
-
threshold
-
getThreshold
The threshold value the rule fires on.- Returns:
- threshold
-
setThreshold
-
windowHours
-
getWindowHours
Rolling evaluation window in hours.- Returns:
- windowHours
-
setWindowHours
-
putAdditionalProperty
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 propertyvalue- value of the property- Returns:
- the OpsAlertRuleSummary instance itself
-
getAdditionalProperties
Return the additional (undeclared) property.- Returns:
- a map of objects
-
getAdditionalProperty
Return the additional (undeclared) property with the specified name.- Parameters:
key- name of the property- Returns:
- an object
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
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
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
Convert an instance of OpsAlertRuleSummary to an JSON string- Returns:
- JSON string
-