Skip to content

Commit d6f07a5

Browse files
committed
Merge 'cloudmonitor-Java-2018-01-01-online-1568-2025_09_12_15_40_03' into 'integration_2025-09-25_1060179278594'
feat: [development task] cloudmonitor-1568-Java (1697072) See merge request: !672
2 parents 76b75ac + bd174c4 commit d6f07a5

File tree

292 files changed

+59469
-0
lines changed

Some content is hidden

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

292 files changed

+59469
-0
lines changed

pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,7 @@
306306
<module>volcengine-java-sdk-bmq</module>
307307
<module>volcengine-java-sdk-cloudidentity</module>
308308
<module>volcengine-java-sdk-vikingdb</module>
309+
<module>volcengine-java-sdk-cloudmonitor</module>
309310
<module>volcengine-java-sdk-resourceshare</module>
310311
</modules>
311312
</project>

volcengine-java-sdk-bom/pom.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -595,6 +595,12 @@
595595
<optional>false</optional>
596596
<version>${project.version}</version>
597597
</dependency>
598+
<dependency>
599+
<groupId>com.volcengine</groupId>
600+
<artifactId>volcengine-java-sdk-cloudmonitor</artifactId>
601+
<optional>false</optional>
602+
<version>${project.version}</version>
603+
</dependency>
598604
<dependency>
599605
<groupId>com.volcengine</groupId>
600606
<artifactId>volcengine-java-sdk-resourceshare</artifactId>
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3+
<parent>
4+
<artifactId>volcengine-java-sdk</artifactId>
5+
<groupId>com.volcengine</groupId>
6+
<version>0.2.36</version>
7+
<relativePath>../pom.xml</relativePath>
8+
</parent>
9+
<modelVersion>4.0.0</modelVersion>
10+
<artifactId>volcengine-java-sdk-cloudmonitor</artifactId>
11+
<name>volcengine-java-sdk-cloudmonitor</name>
12+
<description>The Java SDK for Volcengine cloudmonitor</description>
13+
<dependencies>
14+
<dependency>
15+
<groupId>com.volcengine</groupId>
16+
<artifactId>volcengine-java-sdk-core</artifactId>
17+
<version>${project.version}</version>
18+
</dependency>
19+
</dependencies>
20+
<build>
21+
<plugins>
22+
<plugin>
23+
<groupId>org.apache.maven.plugins</groupId>
24+
<artifactId>maven-source-plugin</artifactId>
25+
<configuration>
26+
<excludes>
27+
<exclude>com/volcengine/cloudmonitor/examples/**</exclude>
28+
</excludes>
29+
</configuration>
30+
</plugin>
31+
<plugin>
32+
<groupId>org.apache.maven.plugins</groupId>
33+
<artifactId>maven-jar-plugin</artifactId>
34+
<configuration>
35+
<excludes>
36+
<exclude>com/volcengine/cloudmonitor/examples/**</exclude>
37+
</excludes>
38+
</configuration>
39+
</plugin>
40+
</plugins>
41+
</build>
42+
</project>

volcengine-java-sdk-cloudmonitor/src/main/java/com/volcengine/cloudmonitor/CloudmonitorApi.java

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

0 commit comments

Comments
 (0)