diff --git a/aliyun-java-sdk-arms/ChangeLog.txt b/aliyun-java-sdk-arms/ChangeLog.txt index 9537381329..4107296fb9 100644 --- a/aliyun-java-sdk-arms/ChangeLog.txt +++ b/aliyun-java-sdk-arms/ChangeLog.txt @@ -1,3 +1,6 @@ +2023-05-26 Version: 2.8.34 +- Add solution to response for GetAlerts Api. + 2023-03-28 Version: 2.8.33 - Support duration compare type options for CreateOrUpdateAlertRule interface. diff --git a/aliyun-java-sdk-arms/pom.xml b/aliyun-java-sdk-arms/pom.xml index 88839ea886..7fa760bf76 100644 --- a/aliyun-java-sdk-arms/pom.xml +++ b/aliyun-java-sdk-arms/pom.xml @@ -4,7 +4,7 @@ com.aliyun aliyun-java-sdk-arms jar - 2.8.33 + 2.8.34 aliyun-java-sdk-arms http://www.aliyun.com Aliyun Open API SDK for Java diff --git a/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/model/v20190808/CreateOrUpdateAlertRuleRequest.java b/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/model/v20190808/CreateOrUpdateAlertRuleRequest.java index 16a621750d..77a6e1344a 100644 --- a/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/model/v20190808/CreateOrUpdateAlertRuleRequest.java +++ b/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/model/v20190808/CreateOrUpdateAlertRuleRequest.java @@ -15,6 +15,7 @@ package com.aliyuncs.arms.model.v20190808; import com.aliyuncs.RpcAcsRequest; +import java.util.List; import com.aliyuncs.http.MethodType; import com.aliyuncs.arms.Endpoint; @@ -55,6 +56,8 @@ public class CreateOrUpdateAlertRuleRequest extends RpcAcsRequest tagss; + private String alertType; private String alertCheckType; @@ -238,6 +241,20 @@ public void setLabels(String labels) { } } + public List getTagss() { + return this.tagss; + } + + public void setTagss(List tagss) { + this.tagss = tagss; + if (tagss != null) { + for (int depth1 = 0; depth1 < tagss.size(); depth1++) { + putBodyParameter("Tags." + (depth1 + 1) + ".Value" , tagss.get(depth1).getValue()); + putBodyParameter("Tags." + (depth1 + 1) + ".Key" , tagss.get(depth1).getKey()); + } + } + } + public String getAlertType() { return this.alertType; } @@ -291,6 +308,29 @@ public void setPids(String pids) { if(pids != null){ putBodyParameter("Pids", pids); } + } + + public static class Tags { + + private String value; + + private String key; + + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public String getKey() { + return this.key; + } + + public void setKey(String key) { + this.key = key; + } } @Override diff --git a/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/model/v20190808/CreateOrUpdateAlertRuleResponse.java b/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/model/v20190808/CreateOrUpdateAlertRuleResponse.java index b9dacb199a..6ad831ebd2 100644 --- a/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/model/v20190808/CreateOrUpdateAlertRuleResponse.java +++ b/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/model/v20190808/CreateOrUpdateAlertRuleResponse.java @@ -89,6 +89,8 @@ public static class AlertRule { private List annotations; + private List tags; + private List pids; private AlertRuleContent alertRuleContent; @@ -263,6 +265,14 @@ public void setAnnotations(List annotations) { this.annotations = annotations; } + public List getTags() { + return this.tags; + } + + public void setTags(List tags) { + this.tags = tags; + } + public List getPids() { return this.pids; } @@ -333,6 +343,29 @@ public void setValue(String value) { } } + public static class Tag { + + private String key; + + private String value; + + public String getKey() { + return this.key; + } + + public void setKey(String key) { + this.key = key; + } + + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + } + public static class AlertRuleContent { private String condition; diff --git a/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/model/v20190808/CreateOrUpdateNotificationPolicyResponse.java b/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/model/v20190808/CreateOrUpdateNotificationPolicyResponse.java index f07fb7ad08..d42985b5c6 100644 --- a/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/model/v20190808/CreateOrUpdateNotificationPolicyResponse.java +++ b/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/model/v20190808/CreateOrUpdateNotificationPolicyResponse.java @@ -286,6 +286,8 @@ public static class NotifyObjectsItem { private String notifyObjectName; + private List notifyChannels1; + public String getNotifyObjectType() { return this.notifyObjectType; } @@ -309,6 +311,14 @@ public String getNotifyObjectName() { public void setNotifyObjectName(String notifyObjectName) { this.notifyObjectName = notifyObjectName; } + + public List getNotifyChannels1() { + return this.notifyChannels1; + } + + public void setNotifyChannels1(List notifyChannels1) { + this.notifyChannels1 = notifyChannels1; + } } } diff --git a/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/model/v20190808/CreatePrometheusAlertRuleRequest.java b/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/model/v20190808/CreatePrometheusAlertRuleRequest.java index 1a957f8a3c..46cd6ed041 100644 --- a/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/model/v20190808/CreatePrometheusAlertRuleRequest.java +++ b/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/model/v20190808/CreatePrometheusAlertRuleRequest.java @@ -15,6 +15,7 @@ package com.aliyuncs.arms.model.v20190808; import com.aliyuncs.RpcAcsRequest; +import java.util.List; import com.aliyuncs.http.MethodType; import com.aliyuncs.arms.Endpoint; @@ -41,6 +42,8 @@ public class CreatePrometheusAlertRuleRequest extends RpcAcsRequest tagss; + private String duration; private String notifyType; @@ -141,6 +144,20 @@ public void setLabels(String labels) { } } + public List getTagss() { + return this.tagss; + } + + public void setTagss(List tagss) { + this.tagss = tagss; + if (tagss != null) { + for (int depth1 = 0; depth1 < tagss.size(); depth1++) { + putQueryParameter("Tags." + (depth1 + 1) + ".Value" , tagss.get(depth1).getValue()); + putQueryParameter("Tags." + (depth1 + 1) + ".Key" , tagss.get(depth1).getKey()); + } + } + } + public String getDuration() { return this.duration; } @@ -161,6 +178,29 @@ public void setNotifyType(String notifyType) { if(notifyType != null){ putQueryParameter("NotifyType", notifyType); } + } + + public static class Tags { + + private String value; + + private String key; + + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public String getKey() { + return this.key; + } + + public void setKey(String key) { + this.key = key; + } } @Override diff --git a/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/model/v20190808/CreatePrometheusInstanceRequest.java b/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/model/v20190808/CreatePrometheusInstanceRequest.java index 72b6638add..e5a12eb72f 100644 --- a/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/model/v20190808/CreatePrometheusInstanceRequest.java +++ b/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/model/v20190808/CreatePrometheusInstanceRequest.java @@ -28,6 +28,8 @@ public class CreatePrometheusInstanceRequest extends RpcAcsRequest { + + + private String configYaml; + + private String clusterId; + + private String type; + + private String status; + public CreatePrometheusMonitoringRequest() { + super("ARMS", "2019-08-08", "CreatePrometheusMonitoring", "arms"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public String getConfigYaml() { + return this.configYaml; + } + + public void setConfigYaml(String configYaml) { + this.configYaml = configYaml; + if(configYaml != null){ + putBodyParameter("ConfigYaml", configYaml); + } + } + + public String getClusterId() { + return this.clusterId; + } + + public void setClusterId(String clusterId) { + this.clusterId = clusterId; + if(clusterId != null){ + putQueryParameter("ClusterId", clusterId); + } + } + + public String getType() { + return this.type; + } + + public void setType(String type) { + this.type = type; + if(type != null){ + putQueryParameter("Type", type); + } + } + + public String getStatus() { + return this.status; + } + + public void setStatus(String status) { + this.status = status; + if(status != null){ + putQueryParameter("Status", status); + } + } + + @Override + public Class getResponseClass() { + return CreatePrometheusMonitoringResponse.class; + } + +} diff --git a/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/model/v20190808/CreatePrometheusMonitoringResponse.java b/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/model/v20190808/CreatePrometheusMonitoringResponse.java new file mode 100644 index 0000000000..1ff3a829fe --- /dev/null +++ b/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/model/v20190808/CreatePrometheusMonitoringResponse.java @@ -0,0 +1,76 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.arms.model.v20190808; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.arms.transform.v20190808.CreatePrometheusMonitoringResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class CreatePrometheusMonitoringResponse extends AcsResponse { + + private String requestId; + + private Integer code; + + private String data; + + private String message; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public Integer getCode() { + return this.code; + } + + public void setCode(Integer code) { + this.code = code; + } + + public String getData() { + return this.data; + } + + public void setData(String data) { + this.data = data; + } + + public String getMessage() { + return this.message; + } + + public void setMessage(String message) { + this.message = message; + } + + @Override + public CreatePrometheusMonitoringResponse getInstance(UnmarshallerContext context) { + return CreatePrometheusMonitoringResponseUnmarshaller.unmarshall(this, context); + } + + @Override + public boolean checkShowJsonItemName() { + return false; + } +} diff --git a/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/model/v20190808/DeletePrometheusMonitoringRequest.java b/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/model/v20190808/DeletePrometheusMonitoringRequest.java new file mode 100644 index 0000000000..939ae845fd --- /dev/null +++ b/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/model/v20190808/DeletePrometheusMonitoringRequest.java @@ -0,0 +1,80 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.arms.model.v20190808; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.arms.Endpoint; + +/** + * @author auto create + * @version + */ +public class DeletePrometheusMonitoringRequest extends RpcAcsRequest { + + + private String clusterId; + + private String type; + + private String monitoringName; + public DeletePrometheusMonitoringRequest() { + super("ARMS", "2019-08-08", "DeletePrometheusMonitoring", "arms"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public String getClusterId() { + return this.clusterId; + } + + public void setClusterId(String clusterId) { + this.clusterId = clusterId; + if(clusterId != null){ + putQueryParameter("ClusterId", clusterId); + } + } + + public String getType() { + return this.type; + } + + public void setType(String type) { + this.type = type; + if(type != null){ + putQueryParameter("Type", type); + } + } + + public String getMonitoringName() { + return this.monitoringName; + } + + public void setMonitoringName(String monitoringName) { + this.monitoringName = monitoringName; + if(monitoringName != null){ + putQueryParameter("MonitoringName", monitoringName); + } + } + + @Override + public Class getResponseClass() { + return DeletePrometheusMonitoringResponse.class; + } + +} diff --git a/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/model/v20190808/DeletePrometheusMonitoringResponse.java b/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/model/v20190808/DeletePrometheusMonitoringResponse.java new file mode 100644 index 0000000000..9412230e61 --- /dev/null +++ b/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/model/v20190808/DeletePrometheusMonitoringResponse.java @@ -0,0 +1,76 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.arms.model.v20190808; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.arms.transform.v20190808.DeletePrometheusMonitoringResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DeletePrometheusMonitoringResponse extends AcsResponse { + + private String requestId; + + private Integer code; + + private String data; + + private String message; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public Integer getCode() { + return this.code; + } + + public void setCode(Integer code) { + this.code = code; + } + + public String getData() { + return this.data; + } + + public void setData(String data) { + this.data = data; + } + + public String getMessage() { + return this.message; + } + + public void setMessage(String message) { + this.message = message; + } + + @Override + public DeletePrometheusMonitoringResponse getInstance(UnmarshallerContext context) { + return DeletePrometheusMonitoringResponseUnmarshaller.unmarshall(this, context); + } + + @Override + public boolean checkShowJsonItemName() { + return false; + } +} diff --git a/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/model/v20190808/DescribeContactGroupsRequest.java b/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/model/v20190808/DescribeContactGroupsRequest.java index 60e15d1def..ff87757ff8 100644 --- a/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/model/v20190808/DescribeContactGroupsRequest.java +++ b/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/model/v20190808/DescribeContactGroupsRequest.java @@ -25,15 +25,15 @@ public class DescribeContactGroupsRequest extends RpcAcsRequest { - private Long size; + private Boolean isDetail; - private String groupIds; + private String contactGroupName; - private Boolean isDetail; + private Long size; - private Long page; + private String groupIds; - private String contactGroupName; + private Long page; public DescribeContactGroupsRequest() { super("ARMS", "2019-08-08", "DescribeContactGroups", "arms"); setMethod(MethodType.POST); @@ -43,6 +43,28 @@ public DescribeContactGroupsRequest() { } catch (Exception e) {} } + public Boolean getIsDetail() { + return this.isDetail; + } + + public void setIsDetail(Boolean isDetail) { + this.isDetail = isDetail; + if(isDetail != null){ + putQueryParameter("IsDetail", isDetail.toString()); + } + } + + public String getContactGroupName() { + return this.contactGroupName; + } + + public void setContactGroupName(String contactGroupName) { + this.contactGroupName = contactGroupName; + if(contactGroupName != null){ + putQueryParameter("ContactGroupName", contactGroupName); + } + } + public Long getSize() { return this.size; } @@ -65,17 +87,6 @@ public void setGroupIds(String groupIds) { } } - public Boolean getIsDetail() { - return this.isDetail; - } - - public void setIsDetail(Boolean isDetail) { - this.isDetail = isDetail; - if(isDetail != null){ - putQueryParameter("IsDetail", isDetail.toString()); - } - } - public Long getPage() { return this.page; } @@ -85,17 +96,6 @@ public void setPage(Long page) { if(page != null){ putQueryParameter("Page", page.toString()); } - } - - public String getContactGroupName() { - return this.contactGroupName; - } - - public void setContactGroupName(String contactGroupName) { - this.contactGroupName = contactGroupName; - if(contactGroupName != null){ - putQueryParameter("ContactGroupName", contactGroupName); - } } @Override diff --git a/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/model/v20190808/EnableMetricRequest.java b/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/model/v20190808/EnableMetricRequest.java new file mode 100644 index 0000000000..4bce387529 --- /dev/null +++ b/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/model/v20190808/EnableMetricRequest.java @@ -0,0 +1,67 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.arms.model.v20190808; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.arms.Endpoint; + +/** + * @author auto create + * @version + */ +public class EnableMetricRequest extends RpcAcsRequest { + + + private String dropMetric; + + private String clusterId; + public EnableMetricRequest() { + super("ARMS", "2019-08-08", "EnableMetric", "arms"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public String getDropMetric() { + return this.dropMetric; + } + + public void setDropMetric(String dropMetric) { + this.dropMetric = dropMetric; + if(dropMetric != null){ + putQueryParameter("DropMetric", dropMetric); + } + } + + public String getClusterId() { + return this.clusterId; + } + + public void setClusterId(String clusterId) { + this.clusterId = clusterId; + if(clusterId != null){ + putQueryParameter("ClusterId", clusterId); + } + } + + @Override + public Class getResponseClass() { + return EnableMetricResponse.class; + } + +} diff --git a/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/model/v20190808/EnableMetricResponse.java b/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/model/v20190808/EnableMetricResponse.java new file mode 100644 index 0000000000..32bc2d4c2d --- /dev/null +++ b/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/model/v20190808/EnableMetricResponse.java @@ -0,0 +1,86 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.arms.model.v20190808; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.arms.transform.v20190808.EnableMetricResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class EnableMetricResponse extends AcsResponse { + + private String requestId; + + private Boolean success; + + private String data; + + private Long code; + + private String message; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public Boolean getSuccess() { + return this.success; + } + + public void setSuccess(Boolean success) { + this.success = success; + } + + public String getData() { + return this.data; + } + + public void setData(String data) { + this.data = data; + } + + public Long getCode() { + return this.code; + } + + public void setCode(Long code) { + this.code = code; + } + + public String getMessage() { + return this.message; + } + + public void setMessage(String message) { + this.message = message; + } + + @Override + public EnableMetricResponse getInstance(UnmarshallerContext context) { + return EnableMetricResponseUnmarshaller.unmarshall(this, context); + } + + @Override + public boolean checkShowJsonItemName() { + return false; + } +} diff --git a/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/model/v20190808/GetAlertRulesRequest.java b/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/model/v20190808/GetAlertRulesRequest.java index 8b22f0daac..8f03209100 100644 --- a/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/model/v20190808/GetAlertRulesRequest.java +++ b/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/model/v20190808/GetAlertRulesRequest.java @@ -15,6 +15,7 @@ package com.aliyuncs.arms.model.v20190808; import com.aliyuncs.RpcAcsRequest; +import java.util.List; import com.aliyuncs.http.MethodType; import com.aliyuncs.arms.Endpoint; @@ -31,6 +32,8 @@ public class GetAlertRulesRequest extends RpcAcsRequest { private String clusterId; + private List tagss; + private String alertNames; private String alertType; @@ -82,6 +85,20 @@ public void setClusterId(String clusterId) { } } + public List getTagss() { + return this.tagss; + } + + public void setTagss(List tagss) { + this.tagss = tagss; + if (tagss != null) { + for (int depth1 = 0; depth1 < tagss.size(); depth1++) { + putQueryParameter("Tags." + (depth1 + 1) + ".Value" , tagss.get(depth1).getValue()); + putQueryParameter("Tags." + (depth1 + 1) + ".Key" , tagss.get(depth1).getKey()); + } + } + } + public String getAlertNames() { return this.alertNames; } @@ -135,6 +152,29 @@ public void setPage(Long page) { if(page != null){ putQueryParameter("Page", page.toString()); } + } + + public static class Tags { + + private String value; + + private String key; + + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public String getKey() { + return this.key; + } + + public void setKey(String key) { + this.key = key; + } } @Override diff --git a/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/model/v20190808/GetAlertRulesResponse.java b/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/model/v20190808/GetAlertRulesResponse.java index 6848ef10b3..d53cf864c1 100644 --- a/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/model/v20190808/GetAlertRulesResponse.java +++ b/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/model/v20190808/GetAlertRulesResponse.java @@ -127,10 +127,14 @@ public static class AlertRulesItem { private String message; + private String durationCompareType; + private List labels; private List annotations; + private List tags; + private List pids; private AlertRuleContent alertRuleContent; @@ -289,6 +293,14 @@ public void setMessage(String message) { this.message = message; } + public String getDurationCompareType() { + return this.durationCompareType; + } + + public void setDurationCompareType(String durationCompareType) { + this.durationCompareType = durationCompareType; + } + public List getLabels() { return this.labels; } @@ -305,6 +317,14 @@ public void setAnnotations(List annotations) { this.annotations = annotations; } + public List getTags() { + return this.tags; + } + + public void setTags(List tags) { + this.tags = tags; + } + public List getPids() { return this.pids; } @@ -375,6 +395,29 @@ public void setValue(String value) { } } + public static class TagsItem { + + private String key; + + private String value; + + public String getKey() { + return this.key; + } + + public void setKey(String key) { + this.key = key; + } + + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + } + public static class AlertRuleContent { private String condition; diff --git a/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/model/v20190808/GetPrometheusMonitoringRequest.java b/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/model/v20190808/GetPrometheusMonitoringRequest.java new file mode 100644 index 0000000000..6ff92929e9 --- /dev/null +++ b/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/model/v20190808/GetPrometheusMonitoringRequest.java @@ -0,0 +1,80 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.arms.model.v20190808; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.arms.Endpoint; + +/** + * @author auto create + * @version + */ +public class GetPrometheusMonitoringRequest extends RpcAcsRequest { + + + private String clusterId; + + private String type; + + private String monitoringName; + public GetPrometheusMonitoringRequest() { + super("ARMS", "2019-08-08", "GetPrometheusMonitoring", "arms"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public String getClusterId() { + return this.clusterId; + } + + public void setClusterId(String clusterId) { + this.clusterId = clusterId; + if(clusterId != null){ + putQueryParameter("ClusterId", clusterId); + } + } + + public String getType() { + return this.type; + } + + public void setType(String type) { + this.type = type; + if(type != null){ + putQueryParameter("Type", type); + } + } + + public String getMonitoringName() { + return this.monitoringName; + } + + public void setMonitoringName(String monitoringName) { + this.monitoringName = monitoringName; + if(monitoringName != null){ + putQueryParameter("MonitoringName", monitoringName); + } + } + + @Override + public Class getResponseClass() { + return GetPrometheusMonitoringResponse.class; + } + +} diff --git a/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/model/v20190808/GetPrometheusMonitoringResponse.java b/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/model/v20190808/GetPrometheusMonitoringResponse.java new file mode 100644 index 0000000000..c6fa7e07ae --- /dev/null +++ b/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/model/v20190808/GetPrometheusMonitoringResponse.java @@ -0,0 +1,129 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.arms.model.v20190808; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.arms.transform.v20190808.GetPrometheusMonitoringResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class GetPrometheusMonitoringResponse extends AcsResponse { + + private String requestId; + + private Integer code; + + private String message; + + private Data data; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public Integer getCode() { + return this.code; + } + + public void setCode(Integer code) { + this.code = code; + } + + public String getMessage() { + return this.message; + } + + public void setMessage(String message) { + this.message = message; + } + + public Data getData() { + return this.data; + } + + public void setData(Data data) { + this.data = data; + } + + public static class Data { + + private String clusterId; + + private String monitoringName; + + private String type; + + private String status; + + private String configYaml; + + public String getClusterId() { + return this.clusterId; + } + + public void setClusterId(String clusterId) { + this.clusterId = clusterId; + } + + public String getMonitoringName() { + return this.monitoringName; + } + + public void setMonitoringName(String monitoringName) { + this.monitoringName = monitoringName; + } + + public String getType() { + return this.type; + } + + public void setType(String type) { + this.type = type; + } + + public String getStatus() { + return this.status; + } + + public void setStatus(String status) { + this.status = status; + } + + public String getConfigYaml() { + return this.configYaml; + } + + public void setConfigYaml(String configYaml) { + this.configYaml = configYaml; + } + } + + @Override + public GetPrometheusMonitoringResponse getInstance(UnmarshallerContext context) { + return GetPrometheusMonitoringResponseUnmarshaller.unmarshall(this, context); + } + + @Override + public boolean checkShowJsonItemName() { + return false; + } +} diff --git a/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/model/v20190808/ListAlertsResponse.java b/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/model/v20190808/ListAlertsResponse.java index 8108994225..fefb7b85c1 100644 --- a/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/model/v20190808/ListAlertsResponse.java +++ b/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/model/v20190808/ListAlertsResponse.java @@ -103,6 +103,8 @@ public static class ListAlertsItem { private Long alertId; + private String solution; + private List activities; private List alertEvents; @@ -163,6 +165,14 @@ public void setAlertId(Long alertId) { this.alertId = alertId; } + public String getSolution() { + return this.solution; + } + + public void setSolution(String solution) { + this.solution = solution; + } + public List getActivities() { return this.activities; } diff --git a/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/model/v20190808/ListNotificationPoliciesResponse.java b/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/model/v20190808/ListNotificationPoliciesResponse.java index 3b1316bcd7..382cce4670 100644 --- a/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/model/v20190808/ListNotificationPoliciesResponse.java +++ b/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/model/v20190808/ListNotificationPoliciesResponse.java @@ -328,6 +328,8 @@ public static class NotifyObjectsItem { private String notifyObjectName; + private List notifyChannels1; + public String getNotifyObjectType() { return this.notifyObjectType; } @@ -351,6 +353,14 @@ public String getNotifyObjectName() { public void setNotifyObjectName(String notifyObjectName) { this.notifyObjectName = notifyObjectName; } + + public List getNotifyChannels1() { + return this.notifyChannels1; + } + + public void setNotifyChannels1(List notifyChannels1) { + this.notifyChannels1 = notifyChannels1; + } } } diff --git a/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/model/v20190808/ListPrometheusAlertRulesRequest.java b/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/model/v20190808/ListPrometheusAlertRulesRequest.java index 61ddf542ef..664b760032 100644 --- a/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/model/v20190808/ListPrometheusAlertRulesRequest.java +++ b/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/model/v20190808/ListPrometheusAlertRulesRequest.java @@ -15,6 +15,7 @@ package com.aliyuncs.arms.model.v20190808; import com.aliyuncs.RpcAcsRequest; +import java.util.List; import com.aliyuncs.http.MethodType; import com.aliyuncs.arms.Endpoint; @@ -29,6 +30,8 @@ public class ListPrometheusAlertRulesRequest extends RpcAcsRequest tagss; + private String name; private String matchExpressions; @@ -65,6 +68,20 @@ public void setType(String type) { } } + public List getTagss() { + return this.tagss; + } + + public void setTagss(List tagss) { + this.tagss = tagss; + if (tagss != null) { + for (int depth1 = 0; depth1 < tagss.size(); depth1++) { + putQueryParameter("Tags." + (depth1 + 1) + ".Value" , tagss.get(depth1).getValue()); + putQueryParameter("Tags." + (depth1 + 1) + ".Key" , tagss.get(depth1).getKey()); + } + } + } + public String getName() { return this.name; } @@ -96,6 +113,29 @@ public void setStatus(Integer status) { if(status != null){ putQueryParameter("Status", status.toString()); } + } + + public static class Tags { + + private String value; + + private String key; + + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public String getKey() { + return this.key; + } + + public void setKey(String key) { + this.key = key; + } } @Override diff --git a/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/model/v20190808/ListPrometheusAlertRulesResponse.java b/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/model/v20190808/ListPrometheusAlertRulesResponse.java index a9f5e6003a..ef971d5ea1 100644 --- a/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/model/v20190808/ListPrometheusAlertRulesResponse.java +++ b/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/model/v20190808/ListPrometheusAlertRulesResponse.java @@ -71,6 +71,8 @@ public static class PrometheusAlertRule { private List annotations; + private List tags; + public Integer getStatus() { return this.status; } @@ -167,6 +169,14 @@ public void setAnnotations(List annotations) { this.annotations = annotations; } + public List getTags() { + return this.tags; + } + + public void setTags(List tags) { + this.tags = tags; + } + public static class Label { private String name; @@ -212,6 +222,29 @@ public void setValue(String value) { this.value = value; } } + + public static class TagsItem { + + private String key; + + private String value; + + public String getKey() { + return this.key; + } + + public void setKey(String key) { + this.key = key; + } + + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + } } @Override diff --git a/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/model/v20190808/ListPrometheusInstanceByTagAndResourceGroupIdRequest.java b/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/model/v20190808/ListPrometheusInstanceByTagAndResourceGroupIdRequest.java index 3efa92aaec..42aed37c44 100644 --- a/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/model/v20190808/ListPrometheusInstanceByTagAndResourceGroupIdRequest.java +++ b/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/model/v20190808/ListPrometheusInstanceByTagAndResourceGroupIdRequest.java @@ -28,6 +28,8 @@ public class ListPrometheusInstanceByTagAndResourceGroupIdRequest extends RpcAcs private String resourceGroupId; + private Boolean listAsConsole; + private List tags; public ListPrometheusInstanceByTagAndResourceGroupIdRequest() { super("ARMS", "2019-08-08", "ListPrometheusInstanceByTagAndResourceGroupId", "arms"); @@ -49,6 +51,17 @@ public void setResourceGroupId(String resourceGroupId) { } } + public Boolean getListAsConsole() { + return this.listAsConsole; + } + + public void setListAsConsole(Boolean listAsConsole) { + this.listAsConsole = listAsConsole; + if(listAsConsole != null){ + putQueryParameter("ListAsConsole", listAsConsole.toString()); + } + } + public List getTags() { return this.tags; } diff --git a/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/model/v20190808/ListPrometheusInstanceByTagAndResourceGroupIdResponse.java b/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/model/v20190808/ListPrometheusInstanceByTagAndResourceGroupIdResponse.java index f1cbd3c269..6a0f8bf430 100644 --- a/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/model/v20190808/ListPrometheusInstanceByTagAndResourceGroupIdResponse.java +++ b/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/model/v20190808/ListPrometheusInstanceByTagAndResourceGroupIdResponse.java @@ -103,6 +103,8 @@ public static class PrometheusInstancesItem { private String resourceGroupId; + private String resourceType; + private List tags; public String getClusterId() { @@ -201,6 +203,14 @@ public void setResourceGroupId(String resourceGroupId) { this.resourceGroupId = resourceGroupId; } + public String getResourceType() { + return this.resourceType; + } + + public void setResourceType(String resourceType) { + this.resourceType = resourceType; + } + public List getTags() { return this.tags; } diff --git a/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/model/v20190808/ListPrometheusInstancesRequest.java b/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/model/v20190808/ListPrometheusInstancesRequest.java index 7da600623e..07cd5ac162 100644 --- a/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/model/v20190808/ListPrometheusInstancesRequest.java +++ b/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/model/v20190808/ListPrometheusInstancesRequest.java @@ -25,6 +25,8 @@ public class ListPrometheusInstancesRequest extends RpcAcsRequest { + private String clusterType; + private Boolean showGlobalView; public ListPrometheusInstancesRequest() { super("ARMS", "2019-08-08", "ListPrometheusInstances", "arms"); @@ -35,6 +37,17 @@ public ListPrometheusInstancesRequest() { } catch (Exception e) {} } + public String getClusterType() { + return this.clusterType; + } + + public void setClusterType(String clusterType) { + this.clusterType = clusterType; + if(clusterType != null){ + putQueryParameter("ClusterType", clusterType); + } + } + public Boolean getShowGlobalView() { return this.showGlobalView; } diff --git a/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/model/v20190808/ListPrometheusMonitoringRequest.java b/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/model/v20190808/ListPrometheusMonitoringRequest.java new file mode 100644 index 0000000000..3d2e561b5f --- /dev/null +++ b/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/model/v20190808/ListPrometheusMonitoringRequest.java @@ -0,0 +1,67 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.arms.model.v20190808; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.arms.Endpoint; + +/** + * @author auto create + * @version + */ +public class ListPrometheusMonitoringRequest extends RpcAcsRequest { + + + private String clusterId; + + private String type; + public ListPrometheusMonitoringRequest() { + super("ARMS", "2019-08-08", "ListPrometheusMonitoring", "arms"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public String getClusterId() { + return this.clusterId; + } + + public void setClusterId(String clusterId) { + this.clusterId = clusterId; + if(clusterId != null){ + putQueryParameter("ClusterId", clusterId); + } + } + + public String getType() { + return this.type; + } + + public void setType(String type) { + this.type = type; + if(type != null){ + putQueryParameter("Type", type); + } + } + + @Override + public Class getResponseClass() { + return ListPrometheusMonitoringResponse.class; + } + +} diff --git a/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/model/v20190808/ListPrometheusMonitoringResponse.java b/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/model/v20190808/ListPrometheusMonitoringResponse.java new file mode 100644 index 0000000000..c88ce2a6b5 --- /dev/null +++ b/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/model/v20190808/ListPrometheusMonitoringResponse.java @@ -0,0 +1,130 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.arms.model.v20190808; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.arms.transform.v20190808.ListPrometheusMonitoringResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class ListPrometheusMonitoringResponse extends AcsResponse { + + private String requestId; + + private Integer code; + + private String message; + + private List data; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public Integer getCode() { + return this.code; + } + + public void setCode(Integer code) { + this.code = code; + } + + public String getMessage() { + return this.message; + } + + public void setMessage(String message) { + this.message = message; + } + + public List getData() { + return this.data; + } + + public void setData(List data) { + this.data = data; + } + + public static class Monitoring { + + private String clusterId; + + private String monitoringName; + + private String type; + + private String configYaml; + + private String status; + + public String getClusterId() { + return this.clusterId; + } + + public void setClusterId(String clusterId) { + this.clusterId = clusterId; + } + + public String getMonitoringName() { + return this.monitoringName; + } + + public void setMonitoringName(String monitoringName) { + this.monitoringName = monitoringName; + } + + public String getType() { + return this.type; + } + + public void setType(String type) { + this.type = type; + } + + public String getConfigYaml() { + return this.configYaml; + } + + public void setConfigYaml(String configYaml) { + this.configYaml = configYaml; + } + + public String getStatus() { + return this.status; + } + + public void setStatus(String status) { + this.status = status; + } + } + + @Override + public ListPrometheusMonitoringResponse getInstance(UnmarshallerContext context) { + return ListPrometheusMonitoringResponseUnmarshaller.unmarshall(this, context); + } + + @Override + public boolean checkShowJsonItemName() { + return false; + } +} diff --git a/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/model/v20190808/SearchAlertRulesResponse.java b/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/model/v20190808/SearchAlertRulesResponse.java index 19977ab319..093a030991 100644 --- a/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/model/v20190808/SearchAlertRulesResponse.java +++ b/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/model/v20190808/SearchAlertRulesResponse.java @@ -127,6 +127,8 @@ public static class AlertRuleEntity { private List alertWays; + private List alertWay; + private AlarmContext alarmContext; private AlertRule alertRule; @@ -287,6 +289,14 @@ public void setAlertWays(List alertWays) { this.alertWays = alertWays; } + public List getAlertWay() { + return this.alertWay; + } + + public void setAlertWay(List alertWay) { + this.alertWay = alertWay; + } + public AlarmContext getAlarmContext() { return this.alarmContext; } diff --git a/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/model/v20190808/TagResourcesResponse.java b/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/model/v20190808/TagResourcesResponse.java index 89c1bbded7..5c1991cc5e 100644 --- a/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/model/v20190808/TagResourcesResponse.java +++ b/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/model/v20190808/TagResourcesResponse.java @@ -28,10 +28,6 @@ public class TagResourcesResponse extends AcsResponse { private String data; - private String code; - - private String message; - public String getRequestId() { return this.requestId; } @@ -48,22 +44,6 @@ public void setData(String data) { this.data = data; } - public String getCode() { - return this.code; - } - - public void setCode(String code) { - this.code = code; - } - - public String getMessage() { - return this.message; - } - - public void setMessage(String message) { - this.message = message; - } - @Override public TagResourcesResponse getInstance(UnmarshallerContext context) { return TagResourcesResponseUnmarshaller.unmarshall(this, context); diff --git a/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/model/v20190808/UntagResourcesResponse.java b/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/model/v20190808/UntagResourcesResponse.java index fa34729f0f..192514ad6a 100644 --- a/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/model/v20190808/UntagResourcesResponse.java +++ b/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/model/v20190808/UntagResourcesResponse.java @@ -28,10 +28,6 @@ public class UntagResourcesResponse extends AcsResponse { private String data; - private String code; - - private String message; - public String getRequestId() { return this.requestId; } @@ -48,22 +44,6 @@ public void setData(String data) { this.data = data; } - public String getCode() { - return this.code; - } - - public void setCode(String code) { - this.code = code; - } - - public String getMessage() { - return this.message; - } - - public void setMessage(String message) { - this.message = message; - } - @Override public UntagResourcesResponse getInstance(UnmarshallerContext context) { return UntagResourcesResponseUnmarshaller.unmarshall(this, context); diff --git a/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/model/v20190808/UpdatePrometheusAlertRuleRequest.java b/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/model/v20190808/UpdatePrometheusAlertRuleRequest.java index 533b11e8a8..296a505e12 100644 --- a/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/model/v20190808/UpdatePrometheusAlertRuleRequest.java +++ b/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/model/v20190808/UpdatePrometheusAlertRuleRequest.java @@ -15,6 +15,7 @@ package com.aliyuncs.arms.model.v20190808; import com.aliyuncs.RpcAcsRequest; +import java.util.List; import com.aliyuncs.http.MethodType; import com.aliyuncs.arms.Endpoint; @@ -41,6 +42,8 @@ public class UpdatePrometheusAlertRuleRequest extends RpcAcsRequest tagss; + private String duration; private Long alertId; @@ -143,6 +146,20 @@ public void setLabels(String labels) { } } + public List getTagss() { + return this.tagss; + } + + public void setTagss(List tagss) { + this.tagss = tagss; + if (tagss != null) { + for (int depth1 = 0; depth1 < tagss.size(); depth1++) { + putQueryParameter("Tags." + (depth1 + 1) + ".Value" , tagss.get(depth1).getValue()); + putQueryParameter("Tags." + (depth1 + 1) + ".Key" , tagss.get(depth1).getKey()); + } + } + } + public String getDuration() { return this.duration; } @@ -174,6 +191,29 @@ public void setNotifyType(String notifyType) { if(notifyType != null){ putQueryParameter("NotifyType", notifyType); } + } + + public static class Tags { + + private String value; + + private String key; + + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public String getKey() { + return this.key; + } + + public void setKey(String key) { + this.key = key; + } } @Override diff --git a/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/model/v20190808/UpdatePrometheusGlobalViewRequest.java b/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/model/v20190808/UpdatePrometheusGlobalViewRequest.java index 94cc3ed968..28b0d20247 100644 --- a/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/model/v20190808/UpdatePrometheusGlobalViewRequest.java +++ b/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/model/v20190808/UpdatePrometheusGlobalViewRequest.java @@ -25,10 +25,12 @@ public class UpdatePrometheusGlobalViewRequest extends RpcAcsRequest { - private String resourceGroupId; + private Boolean allSubClustersSuccess; private String clusterId; + private String resourceGroupId; + private String subClustersJson; public UpdatePrometheusGlobalViewRequest() { super("ARMS", "2019-08-08", "UpdatePrometheusGlobalView", "arms"); @@ -39,14 +41,14 @@ public UpdatePrometheusGlobalViewRequest() { } catch (Exception e) {} } - public String getResourceGroupId() { - return this.resourceGroupId; + public Boolean getAllSubClustersSuccess() { + return this.allSubClustersSuccess; } - public void setResourceGroupId(String resourceGroupId) { - this.resourceGroupId = resourceGroupId; - if(resourceGroupId != null){ - putQueryParameter("ResourceGroupId", resourceGroupId); + public void setAllSubClustersSuccess(Boolean allSubClustersSuccess) { + this.allSubClustersSuccess = allSubClustersSuccess; + if(allSubClustersSuccess != null){ + putQueryParameter("AllSubClustersSuccess", allSubClustersSuccess.toString()); } } @@ -61,6 +63,17 @@ public void setClusterId(String clusterId) { } } + public String getResourceGroupId() { + return this.resourceGroupId; + } + + public void setResourceGroupId(String resourceGroupId) { + this.resourceGroupId = resourceGroupId; + if(resourceGroupId != null){ + putQueryParameter("ResourceGroupId", resourceGroupId); + } + } + public String getSubClustersJson() { return this.subClustersJson; } diff --git a/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/model/v20190808/UpdatePrometheusMonitoringRequest.java b/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/model/v20190808/UpdatePrometheusMonitoringRequest.java new file mode 100644 index 0000000000..7fe59bc29e --- /dev/null +++ b/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/model/v20190808/UpdatePrometheusMonitoringRequest.java @@ -0,0 +1,93 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.arms.model.v20190808; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.arms.Endpoint; + +/** + * @author auto create + * @version + */ +public class UpdatePrometheusMonitoringRequest extends RpcAcsRequest { + + + private String configYaml; + + private String clusterId; + + private String type; + + private String monitoringName; + public UpdatePrometheusMonitoringRequest() { + super("ARMS", "2019-08-08", "UpdatePrometheusMonitoring", "arms"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public String getConfigYaml() { + return this.configYaml; + } + + public void setConfigYaml(String configYaml) { + this.configYaml = configYaml; + if(configYaml != null){ + putBodyParameter("ConfigYaml", configYaml); + } + } + + public String getClusterId() { + return this.clusterId; + } + + public void setClusterId(String clusterId) { + this.clusterId = clusterId; + if(clusterId != null){ + putQueryParameter("ClusterId", clusterId); + } + } + + public String getType() { + return this.type; + } + + public void setType(String type) { + this.type = type; + if(type != null){ + putQueryParameter("Type", type); + } + } + + public String getMonitoringName() { + return this.monitoringName; + } + + public void setMonitoringName(String monitoringName) { + this.monitoringName = monitoringName; + if(monitoringName != null){ + putQueryParameter("MonitoringName", monitoringName); + } + } + + @Override + public Class getResponseClass() { + return UpdatePrometheusMonitoringResponse.class; + } + +} diff --git a/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/model/v20190808/UpdatePrometheusMonitoringResponse.java b/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/model/v20190808/UpdatePrometheusMonitoringResponse.java new file mode 100644 index 0000000000..3374e68828 --- /dev/null +++ b/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/model/v20190808/UpdatePrometheusMonitoringResponse.java @@ -0,0 +1,76 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.arms.model.v20190808; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.arms.transform.v20190808.UpdatePrometheusMonitoringResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class UpdatePrometheusMonitoringResponse extends AcsResponse { + + private String requestId; + + private Integer code; + + private String data; + + private String message; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public Integer getCode() { + return this.code; + } + + public void setCode(Integer code) { + this.code = code; + } + + public String getData() { + return this.data; + } + + public void setData(String data) { + this.data = data; + } + + public String getMessage() { + return this.message; + } + + public void setMessage(String message) { + this.message = message; + } + + @Override + public UpdatePrometheusMonitoringResponse getInstance(UnmarshallerContext context) { + return UpdatePrometheusMonitoringResponseUnmarshaller.unmarshall(this, context); + } + + @Override + public boolean checkShowJsonItemName() { + return false; + } +} diff --git a/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/model/v20190808/UpdatePrometheusMonitoringStatusRequest.java b/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/model/v20190808/UpdatePrometheusMonitoringStatusRequest.java new file mode 100644 index 0000000000..eebc7c437c --- /dev/null +++ b/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/model/v20190808/UpdatePrometheusMonitoringStatusRequest.java @@ -0,0 +1,93 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.arms.model.v20190808; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.arms.Endpoint; + +/** + * @author auto create + * @version + */ +public class UpdatePrometheusMonitoringStatusRequest extends RpcAcsRequest { + + + private String clusterId; + + private String type; + + private String monitoringName; + + private String status; + public UpdatePrometheusMonitoringStatusRequest() { + super("ARMS", "2019-08-08", "UpdatePrometheusMonitoringStatus", "arms"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public String getClusterId() { + return this.clusterId; + } + + public void setClusterId(String clusterId) { + this.clusterId = clusterId; + if(clusterId != null){ + putQueryParameter("ClusterId", clusterId); + } + } + + public String getType() { + return this.type; + } + + public void setType(String type) { + this.type = type; + if(type != null){ + putQueryParameter("Type", type); + } + } + + public String getMonitoringName() { + return this.monitoringName; + } + + public void setMonitoringName(String monitoringName) { + this.monitoringName = monitoringName; + if(monitoringName != null){ + putQueryParameter("MonitoringName", monitoringName); + } + } + + public String getStatus() { + return this.status; + } + + public void setStatus(String status) { + this.status = status; + if(status != null){ + putQueryParameter("Status", status); + } + } + + @Override + public Class getResponseClass() { + return UpdatePrometheusMonitoringStatusResponse.class; + } + +} diff --git a/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/model/v20190808/UpdatePrometheusMonitoringStatusResponse.java b/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/model/v20190808/UpdatePrometheusMonitoringStatusResponse.java new file mode 100644 index 0000000000..636b4ca0ba --- /dev/null +++ b/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/model/v20190808/UpdatePrometheusMonitoringStatusResponse.java @@ -0,0 +1,76 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.arms.model.v20190808; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.arms.transform.v20190808.UpdatePrometheusMonitoringStatusResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class UpdatePrometheusMonitoringStatusResponse extends AcsResponse { + + private String requestId; + + private Integer code; + + private String data; + + private String message; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public Integer getCode() { + return this.code; + } + + public void setCode(Integer code) { + this.code = code; + } + + public String getData() { + return this.data; + } + + public void setData(String data) { + this.data = data; + } + + public String getMessage() { + return this.message; + } + + public void setMessage(String message) { + this.message = message; + } + + @Override + public UpdatePrometheusMonitoringStatusResponse getInstance(UnmarshallerContext context) { + return UpdatePrometheusMonitoringStatusResponseUnmarshaller.unmarshall(this, context); + } + + @Override + public boolean checkShowJsonItemName() { + return false; + } +} diff --git a/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/transform/v20190808/CreateOrUpdateAlertRuleResponseUnmarshaller.java b/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/transform/v20190808/CreateOrUpdateAlertRuleResponseUnmarshaller.java index fc1fcb4212..774f882ae4 100644 --- a/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/transform/v20190808/CreateOrUpdateAlertRuleResponseUnmarshaller.java +++ b/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/transform/v20190808/CreateOrUpdateAlertRuleResponseUnmarshaller.java @@ -25,7 +25,8 @@ import com.aliyuncs.arms.model.v20190808.CreateOrUpdateAlertRuleResponse.AlertRule.Filters; import com.aliyuncs.arms.model.v20190808.CreateOrUpdateAlertRuleResponse.AlertRule.Filters.CustomSLSFiltersItem; import com.aliyuncs.arms.model.v20190808.CreateOrUpdateAlertRuleResponse.AlertRule.Filters.DimFiltersItem; -import com.aliyuncs.arms.model.v20190808.CreateOrUpdateAlertRuleResponse.AlertRule.LabelsItem; +import com.aliyuncs.arms.model.v20190808.CreateOrUpdateAlertRuleResponse.AlertRule.LabelsItem; +import com.aliyuncs.arms.model.v20190808.CreateOrUpdateAlertRuleResponse.AlertRule.Tag; import com.aliyuncs.transform.UnmarshallerContext; @@ -142,6 +143,16 @@ public static CreateOrUpdateAlertRuleResponse unmarshall(CreateOrUpdateAlertRule annotations.add(annotationsItem); } alertRule.setAnnotations(annotations); + + List tags = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("CreateOrUpdateAlertRuleResponse.AlertRule.Tags.Length"); i++) { + Tag tag = new Tag(); + tag.setKey(_ctx.stringValue("CreateOrUpdateAlertRuleResponse.AlertRule.Tags["+ i +"].Key")); + tag.setValue(_ctx.stringValue("CreateOrUpdateAlertRuleResponse.AlertRule.Tags["+ i +"].Value")); + + tags.add(tag); + } + alertRule.setTags(tags); createOrUpdateAlertRuleResponse.setAlertRule(alertRule); return createOrUpdateAlertRuleResponse; diff --git a/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/transform/v20190808/CreateOrUpdateNotificationPolicyResponseUnmarshaller.java b/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/transform/v20190808/CreateOrUpdateNotificationPolicyResponseUnmarshaller.java index 6653f7f115..f2b6f70122 100644 --- a/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/transform/v20190808/CreateOrUpdateNotificationPolicyResponseUnmarshaller.java +++ b/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/transform/v20190808/CreateOrUpdateNotificationPolicyResponseUnmarshaller.java @@ -71,6 +71,12 @@ public static CreateOrUpdateNotificationPolicyResponse unmarshall(CreateOrUpdate notifyObjectsItem.setNotifyObjectId(_ctx.longValue("CreateOrUpdateNotificationPolicyResponse.NotificationPolicy.NotifyRule.NotifyObjects["+ i +"].NotifyObjectId")); notifyObjectsItem.setNotifyObjectName(_ctx.stringValue("CreateOrUpdateNotificationPolicyResponse.NotificationPolicy.NotifyRule.NotifyObjects["+ i +"].NotifyObjectName")); + List notifyChannels1 = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("CreateOrUpdateNotificationPolicyResponse.NotificationPolicy.NotifyRule.NotifyObjects["+ i +"].NotifyChannels.Length"); j++) { + notifyChannels1.add(_ctx.stringValue("CreateOrUpdateNotificationPolicyResponse.NotificationPolicy.NotifyRule.NotifyObjects["+ i +"].NotifyChannels["+ j +"]")); + } + notifyObjectsItem.setNotifyChannels1(notifyChannels1); + notifyObjects.add(notifyObjectsItem); } notifyRule.setNotifyObjects(notifyObjects); diff --git a/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/transform/v20190808/CreatePrometheusMonitoringResponseUnmarshaller.java b/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/transform/v20190808/CreatePrometheusMonitoringResponseUnmarshaller.java new file mode 100644 index 0000000000..7fce294f97 --- /dev/null +++ b/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/transform/v20190808/CreatePrometheusMonitoringResponseUnmarshaller.java @@ -0,0 +1,32 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.arms.transform.v20190808; + +import com.aliyuncs.arms.model.v20190808.CreatePrometheusMonitoringResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class CreatePrometheusMonitoringResponseUnmarshaller { + + public static CreatePrometheusMonitoringResponse unmarshall(CreatePrometheusMonitoringResponse createPrometheusMonitoringResponse, UnmarshallerContext _ctx) { + + createPrometheusMonitoringResponse.setRequestId(_ctx.stringValue("CreatePrometheusMonitoringResponse.RequestId")); + createPrometheusMonitoringResponse.setCode(_ctx.integerValue("CreatePrometheusMonitoringResponse.Code")); + createPrometheusMonitoringResponse.setData(_ctx.stringValue("CreatePrometheusMonitoringResponse.Data")); + createPrometheusMonitoringResponse.setMessage(_ctx.stringValue("CreatePrometheusMonitoringResponse.Message")); + + return createPrometheusMonitoringResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/transform/v20190808/DeletePrometheusMonitoringResponseUnmarshaller.java b/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/transform/v20190808/DeletePrometheusMonitoringResponseUnmarshaller.java new file mode 100644 index 0000000000..3723530696 --- /dev/null +++ b/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/transform/v20190808/DeletePrometheusMonitoringResponseUnmarshaller.java @@ -0,0 +1,32 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.arms.transform.v20190808; + +import com.aliyuncs.arms.model.v20190808.DeletePrometheusMonitoringResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DeletePrometheusMonitoringResponseUnmarshaller { + + public static DeletePrometheusMonitoringResponse unmarshall(DeletePrometheusMonitoringResponse deletePrometheusMonitoringResponse, UnmarshallerContext _ctx) { + + deletePrometheusMonitoringResponse.setRequestId(_ctx.stringValue("DeletePrometheusMonitoringResponse.RequestId")); + deletePrometheusMonitoringResponse.setCode(_ctx.integerValue("DeletePrometheusMonitoringResponse.Code")); + deletePrometheusMonitoringResponse.setData(_ctx.stringValue("DeletePrometheusMonitoringResponse.Data")); + deletePrometheusMonitoringResponse.setMessage(_ctx.stringValue("DeletePrometheusMonitoringResponse.Message")); + + return deletePrometheusMonitoringResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/transform/v20190808/EnableMetricResponseUnmarshaller.java b/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/transform/v20190808/EnableMetricResponseUnmarshaller.java new file mode 100644 index 0000000000..e80b35d835 --- /dev/null +++ b/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/transform/v20190808/EnableMetricResponseUnmarshaller.java @@ -0,0 +1,33 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.arms.transform.v20190808; + +import com.aliyuncs.arms.model.v20190808.EnableMetricResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class EnableMetricResponseUnmarshaller { + + public static EnableMetricResponse unmarshall(EnableMetricResponse enableMetricResponse, UnmarshallerContext _ctx) { + + enableMetricResponse.setRequestId(_ctx.stringValue("EnableMetricResponse.RequestId")); + enableMetricResponse.setSuccess(_ctx.booleanValue("EnableMetricResponse.Success")); + enableMetricResponse.setData(_ctx.stringValue("EnableMetricResponse.Data")); + enableMetricResponse.setCode(_ctx.longValue("EnableMetricResponse.Code")); + enableMetricResponse.setMessage(_ctx.stringValue("EnableMetricResponse.Message")); + + return enableMetricResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/transform/v20190808/GetAlertRulesResponseUnmarshaller.java b/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/transform/v20190808/GetAlertRulesResponseUnmarshaller.java index 9f0f4b0e64..6624df4b07 100644 --- a/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/transform/v20190808/GetAlertRulesResponseUnmarshaller.java +++ b/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/transform/v20190808/GetAlertRulesResponseUnmarshaller.java @@ -26,7 +26,8 @@ import com.aliyuncs.arms.model.v20190808.GetAlertRulesResponse.PageBean.AlertRulesItem.Filters; import com.aliyuncs.arms.model.v20190808.GetAlertRulesResponse.PageBean.AlertRulesItem.Filters.CustomSLSFiltersItem; import com.aliyuncs.arms.model.v20190808.GetAlertRulesResponse.PageBean.AlertRulesItem.Filters.DimFiltersItem; -import com.aliyuncs.arms.model.v20190808.GetAlertRulesResponse.PageBean.AlertRulesItem.LabelsItem; +import com.aliyuncs.arms.model.v20190808.GetAlertRulesResponse.PageBean.AlertRulesItem.LabelsItem; +import com.aliyuncs.arms.model.v20190808.GetAlertRulesResponse.PageBean.AlertRulesItem.TagsItem; import com.aliyuncs.transform.UnmarshallerContext; @@ -63,6 +64,7 @@ public static GetAlertRulesResponse unmarshall(GetAlertRulesResponse getAlertRul alertRulesItem.setDuration(_ctx.stringValue("GetAlertRulesResponse.PageBean.AlertRules["+ i +"].Duration")); alertRulesItem.setLevel(_ctx.stringValue("GetAlertRulesResponse.PageBean.AlertRules["+ i +"].Level")); alertRulesItem.setMessage(_ctx.stringValue("GetAlertRulesResponse.PageBean.AlertRules["+ i +"].Message")); + alertRulesItem.setDurationCompareType(_ctx.stringValue("GetAlertRulesResponse.PageBean.AlertRules["+ i +"].DurationCompareType")); List pids = new ArrayList(); for (int j = 0; j < _ctx.lengthValue("GetAlertRulesResponse.PageBean.AlertRules["+ i +"].Pids.Length"); j++) { @@ -151,6 +153,16 @@ public static GetAlertRulesResponse unmarshall(GetAlertRulesResponse getAlertRul } alertRulesItem.setAnnotations(annotations); + List tags = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("GetAlertRulesResponse.PageBean.AlertRules["+ i +"].Tags.Length"); j++) { + TagsItem tagsItem = new TagsItem(); + tagsItem.setKey(_ctx.stringValue("GetAlertRulesResponse.PageBean.AlertRules["+ i +"].Tags["+ j +"].Key")); + tagsItem.setValue(_ctx.stringValue("GetAlertRulesResponse.PageBean.AlertRules["+ i +"].Tags["+ j +"].Value")); + + tags.add(tagsItem); + } + alertRulesItem.setTags(tags); + alertRules.add(alertRulesItem); } pageBean.setAlertRules(alertRules); diff --git a/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/transform/v20190808/GetPrometheusMonitoringResponseUnmarshaller.java b/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/transform/v20190808/GetPrometheusMonitoringResponseUnmarshaller.java new file mode 100644 index 0000000000..0fe98ab336 --- /dev/null +++ b/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/transform/v20190808/GetPrometheusMonitoringResponseUnmarshaller.java @@ -0,0 +1,40 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.arms.transform.v20190808; + +import com.aliyuncs.arms.model.v20190808.GetPrometheusMonitoringResponse; +import com.aliyuncs.arms.model.v20190808.GetPrometheusMonitoringResponse.Data; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class GetPrometheusMonitoringResponseUnmarshaller { + + public static GetPrometheusMonitoringResponse unmarshall(GetPrometheusMonitoringResponse getPrometheusMonitoringResponse, UnmarshallerContext _ctx) { + + getPrometheusMonitoringResponse.setRequestId(_ctx.stringValue("GetPrometheusMonitoringResponse.RequestId")); + getPrometheusMonitoringResponse.setCode(_ctx.integerValue("GetPrometheusMonitoringResponse.Code")); + getPrometheusMonitoringResponse.setMessage(_ctx.stringValue("GetPrometheusMonitoringResponse.Message")); + + Data data = new Data(); + data.setClusterId(_ctx.stringValue("GetPrometheusMonitoringResponse.Data.ClusterId")); + data.setMonitoringName(_ctx.stringValue("GetPrometheusMonitoringResponse.Data.MonitoringName")); + data.setType(_ctx.stringValue("GetPrometheusMonitoringResponse.Data.Type")); + data.setStatus(_ctx.stringValue("GetPrometheusMonitoringResponse.Data.Status")); + data.setConfigYaml(_ctx.stringValue("GetPrometheusMonitoringResponse.Data.ConfigYaml")); + getPrometheusMonitoringResponse.setData(data); + + return getPrometheusMonitoringResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/transform/v20190808/ListAlertsResponseUnmarshaller.java b/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/transform/v20190808/ListAlertsResponseUnmarshaller.java index a21d7b8572..2197297413 100644 --- a/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/transform/v20190808/ListAlertsResponseUnmarshaller.java +++ b/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/transform/v20190808/ListAlertsResponseUnmarshaller.java @@ -46,6 +46,7 @@ public static ListAlertsResponse unmarshall(ListAlertsResponse listAlertsRespons listAlertsItem.setDispatchRuleName(_ctx.stringValue("ListAlertsResponse.PageBean.ListAlerts["+ i +"].DispatchRuleName")); listAlertsItem.setCreateTime(_ctx.stringValue("ListAlertsResponse.PageBean.ListAlerts["+ i +"].CreateTime")); listAlertsItem.setAlertId(_ctx.longValue("ListAlertsResponse.PageBean.ListAlerts["+ i +"].AlertId")); + listAlertsItem.setSolution(_ctx.stringValue("ListAlertsResponse.PageBean.ListAlerts["+ i +"].Solution")); List activities = new ArrayList(); for (int j = 0; j < _ctx.lengthValue("ListAlertsResponse.PageBean.ListAlerts["+ i +"].Activities.Length"); j++) { diff --git a/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/transform/v20190808/ListNotificationPoliciesResponseUnmarshaller.java b/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/transform/v20190808/ListNotificationPoliciesResponseUnmarshaller.java index c066d0385d..8c3d1bce26 100644 --- a/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/transform/v20190808/ListNotificationPoliciesResponseUnmarshaller.java +++ b/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/transform/v20190808/ListNotificationPoliciesResponseUnmarshaller.java @@ -79,6 +79,12 @@ public static ListNotificationPoliciesResponse unmarshall(ListNotificationPolici notifyObjectsItem.setNotifyObjectId(_ctx.longValue("ListNotificationPoliciesResponse.PageBean.NotificationPolicies["+ i +"].NotifyRule.NotifyObjects["+ j +"].NotifyObjectId")); notifyObjectsItem.setNotifyObjectName(_ctx.stringValue("ListNotificationPoliciesResponse.PageBean.NotificationPolicies["+ i +"].NotifyRule.NotifyObjects["+ j +"].NotifyObjectName")); + List notifyChannels1 = new ArrayList(); + for (int k = 0; k < _ctx.lengthValue("ListNotificationPoliciesResponse.PageBean.NotificationPolicies["+ i +"].NotifyRule.NotifyObjects["+ j +"].NotifyChannels.Length"); k++) { + notifyChannels1.add(_ctx.stringValue("ListNotificationPoliciesResponse.PageBean.NotificationPolicies["+ i +"].NotifyRule.NotifyObjects["+ j +"].NotifyChannels["+ k +"]")); + } + notifyObjectsItem.setNotifyChannels1(notifyChannels1); + notifyObjects.add(notifyObjectsItem); } notifyRule.setNotifyObjects(notifyObjects); diff --git a/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/transform/v20190808/ListPrometheusAlertRulesResponseUnmarshaller.java b/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/transform/v20190808/ListPrometheusAlertRulesResponseUnmarshaller.java index 49022b6f7f..80fcbf6e17 100644 --- a/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/transform/v20190808/ListPrometheusAlertRulesResponseUnmarshaller.java +++ b/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/transform/v20190808/ListPrometheusAlertRulesResponseUnmarshaller.java @@ -20,7 +20,8 @@ import com.aliyuncs.arms.model.v20190808.ListPrometheusAlertRulesResponse; import com.aliyuncs.arms.model.v20190808.ListPrometheusAlertRulesResponse.PrometheusAlertRule; import com.aliyuncs.arms.model.v20190808.ListPrometheusAlertRulesResponse.PrometheusAlertRule.Annotation; -import com.aliyuncs.arms.model.v20190808.ListPrometheusAlertRulesResponse.PrometheusAlertRule.Label; +import com.aliyuncs.arms.model.v20190808.ListPrometheusAlertRulesResponse.PrometheusAlertRule.Label; +import com.aliyuncs.arms.model.v20190808.ListPrometheusAlertRulesResponse.PrometheusAlertRule.TagsItem; import com.aliyuncs.transform.UnmarshallerContext; @@ -64,6 +65,16 @@ public static ListPrometheusAlertRulesResponse unmarshall(ListPrometheusAlertRul } prometheusAlertRule.setAnnotations(annotations); + List tags = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("ListPrometheusAlertRulesResponse.PrometheusAlertRules["+ i +"].Tags.Length"); j++) { + TagsItem tagsItem = new TagsItem(); + tagsItem.setKey(_ctx.stringValue("ListPrometheusAlertRulesResponse.PrometheusAlertRules["+ i +"].Tags["+ j +"].Key")); + tagsItem.setValue(_ctx.stringValue("ListPrometheusAlertRulesResponse.PrometheusAlertRules["+ i +"].Tags["+ j +"].Value")); + + tags.add(tagsItem); + } + prometheusAlertRule.setTags(tags); + prometheusAlertRules.add(prometheusAlertRule); } listPrometheusAlertRulesResponse.setPrometheusAlertRules(prometheusAlertRules); diff --git a/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/transform/v20190808/ListPrometheusInstanceByTagAndResourceGroupIdResponseUnmarshaller.java b/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/transform/v20190808/ListPrometheusInstanceByTagAndResourceGroupIdResponseUnmarshaller.java index db3150e029..f779ba4e93 100644 --- a/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/transform/v20190808/ListPrometheusInstanceByTagAndResourceGroupIdResponseUnmarshaller.java +++ b/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/transform/v20190808/ListPrometheusInstanceByTagAndResourceGroupIdResponseUnmarshaller.java @@ -49,6 +49,7 @@ public static ListPrometheusInstanceByTagAndResourceGroupIdResponse unmarshall(L prometheusInstancesItem.setPaymentType(_ctx.stringValue("ListPrometheusInstanceByTagAndResourceGroupIdResponse.Data.PrometheusInstances["+ i +"].PaymentType")); prometheusInstancesItem.setGrafanaInstanceId(_ctx.stringValue("ListPrometheusInstanceByTagAndResourceGroupIdResponse.Data.PrometheusInstances["+ i +"].GrafanaInstanceId")); prometheusInstancesItem.setResourceGroupId(_ctx.stringValue("ListPrometheusInstanceByTagAndResourceGroupIdResponse.Data.PrometheusInstances["+ i +"].ResourceGroupId")); + prometheusInstancesItem.setResourceType(_ctx.stringValue("ListPrometheusInstanceByTagAndResourceGroupIdResponse.Data.PrometheusInstances["+ i +"].ResourceType")); List tags = new ArrayList(); for (int j = 0; j < _ctx.lengthValue("ListPrometheusInstanceByTagAndResourceGroupIdResponse.Data.PrometheusInstances["+ i +"].Tags.Length"); j++) { diff --git a/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/transform/v20190808/ListPrometheusMonitoringResponseUnmarshaller.java b/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/transform/v20190808/ListPrometheusMonitoringResponseUnmarshaller.java new file mode 100644 index 0000000000..b74dede27f --- /dev/null +++ b/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/transform/v20190808/ListPrometheusMonitoringResponseUnmarshaller.java @@ -0,0 +1,48 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.arms.transform.v20190808; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.arms.model.v20190808.ListPrometheusMonitoringResponse; +import com.aliyuncs.arms.model.v20190808.ListPrometheusMonitoringResponse.Monitoring; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class ListPrometheusMonitoringResponseUnmarshaller { + + public static ListPrometheusMonitoringResponse unmarshall(ListPrometheusMonitoringResponse listPrometheusMonitoringResponse, UnmarshallerContext _ctx) { + + listPrometheusMonitoringResponse.setRequestId(_ctx.stringValue("ListPrometheusMonitoringResponse.RequestId")); + listPrometheusMonitoringResponse.setCode(_ctx.integerValue("ListPrometheusMonitoringResponse.Code")); + listPrometheusMonitoringResponse.setMessage(_ctx.stringValue("ListPrometheusMonitoringResponse.Message")); + + List data = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("ListPrometheusMonitoringResponse.Data.Length"); i++) { + Monitoring monitoring = new Monitoring(); + monitoring.setClusterId(_ctx.stringValue("ListPrometheusMonitoringResponse.Data["+ i +"].ClusterId")); + monitoring.setMonitoringName(_ctx.stringValue("ListPrometheusMonitoringResponse.Data["+ i +"].MonitoringName")); + monitoring.setType(_ctx.stringValue("ListPrometheusMonitoringResponse.Data["+ i +"].Type")); + monitoring.setConfigYaml(_ctx.stringValue("ListPrometheusMonitoringResponse.Data["+ i +"].ConfigYaml")); + monitoring.setStatus(_ctx.stringValue("ListPrometheusMonitoringResponse.Data["+ i +"].Status")); + + data.add(monitoring); + } + listPrometheusMonitoringResponse.setData(data); + + return listPrometheusMonitoringResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/transform/v20190808/SearchAlertRulesResponseUnmarshaller.java b/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/transform/v20190808/SearchAlertRulesResponseUnmarshaller.java index 745c65fe01..ee31503c44 100644 --- a/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/transform/v20190808/SearchAlertRulesResponseUnmarshaller.java +++ b/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/transform/v20190808/SearchAlertRulesResponseUnmarshaller.java @@ -68,6 +68,12 @@ public static SearchAlertRulesResponse unmarshall(SearchAlertRulesResponse searc } alertRuleEntity.setAlertWays(alertWays); + List alertWay = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("SearchAlertRulesResponse.PageBean.AlertRules["+ i +"].AlertWay.Length"); j++) { + alertWay.add(_ctx.stringValue("SearchAlertRulesResponse.PageBean.AlertRules["+ i +"].AlertWay["+ j +"]")); + } + alertRuleEntity.setAlertWay(alertWay); + AlarmContext alarmContext = new AlarmContext(); alarmContext.setAlarmContentTemplate(_ctx.stringValue("SearchAlertRulesResponse.PageBean.AlertRules["+ i +"].AlarmContext.AlarmContentTemplate")); alarmContext.setSubTitle(_ctx.stringValue("SearchAlertRulesResponse.PageBean.AlertRules["+ i +"].AlarmContext.SubTitle")); diff --git a/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/transform/v20190808/TagResourcesResponseUnmarshaller.java b/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/transform/v20190808/TagResourcesResponseUnmarshaller.java index 74afa5617f..4b1d1bef35 100644 --- a/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/transform/v20190808/TagResourcesResponseUnmarshaller.java +++ b/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/transform/v20190808/TagResourcesResponseUnmarshaller.java @@ -23,9 +23,7 @@ public class TagResourcesResponseUnmarshaller { public static TagResourcesResponse unmarshall(TagResourcesResponse tagResourcesResponse, UnmarshallerContext _ctx) { tagResourcesResponse.setRequestId(_ctx.stringValue("TagResourcesResponse.RequestId")); - tagResourcesResponse.setData(_ctx.stringValue("TagResourcesResponse.Data")); - tagResourcesResponse.setCode(_ctx.stringValue("TagResourcesResponse.Code")); - tagResourcesResponse.setMessage(_ctx.stringValue("TagResourcesResponse.Message")); + tagResourcesResponse.setData(_ctx.stringValue("TagResourcesResponse.Data")); return tagResourcesResponse; } diff --git a/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/transform/v20190808/UntagResourcesResponseUnmarshaller.java b/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/transform/v20190808/UntagResourcesResponseUnmarshaller.java index 182724eee6..bb2fc31c51 100644 --- a/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/transform/v20190808/UntagResourcesResponseUnmarshaller.java +++ b/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/transform/v20190808/UntagResourcesResponseUnmarshaller.java @@ -23,9 +23,7 @@ public class UntagResourcesResponseUnmarshaller { public static UntagResourcesResponse unmarshall(UntagResourcesResponse untagResourcesResponse, UnmarshallerContext _ctx) { untagResourcesResponse.setRequestId(_ctx.stringValue("UntagResourcesResponse.RequestId")); - untagResourcesResponse.setData(_ctx.stringValue("UntagResourcesResponse.Data")); - untagResourcesResponse.setCode(_ctx.stringValue("UntagResourcesResponse.Code")); - untagResourcesResponse.setMessage(_ctx.stringValue("UntagResourcesResponse.Message")); + untagResourcesResponse.setData(_ctx.stringValue("UntagResourcesResponse.Data")); return untagResourcesResponse; } diff --git a/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/transform/v20190808/UpdatePrometheusMonitoringResponseUnmarshaller.java b/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/transform/v20190808/UpdatePrometheusMonitoringResponseUnmarshaller.java new file mode 100644 index 0000000000..58ff97ab2d --- /dev/null +++ b/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/transform/v20190808/UpdatePrometheusMonitoringResponseUnmarshaller.java @@ -0,0 +1,32 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.arms.transform.v20190808; + +import com.aliyuncs.arms.model.v20190808.UpdatePrometheusMonitoringResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class UpdatePrometheusMonitoringResponseUnmarshaller { + + public static UpdatePrometheusMonitoringResponse unmarshall(UpdatePrometheusMonitoringResponse updatePrometheusMonitoringResponse, UnmarshallerContext _ctx) { + + updatePrometheusMonitoringResponse.setRequestId(_ctx.stringValue("UpdatePrometheusMonitoringResponse.RequestId")); + updatePrometheusMonitoringResponse.setCode(_ctx.integerValue("UpdatePrometheusMonitoringResponse.Code")); + updatePrometheusMonitoringResponse.setData(_ctx.stringValue("UpdatePrometheusMonitoringResponse.Data")); + updatePrometheusMonitoringResponse.setMessage(_ctx.stringValue("UpdatePrometheusMonitoringResponse.Message")); + + return updatePrometheusMonitoringResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/transform/v20190808/UpdatePrometheusMonitoringStatusResponseUnmarshaller.java b/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/transform/v20190808/UpdatePrometheusMonitoringStatusResponseUnmarshaller.java new file mode 100644 index 0000000000..07e3b44135 --- /dev/null +++ b/aliyun-java-sdk-arms/src/main/java/com/aliyuncs/arms/transform/v20190808/UpdatePrometheusMonitoringStatusResponseUnmarshaller.java @@ -0,0 +1,32 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.arms.transform.v20190808; + +import com.aliyuncs.arms.model.v20190808.UpdatePrometheusMonitoringStatusResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class UpdatePrometheusMonitoringStatusResponseUnmarshaller { + + public static UpdatePrometheusMonitoringStatusResponse unmarshall(UpdatePrometheusMonitoringStatusResponse updatePrometheusMonitoringStatusResponse, UnmarshallerContext _ctx) { + + updatePrometheusMonitoringStatusResponse.setRequestId(_ctx.stringValue("UpdatePrometheusMonitoringStatusResponse.RequestId")); + updatePrometheusMonitoringStatusResponse.setCode(_ctx.integerValue("UpdatePrometheusMonitoringStatusResponse.Code")); + updatePrometheusMonitoringStatusResponse.setData(_ctx.stringValue("UpdatePrometheusMonitoringStatusResponse.Data")); + updatePrometheusMonitoringStatusResponse.setMessage(_ctx.stringValue("UpdatePrometheusMonitoringStatusResponse.Message")); + + return updatePrometheusMonitoringStatusResponse; + } +} \ No newline at end of file