Skip to content

Commit 7c29d50

Browse files
author
BitsAdmin
committed
Merge branch 'volc_observe-Java-2018-01-01-online-1164-2025_05_15_11_39_19' into 'integration_2025-05-15_905315453698'
feat: [development task] Volc_Observe-1164-Java (1224786) See merge request iaasng/volcengine-java-sdk!481
2 parents 0d146fe + 6c8ccce commit 7c29d50

27 files changed

+4745
-30
lines changed

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

Lines changed: 660 additions & 30 deletions
Large diffs are not rendered by default.
Lines changed: 216 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,216 @@
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 com.volcengine.volcobserve.model.EffectTimeForCreateSilencePolicyInput;
23+
import com.volcengine.volcobserve.model.SilenceConditionsForCreateSilencePolicyInput;
24+
import io.swagger.v3.oas.annotations.media.Schema;
25+
import java.io.IOException;
26+
import javax.validation.constraints.*;
27+
import javax.validation.Valid;
28+
/**
29+
* CreateSilencePolicyRequest
30+
*/
31+
32+
33+
34+
public class CreateSilencePolicyRequest {
35+
@SerializedName("Description")
36+
private String description = null;
37+
38+
@SerializedName("EffectTime")
39+
private EffectTimeForCreateSilencePolicyInput effectTime = null;
40+
41+
@SerializedName("Name")
42+
private String name = null;
43+
44+
@SerializedName("Namespace")
45+
private String namespace = null;
46+
47+
@SerializedName("SilenceConditions")
48+
private SilenceConditionsForCreateSilencePolicyInput silenceConditions = null;
49+
50+
@SerializedName("SilenceType")
51+
private String silenceType = null;
52+
53+
public CreateSilencePolicyRequest description(String description) {
54+
this.description = description;
55+
return this;
56+
}
57+
58+
/**
59+
* Get description
60+
* @return description
61+
**/
62+
@Schema(description = "")
63+
public String getDescription() {
64+
return description;
65+
}
66+
67+
public void setDescription(String description) {
68+
this.description = description;
69+
}
70+
71+
public CreateSilencePolicyRequest effectTime(EffectTimeForCreateSilencePolicyInput effectTime) {
72+
this.effectTime = effectTime;
73+
return this;
74+
}
75+
76+
/**
77+
* Get effectTime
78+
* @return effectTime
79+
**/
80+
@Valid
81+
@Schema(description = "")
82+
public EffectTimeForCreateSilencePolicyInput getEffectTime() {
83+
return effectTime;
84+
}
85+
86+
public void setEffectTime(EffectTimeForCreateSilencePolicyInput effectTime) {
87+
this.effectTime = effectTime;
88+
}
89+
90+
public CreateSilencePolicyRequest name(String name) {
91+
this.name = name;
92+
return this;
93+
}
94+
95+
/**
96+
* Get name
97+
* @return name
98+
**/
99+
@NotNull
100+
@Schema(required = true, description = "")
101+
public String getName() {
102+
return name;
103+
}
104+
105+
public void setName(String name) {
106+
this.name = name;
107+
}
108+
109+
public CreateSilencePolicyRequest namespace(String namespace) {
110+
this.namespace = namespace;
111+
return this;
112+
}
113+
114+
/**
115+
* Get namespace
116+
* @return namespace
117+
**/
118+
@NotNull
119+
@Schema(required = true, description = "")
120+
public String getNamespace() {
121+
return namespace;
122+
}
123+
124+
public void setNamespace(String namespace) {
125+
this.namespace = namespace;
126+
}
127+
128+
public CreateSilencePolicyRequest silenceConditions(SilenceConditionsForCreateSilencePolicyInput silenceConditions) {
129+
this.silenceConditions = silenceConditions;
130+
return this;
131+
}
132+
133+
/**
134+
* Get silenceConditions
135+
* @return silenceConditions
136+
**/
137+
@Valid
138+
@Schema(description = "")
139+
public SilenceConditionsForCreateSilencePolicyInput getSilenceConditions() {
140+
return silenceConditions;
141+
}
142+
143+
public void setSilenceConditions(SilenceConditionsForCreateSilencePolicyInput silenceConditions) {
144+
this.silenceConditions = silenceConditions;
145+
}
146+
147+
public CreateSilencePolicyRequest silenceType(String silenceType) {
148+
this.silenceType = silenceType;
149+
return this;
150+
}
151+
152+
/**
153+
* Get silenceType
154+
* @return silenceType
155+
**/
156+
@NotNull
157+
@Schema(required = true, description = "")
158+
public String getSilenceType() {
159+
return silenceType;
160+
}
161+
162+
public void setSilenceType(String silenceType) {
163+
this.silenceType = silenceType;
164+
}
165+
166+
167+
@Override
168+
public boolean equals(java.lang.Object o) {
169+
if (this == o) {
170+
return true;
171+
}
172+
if (o == null || getClass() != o.getClass()) {
173+
return false;
174+
}
175+
CreateSilencePolicyRequest createSilencePolicyRequest = (CreateSilencePolicyRequest) o;
176+
return Objects.equals(this.description, createSilencePolicyRequest.description) &&
177+
Objects.equals(this.effectTime, createSilencePolicyRequest.effectTime) &&
178+
Objects.equals(this.name, createSilencePolicyRequest.name) &&
179+
Objects.equals(this.namespace, createSilencePolicyRequest.namespace) &&
180+
Objects.equals(this.silenceConditions, createSilencePolicyRequest.silenceConditions) &&
181+
Objects.equals(this.silenceType, createSilencePolicyRequest.silenceType);
182+
}
183+
184+
@Override
185+
public int hashCode() {
186+
return Objects.hash(description, effectTime, name, namespace, silenceConditions, silenceType);
187+
}
188+
189+
190+
@Override
191+
public String toString() {
192+
StringBuilder sb = new StringBuilder();
193+
sb.append("class CreateSilencePolicyRequest {\n");
194+
195+
sb.append(" description: ").append(toIndentedString(description)).append("\n");
196+
sb.append(" effectTime: ").append(toIndentedString(effectTime)).append("\n");
197+
sb.append(" name: ").append(toIndentedString(name)).append("\n");
198+
sb.append(" namespace: ").append(toIndentedString(namespace)).append("\n");
199+
sb.append(" silenceConditions: ").append(toIndentedString(silenceConditions)).append("\n");
200+
sb.append(" silenceType: ").append(toIndentedString(silenceType)).append("\n");
201+
sb.append("}");
202+
return sb.toString();
203+
}
204+
205+
/**
206+
* Convert the given object to string with each line indented by 4 spaces
207+
* (except the first line).
208+
*/
209+
private String toIndentedString(java.lang.Object o) {
210+
if (o == null) {
211+
return "null";
212+
}
213+
return o.toString().replace("\n", "\n ");
214+
}
215+
216+
}
Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
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 java.util.ArrayList;
25+
import java.util.List;
26+
import javax.validation.constraints.*;
27+
import javax.validation.Valid;
28+
/**
29+
* CreateSilencePolicyResponse
30+
*/
31+
32+
33+
34+
public class CreateSilencePolicyResponse extends com.volcengine.model.AbstractResponse {
35+
@SerializedName("Data")
36+
private List<String> data = null;
37+
38+
public CreateSilencePolicyResponse data(List<String> data) {
39+
this.data = data;
40+
return this;
41+
}
42+
43+
public CreateSilencePolicyResponse addDataItem(String dataItem) {
44+
if (this.data == null) {
45+
this.data = new ArrayList<String>();
46+
}
47+
this.data.add(dataItem);
48+
return this;
49+
}
50+
51+
/**
52+
* Get data
53+
* @return data
54+
**/
55+
@Schema(description = "")
56+
public List<String> getData() {
57+
return data;
58+
}
59+
60+
public void setData(List<String> data) {
61+
this.data = data;
62+
}
63+
64+
65+
@Override
66+
public boolean equals(java.lang.Object o) {
67+
if (this == o) {
68+
return true;
69+
}
70+
if (o == null || getClass() != o.getClass()) {
71+
return false;
72+
}
73+
CreateSilencePolicyResponse createSilencePolicyResponse = (CreateSilencePolicyResponse) o;
74+
return Objects.equals(this.data, createSilencePolicyResponse.data);
75+
}
76+
77+
@Override
78+
public int hashCode() {
79+
return Objects.hash(data);
80+
}
81+
82+
83+
@Override
84+
public String toString() {
85+
StringBuilder sb = new StringBuilder();
86+
sb.append("class CreateSilencePolicyResponse {\n");
87+
88+
sb.append(" data: ").append(toIndentedString(data)).append("\n");
89+
sb.append("}");
90+
return sb.toString();
91+
}
92+
93+
/**
94+
* Convert the given object to string with each line indented by 4 spaces
95+
* (except the first line).
96+
*/
97+
private String toIndentedString(java.lang.Object o) {
98+
if (o == null) {
99+
return "null";
100+
}
101+
return o.toString().replace("\n", "\n ");
102+
}
103+
104+
}

0 commit comments

Comments
 (0)