1.1获取某应用当前并发数


简要描述
  • 用于判断当前应用是否达到最大并发
请求URL
  • {{https://www.pingxingyun.com/console/api}}/poc/hostAppli/getRunningCnt
请求方式
  • get
请求Query参数
参数名 示例值 必选 类型 说明
timestamp 8641648782406069 string 当前时间戳,单位:毫秒
Key xxxxxxxx string 调用开发者平台接口必传参数,在开发者平台后台,账号—安全设置—秘钥管理查看,平台秘钥Key
signature 6DDB63E9E0539638E2F07D8E183BB71BDFDCE375 string 在开发者平台后台,账号—安全设置—秘钥管理查看Key&Secret:用于二次开发的接入凭证 【使用规则】
appliId 917792479208538112 string
appKey xxxxxxxx string 调用开发者平台接口必传参数,在开发者平台后台,账号—安全设置—秘钥管理查看,平台秘钥Key
成功返回示例
{
  "code": 1000,
  "message": "Success",
  "result": {
    "runCntOnAppli": {
      "appliId": "917792479208538112",
      "runCnt": 0
    },
    "runCntOnAppKey": {
      "appKey": "yzpVmS4A",
      "runCnt": 0
    },
    "total": "0",
    "runCntOnSvrList": [
      {
        "serverId": "903328225885683712",
        "runCnt": 0
      },
      {
        "serverId": "923222274570452992",
        "runCnt": 0
      },
      {
        "serverId": "946084143974842368",
        "runCnt": 0
      },
      {
        "serverId": "948655473958060032",
        "runCnt": 0
      },
      {
        "serverId": "948681374317936640",
        "runCnt": 0
      },
      {
        "serverId": "948706205478420480",
        "runCnt": 0
      },
      {
        "serverId": "951165356309741568",
        "runCnt": 0
      },
      {
        "serverId": "951180758620307456",
        "runCnt": 0
      },
      {
        "serverId": "956198068242350080",
        "runCnt": 0
      },
      {
        "serverId": "956198236316499968",
        "runCnt": 0
      },
      {
        "serverId": "956223542989422592",
        "runCnt": 0
      }
    ]
  }
}
成功返回示例的参数说明
参数名 类型 说明
code string code
message string 消息
result object 结果
runCntOnAppli object 当前应用运行数据
runCntOnAppli.appliId string 当前应用ID
runCntOnAppli.runCnt string 当前应用运行数。您可以根据这个值判断当前应用是否达到了当前应用设置的最大并发数。
runCntOnAppKey object 某客户运行数据
runCntOnAppKey.appKey string 客户的appKey
runCntOnAppKey.runCnt string 该客户的运行数。如果您想查看账户中一共使用了多少并发,需要传递appKey参数,这个返回值就可以判断当前并发,根据自身配额,判断是否已经达到最大并发数
total string 当前平台运行总并发数
runCntOnSvrList array 当前平台每个节点运行的并发数据
runCntOnSvrList.serverId string 当前平台每个节点的ID
runCntOnSvrList.runCnt string 当前平台每个节点的运行数
备注

pxy_wy 2025年3月11日 17:32 收藏文档

开发者交流群

QQ群号:1011308692