阅读本文,您可以获取 Java SDK 大图监控的接口调用示例,实现快速开发。
说明
本文的调用示例包含接口的部分参数。由于参数间可能存在互斥关系,在调用时,请您参考注释,进行调整。
调用接口前,请先完成 Java SDK 的安装及初始化操作。
本节为您介绍大图监控相关接口的功能和调用示例。
您可以调用 DescribeImageXExceedCountByTime 接口查询大图监控样本量。详细的参数说明可参见 DescribeImageXExceedCountByTime 接口文档。
接口调用示例如下所示。
package com.volcengine.example.imagex.v2.api; import com.volcengine.model.imagex.v2.*; import com.volcengine.service.imagex.v2.ImagexService; public class DescribeImageXExceedCountByTimeExample { public static void main(String[] args) { ImagexService service = ImagexService.getInstance(); service.setAccessKey("ak"); service.setSecretKey("sk"); DescribeImageXExceedCountByTimeBody body = new DescribeImageXExceedCountByTimeBody(); try { DescribeImageXExceedCountByTimeRes resp = service.describeImageXExceedCountByTime(body); System.out.println(resp); } catch (Exception e) { e.printStackTrace(); } } }
您可以调用 DescribeImageXSensibleTopUnknownURL 接口查询大图文件未知原因。详细的参数说明可参见 DescribeImageXSensibleTopUnknownURL 接口文档。
接口调用示例如下所示。
package com.volcengine.example.imagex.v2.api; import com.volcengine.model.imagex.v2.*; import com.volcengine.service.imagex.v2.ImagexService; public class DescribeImageXSensibleTopUnknownURLExample { public static void main(String[] args) { ImagexService service = ImagexService.getInstance(); service.setAccessKey("ak"); service.setSecretKey("sk"); DescribeImageXSensibleTopUnknownURLBody body = new DescribeImageXSensibleTopUnknownURLBody(); try { DescribeImageXSensibleTopUnknownURLRes resp = service.describeImageXSensibleTopUnknownURL(body); System.out.println(resp); } catch (Exception e) { e.printStackTrace(); } } }
您可以调用 DescribeImageXSensibleTopRamURL 接口查询大图文件内存。详细的参数说明可参见 DescribeImageXSensibleTopRamURL 接口文档。
接口调用示例如下所示。
package com.volcengine.example.imagex.v2.api; import com.volcengine.model.imagex.v2.*; import com.volcengine.service.imagex.v2.ImagexService; public class DescribeImageXSensibleTopRamURLExample { public static void main(String[] args) { ImagexService service = ImagexService.getInstance(); service.setAccessKey("ak"); service.setSecretKey("sk"); DescribeImageXSensibleTopRamURLBody body = new DescribeImageXSensibleTopRamURLBody(); try { DescribeImageXSensibleTopRamURLRes resp = service.describeImageXSensibleTopRamURL(body); System.out.println(resp); } catch (Exception e) { e.printStackTrace(); } } }
您可以调用 DescribeImageXSensibleTopResolutionURL 接口查询大图文件分辨率。详细的参数说明可参见 DescribeImageXSensibleTopResolutionURL 接口文档。
接口调用示例如下所示。
package com.volcengine.example.imagex.v2.api; import com.volcengine.model.imagex.v2.*; import com.volcengine.service.imagex.v2.ImagexService; public class DescribeImageXSensibleTopResolutionURLExample { public static void main(String[] args) { ImagexService service = ImagexService.getInstance(); service.setAccessKey("ak"); service.setSecretKey("sk"); DescribeImageXSensibleTopResolutionURLBody body = new DescribeImageXSensibleTopResolutionURLBody(); try { DescribeImageXSensibleTopResolutionURLRes resp = service.describeImageXSensibleTopResolutionURL(body); System.out.println(resp); } catch (Exception e) { e.printStackTrace(); } } }
您可以调用 DescribeImageXSensibleTopSizeURL 接口查询大图文件体积。详细的参数说明可参见 DescribeImageXSensibleTopSizeURL 接口文档。
接口调用示例如下所示。
package com.volcengine.example.imagex.v2.api; import com.volcengine.model.imagex.v2.*; import com.volcengine.service.imagex.v2.ImagexService; public class DescribeImageXSensibleTopSizeURLExample { public static void main(String[] args) { ImagexService service = ImagexService.getInstance(); service.setAccessKey("ak"); service.setSecretKey("sk"); DescribeImageXSensibleTopSizeURLBody body = new DescribeImageXSensibleTopSizeURLBody(); try { DescribeImageXSensibleTopSizeURLRes resp = service.describeImageXSensibleTopSizeURL(body); System.out.println(resp); } catch (Exception e) { e.printStackTrace(); } } }
您可以调用 DescribeImageXExceedFileSize 接口查询大图文件体积大小分布。详细的参数说明可参见 DescribeImageXExceedFileSize 接口文档。
接口调用示例如下所示。
package com.volcengine.example.imagex.v2.api; import com.volcengine.model.imagex.v2.*; import com.volcengine.service.imagex.v2.ImagexService; public class DescribeImageXExceedFileSizeExample { public static void main(String[] args) { ImagexService service = ImagexService.getInstance(); service.setAccessKey("ak"); service.setSecretKey("sk"); DescribeImageXExceedFileSizeBody body = new DescribeImageXExceedFileSizeBody(); try { DescribeImageXExceedFileSizeRes resp = service.describeImageXExceedFileSize(body); System.out.println(resp); } catch (Exception e) { e.printStackTrace(); } } }
您可以调用 DescribeImageXExceedResolutionRatioAll 接口查询大图分辨率占比分布。详细的参数说明可参见 DescribeImageXExceedResolutionRatioAll 接口文档。
接口调用示例如下所示。
package com.volcengine.example.imagex.v2.api; import com.volcengine.model.imagex.v2.*; import com.volcengine.service.imagex.v2.ImagexService; public class DescribeImageXExceedResolutionRatioAllExample { public static void main(String[] args) { ImagexService service = ImagexService.getInstance(); service.setAccessKey("ak"); service.setSecretKey("sk"); DescribeImageXExceedResolutionRatioAllBody body = new DescribeImageXExceedResolutionRatioAllBody(); try { DescribeImageXExceedResolutionRatioAllRes resp = service.describeImageXExceedResolutionRatioAll(body); System.out.println(resp); } catch (Exception e) { e.printStackTrace(); } } }