Skip to content

Commit 508480c

Browse files
author
BitsAdmin
committed
Merge branch 'volc_observe-Java-2018-01-01-online-564-2024_06_27_15_38_12' into 'integration_2024-07-04_320633038338'
feat: [development task] Volc_Observe-564-Java (711652) See merge request iaasng/volcengine-java-sdk!214
2 parents 9dca90c + 3bdf29c commit 508480c

File tree

71 files changed

+17478
-271
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+17478
-271
lines changed

volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/VolcObserveApi.java

Lines changed: 2665 additions & 271 deletions
Large diffs are not rendered by default.
Lines changed: 209 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,209 @@
1+
/*
2+
* volc_observe
3+
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
4+
*
5+
* OpenAPI spec version: common-version
6+
*
7+
*
8+
* NOTE: This class is auto generated by the swagger code generator program.
9+
* https://github.com/swagger-api/swagger-codegen.git
10+
* Do not edit the class manually.
11+
*/
12+
13+
package com.volcengine.volcobserve.model;
14+
15+
import java.util.Objects;
16+
import java.util.Arrays;
17+
import com.google.gson.TypeAdapter;
18+
import com.google.gson.annotations.JsonAdapter;
19+
import com.google.gson.annotations.SerializedName;
20+
import com.google.gson.stream.JsonReader;
21+
import com.google.gson.stream.JsonWriter;
22+
import io.swagger.v3.oas.annotations.media.Schema;
23+
import java.io.IOException;
24+
import javax.validation.constraints.*;
25+
import javax.validation.Valid;
26+
/**
27+
* ConditionForCreateRuleInput
28+
*/
29+
30+
31+
32+
public class ConditionForCreateRuleInput {
33+
@SerializedName("ComparisonOperator")
34+
private String comparisonOperator = null;
35+
36+
@SerializedName("MetricName")
37+
private String metricName = null;
38+
39+
@SerializedName("MetricUnit")
40+
private String metricUnit = null;
41+
42+
@SerializedName("Period")
43+
private String period = null;
44+
45+
@SerializedName("Statistics")
46+
private String statistics = null;
47+
48+
@SerializedName("Threshold")
49+
private String threshold = null;
50+
51+
public ConditionForCreateRuleInput comparisonOperator(String comparisonOperator) {
52+
this.comparisonOperator = comparisonOperator;
53+
return this;
54+
}
55+
56+
/**
57+
* Get comparisonOperator
58+
* @return comparisonOperator
59+
**/
60+
@Schema(description = "")
61+
public String getComparisonOperator() {
62+
return comparisonOperator;
63+
}
64+
65+
public void setComparisonOperator(String comparisonOperator) {
66+
this.comparisonOperator = comparisonOperator;
67+
}
68+
69+
public ConditionForCreateRuleInput metricName(String metricName) {
70+
this.metricName = metricName;
71+
return this;
72+
}
73+
74+
/**
75+
* Get metricName
76+
* @return metricName
77+
**/
78+
@Schema(description = "")
79+
public String getMetricName() {
80+
return metricName;
81+
}
82+
83+
public void setMetricName(String metricName) {
84+
this.metricName = metricName;
85+
}
86+
87+
public ConditionForCreateRuleInput metricUnit(String metricUnit) {
88+
this.metricUnit = metricUnit;
89+
return this;
90+
}
91+
92+
/**
93+
* Get metricUnit
94+
* @return metricUnit
95+
**/
96+
@Schema(description = "")
97+
public String getMetricUnit() {
98+
return metricUnit;
99+
}
100+
101+
public void setMetricUnit(String metricUnit) {
102+
this.metricUnit = metricUnit;
103+
}
104+
105+
public ConditionForCreateRuleInput period(String period) {
106+
this.period = period;
107+
return this;
108+
}
109+
110+
/**
111+
* Get period
112+
* @return period
113+
**/
114+
@Schema(description = "")
115+
public String getPeriod() {
116+
return period;
117+
}
118+
119+
public void setPeriod(String period) {
120+
this.period = period;
121+
}
122+
123+
public ConditionForCreateRuleInput statistics(String statistics) {
124+
this.statistics = statistics;
125+
return this;
126+
}
127+
128+
/**
129+
* Get statistics
130+
* @return statistics
131+
**/
132+
@Schema(description = "")
133+
public String getStatistics() {
134+
return statistics;
135+
}
136+
137+
public void setStatistics(String statistics) {
138+
this.statistics = statistics;
139+
}
140+
141+
public ConditionForCreateRuleInput threshold(String threshold) {
142+
this.threshold = threshold;
143+
return this;
144+
}
145+
146+
/**
147+
* Get threshold
148+
* @return threshold
149+
**/
150+
@Schema(description = "")
151+
public String getThreshold() {
152+
return threshold;
153+
}
154+
155+
public void setThreshold(String threshold) {
156+
this.threshold = threshold;
157+
}
158+
159+
160+
@Override
161+
public boolean equals(java.lang.Object o) {
162+
if (this == o) {
163+
return true;
164+
}
165+
if (o == null || getClass() != o.getClass()) {
166+
return false;
167+
}
168+
ConditionForCreateRuleInput conditionForCreateRuleInput = (ConditionForCreateRuleInput) o;
169+
return Objects.equals(this.comparisonOperator, conditionForCreateRuleInput.comparisonOperator) &&
170+
Objects.equals(this.metricName, conditionForCreateRuleInput.metricName) &&
171+
Objects.equals(this.metricUnit, conditionForCreateRuleInput.metricUnit) &&
172+
Objects.equals(this.period, conditionForCreateRuleInput.period) &&
173+
Objects.equals(this.statistics, conditionForCreateRuleInput.statistics) &&
174+
Objects.equals(this.threshold, conditionForCreateRuleInput.threshold);
175+
}
176+
177+
@Override
178+
public int hashCode() {
179+
return Objects.hash(comparisonOperator, metricName, metricUnit, period, statistics, threshold);
180+
}
181+
182+
183+
@Override
184+
public String toString() {
185+
StringBuilder sb = new StringBuilder();
186+
sb.append("class ConditionForCreateRuleInput {\n");
187+
188+
sb.append(" comparisonOperator: ").append(toIndentedString(comparisonOperator)).append("\n");
189+
sb.append(" metricName: ").append(toIndentedString(metricName)).append("\n");
190+
sb.append(" metricUnit: ").append(toIndentedString(metricUnit)).append("\n");
191+
sb.append(" period: ").append(toIndentedString(period)).append("\n");
192+
sb.append(" statistics: ").append(toIndentedString(statistics)).append("\n");
193+
sb.append(" threshold: ").append(toIndentedString(threshold)).append("\n");
194+
sb.append("}");
195+
return sb.toString();
196+
}
197+
198+
/**
199+
* Convert the given object to string with each line indented by 4 spaces
200+
* (except the first line).
201+
*/
202+
private String toIndentedString(java.lang.Object o) {
203+
if (o == null) {
204+
return "null";
205+
}
206+
return o.toString().replace("\n", "\n ");
207+
}
208+
209+
}
Lines changed: 186 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,186 @@
1+
/*
2+
* volc_observe
3+
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
4+
*
5+
* OpenAPI spec version: common-version
6+
*
7+
*
8+
* NOTE: This class is auto generated by the swagger code generator program.
9+
* https://github.com/swagger-api/swagger-codegen.git
10+
* Do not edit the class manually.
11+
*/
12+
13+
package com.volcengine.volcobserve.model;
14+
15+
import java.util.Objects;
16+
import java.util.Arrays;
17+
import com.google.gson.TypeAdapter;
18+
import com.google.gson.annotations.JsonAdapter;
19+
import com.google.gson.annotations.SerializedName;
20+
import com.google.gson.stream.JsonReader;
21+
import com.google.gson.stream.JsonWriter;
22+
import io.swagger.v3.oas.annotations.media.Schema;
23+
import java.io.IOException;
24+
import javax.validation.constraints.*;
25+
import javax.validation.Valid;
26+
/**
27+
* ConditionForListRulesByIdsOutput
28+
*/
29+
30+
31+
32+
public class ConditionForListRulesByIdsOutput {
33+
@SerializedName("ComparisonOperator")
34+
private String comparisonOperator = null;
35+
36+
@SerializedName("MetricName")
37+
private String metricName = null;
38+
39+
@SerializedName("MetricUnit")
40+
private String metricUnit = null;
41+
42+
@SerializedName("Statistics")
43+
private String statistics = null;
44+
45+
@SerializedName("Threshold")
46+
private String threshold = null;
47+
48+
public ConditionForListRulesByIdsOutput comparisonOperator(String comparisonOperator) {
49+
this.comparisonOperator = comparisonOperator;
50+
return this;
51+
}
52+
53+
/**
54+
* Get comparisonOperator
55+
* @return comparisonOperator
56+
**/
57+
@Schema(description = "")
58+
public String getComparisonOperator() {
59+
return comparisonOperator;
60+
}
61+
62+
public void setComparisonOperator(String comparisonOperator) {
63+
this.comparisonOperator = comparisonOperator;
64+
}
65+
66+
public ConditionForListRulesByIdsOutput metricName(String metricName) {
67+
this.metricName = metricName;
68+
return this;
69+
}
70+
71+
/**
72+
* Get metricName
73+
* @return metricName
74+
**/
75+
@Schema(description = "")
76+
public String getMetricName() {
77+
return metricName;
78+
}
79+
80+
public void setMetricName(String metricName) {
81+
this.metricName = metricName;
82+
}
83+
84+
public ConditionForListRulesByIdsOutput metricUnit(String metricUnit) {
85+
this.metricUnit = metricUnit;
86+
return this;
87+
}
88+
89+
/**
90+
* Get metricUnit
91+
* @return metricUnit
92+
**/
93+
@Schema(description = "")
94+
public String getMetricUnit() {
95+
return metricUnit;
96+
}
97+
98+
public void setMetricUnit(String metricUnit) {
99+
this.metricUnit = metricUnit;
100+
}
101+
102+
public ConditionForListRulesByIdsOutput statistics(String statistics) {
103+
this.statistics = statistics;
104+
return this;
105+
}
106+
107+
/**
108+
* Get statistics
109+
* @return statistics
110+
**/
111+
@Schema(description = "")
112+
public String getStatistics() {
113+
return statistics;
114+
}
115+
116+
public void setStatistics(String statistics) {
117+
this.statistics = statistics;
118+
}
119+
120+
public ConditionForListRulesByIdsOutput threshold(String threshold) {
121+
this.threshold = threshold;
122+
return this;
123+
}
124+
125+
/**
126+
* Get threshold
127+
* @return threshold
128+
**/
129+
@Schema(description = "")
130+
public String getThreshold() {
131+
return threshold;
132+
}
133+
134+
public void setThreshold(String threshold) {
135+
this.threshold = threshold;
136+
}
137+
138+
139+
@Override
140+
public boolean equals(java.lang.Object o) {
141+
if (this == o) {
142+
return true;
143+
}
144+
if (o == null || getClass() != o.getClass()) {
145+
return false;
146+
}
147+
ConditionForListRulesByIdsOutput conditionForListRulesByIdsOutput = (ConditionForListRulesByIdsOutput) o;
148+
return Objects.equals(this.comparisonOperator, conditionForListRulesByIdsOutput.comparisonOperator) &&
149+
Objects.equals(this.metricName, conditionForListRulesByIdsOutput.metricName) &&
150+
Objects.equals(this.metricUnit, conditionForListRulesByIdsOutput.metricUnit) &&
151+
Objects.equals(this.statistics, conditionForListRulesByIdsOutput.statistics) &&
152+
Objects.equals(this.threshold, conditionForListRulesByIdsOutput.threshold);
153+
}
154+
155+
@Override
156+
public int hashCode() {
157+
return Objects.hash(comparisonOperator, metricName, metricUnit, statistics, threshold);
158+
}
159+
160+
161+
@Override
162+
public String toString() {
163+
StringBuilder sb = new StringBuilder();
164+
sb.append("class ConditionForListRulesByIdsOutput {\n");
165+
166+
sb.append(" comparisonOperator: ").append(toIndentedString(comparisonOperator)).append("\n");
167+
sb.append(" metricName: ").append(toIndentedString(metricName)).append("\n");
168+
sb.append(" metricUnit: ").append(toIndentedString(metricUnit)).append("\n");
169+
sb.append(" statistics: ").append(toIndentedString(statistics)).append("\n");
170+
sb.append(" threshold: ").append(toIndentedString(threshold)).append("\n");
171+
sb.append("}");
172+
return sb.toString();
173+
}
174+
175+
/**
176+
* Convert the given object to string with each line indented by 4 spaces
177+
* (except the first line).
178+
*/
179+
private String toIndentedString(java.lang.Object o) {
180+
if (o == null) {
181+
return "null";
182+
}
183+
return o.toString().replace("\n", "\n ");
184+
}
185+
186+
}

0 commit comments

Comments
 (0)