Skip to content

Commit 09bd26c

Browse files
author
BitsAdmin
committed
Merge branch 'volc_observe-Java-2018-01-01-online-1304-2025_06_19_11_16_34' into 'integration_2025-06-19_956533420802'
feat: [development task] Volc_Observe-1304-Java (1359901) See merge request iaasng/volcengine-java-sdk!530
2 parents 1960dff + ae2bdda commit 09bd26c

File tree

46 files changed

+8896
-60
lines changed

Some content is hidden

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

46 files changed

+8896
-60
lines changed

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

Lines changed: 1066 additions & 58 deletions
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,258 @@
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+
* AlertNotificationForListPresetAlertTemplatesOutput
30+
*/
31+
32+
33+
34+
public class AlertNotificationForListPresetAlertTemplatesOutput {
35+
@SerializedName("AlertMethods")
36+
private List<String> alertMethods = null;
37+
38+
@SerializedName("ContactGroupIds")
39+
private List<String> contactGroupIds = null;
40+
41+
@SerializedName("EffectEndAt")
42+
private String effectEndAt = null;
43+
44+
@SerializedName("EffectStartAt")
45+
private String effectStartAt = null;
46+
47+
@SerializedName("NotificationId")
48+
private String notificationId = null;
49+
50+
@SerializedName("Webhook")
51+
private String webhook = null;
52+
53+
@SerializedName("WebhookIds")
54+
private List<String> webhookIds = null;
55+
56+
public AlertNotificationForListPresetAlertTemplatesOutput alertMethods(List<String> alertMethods) {
57+
this.alertMethods = alertMethods;
58+
return this;
59+
}
60+
61+
public AlertNotificationForListPresetAlertTemplatesOutput addAlertMethodsItem(String alertMethodsItem) {
62+
if (this.alertMethods == null) {
63+
this.alertMethods = new ArrayList<String>();
64+
}
65+
this.alertMethods.add(alertMethodsItem);
66+
return this;
67+
}
68+
69+
/**
70+
* Get alertMethods
71+
* @return alertMethods
72+
**/
73+
@Schema(description = "")
74+
public List<String> getAlertMethods() {
75+
return alertMethods;
76+
}
77+
78+
public void setAlertMethods(List<String> alertMethods) {
79+
this.alertMethods = alertMethods;
80+
}
81+
82+
public AlertNotificationForListPresetAlertTemplatesOutput contactGroupIds(List<String> contactGroupIds) {
83+
this.contactGroupIds = contactGroupIds;
84+
return this;
85+
}
86+
87+
public AlertNotificationForListPresetAlertTemplatesOutput addContactGroupIdsItem(String contactGroupIdsItem) {
88+
if (this.contactGroupIds == null) {
89+
this.contactGroupIds = new ArrayList<String>();
90+
}
91+
this.contactGroupIds.add(contactGroupIdsItem);
92+
return this;
93+
}
94+
95+
/**
96+
* Get contactGroupIds
97+
* @return contactGroupIds
98+
**/
99+
@Schema(description = "")
100+
public List<String> getContactGroupIds() {
101+
return contactGroupIds;
102+
}
103+
104+
public void setContactGroupIds(List<String> contactGroupIds) {
105+
this.contactGroupIds = contactGroupIds;
106+
}
107+
108+
public AlertNotificationForListPresetAlertTemplatesOutput effectEndAt(String effectEndAt) {
109+
this.effectEndAt = effectEndAt;
110+
return this;
111+
}
112+
113+
/**
114+
* Get effectEndAt
115+
* @return effectEndAt
116+
**/
117+
@Schema(description = "")
118+
public String getEffectEndAt() {
119+
return effectEndAt;
120+
}
121+
122+
public void setEffectEndAt(String effectEndAt) {
123+
this.effectEndAt = effectEndAt;
124+
}
125+
126+
public AlertNotificationForListPresetAlertTemplatesOutput effectStartAt(String effectStartAt) {
127+
this.effectStartAt = effectStartAt;
128+
return this;
129+
}
130+
131+
/**
132+
* Get effectStartAt
133+
* @return effectStartAt
134+
**/
135+
@Schema(description = "")
136+
public String getEffectStartAt() {
137+
return effectStartAt;
138+
}
139+
140+
public void setEffectStartAt(String effectStartAt) {
141+
this.effectStartAt = effectStartAt;
142+
}
143+
144+
public AlertNotificationForListPresetAlertTemplatesOutput notificationId(String notificationId) {
145+
this.notificationId = notificationId;
146+
return this;
147+
}
148+
149+
/**
150+
* Get notificationId
151+
* @return notificationId
152+
**/
153+
@Schema(description = "")
154+
public String getNotificationId() {
155+
return notificationId;
156+
}
157+
158+
public void setNotificationId(String notificationId) {
159+
this.notificationId = notificationId;
160+
}
161+
162+
public AlertNotificationForListPresetAlertTemplatesOutput webhook(String webhook) {
163+
this.webhook = webhook;
164+
return this;
165+
}
166+
167+
/**
168+
* Get webhook
169+
* @return webhook
170+
**/
171+
@Schema(description = "")
172+
public String getWebhook() {
173+
return webhook;
174+
}
175+
176+
public void setWebhook(String webhook) {
177+
this.webhook = webhook;
178+
}
179+
180+
public AlertNotificationForListPresetAlertTemplatesOutput webhookIds(List<String> webhookIds) {
181+
this.webhookIds = webhookIds;
182+
return this;
183+
}
184+
185+
public AlertNotificationForListPresetAlertTemplatesOutput addWebhookIdsItem(String webhookIdsItem) {
186+
if (this.webhookIds == null) {
187+
this.webhookIds = new ArrayList<String>();
188+
}
189+
this.webhookIds.add(webhookIdsItem);
190+
return this;
191+
}
192+
193+
/**
194+
* Get webhookIds
195+
* @return webhookIds
196+
**/
197+
@Schema(description = "")
198+
public List<String> getWebhookIds() {
199+
return webhookIds;
200+
}
201+
202+
public void setWebhookIds(List<String> webhookIds) {
203+
this.webhookIds = webhookIds;
204+
}
205+
206+
207+
@Override
208+
public boolean equals(java.lang.Object o) {
209+
if (this == o) {
210+
return true;
211+
}
212+
if (o == null || getClass() != o.getClass()) {
213+
return false;
214+
}
215+
AlertNotificationForListPresetAlertTemplatesOutput alertNotificationForListPresetAlertTemplatesOutput = (AlertNotificationForListPresetAlertTemplatesOutput) o;
216+
return Objects.equals(this.alertMethods, alertNotificationForListPresetAlertTemplatesOutput.alertMethods) &&
217+
Objects.equals(this.contactGroupIds, alertNotificationForListPresetAlertTemplatesOutput.contactGroupIds) &&
218+
Objects.equals(this.effectEndAt, alertNotificationForListPresetAlertTemplatesOutput.effectEndAt) &&
219+
Objects.equals(this.effectStartAt, alertNotificationForListPresetAlertTemplatesOutput.effectStartAt) &&
220+
Objects.equals(this.notificationId, alertNotificationForListPresetAlertTemplatesOutput.notificationId) &&
221+
Objects.equals(this.webhook, alertNotificationForListPresetAlertTemplatesOutput.webhook) &&
222+
Objects.equals(this.webhookIds, alertNotificationForListPresetAlertTemplatesOutput.webhookIds);
223+
}
224+
225+
@Override
226+
public int hashCode() {
227+
return Objects.hash(alertMethods, contactGroupIds, effectEndAt, effectStartAt, notificationId, webhook, webhookIds);
228+
}
229+
230+
231+
@Override
232+
public String toString() {
233+
StringBuilder sb = new StringBuilder();
234+
sb.append("class AlertNotificationForListPresetAlertTemplatesOutput {\n");
235+
236+
sb.append(" alertMethods: ").append(toIndentedString(alertMethods)).append("\n");
237+
sb.append(" contactGroupIds: ").append(toIndentedString(contactGroupIds)).append("\n");
238+
sb.append(" effectEndAt: ").append(toIndentedString(effectEndAt)).append("\n");
239+
sb.append(" effectStartAt: ").append(toIndentedString(effectStartAt)).append("\n");
240+
sb.append(" notificationId: ").append(toIndentedString(notificationId)).append("\n");
241+
sb.append(" webhook: ").append(toIndentedString(webhook)).append("\n");
242+
sb.append(" webhookIds: ").append(toIndentedString(webhookIds)).append("\n");
243+
sb.append("}");
244+
return sb.toString();
245+
}
246+
247+
/**
248+
* Convert the given object to string with each line indented by 4 spaces
249+
* (except the first line).
250+
*/
251+
private String toIndentedString(java.lang.Object o) {
252+
if (o == null) {
253+
return "null";
254+
}
255+
return o.toString().replace("\n", "\n ");
256+
}
257+
258+
}
Lines changed: 117 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,117 @@
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+
* AppliedRuleForListAlertTemplatesOutput
28+
*/
29+
30+
31+
32+
public class AppliedRuleForListAlertTemplatesOutput {
33+
@SerializedName("Id")
34+
private String id = null;
35+
36+
@SerializedName("Name")
37+
private String name = null;
38+
39+
public AppliedRuleForListAlertTemplatesOutput id(String id) {
40+
this.id = id;
41+
return this;
42+
}
43+
44+
/**
45+
* Get id
46+
* @return id
47+
**/
48+
@Schema(description = "")
49+
public String getId() {
50+
return id;
51+
}
52+
53+
public void setId(String id) {
54+
this.id = id;
55+
}
56+
57+
public AppliedRuleForListAlertTemplatesOutput name(String name) {
58+
this.name = name;
59+
return this;
60+
}
61+
62+
/**
63+
* Get name
64+
* @return name
65+
**/
66+
@Schema(description = "")
67+
public String getName() {
68+
return name;
69+
}
70+
71+
public void setName(String name) {
72+
this.name = name;
73+
}
74+
75+
76+
@Override
77+
public boolean equals(java.lang.Object o) {
78+
if (this == o) {
79+
return true;
80+
}
81+
if (o == null || getClass() != o.getClass()) {
82+
return false;
83+
}
84+
AppliedRuleForListAlertTemplatesOutput appliedRuleForListAlertTemplatesOutput = (AppliedRuleForListAlertTemplatesOutput) o;
85+
return Objects.equals(this.id, appliedRuleForListAlertTemplatesOutput.id) &&
86+
Objects.equals(this.name, appliedRuleForListAlertTemplatesOutput.name);
87+
}
88+
89+
@Override
90+
public int hashCode() {
91+
return Objects.hash(id, name);
92+
}
93+
94+
95+
@Override
96+
public String toString() {
97+
StringBuilder sb = new StringBuilder();
98+
sb.append("class AppliedRuleForListAlertTemplatesOutput {\n");
99+
100+
sb.append(" id: ").append(toIndentedString(id)).append("\n");
101+
sb.append(" name: ").append(toIndentedString(name)).append("\n");
102+
sb.append("}");
103+
return sb.toString();
104+
}
105+
106+
/**
107+
* Convert the given object to string with each line indented by 4 spaces
108+
* (except the first line).
109+
*/
110+
private String toIndentedString(java.lang.Object o) {
111+
if (o == null) {
112+
return "null";
113+
}
114+
return o.toString().replace("\n", "\n ");
115+
}
116+
117+
}

0 commit comments

Comments
 (0)