阅读本文,您可以获取 Java SDK HEIF 编码监控的接口调用示例,实现快速开发。
说明
本文的调用示例包含接口的部分参数。由于参数间可能存在互斥关系,在调用时,请您参考注释,进行调整。
调用接口前,请先完成 Java SDK 的安装及初始化操作。
本节为您介绍 HEIF 编码监控相关接口的功能和调用示例。
您可以调用 DescribeImageXHeifEncodeSuccessCountByTime 接口查询 HEIF 编码成功次数时序数据。详细的参数说明可参见 DescribeImageXHeifEncodeSuccessCountByTime 接口文档。
接口调用示例如下所示。
package com.volcengine.example.imagex.v2.api; import com.volcengine.model.imagex.v2.*; import com.volcengine.service.imagex.v2.ImagexService; public class DescribeImageXHeifEncodeSuccessCountByTimeExample { public static void main(String[] args) { ImagexService service = ImagexService.getInstance(); service.setAccessKey("ak"); service.setSecretKey("sk"); DescribeImageXHeifEncodeSuccessCountByTimeBody body = new DescribeImageXHeifEncodeSuccessCountByTimeBody(); try { DescribeImageXHeifEncodeSuccessCountByTimeRes resp = service.describeImageXHeifEncodeSuccessCountByTime(body); System.out.println(resp); } catch (Exception e) { e.printStackTrace(); } } }
您可以调用 DescribeImageXHeifEncodeSuccessRateByTime 接口查询 HEIF 编码成功率时序数据。详细的参数说明可参见 DescribeImageXHeifEncodeSuccessRateByTime 接口文档。
接口调用示例如下所示。
package com.volcengine.example.imagex.v2.api; import com.volcengine.model.imagex.v2.*; import com.volcengine.service.imagex.v2.ImagexService; public class DescribeImageXHeifEncodeSuccessRateByTimeExample { public static void main(String[] args) { ImagexService service = ImagexService.getInstance(); service.setAccessKey("ak"); service.setSecretKey("sk"); DescribeImageXHeifEncodeSuccessRateByTimeBody body = new DescribeImageXHeifEncodeSuccessRateByTimeBody(); try { DescribeImageXHeifEncodeSuccessRateByTimeRes resp = service.describeImageXHeifEncodeSuccessRateByTime(body); System.out.println(resp); } catch (Exception e) { e.printStackTrace(); } } }
您可以调用 DescribeImageXHeifEncodeFileOutSizeByTime 接口查询 HEIF 编码后文件大小时序数据。详细的参数说明可参见 DescribeImageXHeifEncodeFileOutSizeByTime 接口文档。
接口调用示例如下所示。
package com.volcengine.example.imagex.v2.api; import com.volcengine.model.imagex.v2.*; import com.volcengine.service.imagex.v2.ImagexService; public class DescribeImageXHeifEncodeFileOutSizeByTimeExample { public static void main(String[] args) { ImagexService service = ImagexService.getInstance(); service.setAccessKey("ak"); service.setSecretKey("sk"); DescribeImageXHeifEncodeFileOutSizeByTimeBody body = new DescribeImageXHeifEncodeFileOutSizeByTimeBody(); try { DescribeImageXHeifEncodeFileOutSizeByTimeRes resp = service.describeImageXHeifEncodeFileOutSizeByTime(body); System.out.println(resp); } catch (Exception e) { e.printStackTrace(); } } }
您可以调用 DescribeImageXHeifEncodeErrorCodeByTime 接口查询 HEIF 编码错误码时序数据。详细的参数说明可参见 DescribeImageXHeifEncodeErrorCodeByTime 接口文档。
接口调用示例如下所示。
package com.volcengine.example.imagex.v2.api; import com.volcengine.model.imagex.v2.*; import com.volcengine.service.imagex.v2.ImagexService; public class DescribeImageXHeifEncodeErrorCodeByTimeExample { public static void main(String[] args) { ImagexService service = ImagexService.getInstance(); service.setAccessKey("ak"); service.setSecretKey("sk"); DescribeImageXHeifEncodeErrorCodeByTimeBody body = new DescribeImageXHeifEncodeErrorCodeByTimeBody(); try { DescribeImageXHeifEncodeErrorCodeByTimeRes resp = service.describeImageXHeifEncodeErrorCodeByTime(body); System.out.println(resp); } catch (Exception e) { e.printStackTrace(); } } }
您可以调用 DescribeImageXHeifEncodeFileInSizeByTime 接口查询 HEIF 编码前文件大小时序数据。详细的参数说明可参见 DescribeImageXHeifEncodeFileInSizeByTime 接口文档。
接口调用示例如下所示。
package com.volcengine.example.imagex.v2.api; import com.volcengine.model.imagex.v2.*; import com.volcengine.service.imagex.v2.ImagexService; public class DescribeImageXHeifEncodeFileInSizeByTimeExample { public static void main(String[] args) { ImagexService service = ImagexService.getInstance(); service.setAccessKey("ak"); service.setSecretKey("sk"); DescribeImageXHeifEncodeFileInSizeByTimeBody body = new DescribeImageXHeifEncodeFileInSizeByTimeBody(); try { DescribeImageXHeifEncodeFileInSizeByTimeRes resp = service.describeImageXHeifEncodeFileInSizeByTime(body); System.out.println(resp); } catch (Exception e) { e.printStackTrace(); } } }
您可以调用 DescribeImageXHeifEncodeDurationByTime 接口查询 HEIF 编码耗时时序数据。详细的参数说明可参见 DescribeImageXHeifEncodeDurationByTime 接口文档。
接口调用示例如下所示。
package com.volcengine.example.imagex.v2.api; import com.volcengine.model.imagex.v2.*; import com.volcengine.service.imagex.v2.ImagexService; public class DescribeImageXHeifEncodeDurationByTimeExample { public static void main(String[] args) { ImagexService service = ImagexService.getInstance(); service.setAccessKey("ak"); service.setSecretKey("sk"); DescribeImageXHeifEncodeDurationByTimeBody body = new DescribeImageXHeifEncodeDurationByTimeBody(); try { DescribeImageXHeifEncodeDurationByTimeRes resp = service.describeImageXHeifEncodeDurationByTime(body); System.out.println(resp); } catch (Exception e) { e.printStackTrace(); } } }