支持通过排序算法和数据处理能力,对流经不同云网络资源的流量进行排名分析,以及对阿里云性能观测的探测指标进行排序,帮助您快速识别网络瓶颈、优化资源配置和提升整体网络效能。
接口说明
支持分析场景:
- NAT 网关 SNAT IP 流量分析场景 
- 公网流量分析场景 
- 跨域流量分析场景 
- 混合云流量分析场景 
- 公网性能观测大盘场景 
- 跨可用区内网性能观测大盘场景 
- 跨地域内网性能观测大盘场景 
各场景的具体使用方式请参见此文档。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
 调试
        
            调试
        
    
授权信息
| 操作 | 访问级别 | 资源类型 | 条件关键字 | 关联操作 | 
| nis:GetNisNetworkRanking | none | *全部资源 
 | 无 | 无 | 
请求参数
| 名称 | 类型 | 必填 | 描述 | 示例值 | 
| RegionNo | string | 是 | 资源所在地域。 | cn-beijing | 
| ResourceType | string | 是 | 按流量转发所使用的阿里云网络资源类型进行分析,取值: 
 | AccessInternetIpV4 | 
| Direction | string | 是 | 基于阿里云资源的网络流量方向,取值: 
 重要 
 跨域流量分析因只采集出向流量,所以传入 in 也以 out 处理。 地域内性能观测和地域间性能观测因需在 Filter 内指定源或目的,所以指定 Direction 无效。 | in | 
| GroupBy | string | 是 | 指定指标排名的维度,各场景取值:
 
 流量统计排名分析: 
 网络访问性能排名分析: 
 | Protocol | 
| OrderBy | string | 是 | 指定公网流量进行排名的指标。大小写敏感,取值: 
 | bps | 
| Filter | array<object> | 否 | 支持进一步指定流量的过滤条件,进行聚焦性流量分析。 | |
| object | 否 | 查询资源时的筛选条件列表。 | ||
| Name | string | 否 | 过滤条件的名字。 | instanceId | 
| Value | string | 否 | 过滤条件的值。 | lb-2zxxxxz1d | 
| BeginTime | integer | 否 | 起始时间戳,单位 ms。未指定时默认查最近 1 小时。 | 1684373600099 | 
| EndTime | integer | 否 | 结束时间戳,单位 ms。未指定时默认查最近 1 小时。只指定了 BeginTime 时查 BeginTime 之后的 1 小时。 | 1684379093000 | 
| Sort | string | 否 | 排序方式,默认 desc,取值: 
 | desc | 
| TopN | integer | 否 | 展示排序靠前的数据。默认值:10。表示默认展示排序前 10 的数据。最大值:100。 | 10 | 
| UseCrossAccount | boolean | 否 | 是否使用多账号访问模式,保留参数,目前不支持。 | false | 
| AccountIds | array | 否 | 显式传递子账号 ID。 | |
| string | 否 | 成员账号 ID 列表。 | 118639953821**** | 
返回参数
| 名称 | 类型 | 描述 | 示例值 | 
| object | RpcResponse<ArrayList | ||
| RequestId | string | 请求 ID。 | A7F0D6EC-E19E-58AC-AC9F-08036763960F | 
| Data | array<object> | 云网络指标排名数据集合。 | |
| object | 云网络指标排名单行数据。 | ||
| RegionNo | string | 阿里云地域 ID。 | cn-shenzhen | 
| InstanceId | string | 各场景下表示对应的云上资源实例 ID,如跨域流量分析场景表示 CenID,公网场景表示 EipId、EcsId、ClbId 等。 | eip-sample* | 
| BandwidthPackageId | string | 带宽包实例 ID。 | cbwp-sample* | 
| SourceIp | string | 源端 IP。 | 42.120.XX.XX | 
| SourcePort | string | 源端端口。 | 443 | 
| SourceIsp | string | 源端运营商。 | 移动 | 
| DestinationIp | string | 目的端 IP。 | 2.2.XX.XX | 
| DestinationPort | string | 目的端端口。 | 80 | 
| DestinationIsp | string | 目的端运营商。 | 阿里云 | 
| Protocol | string | 网络协议。 | 6 | 
| Country | string | 客户端所在国家。 | 中国 | 
| Province | string | 客户端所在省份/州。 | 四川省 | 
| City | string | 客户端所在的城市。 | 成都市 | 
| Isp | string | 客户端运营商。 | 移动 | 
| Asn | string | 客户端运营商的自治系统编号。 | 129103 | 
| IP | string | IP 地址。 | 120.238.XX.XX | 
| DestinationRegionNo | string | 目的端地域 ID。 | cn-hangzhou | 
| VbrId | string | 边界路由器实例 ID。 | vbr-sample* | 
| AttachmentId | string | 转发路由器链接 ID。 | tr-sample* | 
| SourceZone | string | 探测的源可用区。 | cn-hangzhou-a | 
| DestinationZone | string | 探测的目的可用区。 | cn-hangzhou-b | 
| ByteCount | number | 流量数(Byte)。 | 1024 | 
| PacketCount | number | 流量包数。 | 66 | 
| RTT | number | 延迟,单位 ms。 | 23 | 
| RetransmitRate | number | TCP 报文的重传率。 | 0.1 | 
| InBps | number | 入方向带宽,单位:bps。 | 10 | 
| InPps | number | 入方向包速率。单位:个/秒。 | 3 | 
| OutBps | number | 出方向带宽,单位:bps。 | 88 | 
| OutPps | number | 出方向包速率。单位:个/秒。 | 8 | 
| NewSessionPerSecond | number | 新建连接数。单位:个/秒。 | 18 | 
| ActiveSessionCount | number | 并发连接数。单位:个。 | 66 | 
示例
正常返回示例
JSON格式
{
  "RequestId": "A7F0D6EC-E19E-58AC-AC9F-08036763960F",
  "Data": [
    {
      "RegionNo": "cn-shenzhen",
      "InstanceId": "eip-sample*",
      "BandwidthPackageId": "cbwp-sample*",
      "SourceIp": "42.120.XX.XX",
      "SourcePort": "443",
      "SourceIsp": "移动",
      "DestinationIp": "2.2.XX.XX",
      "DestinationPort": "80",
      "DestinationIsp": "阿里云",
      "Protocol": "6",
      "Country": "中国",
      "Province": "四川省",
      "City": "成都市",
      "Isp": "移动",
      "Asn": "129103",
      "IP": "120.238.XX.XX",
      "DestinationRegionNo": "cn-hangzhou",
      "VbrId": "vbr-sample*",
      "AttachmentId": "tr-sample*",
      "SourceZone": "cn-hangzhou-a",
      "DestinationZone": "cn-hangzhou-b",
      "ByteCount": 1024,
      "PacketCount": 66,
      "RTT": 23,
      "RetransmitRate": 0.1,
      "InBps": 10,
      "InPps": 3,
      "OutBps": 88,
      "OutPps": 8,
      "NewSessionPerSecond": 18,
      "ActiveSessionCount": 66
    }
  ]
}错误码
| HTTP status code | 错误码 | 错误信息 | 描述 | 
|---|---|---|---|
| 400 | IllegalParam.BeginTimeAndEndTime | It only supports querying data for up to 24 hours: %s. | 最大支持查询24小时数据。 | 
| 400 | OperationFailed.DataTooMuch | Too much data has been queried under the specified conditions. Shorten the query time, specify more precise filtering conditions, or try again later. | 指定条件下查询的数据过多,请缩短查询时间、指定更精确过滤条件或者稍后重试。 | 
| 400 | IllegalParam.OrderBy | The specified param of orderBy (%s) is invalid. | 指定的排序字段(%s)不合法。 | 
| 400 | IllegalParam.ResourceType | The specified resourceType (%s) is invalid. | 指定的ResourceType变量值(%s)不存在。 | 
| 400 | IllegalParam.GroupBy | The specified param of GroupBy (%s) is invalid. | 指定的分组字段(%s)不合法。 | 
| 400 | IllegalParam.Direction | The specified direction (%s) is invalid. | 指定的Direction参数不合法,请修改。 | 
| 400 | IllegalParam.Filter.InstanceId | The specified InstanceId(%s) is illegal. | 指定的InstanceId(%s)参数非法。 | 
| 400 | IllegalParam.BeginTimeAndEndTime5M | It only supports querying data for up to 5 minute when TupleType is 5 and the CloudIp and OtherIp are both empty: %s. | 当TupleType=5且CloudIp、OtherIp都是空时,只支持查询最长5分钟范围的数据。 | 
| 400 | IllegalParam.ServiceOffline | The service has been taken offline. | 该服务已下线。 | 
| 404 | ResourceNotFound.InstanceId | The specified InstanceId(%s) does not exist. | 指定的InstanceId(%s)不存在。 | 
| 404 | ResourceNotFound.IpSets | The specified instance does not exist or does not have any acceleration region. | 指定的实例不存在或者没有加速区域。 | 
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。