文档中心 > API类目 > 云游戏API

alibaba.cloudgame.ops.monitor.query (监控指标查询)

监控指标查询

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
app_monitor_query_request AppMonitorQueryRequest 必须 请求入参
  • └ app_name
  • String
  • 必须
  • xxx
  • xxx
  • └ app_env_name
  • String
  • 必须
  • xxx
  • xxx
  • └ app_env_v_group
  • String
  • 必须
  • xxx
  • xxx
  • └ range_minutes
  • Number
  • 必须
  • 1
  • 1

响应参数

名称 类型 示例值 描述
result Result 返回结果
  • └ success
  • Boolean
  • true
  • true
  • └ msg_code
  • String
  • xxx
  • xxx
  • └ msg_info
  • String
  • xxx
  • xxx
  • model
  • AppMonitorResultDTO
  • 数据结果
  • └ resp
  • String
  • xxx
  • 返回内容

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaCloudgameOpsMonitorQueryRequest req = new AlibabaCloudgameOpsMonitorQueryRequest();
AlibabaCloudgameOpsMonitorQueryRequest.AppMonitorQueryRequest obj1 = new AlibabaCloudgameOpsMonitorQueryRequest.AppMonitorQueryRequest();
obj1.setAppName("xxx");
obj1.setAppEnvName("xxx");
obj1.setAppEnvVGroup("xxx");
obj1.setRangeMinutes(1L);
req.setAppMonitorQueryRequest(obj1);
AlibabaCloudgameOpsMonitorQueryResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_cloudgame_ops_monitor_query_response>
    <result>
        <success>true</success>
        <msg_code>xxx</msg_code>
        <msg_info>xxx</msg_info>
        <model>
            <resp>xxx</resp>
        </model>
    </result>
</alibaba_cloudgame_ops_monitor_query_response>

异常示例

  • XML示例
  • JSON示例
<error_response>
    <code>50</code>
    <msg>Remote service error</msg>
    <sub_code>isv.invalid-parameter</sub_code>
    <sub_msg>非法参数</sub_msg>
</error_response>

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部