2020import com .google .gson .stream .JsonReader ;
2121import com .google .gson .stream .JsonWriter ;
2222import com .volcengine .volcobserve .model .ConditionForCreateRuleInput ;
23+ import com .volcengine .volcobserve .model .DimensionConditionsForCreateRuleInput ;
2324import com .volcengine .volcobserve .model .NoDataForCreateRuleInput ;
2425import com .volcengine .volcobserve .model .RecoveryNotifyForCreateRuleInput ;
2526import io .swagger .v3 .oas .annotations .media .Schema ;
@@ -99,6 +100,9 @@ public AlertMethodsEnum read(final JsonReader jsonReader) throws IOException {
99100 @ SerializedName ("Description" )
100101 private String description = null ;
101102
103+ @ SerializedName ("DimensionConditions" )
104+ private DimensionConditionsForCreateRuleInput dimensionConditions = null ;
105+
102106 @ SerializedName ("EffectEndAt" )
103107 private String effectEndAt = null ;
104108
@@ -141,7 +145,9 @@ public AlertMethodsEnum read(final JsonReader jsonReader) throws IOException {
141145 @ JsonAdapter (RuleTypeEnum .Adapter .class )
142146 public enum RuleTypeEnum {
143147 @ SerializedName ("static" )
144- STATIC ("static" );
148+ STATIC ("static" ),
149+ @ SerializedName ("dynamic" )
150+ DYNAMIC ("dynamic" );
145151
146152 private String value ;
147153
@@ -306,6 +312,25 @@ public void setDescription(String description) {
306312 this .description = description ;
307313 }
308314
315+ public CreateRuleRequest dimensionConditions (DimensionConditionsForCreateRuleInput dimensionConditions ) {
316+ this .dimensionConditions = dimensionConditions ;
317+ return this ;
318+ }
319+
320+ /**
321+ * Get dimensionConditions
322+ * @return dimensionConditions
323+ **/
324+ @ Valid
325+ @ Schema (description = "" )
326+ public DimensionConditionsForCreateRuleInput getDimensionConditions () {
327+ return dimensionConditions ;
328+ }
329+
330+ public void setDimensionConditions (DimensionConditionsForCreateRuleInput dimensionConditions ) {
331+ this .dimensionConditions = dimensionConditions ;
332+ }
333+
309334 public CreateRuleRequest effectEndAt (String effectEndAt ) {
310335 this .effectEndAt = effectEndAt ;
311336 return this ;
@@ -664,6 +689,7 @@ public boolean equals(java.lang.Object o) {
664689 Objects .equals (this .conditions , createRuleRequest .conditions ) &&
665690 Objects .equals (this .contactGroupIds , createRuleRequest .contactGroupIds ) &&
666691 Objects .equals (this .description , createRuleRequest .description ) &&
692+ Objects .equals (this .dimensionConditions , createRuleRequest .dimensionConditions ) &&
667693 Objects .equals (this .effectEndAt , createRuleRequest .effectEndAt ) &&
668694 Objects .equals (this .effectStartAt , createRuleRequest .effectStartAt ) &&
669695 Objects .equals (this .enableState , createRuleRequest .enableState ) &&
@@ -685,7 +711,7 @@ public boolean equals(java.lang.Object o) {
685711
686712 @ Override
687713 public int hashCode () {
688- return Objects .hash (alertMethods , conditionOperator , conditions , contactGroupIds , description , effectEndAt , effectStartAt , enableState , evaluationCount , level , multipleConditions , namespace , noData , originalDimensions , recoveryNotify , regions , ruleName , ruleType , silenceTime , subNamespace , webhook , webhookIds );
714+ return Objects .hash (alertMethods , conditionOperator , conditions , contactGroupIds , description , dimensionConditions , effectEndAt , effectStartAt , enableState , evaluationCount , level , multipleConditions , namespace , noData , originalDimensions , recoveryNotify , regions , ruleName , ruleType , silenceTime , subNamespace , webhook , webhookIds );
689715 }
690716
691717
@@ -699,6 +725,7 @@ public String toString() {
699725 sb .append (" conditions: " ).append (toIndentedString (conditions )).append ("\n " );
700726 sb .append (" contactGroupIds: " ).append (toIndentedString (contactGroupIds )).append ("\n " );
701727 sb .append (" description: " ).append (toIndentedString (description )).append ("\n " );
728+ sb .append (" dimensionConditions: " ).append (toIndentedString (dimensionConditions )).append ("\n " );
702729 sb .append (" effectEndAt: " ).append (toIndentedString (effectEndAt )).append ("\n " );
703730 sb .append (" effectStartAt: " ).append (toIndentedString (effectStartAt )).append ("\n " );
704731 sb .append (" enableState: " ).append (toIndentedString (enableState )).append ("\n " );
0 commit comments