Skip to content

Commit 66dd955

Browse files
author
BitsAdmin
committed
Merge branch 'volc_observe-Java-2018-01-01-online-883-2024_12_26_16_21_03' into 'integration_2025-01-02_663693108482'
feat: [development task] Volc_Observe-883-Java (950989) See merge request iaasng/volcengine-java-sdk!346
2 parents 5ed8cfc + 771aae2 commit 66dd955

File tree

4 files changed

+96
-4
lines changed

4 files changed

+96
-4
lines changed

volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/CreateRuleRequest.java

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,9 @@ public AlertMethodsEnum read(final JsonReader jsonReader) throws IOException {
130130
@SerializedName("OriginalDimensions")
131131
private Map<String, List<String>> originalDimensions = null;
132132

133+
@SerializedName("ProjectName")
134+
private String projectName = null;
135+
133136
@SerializedName("RecoveryNotify")
134137
private RecoveryNotifyForCreateRuleInput recoveryNotify = null;
135138

@@ -509,6 +512,24 @@ public void setOriginalDimensions(Map<String, List<String>> originalDimensions)
509512
this.originalDimensions = originalDimensions;
510513
}
511514

515+
public CreateRuleRequest projectName(String projectName) {
516+
this.projectName = projectName;
517+
return this;
518+
}
519+
520+
/**
521+
* Get projectName
522+
* @return projectName
523+
**/
524+
@Schema(description = "")
525+
public String getProjectName() {
526+
return projectName;
527+
}
528+
529+
public void setProjectName(String projectName) {
530+
this.projectName = projectName;
531+
}
532+
512533
public CreateRuleRequest recoveryNotify(RecoveryNotifyForCreateRuleInput recoveryNotify) {
513534
this.recoveryNotify = recoveryNotify;
514535
return this;
@@ -699,6 +720,7 @@ public boolean equals(java.lang.Object o) {
699720
Objects.equals(this.namespace, createRuleRequest.namespace) &&
700721
Objects.equals(this.noData, createRuleRequest.noData) &&
701722
Objects.equals(this.originalDimensions, createRuleRequest.originalDimensions) &&
723+
Objects.equals(this.projectName, createRuleRequest.projectName) &&
702724
Objects.equals(this.recoveryNotify, createRuleRequest.recoveryNotify) &&
703725
Objects.equals(this.regions, createRuleRequest.regions) &&
704726
Objects.equals(this.ruleName, createRuleRequest.ruleName) &&
@@ -711,7 +733,7 @@ public boolean equals(java.lang.Object o) {
711733

712734
@Override
713735
public int hashCode() {
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);
736+
return Objects.hash(alertMethods, conditionOperator, conditions, contactGroupIds, description, dimensionConditions, effectEndAt, effectStartAt, enableState, evaluationCount, level, multipleConditions, namespace, noData, originalDimensions, projectName, recoveryNotify, regions, ruleName, ruleType, silenceTime, subNamespace, webhook, webhookIds);
715737
}
716738

717739

@@ -735,6 +757,7 @@ public String toString() {
735757
sb.append(" namespace: ").append(toIndentedString(namespace)).append("\n");
736758
sb.append(" noData: ").append(toIndentedString(noData)).append("\n");
737759
sb.append(" originalDimensions: ").append(toIndentedString(originalDimensions)).append("\n");
760+
sb.append(" projectName: ").append(toIndentedString(projectName)).append("\n");
738761
sb.append(" recoveryNotify: ").append(toIndentedString(recoveryNotify)).append("\n");
739762
sb.append(" regions: ").append(toIndentedString(regions)).append("\n");
740763
sb.append(" ruleName: ").append(toIndentedString(ruleName)).append("\n");

volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/DataForListRulesByIdsOutput.java

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,9 @@ public class DataForListRulesByIdsOutput {
8888
@SerializedName("OriginalDimensions")
8989
private Map<String, List<String>> originalDimensions = null;
9090

91+
@SerializedName("ProjectName")
92+
private String projectName = null;
93+
9194
@SerializedName("RecoveryNotify")
9295
private RecoveryNotifyForListRulesByIdsOutput recoveryNotify = null;
9396

@@ -456,6 +459,24 @@ public void setOriginalDimensions(Map<String, List<String>> originalDimensions)
456459
this.originalDimensions = originalDimensions;
457460
}
458461

462+
public DataForListRulesByIdsOutput projectName(String projectName) {
463+
this.projectName = projectName;
464+
return this;
465+
}
466+
467+
/**
468+
* Get projectName
469+
* @return projectName
470+
**/
471+
@Schema(description = "")
472+
public String getProjectName() {
473+
return projectName;
474+
}
475+
476+
public void setProjectName(String projectName) {
477+
this.projectName = projectName;
478+
}
479+
459480
public DataForListRulesByIdsOutput recoveryNotify(RecoveryNotifyForListRulesByIdsOutput recoveryNotify) {
460481
this.recoveryNotify = recoveryNotify;
461482
return this;
@@ -662,6 +683,7 @@ public boolean equals(java.lang.Object o) {
662683
Objects.equals(this.multipleConditions, dataForListRulesByIdsOutput.multipleConditions) &&
663684
Objects.equals(this.namespace, dataForListRulesByIdsOutput.namespace) &&
664685
Objects.equals(this.originalDimensions, dataForListRulesByIdsOutput.originalDimensions) &&
686+
Objects.equals(this.projectName, dataForListRulesByIdsOutput.projectName) &&
665687
Objects.equals(this.recoveryNotify, dataForListRulesByIdsOutput.recoveryNotify) &&
666688
Objects.equals(this.regions, dataForListRulesByIdsOutput.regions) &&
667689
Objects.equals(this.ruleName, dataForListRulesByIdsOutput.ruleName) &&
@@ -675,7 +697,7 @@ public boolean equals(java.lang.Object o) {
675697

676698
@Override
677699
public int hashCode() {
678-
return Objects.hash(alertMethods, alertState, conditionOperator, conditions, contactGroupIds, createdAt, description, dimensionConditions, effectEndAt, effectStartAt, enableState, evaluationCount, id, level, multipleConditions, namespace, originalDimensions, recoveryNotify, regions, ruleName, ruleType, silenceTime, subNamespace, updatedAt, webHook, webhookIds);
700+
return Objects.hash(alertMethods, alertState, conditionOperator, conditions, contactGroupIds, createdAt, description, dimensionConditions, effectEndAt, effectStartAt, enableState, evaluationCount, id, level, multipleConditions, namespace, originalDimensions, projectName, recoveryNotify, regions, ruleName, ruleType, silenceTime, subNamespace, updatedAt, webHook, webhookIds);
679701
}
680702

681703

@@ -701,6 +723,7 @@ public String toString() {
701723
sb.append(" multipleConditions: ").append(toIndentedString(multipleConditions)).append("\n");
702724
sb.append(" namespace: ").append(toIndentedString(namespace)).append("\n");
703725
sb.append(" originalDimensions: ").append(toIndentedString(originalDimensions)).append("\n");
726+
sb.append(" projectName: ").append(toIndentedString(projectName)).append("\n");
704727
sb.append(" recoveryNotify: ").append(toIndentedString(recoveryNotify)).append("\n");
705728
sb.append(" regions: ").append(toIndentedString(regions)).append("\n");
706729
sb.append(" ruleName: ").append(toIndentedString(ruleName)).append("\n");

volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/DataForListRulesOutput.java

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,9 @@ public class DataForListRulesOutput {
8888
@SerializedName("OriginalDimensions")
8989
private Map<String, List<String>> originalDimensions = null;
9090

91+
@SerializedName("ProjectName")
92+
private String projectName = null;
93+
9194
@SerializedName("RecoveryNotify")
9295
private RecoveryNotifyForListRulesOutput recoveryNotify = null;
9396

@@ -456,6 +459,24 @@ public void setOriginalDimensions(Map<String, List<String>> originalDimensions)
456459
this.originalDimensions = originalDimensions;
457460
}
458461

462+
public DataForListRulesOutput projectName(String projectName) {
463+
this.projectName = projectName;
464+
return this;
465+
}
466+
467+
/**
468+
* Get projectName
469+
* @return projectName
470+
**/
471+
@Schema(description = "")
472+
public String getProjectName() {
473+
return projectName;
474+
}
475+
476+
public void setProjectName(String projectName) {
477+
this.projectName = projectName;
478+
}
479+
459480
public DataForListRulesOutput recoveryNotify(RecoveryNotifyForListRulesOutput recoveryNotify) {
460481
this.recoveryNotify = recoveryNotify;
461482
return this;
@@ -662,6 +683,7 @@ public boolean equals(java.lang.Object o) {
662683
Objects.equals(this.multipleConditions, dataForListRulesOutput.multipleConditions) &&
663684
Objects.equals(this.namespace, dataForListRulesOutput.namespace) &&
664685
Objects.equals(this.originalDimensions, dataForListRulesOutput.originalDimensions) &&
686+
Objects.equals(this.projectName, dataForListRulesOutput.projectName) &&
665687
Objects.equals(this.recoveryNotify, dataForListRulesOutput.recoveryNotify) &&
666688
Objects.equals(this.regions, dataForListRulesOutput.regions) &&
667689
Objects.equals(this.ruleName, dataForListRulesOutput.ruleName) &&
@@ -675,7 +697,7 @@ public boolean equals(java.lang.Object o) {
675697

676698
@Override
677699
public int hashCode() {
678-
return Objects.hash(alertMethods, alertState, conditionOperator, conditions, contactGroupIds, createdAt, description, dimensionConditions, effectEndAt, effectStartAt, enableState, evaluationCount, id, level, multipleConditions, namespace, originalDimensions, recoveryNotify, regions, ruleName, ruleType, silenceTime, subNamespace, updatedAt, webHook, webhookIds);
700+
return Objects.hash(alertMethods, alertState, conditionOperator, conditions, contactGroupIds, createdAt, description, dimensionConditions, effectEndAt, effectStartAt, enableState, evaluationCount, id, level, multipleConditions, namespace, originalDimensions, projectName, recoveryNotify, regions, ruleName, ruleType, silenceTime, subNamespace, updatedAt, webHook, webhookIds);
679701
}
680702

681703

@@ -701,6 +723,7 @@ public String toString() {
701723
sb.append(" multipleConditions: ").append(toIndentedString(multipleConditions)).append("\n");
702724
sb.append(" namespace: ").append(toIndentedString(namespace)).append("\n");
703725
sb.append(" originalDimensions: ").append(toIndentedString(originalDimensions)).append("\n");
726+
sb.append(" projectName: ").append(toIndentedString(projectName)).append("\n");
704727
sb.append(" recoveryNotify: ").append(toIndentedString(recoveryNotify)).append("\n");
705728
sb.append(" regions: ").append(toIndentedString(regions)).append("\n");
706729
sb.append(" ruleName: ").append(toIndentedString(ruleName)).append("\n");

volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/ListRulesRequest.java

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ public class ListRulesRequest {
5050
@SerializedName("PageSize")
5151
private Integer pageSize = null;
5252

53+
@SerializedName("ProjectName")
54+
private String projectName = null;
55+
5356
@SerializedName("RuleName")
5457
private String ruleName = null;
5558

@@ -193,6 +196,24 @@ public void setPageSize(Integer pageSize) {
193196
this.pageSize = pageSize;
194197
}
195198

199+
public ListRulesRequest projectName(String projectName) {
200+
this.projectName = projectName;
201+
return this;
202+
}
203+
204+
/**
205+
* Get projectName
206+
* @return projectName
207+
**/
208+
@Schema(description = "")
209+
public String getProjectName() {
210+
return projectName;
211+
}
212+
213+
public void setProjectName(String projectName) {
214+
this.projectName = projectName;
215+
}
216+
196217
public ListRulesRequest ruleName(String ruleName) {
197218
this.ruleName = ruleName;
198219
return this;
@@ -227,12 +248,13 @@ public boolean equals(java.lang.Object o) {
227248
Objects.equals(this.namespace, listRulesRequest.namespace) &&
228249
Objects.equals(this.pageNumber, listRulesRequest.pageNumber) &&
229250
Objects.equals(this.pageSize, listRulesRequest.pageSize) &&
251+
Objects.equals(this.projectName, listRulesRequest.projectName) &&
230252
Objects.equals(this.ruleName, listRulesRequest.ruleName);
231253
}
232254

233255
@Override
234256
public int hashCode() {
235-
return Objects.hash(alertState, enableState, level, namespace, pageNumber, pageSize, ruleName);
257+
return Objects.hash(alertState, enableState, level, namespace, pageNumber, pageSize, projectName, ruleName);
236258
}
237259

238260

@@ -247,6 +269,7 @@ public String toString() {
247269
sb.append(" namespace: ").append(toIndentedString(namespace)).append("\n");
248270
sb.append(" pageNumber: ").append(toIndentedString(pageNumber)).append("\n");
249271
sb.append(" pageSize: ").append(toIndentedString(pageSize)).append("\n");
272+
sb.append(" projectName: ").append(toIndentedString(projectName)).append("\n");
250273
sb.append(" ruleName: ").append(toIndentedString(ruleName)).append("\n");
251274
sb.append("}");
252275
return sb.toString();

0 commit comments

Comments
 (0)