From e859782ba369de82dbaa7b6f14cf8f8d1d93bbe1 Mon Sep 17 00:00:00 2001 From: ucloud-bot Date: Fri, 11 Jul 2025 05:11:16 +0000 Subject: [PATCH] sdk: rolling update for 1.2.44-release --- VERSION | 2 +- examples/generic/pom.xml | 4 +- examples/uhost/pom.xml | 4 +- pom.xml | 3 +- ucloud-sdk-java-cloudwatch/pom.xml | 6 +- ucloud-sdk-java-common/pom.xml | 4 +- ucloud-sdk-java-cube/pom.xml | 6 +- ucloud-sdk-java-ipsecvpn/pom.xml | 6 +- ucloud-sdk-java-label/pom.xml | 6 +- ucloud-sdk-java-nlb/pom.xml | 6 +- ucloud-sdk-java-pathx/pom.xml | 6 +- ucloud-sdk-java-sts/pom.xml | 6 +- ucloud-sdk-java-uaccount/pom.xml | 6 +- ucloud-sdk-java-uai_modelverse/pom.xml | 6 +- ucloud-sdk-java-ubill/pom.xml | 6 +- ucloud-sdk-java-ucdn/pom.xml | 6 +- ucloud-sdk-java-ucompshare/pom.xml | 6 +- ucloud-sdk-java-udb/pom.xml | 6 +- ucloud-sdk-java-udbproxy/pom.xml | 6 +- ucloud-sdk-java-udi/pom.xml | 6 +- ucloud-sdk-java-udisk/pom.xml | 6 +- ucloud-sdk-java-udns/pom.xml | 6 +- ucloud-sdk-java-udpn/pom.xml | 6 +- ucloud-sdk-java-uec/pom.xml | 6 +- ucloud-sdk-java-uewaf/pom.xml | 6 +- ucloud-sdk-java-ufile/pom.xml | 6 +- ucloud-sdk-java-ufs/pom.xml | 6 +- .../models/AddUFSVolumeMountPointRequest.java | 12 ++ .../ufs/models/CreateUFSVolumeRequest.java | 12 ++ .../ufs/models/DescribeUFSVolume2Request.java | 19 +- .../DescribeUFSVolumeMountpointRequest.java | 12 ++ .../DescribeUFSVolumeMountpointResponse.java | 2 +- .../ufs/models/ExtendUFSVolumeRequest.java | 19 +- .../ufs/models/RemoveUFSVolumeRequest.java | 19 +- ucloud-sdk-java-uhost/pom.xml | 6 +- ucloud-sdk-java-uk8s/pom.xml | 6 +- ucloud-sdk-java-ulb/pom.xml | 6 +- ucloud-sdk-java-ulog/pom.xml | 6 +- ucloud-sdk-java-umem/pom.xml | 6 +- ucloud-sdk-java-umon/pom.xml | 48 +++++ .../cn/ucloud/umon/client/UMonClient.java | 141 +++++++++++++++ .../umon/client/UMonClientInterface.java | 108 +++++++++++ .../umon/models/BindAlarmTemplateRequest.java | 102 +++++++++++ .../models/BindAlarmTemplateResponse.java | 20 +++ .../models/DescribeResourceMetricRequest.java | 48 +++++ .../DescribeResourceMetricResponse.java | 35 ++++ .../models/GetAlarmRecordListRequest.java | 60 +++++++ .../models/GetAlarmRecordListResponse.java | 170 ++++++++++++++++++ .../models/GetAlarmTemplateListRequest.java | 71 ++++++++ .../models/GetAlarmTemplateListResponse.java | 134 ++++++++++++++ .../umon/models/GetMetricOverviewRequest.java | 110 ++++++++++++ .../models/GetMetricOverviewResponse.java | 98 ++++++++++ .../ucloud/umon/models/GetMetricRequest.java | 135 ++++++++++++++ .../ucloud/umon/models/GetMetricResponse.java | 73 ++++++++ .../GetResourceAlarmTemplateRequest.java | 77 ++++++++ .../GetResourceAlarmTemplateResponse.java | 110 ++++++++++++ .../models/UnbindAlarmTemplateRequest.java | 74 ++++++++ .../models/UnbindAlarmTemplateResponse.java | 20 +++ ucloud-sdk-java-umongodb/pom.xml | 6 +- ucloud-sdk-java-unet/pom.xml | 6 +- ucloud-sdk-java-upgsql/pom.xml | 6 +- ucloud-sdk-java-uphone/pom.xml | 6 +- ucloud-sdk-java-uphost/pom.xml | 6 +- ucloud-sdk-java-uslk/pom.xml | 6 +- ucloud-sdk-java-usms/pom.xml | 6 +- ucloud-sdk-java-usnap/pom.xml | 6 +- ucloud-sdk-java-uvms/pom.xml | 6 +- ucloud-sdk-java-vpc/pom.xml | 6 +- 68 files changed, 1842 insertions(+), 126 deletions(-) create mode 100644 ucloud-sdk-java-umon/pom.xml create mode 100644 ucloud-sdk-java-umon/src/main/java/cn/ucloud/umon/client/UMonClient.java create mode 100644 ucloud-sdk-java-umon/src/main/java/cn/ucloud/umon/client/UMonClientInterface.java create mode 100644 ucloud-sdk-java-umon/src/main/java/cn/ucloud/umon/models/BindAlarmTemplateRequest.java create mode 100644 ucloud-sdk-java-umon/src/main/java/cn/ucloud/umon/models/BindAlarmTemplateResponse.java create mode 100644 ucloud-sdk-java-umon/src/main/java/cn/ucloud/umon/models/DescribeResourceMetricRequest.java create mode 100644 ucloud-sdk-java-umon/src/main/java/cn/ucloud/umon/models/DescribeResourceMetricResponse.java create mode 100644 ucloud-sdk-java-umon/src/main/java/cn/ucloud/umon/models/GetAlarmRecordListRequest.java create mode 100644 ucloud-sdk-java-umon/src/main/java/cn/ucloud/umon/models/GetAlarmRecordListResponse.java create mode 100644 ucloud-sdk-java-umon/src/main/java/cn/ucloud/umon/models/GetAlarmTemplateListRequest.java create mode 100644 ucloud-sdk-java-umon/src/main/java/cn/ucloud/umon/models/GetAlarmTemplateListResponse.java create mode 100644 ucloud-sdk-java-umon/src/main/java/cn/ucloud/umon/models/GetMetricOverviewRequest.java create mode 100644 ucloud-sdk-java-umon/src/main/java/cn/ucloud/umon/models/GetMetricOverviewResponse.java create mode 100644 ucloud-sdk-java-umon/src/main/java/cn/ucloud/umon/models/GetMetricRequest.java create mode 100644 ucloud-sdk-java-umon/src/main/java/cn/ucloud/umon/models/GetMetricResponse.java create mode 100644 ucloud-sdk-java-umon/src/main/java/cn/ucloud/umon/models/GetResourceAlarmTemplateRequest.java create mode 100644 ucloud-sdk-java-umon/src/main/java/cn/ucloud/umon/models/GetResourceAlarmTemplateResponse.java create mode 100644 ucloud-sdk-java-umon/src/main/java/cn/ucloud/umon/models/UnbindAlarmTemplateRequest.java create mode 100644 ucloud-sdk-java-umon/src/main/java/cn/ucloud/umon/models/UnbindAlarmTemplateResponse.java diff --git a/VERSION b/VERSION index d0f06d99..3a83548b 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.2.43-release +1.2.44-release diff --git a/examples/generic/pom.xml b/examples/generic/pom.xml index 4630c178..642cee65 100644 --- a/examples/generic/pom.xml +++ b/examples/generic/pom.xml @@ -7,7 +7,7 @@ ucloud-sdk-java cn.ucloud - 1.2.43-release + 1.2.44-release 4.0.0 @@ -18,7 +18,7 @@ cn.ucloud ucloud-sdk-java-common - 1.2.43-release + 1.2.44-release diff --git a/examples/uhost/pom.xml b/examples/uhost/pom.xml index d8daf82c..a28df1d7 100644 --- a/examples/uhost/pom.xml +++ b/examples/uhost/pom.xml @@ -7,7 +7,7 @@ ucloud-sdk-java cn.ucloud - 1.2.43-release + 1.2.44-release 4.0.0 @@ -18,7 +18,7 @@ cn.ucloud ucloud-sdk-java-uhost - 1.2.43-release + 1.2.44-release diff --git a/pom.xml b/pom.xml index a236b6ef..5122301f 100644 --- a/pom.xml +++ b/pom.xml @@ -7,7 +7,7 @@ cn.ucloud ucloud-sdk-java pom - 1.2.43-release + 1.2.44-release ucloud-sdk-java-common ucloud-sdk-java-cloudwatch @@ -37,6 +37,7 @@ ucloud-sdk-java-ulb ucloud-sdk-java-ulog ucloud-sdk-java-umem + ucloud-sdk-java-umon ucloud-sdk-java-umongodb ucloud-sdk-java-unet ucloud-sdk-java-uphost diff --git a/ucloud-sdk-java-cloudwatch/pom.xml b/ucloud-sdk-java-cloudwatch/pom.xml index b6684c0c..04409f3a 100644 --- a/ucloud-sdk-java-cloudwatch/pom.xml +++ b/ucloud-sdk-java-cloudwatch/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.43-release + 1.2.44-release 4.0.0 ucloud-sdk-java-cloudwatch - 1.2.43-release + 1.2.44-release cn.ucloud ucloud-sdk-java-common - 1.2.43-release + 1.2.44-release diff --git a/ucloud-sdk-java-common/pom.xml b/ucloud-sdk-java-common/pom.xml index 42bb1225..2fa74db3 100644 --- a/ucloud-sdk-java-common/pom.xml +++ b/ucloud-sdk-java-common/pom.xml @@ -7,12 +7,12 @@ ucloud-sdk-java cn.ucloud - 1.2.43-release + 1.2.44-release 4.0.0 ucloud-sdk-java-common - 1.2.43-release + 1.2.44-release diff --git a/ucloud-sdk-java-cube/pom.xml b/ucloud-sdk-java-cube/pom.xml index 92b08914..01cc0299 100644 --- a/ucloud-sdk-java-cube/pom.xml +++ b/ucloud-sdk-java-cube/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.43-release + 1.2.44-release 4.0.0 ucloud-sdk-java-cube - 1.2.43-release + 1.2.44-release cn.ucloud ucloud-sdk-java-common - 1.2.43-release + 1.2.44-release diff --git a/ucloud-sdk-java-ipsecvpn/pom.xml b/ucloud-sdk-java-ipsecvpn/pom.xml index 3c066617..430d9534 100644 --- a/ucloud-sdk-java-ipsecvpn/pom.xml +++ b/ucloud-sdk-java-ipsecvpn/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.43-release + 1.2.44-release 4.0.0 ucloud-sdk-java-ipsecvpn - 1.2.43-release + 1.2.44-release cn.ucloud ucloud-sdk-java-common - 1.2.43-release + 1.2.44-release diff --git a/ucloud-sdk-java-label/pom.xml b/ucloud-sdk-java-label/pom.xml index 7d924333..c8896d5b 100644 --- a/ucloud-sdk-java-label/pom.xml +++ b/ucloud-sdk-java-label/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.43-release + 1.2.44-release 4.0.0 ucloud-sdk-java-label - 1.2.43-release + 1.2.44-release cn.ucloud ucloud-sdk-java-common - 1.2.43-release + 1.2.44-release diff --git a/ucloud-sdk-java-nlb/pom.xml b/ucloud-sdk-java-nlb/pom.xml index 4501973c..000c106f 100644 --- a/ucloud-sdk-java-nlb/pom.xml +++ b/ucloud-sdk-java-nlb/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.43-release + 1.2.44-release 4.0.0 ucloud-sdk-java-nlb - 1.2.43-release + 1.2.44-release cn.ucloud ucloud-sdk-java-common - 1.2.43-release + 1.2.44-release diff --git a/ucloud-sdk-java-pathx/pom.xml b/ucloud-sdk-java-pathx/pom.xml index c3a453a0..58a4e05c 100644 --- a/ucloud-sdk-java-pathx/pom.xml +++ b/ucloud-sdk-java-pathx/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.43-release + 1.2.44-release 4.0.0 ucloud-sdk-java-pathx - 1.2.43-release + 1.2.44-release cn.ucloud ucloud-sdk-java-common - 1.2.43-release + 1.2.44-release diff --git a/ucloud-sdk-java-sts/pom.xml b/ucloud-sdk-java-sts/pom.xml index c9e93c4d..a447ac67 100644 --- a/ucloud-sdk-java-sts/pom.xml +++ b/ucloud-sdk-java-sts/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.43-release + 1.2.44-release 4.0.0 ucloud-sdk-java-sts - 1.2.43-release + 1.2.44-release cn.ucloud ucloud-sdk-java-common - 1.2.43-release + 1.2.44-release diff --git a/ucloud-sdk-java-uaccount/pom.xml b/ucloud-sdk-java-uaccount/pom.xml index dd63718b..25057a5b 100644 --- a/ucloud-sdk-java-uaccount/pom.xml +++ b/ucloud-sdk-java-uaccount/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.43-release + 1.2.44-release 4.0.0 ucloud-sdk-java-uaccount - 1.2.43-release + 1.2.44-release cn.ucloud ucloud-sdk-java-common - 1.2.43-release + 1.2.44-release diff --git a/ucloud-sdk-java-uai_modelverse/pom.xml b/ucloud-sdk-java-uai_modelverse/pom.xml index e6b0d067..ab44fb1b 100644 --- a/ucloud-sdk-java-uai_modelverse/pom.xml +++ b/ucloud-sdk-java-uai_modelverse/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.43-release + 1.2.44-release 4.0.0 ucloud-sdk-java-uai_modelverse - 1.2.43-release + 1.2.44-release cn.ucloud ucloud-sdk-java-common - 1.2.43-release + 1.2.44-release diff --git a/ucloud-sdk-java-ubill/pom.xml b/ucloud-sdk-java-ubill/pom.xml index 3ef325d3..ca880afa 100644 --- a/ucloud-sdk-java-ubill/pom.xml +++ b/ucloud-sdk-java-ubill/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.43-release + 1.2.44-release 4.0.0 ucloud-sdk-java-ubill - 1.2.43-release + 1.2.44-release cn.ucloud ucloud-sdk-java-common - 1.2.43-release + 1.2.44-release diff --git a/ucloud-sdk-java-ucdn/pom.xml b/ucloud-sdk-java-ucdn/pom.xml index 0771d3e0..b2b91857 100644 --- a/ucloud-sdk-java-ucdn/pom.xml +++ b/ucloud-sdk-java-ucdn/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.43-release + 1.2.44-release 4.0.0 ucloud-sdk-java-ucdn - 1.2.43-release + 1.2.44-release cn.ucloud ucloud-sdk-java-common - 1.2.43-release + 1.2.44-release diff --git a/ucloud-sdk-java-ucompshare/pom.xml b/ucloud-sdk-java-ucompshare/pom.xml index 4762f127..20084180 100644 --- a/ucloud-sdk-java-ucompshare/pom.xml +++ b/ucloud-sdk-java-ucompshare/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.43-release + 1.2.44-release 4.0.0 ucloud-sdk-java-ucompshare - 1.2.43-release + 1.2.44-release cn.ucloud ucloud-sdk-java-common - 1.2.43-release + 1.2.44-release diff --git a/ucloud-sdk-java-udb/pom.xml b/ucloud-sdk-java-udb/pom.xml index 9a26130f..05a08dc8 100644 --- a/ucloud-sdk-java-udb/pom.xml +++ b/ucloud-sdk-java-udb/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.43-release + 1.2.44-release 4.0.0 ucloud-sdk-java-udb - 1.2.43-release + 1.2.44-release cn.ucloud ucloud-sdk-java-common - 1.2.43-release + 1.2.44-release diff --git a/ucloud-sdk-java-udbproxy/pom.xml b/ucloud-sdk-java-udbproxy/pom.xml index f3f9b820..63f8dc67 100644 --- a/ucloud-sdk-java-udbproxy/pom.xml +++ b/ucloud-sdk-java-udbproxy/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.43-release + 1.2.44-release 4.0.0 ucloud-sdk-java-udbproxy - 1.2.43-release + 1.2.44-release cn.ucloud ucloud-sdk-java-common - 1.2.43-release + 1.2.44-release diff --git a/ucloud-sdk-java-udi/pom.xml b/ucloud-sdk-java-udi/pom.xml index d4ce20ac..ded47afd 100644 --- a/ucloud-sdk-java-udi/pom.xml +++ b/ucloud-sdk-java-udi/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.43-release + 1.2.44-release 4.0.0 ucloud-sdk-java-udi - 1.2.43-release + 1.2.44-release cn.ucloud ucloud-sdk-java-common - 1.2.43-release + 1.2.44-release diff --git a/ucloud-sdk-java-udisk/pom.xml b/ucloud-sdk-java-udisk/pom.xml index 47e90bd5..9aa41238 100644 --- a/ucloud-sdk-java-udisk/pom.xml +++ b/ucloud-sdk-java-udisk/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.43-release + 1.2.44-release 4.0.0 ucloud-sdk-java-udisk - 1.2.43-release + 1.2.44-release cn.ucloud ucloud-sdk-java-common - 1.2.43-release + 1.2.44-release diff --git a/ucloud-sdk-java-udns/pom.xml b/ucloud-sdk-java-udns/pom.xml index 520b6076..404a43c6 100644 --- a/ucloud-sdk-java-udns/pom.xml +++ b/ucloud-sdk-java-udns/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.43-release + 1.2.44-release 4.0.0 ucloud-sdk-java-udns - 1.2.43-release + 1.2.44-release cn.ucloud ucloud-sdk-java-common - 1.2.43-release + 1.2.44-release diff --git a/ucloud-sdk-java-udpn/pom.xml b/ucloud-sdk-java-udpn/pom.xml index cc37f83d..7d62ae16 100644 --- a/ucloud-sdk-java-udpn/pom.xml +++ b/ucloud-sdk-java-udpn/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.43-release + 1.2.44-release 4.0.0 ucloud-sdk-java-udpn - 1.2.43-release + 1.2.44-release cn.ucloud ucloud-sdk-java-common - 1.2.43-release + 1.2.44-release diff --git a/ucloud-sdk-java-uec/pom.xml b/ucloud-sdk-java-uec/pom.xml index 2cdcc41a..6d24de7d 100644 --- a/ucloud-sdk-java-uec/pom.xml +++ b/ucloud-sdk-java-uec/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.43-release + 1.2.44-release 4.0.0 ucloud-sdk-java-uec - 1.2.43-release + 1.2.44-release cn.ucloud ucloud-sdk-java-common - 1.2.43-release + 1.2.44-release diff --git a/ucloud-sdk-java-uewaf/pom.xml b/ucloud-sdk-java-uewaf/pom.xml index 45888189..58819550 100644 --- a/ucloud-sdk-java-uewaf/pom.xml +++ b/ucloud-sdk-java-uewaf/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.43-release + 1.2.44-release 4.0.0 ucloud-sdk-java-uewaf - 1.2.43-release + 1.2.44-release cn.ucloud ucloud-sdk-java-common - 1.2.43-release + 1.2.44-release diff --git a/ucloud-sdk-java-ufile/pom.xml b/ucloud-sdk-java-ufile/pom.xml index 1afbf142..11bcf30c 100644 --- a/ucloud-sdk-java-ufile/pom.xml +++ b/ucloud-sdk-java-ufile/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.43-release + 1.2.44-release 4.0.0 ucloud-sdk-java-ufile - 1.2.43-release + 1.2.44-release cn.ucloud ucloud-sdk-java-common - 1.2.43-release + 1.2.44-release diff --git a/ucloud-sdk-java-ufs/pom.xml b/ucloud-sdk-java-ufs/pom.xml index 21990f4e..26356b7d 100644 --- a/ucloud-sdk-java-ufs/pom.xml +++ b/ucloud-sdk-java-ufs/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.43-release + 1.2.44-release 4.0.0 ucloud-sdk-java-ufs - 1.2.43-release + 1.2.44-release cn.ucloud ucloud-sdk-java-common - 1.2.43-release + 1.2.44-release diff --git a/ucloud-sdk-java-ufs/src/main/java/cn/ucloud/ufs/models/AddUFSVolumeMountPointRequest.java b/ucloud-sdk-java-ufs/src/main/java/cn/ucloud/ufs/models/AddUFSVolumeMountPointRequest.java index a691dd70..f03eec5c 100644 --- a/ucloud-sdk-java-ufs/src/main/java/cn/ucloud/ufs/models/AddUFSVolumeMountPointRequest.java +++ b/ucloud-sdk-java-ufs/src/main/java/cn/ucloud/ufs/models/AddUFSVolumeMountPointRequest.java @@ -25,6 +25,10 @@ public class AddUFSVolumeMountPointRequest extends Request { @UCloudParam("Region") private String region; + /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @UCloudParam("Zone") + private String zone; + /** * 项目ID。不填写为默认项目,子帐号必须填写。 * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) @@ -60,6 +64,14 @@ public void setRegion(String region) { this.region = region; } + public String getZone() { + return zone; + } + + public void setZone(String zone) { + this.zone = zone; + } + public String getProjectId() { return projectId; } diff --git a/ucloud-sdk-java-ufs/src/main/java/cn/ucloud/ufs/models/CreateUFSVolumeRequest.java b/ucloud-sdk-java-ufs/src/main/java/cn/ucloud/ufs/models/CreateUFSVolumeRequest.java index 8c3b30b6..6e43880e 100644 --- a/ucloud-sdk-java-ufs/src/main/java/cn/ucloud/ufs/models/CreateUFSVolumeRequest.java +++ b/ucloud-sdk-java-ufs/src/main/java/cn/ucloud/ufs/models/CreateUFSVolumeRequest.java @@ -25,6 +25,10 @@ public class CreateUFSVolumeRequest extends Request { @UCloudParam("Region") private String region; + /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @UCloudParam("Zone") + private String zone; + /** * 项目ID。不填写为默认项目,子帐号必须填写。 * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) @@ -79,6 +83,14 @@ public void setRegion(String region) { this.region = region; } + public String getZone() { + return zone; + } + + public void setZone(String zone) { + this.zone = zone; + } + public String getProjectId() { return projectId; } diff --git a/ucloud-sdk-java-ufs/src/main/java/cn/ucloud/ufs/models/DescribeUFSVolume2Request.java b/ucloud-sdk-java-ufs/src/main/java/cn/ucloud/ufs/models/DescribeUFSVolume2Request.java index e5e1308e..a5f24afb 100644 --- a/ucloud-sdk-java-ufs/src/main/java/cn/ucloud/ufs/models/DescribeUFSVolume2Request.java +++ b/ucloud-sdk-java-ufs/src/main/java/cn/ucloud/ufs/models/DescribeUFSVolume2Request.java @@ -20,12 +20,19 @@ public class DescribeUFSVolume2Request extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ @NotEmpty @UCloudParam("Region") private String region; - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @UCloudParam("Zone") + private String zone; + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ @UCloudParam("ProjectId") private String projectId; @@ -49,6 +56,14 @@ public void setRegion(String region) { this.region = region; } + public String getZone() { + return zone; + } + + public void setZone(String zone) { + this.zone = zone; + } + public String getProjectId() { return projectId; } diff --git a/ucloud-sdk-java-ufs/src/main/java/cn/ucloud/ufs/models/DescribeUFSVolumeMountpointRequest.java b/ucloud-sdk-java-ufs/src/main/java/cn/ucloud/ufs/models/DescribeUFSVolumeMountpointRequest.java index 72a82edd..c85cf5a3 100644 --- a/ucloud-sdk-java-ufs/src/main/java/cn/ucloud/ufs/models/DescribeUFSVolumeMountpointRequest.java +++ b/ucloud-sdk-java-ufs/src/main/java/cn/ucloud/ufs/models/DescribeUFSVolumeMountpointRequest.java @@ -25,6 +25,10 @@ public class DescribeUFSVolumeMountpointRequest extends Request { @UCloudParam("Region") private String region; + /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @UCloudParam("Zone") + private String zone; + /** * 项目ID。不填写为默认项目,子帐号必须填写。 * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) @@ -45,6 +49,14 @@ public void setRegion(String region) { this.region = region; } + public String getZone() { + return zone; + } + + public void setZone(String zone) { + this.zone = zone; + } + public String getProjectId() { return projectId; } diff --git a/ucloud-sdk-java-ufs/src/main/java/cn/ucloud/ufs/models/DescribeUFSVolumeMountpointResponse.java b/ucloud-sdk-java-ufs/src/main/java/cn/ucloud/ufs/models/DescribeUFSVolumeMountpointResponse.java index 52378380..c81fdbd8 100644 --- a/ucloud-sdk-java-ufs/src/main/java/cn/ucloud/ufs/models/DescribeUFSVolumeMountpointResponse.java +++ b/ucloud-sdk-java-ufs/src/main/java/cn/ucloud/ufs/models/DescribeUFSVolumeMountpointResponse.java @@ -21,7 +21,7 @@ public class DescribeUFSVolumeMountpointResponse extends Response { - /** */ + /** 挂载点数据 */ @SerializedName("DataSet") private List dataSet; diff --git a/ucloud-sdk-java-ufs/src/main/java/cn/ucloud/ufs/models/ExtendUFSVolumeRequest.java b/ucloud-sdk-java-ufs/src/main/java/cn/ucloud/ufs/models/ExtendUFSVolumeRequest.java index 9e562389..e34b280c 100644 --- a/ucloud-sdk-java-ufs/src/main/java/cn/ucloud/ufs/models/ExtendUFSVolumeRequest.java +++ b/ucloud-sdk-java-ufs/src/main/java/cn/ucloud/ufs/models/ExtendUFSVolumeRequest.java @@ -20,12 +20,19 @@ public class ExtendUFSVolumeRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ @NotEmpty @UCloudParam("Region") private String region; - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @UCloudParam("Zone") + private String zone; + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ @UCloudParam("ProjectId") private String projectId; @@ -49,6 +56,14 @@ public void setRegion(String region) { this.region = region; } + public String getZone() { + return zone; + } + + public void setZone(String zone) { + this.zone = zone; + } + public String getProjectId() { return projectId; } diff --git a/ucloud-sdk-java-ufs/src/main/java/cn/ucloud/ufs/models/RemoveUFSVolumeRequest.java b/ucloud-sdk-java-ufs/src/main/java/cn/ucloud/ufs/models/RemoveUFSVolumeRequest.java index dd4ef3fa..8a134123 100644 --- a/ucloud-sdk-java-ufs/src/main/java/cn/ucloud/ufs/models/RemoveUFSVolumeRequest.java +++ b/ucloud-sdk-java-ufs/src/main/java/cn/ucloud/ufs/models/RemoveUFSVolumeRequest.java @@ -20,12 +20,19 @@ public class RemoveUFSVolumeRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ @NotEmpty @UCloudParam("Region") private String region; - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @UCloudParam("Zone") + private String zone; + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ @UCloudParam("ProjectId") private String projectId; @@ -42,6 +49,14 @@ public void setRegion(String region) { this.region = region; } + public String getZone() { + return zone; + } + + public void setZone(String zone) { + this.zone = zone; + } + public String getProjectId() { return projectId; } diff --git a/ucloud-sdk-java-uhost/pom.xml b/ucloud-sdk-java-uhost/pom.xml index 178fe66b..2572e632 100644 --- a/ucloud-sdk-java-uhost/pom.xml +++ b/ucloud-sdk-java-uhost/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.43-release + 1.2.44-release 4.0.0 ucloud-sdk-java-uhost - 1.2.43-release + 1.2.44-release cn.ucloud ucloud-sdk-java-common - 1.2.43-release + 1.2.44-release diff --git a/ucloud-sdk-java-uk8s/pom.xml b/ucloud-sdk-java-uk8s/pom.xml index 6fa9c100..22fd1aaa 100644 --- a/ucloud-sdk-java-uk8s/pom.xml +++ b/ucloud-sdk-java-uk8s/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.43-release + 1.2.44-release 4.0.0 ucloud-sdk-java-uk8s - 1.2.43-release + 1.2.44-release cn.ucloud ucloud-sdk-java-common - 1.2.43-release + 1.2.44-release diff --git a/ucloud-sdk-java-ulb/pom.xml b/ucloud-sdk-java-ulb/pom.xml index 4ec23c1c..0cf15b3c 100644 --- a/ucloud-sdk-java-ulb/pom.xml +++ b/ucloud-sdk-java-ulb/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.43-release + 1.2.44-release 4.0.0 ucloud-sdk-java-ulb - 1.2.43-release + 1.2.44-release cn.ucloud ucloud-sdk-java-common - 1.2.43-release + 1.2.44-release diff --git a/ucloud-sdk-java-ulog/pom.xml b/ucloud-sdk-java-ulog/pom.xml index 025cb398..e8d023db 100644 --- a/ucloud-sdk-java-ulog/pom.xml +++ b/ucloud-sdk-java-ulog/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.43-release + 1.2.44-release 4.0.0 ucloud-sdk-java-ulog - 1.2.43-release + 1.2.44-release cn.ucloud ucloud-sdk-java-common - 1.2.43-release + 1.2.44-release diff --git a/ucloud-sdk-java-umem/pom.xml b/ucloud-sdk-java-umem/pom.xml index ee8b6535..e4249194 100644 --- a/ucloud-sdk-java-umem/pom.xml +++ b/ucloud-sdk-java-umem/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.43-release + 1.2.44-release 4.0.0 ucloud-sdk-java-umem - 1.2.43-release + 1.2.44-release cn.ucloud ucloud-sdk-java-common - 1.2.43-release + 1.2.44-release diff --git a/ucloud-sdk-java-umon/pom.xml b/ucloud-sdk-java-umon/pom.xml new file mode 100644 index 00000000..fe187c6e --- /dev/null +++ b/ucloud-sdk-java-umon/pom.xml @@ -0,0 +1,48 @@ + + + + ucloud-sdk-java + cn.ucloud + 1.2.44-release + + + 4.0.0 + ucloud-sdk-java-umon + 1.2.44-release + + + + cn.ucloud + ucloud-sdk-java-common + 1.2.44-release + + + + com.google.code.gson + gson + + + + commons-codec + commons-codec + + + org.apache.commons + commons-lang3 + + + + junit + junit + test + + + + org.slf4j + slf4j-simple + provided + + + diff --git a/ucloud-sdk-java-umon/src/main/java/cn/ucloud/umon/client/UMonClient.java b/ucloud-sdk-java-umon/src/main/java/cn/ucloud/umon/client/UMonClient.java new file mode 100644 index 00000000..51bebefb --- /dev/null +++ b/ucloud-sdk-java-umon/src/main/java/cn/ucloud/umon/client/UMonClient.java @@ -0,0 +1,141 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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 cn.ucloud.umon.client; + +import cn.ucloud.common.client.DefaultClient; +import cn.ucloud.common.config.Config; +import cn.ucloud.common.credential.Credential; +import cn.ucloud.common.exception.UCloudException; +import cn.ucloud.umon.models.BindAlarmTemplateRequest; +import cn.ucloud.umon.models.BindAlarmTemplateResponse; +import cn.ucloud.umon.models.DescribeResourceMetricRequest; +import cn.ucloud.umon.models.DescribeResourceMetricResponse; +import cn.ucloud.umon.models.GetAlarmRecordListRequest; +import cn.ucloud.umon.models.GetAlarmRecordListResponse; +import cn.ucloud.umon.models.GetAlarmTemplateListRequest; +import cn.ucloud.umon.models.GetAlarmTemplateListResponse; +import cn.ucloud.umon.models.GetMetricOverviewRequest; +import cn.ucloud.umon.models.GetMetricOverviewResponse; +import cn.ucloud.umon.models.GetMetricRequest; +import cn.ucloud.umon.models.GetMetricResponse; +import cn.ucloud.umon.models.GetResourceAlarmTemplateRequest; +import cn.ucloud.umon.models.GetResourceAlarmTemplateResponse; +import cn.ucloud.umon.models.UnbindAlarmTemplateRequest; +import cn.ucloud.umon.models.UnbindAlarmTemplateResponse; + +/** This client is used to call actions of **UMon** service */ +public class UMonClient extends DefaultClient implements UMonClientInterface { + public UMonClient(Config config, Credential credential) { + super(config, credential); + } + + /** + * BindAlarmTemplate - 绑定告警模板 + * + * @param request Request object + * @throws UCloudException Exception + */ + public BindAlarmTemplateResponse bindAlarmTemplate(BindAlarmTemplateRequest request) + throws UCloudException { + request.setAction("BindAlarmTemplate"); + return (BindAlarmTemplateResponse) this.invoke(request, BindAlarmTemplateResponse.class); + } + + /** + * DescribeResourceMetric - 获取资源支持监控指标信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeResourceMetricResponse describeResourceMetric( + DescribeResourceMetricRequest request) throws UCloudException { + request.setAction("DescribeResourceMetric"); + return (DescribeResourceMetricResponse) + this.invoke(request, DescribeResourceMetricResponse.class); + } + + /** + * GetAlarmRecordList - 获取告警记录列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetAlarmRecordListResponse getAlarmRecordList(GetAlarmRecordListRequest request) + throws UCloudException { + request.setAction("GetAlarmRecordList"); + return (GetAlarmRecordListResponse) this.invoke(request, GetAlarmRecordListResponse.class); + } + + /** + * GetAlarmTemplateList - 获取告警模板列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetAlarmTemplateListResponse getAlarmTemplateList(GetAlarmTemplateListRequest request) + throws UCloudException { + request.setAction("GetAlarmTemplateList"); + return (GetAlarmTemplateListResponse) + this.invoke(request, GetAlarmTemplateListResponse.class); + } + + /** + * GetMetric - 获取监控数据 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetMetricResponse getMetric(GetMetricRequest request) throws UCloudException { + request.setAction("GetMetric"); + return (GetMetricResponse) this.invoke(request, GetMetricResponse.class); + } + + /** + * GetMetricOverview - 获取监控概况数据 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetMetricOverviewResponse getMetricOverview(GetMetricOverviewRequest request) + throws UCloudException { + request.setAction("GetMetricOverview"); + return (GetMetricOverviewResponse) this.invoke(request, GetMetricOverviewResponse.class); + } + + /** + * GetResourceAlarmTemplate - 获取资源绑定的告警模板 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetResourceAlarmTemplateResponse getResourceAlarmTemplate( + GetResourceAlarmTemplateRequest request) throws UCloudException { + request.setAction("GetResourceAlarmTemplate"); + return (GetResourceAlarmTemplateResponse) + this.invoke(request, GetResourceAlarmTemplateResponse.class); + } + + /** + * UnbindAlarmTemplate - 解绑告警模板 + * + * @param request Request object + * @throws UCloudException Exception + */ + public UnbindAlarmTemplateResponse unbindAlarmTemplate(UnbindAlarmTemplateRequest request) + throws UCloudException { + request.setAction("UnbindAlarmTemplate"); + return (UnbindAlarmTemplateResponse) + this.invoke(request, UnbindAlarmTemplateResponse.class); + } +} diff --git a/ucloud-sdk-java-umon/src/main/java/cn/ucloud/umon/client/UMonClientInterface.java b/ucloud-sdk-java-umon/src/main/java/cn/ucloud/umon/client/UMonClientInterface.java new file mode 100644 index 00000000..880ed132 --- /dev/null +++ b/ucloud-sdk-java-umon/src/main/java/cn/ucloud/umon/client/UMonClientInterface.java @@ -0,0 +1,108 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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 cn.ucloud.umon.client; + +import cn.ucloud.common.client.Client; +import cn.ucloud.common.exception.UCloudException; +import cn.ucloud.umon.models.BindAlarmTemplateRequest; +import cn.ucloud.umon.models.BindAlarmTemplateResponse; +import cn.ucloud.umon.models.DescribeResourceMetricRequest; +import cn.ucloud.umon.models.DescribeResourceMetricResponse; +import cn.ucloud.umon.models.GetAlarmRecordListRequest; +import cn.ucloud.umon.models.GetAlarmRecordListResponse; +import cn.ucloud.umon.models.GetAlarmTemplateListRequest; +import cn.ucloud.umon.models.GetAlarmTemplateListResponse; +import cn.ucloud.umon.models.GetMetricOverviewRequest; +import cn.ucloud.umon.models.GetMetricOverviewResponse; +import cn.ucloud.umon.models.GetMetricRequest; +import cn.ucloud.umon.models.GetMetricResponse; +import cn.ucloud.umon.models.GetResourceAlarmTemplateRequest; +import cn.ucloud.umon.models.GetResourceAlarmTemplateResponse; +import cn.ucloud.umon.models.UnbindAlarmTemplateRequest; +import cn.ucloud.umon.models.UnbindAlarmTemplateResponse; + +/** This client is used to call actions of **UMon** service */ +public interface UMonClientInterface extends Client { + + /** + * BindAlarmTemplate - 绑定告警模板 + * + * @param request Request object + * @throws UCloudException Exception + */ + public BindAlarmTemplateResponse bindAlarmTemplate(BindAlarmTemplateRequest request) + throws UCloudException; + + /** + * DescribeResourceMetric - 获取资源支持监控指标信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeResourceMetricResponse describeResourceMetric( + DescribeResourceMetricRequest request) throws UCloudException; + + /** + * GetAlarmRecordList - 获取告警记录列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetAlarmRecordListResponse getAlarmRecordList(GetAlarmRecordListRequest request) + throws UCloudException; + + /** + * GetAlarmTemplateList - 获取告警模板列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetAlarmTemplateListResponse getAlarmTemplateList(GetAlarmTemplateListRequest request) + throws UCloudException; + + /** + * GetMetric - 获取监控数据 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetMetricResponse getMetric(GetMetricRequest request) throws UCloudException; + + /** + * GetMetricOverview - 获取监控概况数据 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetMetricOverviewResponse getMetricOverview(GetMetricOverviewRequest request) + throws UCloudException; + + /** + * GetResourceAlarmTemplate - 获取资源绑定的告警模板 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetResourceAlarmTemplateResponse getResourceAlarmTemplate( + GetResourceAlarmTemplateRequest request) throws UCloudException; + + /** + * UnbindAlarmTemplate - 解绑告警模板 + * + * @param request Request object + * @throws UCloudException Exception + */ + public UnbindAlarmTemplateResponse unbindAlarmTemplate(UnbindAlarmTemplateRequest request) + throws UCloudException; +} diff --git a/ucloud-sdk-java-umon/src/main/java/cn/ucloud/umon/models/BindAlarmTemplateRequest.java b/ucloud-sdk-java-umon/src/main/java/cn/ucloud/umon/models/BindAlarmTemplateRequest.java new file mode 100644 index 00000000..9de54462 --- /dev/null +++ b/ucloud-sdk-java-umon/src/main/java/cn/ucloud/umon/models/BindAlarmTemplateRequest.java @@ -0,0 +1,102 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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 cn.ucloud.umon.models; + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +import java.util.List; + +public class BindAlarmTemplateRequest extends Request { + + /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + @NotEmpty + @UCloudParam("Region") + private String region; + + /** + * 可用区,如下资源类型不需要: 'eip', 'sharebandwidth', 'ulb', 'ulb-vserver', 'ulb-server', 'vserver', 'ugc', + * 'upath','ugaa' + */ + @UCloudParam("Zone") + private String zone; + + /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + @UCloudParam("ProjectId") + private String projectId; + + /** 告警模板id,调用GetAlarmTemplateList获取 */ + @NotEmpty + @UCloudParam("AlarmTemplateId") + private String alarmTemplateId; + + /** 资源类型,同DescribeResourceMetric支持的类型,请参考DescribeResourceMetric中的可选资源类型 */ + @NotEmpty + @UCloudParam("ResourceType") + private String resourceType; + + /** 短资源id列表 */ + @NotEmpty + @UCloudParam("ResourceId") + private List resourceId; + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getZone() { + return zone; + } + + public void setZone(String zone) { + this.zone = zone; + } + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getAlarmTemplateId() { + return alarmTemplateId; + } + + public void setAlarmTemplateId(String alarmTemplateId) { + this.alarmTemplateId = alarmTemplateId; + } + + public String getResourceType() { + return resourceType; + } + + public void setResourceType(String resourceType) { + this.resourceType = resourceType; + } + + public List getResourceId() { + return resourceId; + } + + public void setResourceId(List resourceId) { + this.resourceId = resourceId; + } +} diff --git a/ucloud-sdk-java-umon/src/main/java/cn/ucloud/umon/models/BindAlarmTemplateResponse.java b/ucloud-sdk-java-umon/src/main/java/cn/ucloud/umon/models/BindAlarmTemplateResponse.java new file mode 100644 index 00000000..622afb97 --- /dev/null +++ b/ucloud-sdk-java-umon/src/main/java/cn/ucloud/umon/models/BindAlarmTemplateResponse.java @@ -0,0 +1,20 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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 cn.ucloud.umon.models; + + + +import cn.ucloud.common.response.Response; + +public class BindAlarmTemplateResponse extends Response {} diff --git a/ucloud-sdk-java-umon/src/main/java/cn/ucloud/umon/models/DescribeResourceMetricRequest.java b/ucloud-sdk-java-umon/src/main/java/cn/ucloud/umon/models/DescribeResourceMetricRequest.java new file mode 100644 index 00000000..f7934696 --- /dev/null +++ b/ucloud-sdk-java-umon/src/main/java/cn/ucloud/umon/models/DescribeResourceMetricRequest.java @@ -0,0 +1,48 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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 cn.ucloud.umon.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class DescribeResourceMetricRequest extends Request { + + /** + * 资源类型 支持如下类型: dbaudit:数据库审计; docker:容器服务; docker_node:容器服务节点; eip:弹性IP; fortress:堡垒机; + * hybridcloud_lan:混合云局域网; hybridcloud_port:混合云交换机端口; hybridcloud_port_sum:混合云外网总出口; mq:消息队列; + * natgw:NAT网关; phost:物理云主机; sharebandwidth:共享带宽; uaiservice:AI在线服务; ucdn:云分发; udb:云数据库; + * uddb:分布式数据库; uddbac:UDDB分析节点; uddbmd:分布式数据库中间件; uddbnode:分布式数据库节点; udisk:云硬盘; + * udisk_rssd:RSSD云硬盘; udisk_ssd:SSD云硬盘(数据盘); udisk_sys:普通云硬盘(系统盘); udpn:高速通道; udset:私有专区资源池; + * udset_uhost:资源池主机; udw:云数据仓库; udw_node:云数据仓库节点; ues:ES服务; ues_node:elasticsearch服务节点; + * ufile:对象存储; ufs:文件存储; ugaa:全球动态加速; ugc:通用计算; uhadoop:托管Hadoop集群; uhadoop_host:托管Hadoop集群; + * uhost:云主机; ukafka:Kafka消息队列; ukafka_host:分布式消息节点; ukv:容量型KV存储; ulb:负载均衡; ulb-server:真实服务节点; + * ulb-vserver:虚拟服务节点; umem:云内存存储; umemcache:单机版memcache; upath:加速线路; uredis:云内存存储; utsdb:时序数据库; + * vpntunnel:vpn隧道; vserver:虚拟服务节点; + * + *

各产品支持监控项,请查看:https://docs.ucloud.cn/api/umon-api/get_metric + */ + @NotEmpty + @UCloudParam("ResourceType") + private String resourceType; + + public String getResourceType() { + return resourceType; + } + + public void setResourceType(String resourceType) { + this.resourceType = resourceType; + } +} diff --git a/ucloud-sdk-java-umon/src/main/java/cn/ucloud/umon/models/DescribeResourceMetricResponse.java b/ucloud-sdk-java-umon/src/main/java/cn/ucloud/umon/models/DescribeResourceMetricResponse.java new file mode 100644 index 00000000..1f8d020f --- /dev/null +++ b/ucloud-sdk-java-umon/src/main/java/cn/ucloud/umon/models/DescribeResourceMetricResponse.java @@ -0,0 +1,35 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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 cn.ucloud.umon.models; + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +import java.util.List; + +public class DescribeResourceMetricResponse extends Response { + + /** 指标信息集合 */ + @SerializedName("DataSet") + private List dataSet; + + public List getDataSet() { + return dataSet; + } + + public void setDataSet(List dataSet) { + this.dataSet = dataSet; + } +} diff --git a/ucloud-sdk-java-umon/src/main/java/cn/ucloud/umon/models/GetAlarmRecordListRequest.java b/ucloud-sdk-java-umon/src/main/java/cn/ucloud/umon/models/GetAlarmRecordListRequest.java new file mode 100644 index 00000000..9334a50e --- /dev/null +++ b/ucloud-sdk-java-umon/src/main/java/cn/ucloud/umon/models/GetAlarmRecordListRequest.java @@ -0,0 +1,60 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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 cn.ucloud.umon.models; + + +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class GetAlarmRecordListRequest extends Request { + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @UCloudParam("ProjectId") + private String projectId; + + /** 开始时间,时间戳 */ + @UCloudParam("BeginTime") + private Integer beginTime; + + /** 结束时间,时间戳(当前仅支持获取时间间隔在31天内的告警记录) */ + @UCloudParam("EndTime") + private Integer endTime; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public Integer getBeginTime() { + return beginTime; + } + + public void setBeginTime(Integer beginTime) { + this.beginTime = beginTime; + } + + public Integer getEndTime() { + return endTime; + } + + public void setEndTime(Integer endTime) { + this.endTime = endTime; + } +} diff --git a/ucloud-sdk-java-umon/src/main/java/cn/ucloud/umon/models/GetAlarmRecordListResponse.java b/ucloud-sdk-java-umon/src/main/java/cn/ucloud/umon/models/GetAlarmRecordListResponse.java new file mode 100644 index 00000000..9682897b --- /dev/null +++ b/ucloud-sdk-java-umon/src/main/java/cn/ucloud/umon/models/GetAlarmRecordListResponse.java @@ -0,0 +1,170 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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 cn.ucloud.umon.models; + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +import java.util.List; + +public class GetAlarmRecordListResponse extends Response { + + /** 告警记录列表 */ + @SerializedName("DataSet") + private List dataSet; + + public List getDataSet() { + return dataSet; + } + + public void setDataSet(List dataSet) { + this.dataSet = dataSet; + } + + public static class AlarmRecord extends Response { + + /** 地域编号 */ + @SerializedName("Region") + private String region; + + /** 可用区编号 */ + @SerializedName("Zone") + private String zone; + + /** 资源id */ + @SerializedName("ResourceId") + private String resourceId; + + /** 资源类型 */ + @SerializedName("ResourceType") + private String resourceType; + + /** 资源名称 */ + @SerializedName("Name") + private String name; + + /** 指标名称 */ + @SerializedName("MetricName") + private String metricName; + + /** 告警发生时间 */ + @SerializedName("OccurrenceTime") + private Integer occurrenceTime; + + /** 是否恢复 */ + @SerializedName("Recovered") + private String recovered; + + /** 阈值 */ + @SerializedName("Threshold") + private Double threshold; + + /** 告警值 */ + @SerializedName("Value") + private Double value; + + /** 告警恢复时间 */ + @SerializedName("RecoveryTime") + private Integer recoveryTime; + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getZone() { + return zone; + } + + public void setZone(String zone) { + this.zone = zone; + } + + public String getResourceId() { + return resourceId; + } + + public void setResourceId(String resourceId) { + this.resourceId = resourceId; + } + + public String getResourceType() { + return resourceType; + } + + public void setResourceType(String resourceType) { + this.resourceType = resourceType; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getMetricName() { + return metricName; + } + + public void setMetricName(String metricName) { + this.metricName = metricName; + } + + public Integer getOccurrenceTime() { + return occurrenceTime; + } + + public void setOccurrenceTime(Integer occurrenceTime) { + this.occurrenceTime = occurrenceTime; + } + + public String getRecovered() { + return recovered; + } + + public void setRecovered(String recovered) { + this.recovered = recovered; + } + + public Double getThreshold() { + return threshold; + } + + public void setThreshold(Double threshold) { + this.threshold = threshold; + } + + public Double getValue() { + return value; + } + + public void setValue(Double value) { + this.value = value; + } + + public Integer getRecoveryTime() { + return recoveryTime; + } + + public void setRecoveryTime(Integer recoveryTime) { + this.recoveryTime = recoveryTime; + } + } +} diff --git a/ucloud-sdk-java-umon/src/main/java/cn/ucloud/umon/models/GetAlarmTemplateListRequest.java b/ucloud-sdk-java-umon/src/main/java/cn/ucloud/umon/models/GetAlarmTemplateListRequest.java new file mode 100644 index 00000000..e84d45ac --- /dev/null +++ b/ucloud-sdk-java-umon/src/main/java/cn/ucloud/umon/models/GetAlarmTemplateListRequest.java @@ -0,0 +1,71 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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 cn.ucloud.umon.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class GetAlarmTemplateListRequest extends Request { + + /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + @NotEmpty + @UCloudParam("Region") + private String region; + + /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list) */ + @UCloudParam("ProjectId") + private String projectId; + + /** 返回数据长度,默认为20 */ + @UCloudParam("Limit") + private Integer limit; + + /** 列表起始位置偏移量,默认为0 */ + @UCloudParam("Offset") + private Integer offset; + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public Integer getLimit() { + return limit; + } + + public void setLimit(Integer limit) { + this.limit = limit; + } + + public Integer getOffset() { + return offset; + } + + public void setOffset(Integer offset) { + this.offset = offset; + } +} diff --git a/ucloud-sdk-java-umon/src/main/java/cn/ucloud/umon/models/GetAlarmTemplateListResponse.java b/ucloud-sdk-java-umon/src/main/java/cn/ucloud/umon/models/GetAlarmTemplateListResponse.java new file mode 100644 index 00000000..765c2b79 --- /dev/null +++ b/ucloud-sdk-java-umon/src/main/java/cn/ucloud/umon/models/GetAlarmTemplateListResponse.java @@ -0,0 +1,134 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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 cn.ucloud.umon.models; + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +import java.util.List; + +public class GetAlarmTemplateListResponse extends Response { + + /** 总数量 */ + @SerializedName("TotalCount") + private Integer totalCount; + + /** 告警模板列表 */ + @SerializedName("DataSet") + private List dataSet; + + public Integer getTotalCount() { + return totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + public List getDataSet() { + return dataSet; + } + + public void setDataSet(List dataSet) { + this.dataSet = dataSet; + } + + public static class AlarmTemplate extends Response { + + /** 告警模板id */ + @SerializedName("AlarmTemplateId") + private Integer alarmTemplateId; + + /** 告警模板名称 */ + @SerializedName("AlarmTemplateName") + private String alarmTemplateName; + + /** 资源类型 */ + @SerializedName("ResourceType") + private String resourceType; + + /** 绑定的资源数量 */ + @SerializedName("BoundResourceCount") + private Integer boundResourceCount; + + /** 是否是全局机房模版,0不是,1是 */ + @SerializedName("IsGlobal") + private Integer isGlobal; + + /** 是否为默认模板 */ + @SerializedName("IsDefault") + private String isDefault; + + /** 备注 */ + @SerializedName("Remark") + private String remark; + + public Integer getAlarmTemplateId() { + return alarmTemplateId; + } + + public void setAlarmTemplateId(Integer alarmTemplateId) { + this.alarmTemplateId = alarmTemplateId; + } + + public String getAlarmTemplateName() { + return alarmTemplateName; + } + + public void setAlarmTemplateName(String alarmTemplateName) { + this.alarmTemplateName = alarmTemplateName; + } + + public String getResourceType() { + return resourceType; + } + + public void setResourceType(String resourceType) { + this.resourceType = resourceType; + } + + public Integer getBoundResourceCount() { + return boundResourceCount; + } + + public void setBoundResourceCount(Integer boundResourceCount) { + this.boundResourceCount = boundResourceCount; + } + + public Integer getIsGlobal() { + return isGlobal; + } + + public void setIsGlobal(Integer isGlobal) { + this.isGlobal = isGlobal; + } + + public String getIsDefault() { + return isDefault; + } + + public void setIsDefault(String isDefault) { + this.isDefault = isDefault; + } + + public String getRemark() { + return remark; + } + + public void setRemark(String remark) { + this.remark = remark; + } + } +} diff --git a/ucloud-sdk-java-umon/src/main/java/cn/ucloud/umon/models/GetMetricOverviewRequest.java b/ucloud-sdk-java-umon/src/main/java/cn/ucloud/umon/models/GetMetricOverviewRequest.java new file mode 100644 index 00000000..4be7d34e --- /dev/null +++ b/ucloud-sdk-java-umon/src/main/java/cn/ucloud/umon/models/GetMetricOverviewRequest.java @@ -0,0 +1,110 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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 cn.ucloud.umon.models; + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +import java.util.List; + +public class GetMetricOverviewRequest extends Request { + + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Region") + private String region; + + /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Zone") + private String zone; + + /** 项目ID,不填为默认项目。子账户必须填写项目ID */ + @UCloudParam("ProjectId") + private String projectId; + + /** 资源类型 */ + @NotEmpty + @UCloudParam("ResourceType") + private String resourceType; + + /** 监控指标名称,若省略则返回所有监控指标数据 */ + @UCloudParam("MetricName") + private List metricName; + + /** 数据分页值,默认为20 */ + @UCloudParam("Limit") + private Integer limit; + + /** 数据偏移量,默认为0 */ + @UCloudParam("Offset") + private Integer offset; + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getZone() { + return zone; + } + + public void setZone(String zone) { + this.zone = zone; + } + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getResourceType() { + return resourceType; + } + + public void setResourceType(String resourceType) { + this.resourceType = resourceType; + } + + public List getMetricName() { + return metricName; + } + + public void setMetricName(List metricName) { + this.metricName = metricName; + } + + public Integer getLimit() { + return limit; + } + + public void setLimit(Integer limit) { + this.limit = limit; + } + + public Integer getOffset() { + return offset; + } + + public void setOffset(Integer offset) { + this.offset = offset; + } +} diff --git a/ucloud-sdk-java-umon/src/main/java/cn/ucloud/umon/models/GetMetricOverviewResponse.java b/ucloud-sdk-java-umon/src/main/java/cn/ucloud/umon/models/GetMetricOverviewResponse.java new file mode 100644 index 00000000..83c76d79 --- /dev/null +++ b/ucloud-sdk-java-umon/src/main/java/cn/ucloud/umon/models/GetMetricOverviewResponse.java @@ -0,0 +1,98 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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 cn.ucloud.umon.models; + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +import java.util.List; + +public class GetMetricOverviewResponse extends Response { + + /** JSON格式监控数据列表 */ + @SerializedName("DataSet") + private List dataSet; + + /** 系统更新时间,格式为Unix Timestamp */ + @SerializedName("RefreshTime") + private Integer refreshTime; + + /** 资源类型 */ + @SerializedName("ResourceType") + private String resourceType; + + /** 返回总数量 */ + @SerializedName("TotalCount") + private Integer totalCount; + + public List getDataSet() { + return dataSet; + } + + public void setDataSet(List dataSet) { + this.dataSet = dataSet; + } + + public Integer getRefreshTime() { + return refreshTime; + } + + public void setRefreshTime(Integer refreshTime) { + this.refreshTime = refreshTime; + } + + public String getResourceType() { + return resourceType; + } + + public void setResourceType(String resourceType) { + this.resourceType = resourceType; + } + + public Integer getTotalCount() { + return totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + public static class ResourceItemSet extends Response { + + /** 资源ID */ + @SerializedName("ResourceId") + private String resourceId; + + /** 资源名称 */ + @SerializedName("Name") + private String name; + + public String getResourceId() { + return resourceId; + } + + public void setResourceId(String resourceId) { + this.resourceId = resourceId; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + } +} diff --git a/ucloud-sdk-java-umon/src/main/java/cn/ucloud/umon/models/GetMetricRequest.java b/ucloud-sdk-java-umon/src/main/java/cn/ucloud/umon/models/GetMetricRequest.java new file mode 100644 index 00000000..160ec4dd --- /dev/null +++ b/ucloud-sdk-java-umon/src/main/java/cn/ucloud/umon/models/GetMetricRequest.java @@ -0,0 +1,135 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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 cn.ucloud.umon.models; + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +import java.util.List; + +public class GetMetricRequest extends Request { + + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Region") + private String region; + + /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Zone") + private String zone; + + /** 项目ID,不填为默认项目。子账户必须填写项目ID */ + @UCloudParam("ProjectId") + private String projectId; + + /** 资源类型 */ + @NotEmpty + @UCloudParam("ResourceType") + private String resourceType; + + /** 指标名称(不同ResourceType对应不同的MetricName) */ + @NotEmpty + @UCloudParam("MetricName") + private List metricName; + + /** 资源Id(目前除sharebandwidth可以不传入ResourceId外,其他资源必须传入,sharebandwidth不传入会默认使用获取到的第一个资源Id) */ + @UCloudParam("ResourceId") + private String resourceId; + + /** 拉取最近多少秒的监控数据,默认1小时,即3600;最大1个月 */ + @UCloudParam("TimeRange") + private Integer timeRange; + + /** 起始时间unixtimestamp,若传入TimeRange,此项忽略 */ + @UCloudParam("BeginTime") + private Integer beginTime; + + /** 结束时间unixtimestamp,若传入TimeRange,此项忽略;若只传入BeginTime,此项默认为当前时间 */ + @UCloudParam("EndTime") + private Integer endTime; + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getZone() { + return zone; + } + + public void setZone(String zone) { + this.zone = zone; + } + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getResourceType() { + return resourceType; + } + + public void setResourceType(String resourceType) { + this.resourceType = resourceType; + } + + public List getMetricName() { + return metricName; + } + + public void setMetricName(List metricName) { + this.metricName = metricName; + } + + public String getResourceId() { + return resourceId; + } + + public void setResourceId(String resourceId) { + this.resourceId = resourceId; + } + + public Integer getTimeRange() { + return timeRange; + } + + public void setTimeRange(Integer timeRange) { + this.timeRange = timeRange; + } + + public Integer getBeginTime() { + return beginTime; + } + + public void setBeginTime(Integer beginTime) { + this.beginTime = beginTime; + } + + public Integer getEndTime() { + return endTime; + } + + public void setEndTime(Integer endTime) { + this.endTime = endTime; + } +} diff --git a/ucloud-sdk-java-umon/src/main/java/cn/ucloud/umon/models/GetMetricResponse.java b/ucloud-sdk-java-umon/src/main/java/cn/ucloud/umon/models/GetMetricResponse.java new file mode 100644 index 00000000..1f2bac69 --- /dev/null +++ b/ucloud-sdk-java-umon/src/main/java/cn/ucloud/umon/models/GetMetricResponse.java @@ -0,0 +1,73 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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 cn.ucloud.umon.models; + + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +public class GetMetricResponse extends Response { + + /** 数据 */ + @SerializedName("DataSets") + private DataSet dataSets; + + public DataSet getDataSets() { + return dataSets; + } + + public void setDataSets(DataSet dataSets) { + this.dataSets = dataSets; + } + + public static class DataSet extends Response { + + /** 时间戳 */ + @SerializedName("Timestamp") + private Integer timestamp; + + /** 值 */ + @SerializedName("Value") + private Integer value; + + /** 数据源IP地址 */ + @SerializedName("IP") + private String ip; + + public Integer getTimestamp() { + return timestamp; + } + + public void setTimestamp(Integer timestamp) { + this.timestamp = timestamp; + } + + public Integer getValue() { + return value; + } + + public void setValue(Integer value) { + this.value = value; + } + + public String getIP() { + return ip; + } + + public void setIP(String ip) { + this.ip = ip; + } + } +} diff --git a/ucloud-sdk-java-umon/src/main/java/cn/ucloud/umon/models/GetResourceAlarmTemplateRequest.java b/ucloud-sdk-java-umon/src/main/java/cn/ucloud/umon/models/GetResourceAlarmTemplateRequest.java new file mode 100644 index 00000000..14379d67 --- /dev/null +++ b/ucloud-sdk-java-umon/src/main/java/cn/ucloud/umon/models/GetResourceAlarmTemplateRequest.java @@ -0,0 +1,77 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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 cn.ucloud.umon.models; + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +import java.util.List; + +public class GetResourceAlarmTemplateRequest extends Request { + + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Region") + private String region; + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @UCloudParam("ProjectId") + private String projectId; + + /** 资源类型(与DescribeResourceMetric中一致) */ + @NotEmpty + @UCloudParam("ResourceType") + private String resourceType; + + /** 资源id列表 */ + @NotEmpty + @UCloudParam("ResourceId") + private List resourceId; + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getResourceType() { + return resourceType; + } + + public void setResourceType(String resourceType) { + this.resourceType = resourceType; + } + + public List getResourceId() { + return resourceId; + } + + public void setResourceId(List resourceId) { + this.resourceId = resourceId; + } +} diff --git a/ucloud-sdk-java-umon/src/main/java/cn/ucloud/umon/models/GetResourceAlarmTemplateResponse.java b/ucloud-sdk-java-umon/src/main/java/cn/ucloud/umon/models/GetResourceAlarmTemplateResponse.java new file mode 100644 index 00000000..4863910d --- /dev/null +++ b/ucloud-sdk-java-umon/src/main/java/cn/ucloud/umon/models/GetResourceAlarmTemplateResponse.java @@ -0,0 +1,110 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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 cn.ucloud.umon.models; + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +import java.util.List; + +public class GetResourceAlarmTemplateResponse extends Response { + + /** 请见ResourceTemplateBound */ + @SerializedName("DataSet") + private List dataSet; + + public List getDataSet() { + return dataSet; + } + + public void setDataSet(List dataSet) { + this.dataSet = dataSet; + } + + public static class ResourceTemplateBound extends Response { + + /** 是否绑定了告警模板,Yes:是;No:否。若为No,不展示AlarmTemplateId、AlarmTemplateName、Remark */ + @SerializedName("HasAlarmTemplate") + private String hasAlarmTemplate; + + /** 资源id */ + @SerializedName("ResourceId") + private String resourceId; + + /** 告警模板id */ + @SerializedName("AlarmTemplateId") + private Integer alarmTemplateId; + + /** 告警模板名称 */ + @SerializedName("AlarmTemplateName") + private String alarmTemplateName; + + /** 是否默认模板,Yes:是;No:否 */ + @SerializedName("IsDefault") + private String isDefault; + + /** 模板备注 */ + @SerializedName("Remark") + private String remark; + + public String getHasAlarmTemplate() { + return hasAlarmTemplate; + } + + public void setHasAlarmTemplate(String hasAlarmTemplate) { + this.hasAlarmTemplate = hasAlarmTemplate; + } + + public String getResourceId() { + return resourceId; + } + + public void setResourceId(String resourceId) { + this.resourceId = resourceId; + } + + public Integer getAlarmTemplateId() { + return alarmTemplateId; + } + + public void setAlarmTemplateId(Integer alarmTemplateId) { + this.alarmTemplateId = alarmTemplateId; + } + + public String getAlarmTemplateName() { + return alarmTemplateName; + } + + public void setAlarmTemplateName(String alarmTemplateName) { + this.alarmTemplateName = alarmTemplateName; + } + + public String getIsDefault() { + return isDefault; + } + + public void setIsDefault(String isDefault) { + this.isDefault = isDefault; + } + + public String getRemark() { + return remark; + } + + public void setRemark(String remark) { + this.remark = remark; + } + } +} diff --git a/ucloud-sdk-java-umon/src/main/java/cn/ucloud/umon/models/UnbindAlarmTemplateRequest.java b/ucloud-sdk-java-umon/src/main/java/cn/ucloud/umon/models/UnbindAlarmTemplateRequest.java new file mode 100644 index 00000000..bd12110a --- /dev/null +++ b/ucloud-sdk-java-umon/src/main/java/cn/ucloud/umon/models/UnbindAlarmTemplateRequest.java @@ -0,0 +1,74 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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 cn.ucloud.umon.models; + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +import java.util.List; + +public class UnbindAlarmTemplateRequest extends Request { + + /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + @NotEmpty + @UCloudParam("Region") + private String region; + + /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + @UCloudParam("ProjectId") + private String projectId; + + /** 资源类型,同DescribeResourceMetric支持的类型,请参考DescribeResourceMetric中的可选资源类型 */ + @NotEmpty + @UCloudParam("ResourceType") + private String resourceType; + + /** 资源id */ + @NotEmpty + @UCloudParam("ResourceId") + private List resourceId; + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getResourceType() { + return resourceType; + } + + public void setResourceType(String resourceType) { + this.resourceType = resourceType; + } + + public List getResourceId() { + return resourceId; + } + + public void setResourceId(List resourceId) { + this.resourceId = resourceId; + } +} diff --git a/ucloud-sdk-java-umon/src/main/java/cn/ucloud/umon/models/UnbindAlarmTemplateResponse.java b/ucloud-sdk-java-umon/src/main/java/cn/ucloud/umon/models/UnbindAlarmTemplateResponse.java new file mode 100644 index 00000000..1d47c512 --- /dev/null +++ b/ucloud-sdk-java-umon/src/main/java/cn/ucloud/umon/models/UnbindAlarmTemplateResponse.java @@ -0,0 +1,20 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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 cn.ucloud.umon.models; + + + +import cn.ucloud.common.response.Response; + +public class UnbindAlarmTemplateResponse extends Response {} diff --git a/ucloud-sdk-java-umongodb/pom.xml b/ucloud-sdk-java-umongodb/pom.xml index aa312b67..90c27013 100644 --- a/ucloud-sdk-java-umongodb/pom.xml +++ b/ucloud-sdk-java-umongodb/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.43-release + 1.2.44-release 4.0.0 ucloud-sdk-java-umongodb - 1.2.43-release + 1.2.44-release cn.ucloud ucloud-sdk-java-common - 1.2.43-release + 1.2.44-release diff --git a/ucloud-sdk-java-unet/pom.xml b/ucloud-sdk-java-unet/pom.xml index c8d4b71e..07943130 100644 --- a/ucloud-sdk-java-unet/pom.xml +++ b/ucloud-sdk-java-unet/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.43-release + 1.2.44-release 4.0.0 ucloud-sdk-java-unet - 1.2.43-release + 1.2.44-release cn.ucloud ucloud-sdk-java-common - 1.2.43-release + 1.2.44-release diff --git a/ucloud-sdk-java-upgsql/pom.xml b/ucloud-sdk-java-upgsql/pom.xml index 8ff9cf1d..46bcace6 100644 --- a/ucloud-sdk-java-upgsql/pom.xml +++ b/ucloud-sdk-java-upgsql/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.43-release + 1.2.44-release 4.0.0 ucloud-sdk-java-upgsql - 1.2.43-release + 1.2.44-release cn.ucloud ucloud-sdk-java-common - 1.2.43-release + 1.2.44-release diff --git a/ucloud-sdk-java-uphone/pom.xml b/ucloud-sdk-java-uphone/pom.xml index 05ad8c00..edd18ddb 100644 --- a/ucloud-sdk-java-uphone/pom.xml +++ b/ucloud-sdk-java-uphone/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.43-release + 1.2.44-release 4.0.0 ucloud-sdk-java-uphone - 1.2.43-release + 1.2.44-release cn.ucloud ucloud-sdk-java-common - 1.2.43-release + 1.2.44-release diff --git a/ucloud-sdk-java-uphost/pom.xml b/ucloud-sdk-java-uphost/pom.xml index 8b01799f..5c7b4841 100644 --- a/ucloud-sdk-java-uphost/pom.xml +++ b/ucloud-sdk-java-uphost/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.43-release + 1.2.44-release 4.0.0 ucloud-sdk-java-uphost - 1.2.43-release + 1.2.44-release cn.ucloud ucloud-sdk-java-common - 1.2.43-release + 1.2.44-release diff --git a/ucloud-sdk-java-uslk/pom.xml b/ucloud-sdk-java-uslk/pom.xml index e820356a..3826423e 100644 --- a/ucloud-sdk-java-uslk/pom.xml +++ b/ucloud-sdk-java-uslk/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.43-release + 1.2.44-release 4.0.0 ucloud-sdk-java-uslk - 1.2.43-release + 1.2.44-release cn.ucloud ucloud-sdk-java-common - 1.2.43-release + 1.2.44-release diff --git a/ucloud-sdk-java-usms/pom.xml b/ucloud-sdk-java-usms/pom.xml index 6180c9db..6a666944 100644 --- a/ucloud-sdk-java-usms/pom.xml +++ b/ucloud-sdk-java-usms/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.43-release + 1.2.44-release 4.0.0 ucloud-sdk-java-usms - 1.2.43-release + 1.2.44-release cn.ucloud ucloud-sdk-java-common - 1.2.43-release + 1.2.44-release diff --git a/ucloud-sdk-java-usnap/pom.xml b/ucloud-sdk-java-usnap/pom.xml index 4c6f9bc7..b5a94a7f 100644 --- a/ucloud-sdk-java-usnap/pom.xml +++ b/ucloud-sdk-java-usnap/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.43-release + 1.2.44-release 4.0.0 ucloud-sdk-java-usnap - 1.2.43-release + 1.2.44-release cn.ucloud ucloud-sdk-java-common - 1.2.43-release + 1.2.44-release diff --git a/ucloud-sdk-java-uvms/pom.xml b/ucloud-sdk-java-uvms/pom.xml index 9774042a..b85ee1ae 100644 --- a/ucloud-sdk-java-uvms/pom.xml +++ b/ucloud-sdk-java-uvms/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.43-release + 1.2.44-release 4.0.0 ucloud-sdk-java-uvms - 1.2.43-release + 1.2.44-release cn.ucloud ucloud-sdk-java-common - 1.2.43-release + 1.2.44-release diff --git a/ucloud-sdk-java-vpc/pom.xml b/ucloud-sdk-java-vpc/pom.xml index 35a28d1c..48517d10 100644 --- a/ucloud-sdk-java-vpc/pom.xml +++ b/ucloud-sdk-java-vpc/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.43-release + 1.2.44-release 4.0.0 ucloud-sdk-java-vpc - 1.2.43-release + 1.2.44-release cn.ucloud ucloud-sdk-java-common - 1.2.43-release + 1.2.44-release