阅读本文,您可以获取 Java SDK 客户端状态监控的接口调用示例,实现快速开发。
调用接口前,请先完成 Java SDK 的安装及初始化操作。
本节为您介绍客户端状态监控相关接口的功能和调用示例。
您可以调用 DescribeImageXClientErrorCodeAll 接口指定查询维度获取客户端状态监控的错误码分布数据。详细的参数说明可参见 DescribeImageXClientErrorCodeAll 接口文档。
接口调用示例如下所示。
package com.volcengine.example.imagex.v2.api; import com.volcengine.model.imagex.v2.*; import com.volcengine.service.imagex.v2.ImagexService; public class DescribeImageXClientErrorCodeAllExample { public static void main(String[] args) { ImagexService service = ImagexService.getInstance(); service.setAccessKey("ak"); service.setSecretKey("sk"); DescribeImageXClientErrorCodeAllBody body = new DescribeImageXClientErrorCodeAllBody(); try { DescribeImageXClientErrorCodeAllRes resp = service.describeImageXClientErrorCodeAll(body); System.out.println(resp); } catch (Exception e) { e.printStackTrace(); } } }
您可以调用 DescribeImageXClientErrorCodeByTime 接口指定查询维度获取客户端状态监控的错误码时序数据。详细的参数说明可参见 DescribeImageXClientErrorCodeByTime 接口文档。
接口调用示例如下所示。
package com.volcengine.example.imagex.v2.api; import com.volcengine.model.imagex.v2.*; import com.volcengine.service.imagex.v2.ImagexService; public class DescribeImageXClientErrorCodeByTimeExample { public static void main(String[] args) { ImagexService service = ImagexService.getInstance(); service.setAccessKey("ak"); service.setSecretKey("sk"); DescribeImageXClientErrorCodeByTimeBody body = new DescribeImageXClientErrorCodeByTimeBody(); try { DescribeImageXClientErrorCodeByTimeRes resp = service.describeImageXClientErrorCodeByTime(body); System.out.println(resp); } catch (Exception e) { e.printStackTrace(); } } }
您可以调用 DescribeImageXClientDecodeSuccessRateByTime 接口指定查询维度获取客户端状态监控的解码成功率数据。详细的参数说明可参见 DescribeImageXClientDecodeSuccessRateByTime 接口文档。
接口调用示例如下所示。
package com.volcengine.example.imagex.v2.api; import com.volcengine.model.imagex.v2.*; import com.volcengine.service.imagex.v2.ImagexService; public class DescribeImageXClientDecodeSuccessRateByTimeExample { public static void main(String[] args) { ImagexService service = ImagexService.getInstance(); service.setAccessKey("ak"); service.setSecretKey("sk"); DescribeImageXClientDecodeSuccessRateByTimeBody body = new DescribeImageXClientDecodeSuccessRateByTimeBody(); try { DescribeImageXClientDecodeSuccessRateByTimeRes resp = service.describeImageXClientDecodeSuccessRateByTime(body); System.out.println(resp); } catch (Exception e) { e.printStackTrace(); } } }
您可以调用 DescribeImageXClientDecodeDurationByTime 接口指定查询维度获取客户端状态监控的解码耗时数据。详细的参数说明可参见 DescribeImageXClientDecodeDurationByTime 接口文档。
接口调用示例如下所示。
package com.volcengine.example.imagex.v2.api; import com.volcengine.model.imagex.v2.*; import com.volcengine.service.imagex.v2.ImagexService; public class DescribeImageXClientDecodeDurationByTimeExample { public static void main(String[] args) { ImagexService service = ImagexService.getInstance(); service.setAccessKey("ak"); service.setSecretKey("sk"); DescribeImageXClientDecodeDurationByTimeBody body = new DescribeImageXClientDecodeDurationByTimeBody(); try { DescribeImageXClientDecodeDurationByTimeRes resp = service.describeImageXClientDecodeDurationByTime(body); System.out.println(resp); } catch (Exception e) { e.printStackTrace(); } } }
您可以调用 DescribeImageXClientQueueDurationByTime 接口指定查询维度获取客户端状态监控的排队耗时数据。详细的参数说明可参见 DescribeImageXClientQueueDurationByTime 接口文档。
接口调用示例如下所示。
package com.volcengine.example.imagex.v2.api; import com.volcengine.model.imagex.v2.*; import com.volcengine.service.imagex.v2.ImagexService; public class DescribeImageXClientQueueDurationByTimeExample { public static void main(String[] args) { ImagexService service = ImagexService.getInstance(); service.setAccessKey("ak"); service.setSecretKey("sk"); DescribeImageXClientQueueDurationByTimeBody body = new DescribeImageXClientQueueDurationByTimeBody(); try { DescribeImageXClientQueueDurationByTimeRes resp = service.describeImageXClientQueueDurationByTime(body); System.out.println(resp); } catch (Exception e) { e.printStackTrace(); } } }
您可以调用 DescribeImageXClientLoadDurationAll 接口指定查询维度获取客户端状态监控的加载耗时分布数据。详细的参数说明可参见 DescribeImageXClientLoadDurationAll 接口文档。
接口调用示例如下所示。
package com.volcengine.example.imagex.v2.api; import com.volcengine.model.imagex.v2.*; import com.volcengine.service.imagex.v2.ImagexService; public class DescribeImageXClientLoadDurationAllExample { public static void main(String[] args) { ImagexService service = ImagexService.getInstance(); service.setAccessKey("ak"); service.setSecretKey("sk"); DescribeImageXClientLoadDurationAllBody body = new DescribeImageXClientLoadDurationAllBody(); try { DescribeImageXClientLoadDurationAllRes resp = service.describeImageXClientLoadDurationAll(body); System.out.println(resp); } catch (Exception e) { e.printStackTrace(); } } }
您可以调用 DescribeImageXClientLoadDuration 接口指定查询维度获取客户端状态监控的加载耗时时序数据。详细的参数说明可参见 DescribeImageXClientLoadDuration 接口文档。
接口调用示例如下所示。
package com.volcengine.example.imagex.v2.api; import com.volcengine.model.imagex.v2.*; import com.volcengine.service.imagex.v2.ImagexService; public class DescribeImageXClientLoadDurationExample { public static void main(String[] args) { ImagexService service = ImagexService.getInstance(); service.setAccessKey("ak"); service.setSecretKey("sk"); DescribeImageXClientLoadDurationBody body = new DescribeImageXClientLoadDurationBody(); try { DescribeImageXClientLoadDurationRes resp = service.describeImageXClientLoadDuration(body); System.out.println(resp); } catch (Exception e) { e.printStackTrace(); } } }
您可以调用 DescribeImageXClientFailureRate 接口指定查询维度获取客户端状态监控的用户感知失败率数据。详细的参数说明可参见 DescribeImageXClientFailureRate 接口文档。
接口调用示例如下所示。
package com.volcengine.example.imagex.v2.api; import com.volcengine.model.imagex.v2.*; import com.volcengine.service.imagex.v2.ImagexService; public class DescribeImageXClientFailureRateExample { public static void main(String[] args) { ImagexService service = ImagexService.getInstance(); service.setAccessKey("ak"); service.setSecretKey("sk"); DescribeImageXClientFailureRateBody body = new DescribeImageXClientFailureRateBody(); try { DescribeImageXClientFailureRateRes resp = service.describeImageXClientFailureRate(body); System.out.println(resp); } catch (Exception e) { e.printStackTrace(); } } }
您可以调用 DescribeImageXClientSdkVerByTime 接口指定查询维度获取客户端状态监控的 SDK 版本变化趋势数据。详细的参数说明可参见 DescribeImageXClientSdkVerByTime 接口文档。
接口调用示例如下所示。
package com.volcengine.example.imagex.v2.api; import com.volcengine.model.imagex.v2.*; import com.volcengine.service.imagex.v2.ImagexService; public class DescribeImageXClientSdkVerByTimeExample { public static void main(String[] args) { ImagexService service = ImagexService.getInstance(); service.setAccessKey("ak"); service.setSecretKey("sk"); DescribeImageXClientSdkVerByTimeBody body = new DescribeImageXClientSdkVerByTimeBody(); try { DescribeImageXClientSdkVerByTimeRes resp = service.describeImageXClientSdkVerByTime(body); System.out.println(resp); } catch (Exception e) { e.printStackTrace(); } } }
您可以调用 DescribeImageXClientFileSize 接口指定查询维度获取客户端状态监控的文件大小分布数据。详细的参数说明可参见 DescribeImageXClientFileSize 接口文档。
接口调用示例如下所示。
package com.volcengine.example.imagex.v2.api; import com.volcengine.model.imagex.v2.*; import com.volcengine.service.imagex.v2.ImagexService; public class DescribeImageXClientFileSizeExample { public static void main(String[] args) { ImagexService service = ImagexService.getInstance(); service.setAccessKey("ak"); service.setSecretKey("sk"); DescribeImageXClientFileSizeBody body = new DescribeImageXClientFileSizeBody(); try { DescribeImageXClientFileSizeRes resp = service.describeImageXClientFileSize(body); System.out.println(resp); } catch (Exception e) { e.printStackTrace(); } } }
您可以调用 DescribeImageXClientTopFileSize 接口指定查询维度获取客户端状态监控的文件大小 TOP URL。详细的参数说明可参见 DescribeImageXClientTopFileSize 接口文档。
接口调用示例如下所示。
package com.volcengine.example.imagex.v2.api; import com.volcengine.model.imagex.v2.*; import com.volcengine.service.imagex.v2.ImagexService; public class DescribeImageXClientTopFileSizeExample { public static void main(String[] args) { ImagexService service = ImagexService.getInstance(); service.setAccessKey("ak"); service.setSecretKey("sk"); DescribeImageXClientTopFileSizeBody body = new DescribeImageXClientTopFileSizeBody(); try { DescribeImageXClientTopFileSizeRes resp = service.describeImageXClientTopFileSize(body); System.out.println(resp); } catch (Exception e) { e.printStackTrace(); } } }
您可以调用 DescribeImageXClientCountByTime 接口指定查询维度获取客户端状态监控的客户端上报量数据。详细的参数说明可参见 DescribeImageXClientCountByTime 接口文档。
接口调用示例如下所示。
package com.volcengine.example.imagex.v2.api; import com.volcengine.model.imagex.v2.*; import com.volcengine.service.imagex.v2.ImagexService; public class DescribeImageXClientCountByTimeExample { public static void main(String[] args) { ImagexService service = ImagexService.getInstance(); service.setAccessKey("ak"); service.setSecretKey("sk"); DescribeImageXClientCountByTimeBody body = new DescribeImageXClientCountByTimeBody(); try { DescribeImageXClientCountByTimeRes resp = service.describeImageXClientCountByTime(body); System.out.println(resp); } catch (Exception e) { e.printStackTrace(); } } }
您可以调用 DescribeImageXClientScoreByTime 接口指定查询维度获取画质评估上报数据。详细的参数说明可参见 DescribeImageXClientScoreByTime 接口文档。
接口调用示例如下所示。
package com.volcengine.example.imagex.v2.api; import com.volcengine.model.imagex.v2.*; import com.volcengine.service.imagex.v2.ImagexService; public class DescribeImageXClientScoreByTimeExample { public static void main(String[] args) { ImagexService service = ImagexService.getInstance(); service.setAccessKey("ak"); service.setSecretKey("sk"); DescribeImageXClientScoreByTimeBody body = new DescribeImageXClientScoreByTimeBody(); try { DescribeImageXClientScoreByTimeRes resp = service.describeImageXClientScoreByTime(body); System.out.println(resp); } catch (Exception e) { e.printStackTrace(); } } }
您可以调用 DescribeImageXClientDemotionRateByTime 接口指定查询维度获取客户端状态监控的处理降级成功率时序数据。详细的参数说明可参见 DescribeImageXClientDemotionRateByTime 接口文档。
接口调用示例如下所示。
package com.volcengine.example.imagex.v2.api; import com.volcengine.model.imagex.v2.*; import com.volcengine.service.imagex.v2.ImagexService; public class DescribeImageXClientDemotionRateByTimeExample { public static void main(String[] args) { ImagexService service = ImagexService.getInstance(); service.setAccessKey("ak"); service.setSecretKey("sk"); DescribeImageXClientDemotionRateByTimeBody body = new DescribeImageXClientDemotionRateByTimeBody(); try { DescribeImageXClientDemotionRateByTimeRes resp = service.describeImageXClientDemotionRateByTime(body); System.out.println(resp); } catch (Exception e) { e.printStackTrace(); } } }
您可以调用 DescribeImageXClientTopDemotionURL 接口指定查询维度获取客户端状态监控的降级率 TOP URL 数据明细。详细的参数说明可参见 DescribeImageXClientTopDemotionURL 接口文档。
接口调用示例如下所示。
package com.volcengine.example.imagex.v2.api; import com.volcengine.model.imagex.v2.*; import com.volcengine.service.imagex.v2.ImagexService; public class DescribeImageXClientTopDemotionURLExample { public static void main(String[] args) { ImagexService service = ImagexService.getInstance(); service.setAccessKey("ak"); service.setSecretKey("sk"); DescribeImageXClientTopDemotionURLBody body = new DescribeImageXClientTopDemotionURLBody(); try { DescribeImageXClientTopDemotionURLRes resp = service.describeImageXClientTopDemotionURL(body); System.out.println(resp); } catch (Exception e) { e.printStackTrace(); } } }
您可以调用 DescribeImageXClientQualityRateByTime 接口指定查询维度获取客户端状态监控的黑白屏率时序数据。详细的参数说明可参见 DescribeImageXClientQualityRateByTime 接口文档。
接口调用示例如下所示。
package com.volcengine.example.imagex.v2.api; import com.volcengine.model.imagex.v2.*; import com.volcengine.service.imagex.v2.ImagexService; public class DescribeImageXClientQualityRateByTimeExample { public static void main(String[] args) { ImagexService service = ImagexService.getInstance(); service.setAccessKey("ak"); service.setSecretKey("sk"); DescribeImageXClientQualityRateByTimeBody body = new DescribeImageXClientQualityRateByTimeBody(); try { DescribeImageXClientQualityRateByTimeRes resp = service.describeImageXClientQualityRateByTime(body); System.out.println(resp); } catch (Exception e) { e.printStackTrace(); } } }
您可以调用 DescribeImageXClientTopQualityURL 接口指定查询维度获取客户端状态监控的黑白屏 Top URL 数据明细。详细的参数说明可参见 DescribeImageXClientTopQualityURL 接口文档。
接口调用示例如下所示。
package com.volcengine.example.imagex.v2.api; import com.volcengine.model.imagex.v2.*; import com.volcengine.service.imagex.v2.ImagexService; public class DescribeImageXClientTopQualityURLExample { public static void main(String[] args) { ImagexService service = ImagexService.getInstance(); service.setAccessKey("ak"); service.setSecretKey("sk"); DescribeImageXClientTopQualityURLBody body = new DescribeImageXClientTopQualityURLBody(); try { DescribeImageXClientTopQualityURLRes resp = service.describeImageXClientTopQualityURL(body); System.out.println(resp); } catch (Exception e) { e.printStackTrace(); } } }