Package ai.shipeasy.admin.model
Class ListAlertRulesResponseInner
java.lang.Object
ai.shipeasy.admin.model.ListAlertRulesResponseInner
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class ListAlertRulesResponseInner
extends Object
One metric-threshold alert rule.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumHow the metric value is compared to the threshold (gt/gte/lt/lte).static classstatic enumSeverity of the raised alert. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncomparator(ListAlertRulesResponseInner.ComparatorEnum comparator) booleanstatic ListAlertRulesResponseInnerCreate an instance of ListAlertRulesResponseInner given an JSON stringHow the metric value is compared to the threshold (gt/gte/lt/lte).ISO-8601 timestamp of creation.Whether the rule is evaluated by the cron.getId()Stable opaque alert-rule id.Id of the metric the rule evaluates.Display name of the bound metric, or `null` if the metric no longer exists.getName()Human label for the rule.Get notifySeverity of the raised alert.Threshold the metric value is compared against.ISO-8601 timestamp of the last update.Lookback window (hours) the metric is aggregated over.inthashCode()metricName(String metricName) notify(NotificationTarget notify) voidvoidsetCreatedAt(String createdAt) voidsetEnabled(Boolean enabled) voidvoidsetMetricId(String metricId) voidsetMetricName(String metricName) voidvoidsetNotify(NotificationTarget notify) voidvoidsetThreshold(BigDecimal threshold) voidsetUpdatedAt(String updatedAt) voidsetWindowHours(Integer windowHours) threshold(BigDecimal threshold) toJson()Convert an instance of ListAlertRulesResponseInner to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues foundwindowHours(Integer windowHours)
-
Field Details
-
SERIALIZED_NAME_ID
- See Also:
-
SERIALIZED_NAME_NAME
- See Also:
-
SERIALIZED_NAME_METRIC_ID
- See Also:
-
SERIALIZED_NAME_METRIC_NAME
- See Also:
-
SERIALIZED_NAME_COMPARATOR
- See Also:
-
SERIALIZED_NAME_THRESHOLD
- See Also:
-
SERIALIZED_NAME_WINDOW_HOURS
- See Also:
-
SERIALIZED_NAME_SEVERITY
- See Also:
-
SERIALIZED_NAME_ENABLED
- See Also:
-
SERIALIZED_NAME_NOTIFY
- See Also:
-
SERIALIZED_NAME_CREATED_AT
- See Also:
-
SERIALIZED_NAME_UPDATED_AT
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
ListAlertRulesResponseInner
public ListAlertRulesResponseInner()
-
-
Method Details
-
id
-
getId
Stable opaque alert-rule id.- Returns:
- id
-
setId
-
name
-
getName
Human label for the rule.- Returns:
- name
-
setName
-
metricId
-
getMetricId
Id of the metric the rule evaluates. Immutable after create.- Returns:
- metricId
-
setMetricId
-
metricName
-
getMetricName
Display name of the bound metric, or `null` if the metric no longer exists.- Returns:
- metricName
-
setMetricName
-
comparator
public ListAlertRulesResponseInner comparator(@Nonnull ListAlertRulesResponseInner.ComparatorEnum comparator) -
getComparator
How the metric value is compared to the threshold (gt/gte/lt/lte).- Returns:
- comparator
-
setComparator
-
threshold
-
getThreshold
Threshold the metric value is compared against.- Returns:
- threshold
-
setThreshold
-
windowHours
-
getWindowHours
Lookback window (hours) the metric is aggregated over. minimum: -9007199254740991 maximum: 9007199254740991- Returns:
- windowHours
-
setWindowHours
-
severity
public ListAlertRulesResponseInner severity(@Nonnull ListAlertRulesResponseInner.SeverityEnum severity) -
getSeverity
Severity of the raised alert.- Returns:
- severity
-
setSeverity
-
enabled
-
getEnabled
Whether the rule is evaluated by the cron.- Returns:
- enabled
-
setEnabled
-
notify
-
getNotify
Get notify- Returns:
- notify
-
setNotify
-
createdAt
-
getCreatedAt
ISO-8601 timestamp of creation.- Returns:
- createdAt
-
setCreatedAt
-
updatedAt
-
getUpdatedAt
ISO-8601 timestamp of the last update.- Returns:
- updatedAt
-
setUpdatedAt
-
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 ListAlertRulesResponseInner
-
fromJson
Create an instance of ListAlertRulesResponseInner given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ListAlertRulesResponseInner
- Throws:
IOException- if the JSON string is invalid with respect to ListAlertRulesResponseInner
-
toJson
Convert an instance of ListAlertRulesResponseInner to an JSON string- Returns:
- JSON string
-