Retrieves detailed metric trend data for a specified Network Intelligence Service (NIS) network analysis scenario. The data includes metric trends for traffic analysis and performance monitoring.
Operation description
Data synchronization
API data is synchronized every 6 hours. The latest network analysis data is available for query after a delay of up to 6 hours.
Supported analysis scenarios:
Internet performance monitoring scenario
Cross-zone private network performance monitoring scenario
Cross-region private network performance monitoring scenario
Internet performance monitoring scenario
Note: The maximum time range for a query is 24 hours. If you do not specify a time range, data from the last hour is queried by default. The system returns one data entry per minute.
Note:
Request parameters
| Name | Type | Required | Description |
| RegionNo | string | Yes | The Alibaba Cloud region where the monitoring node is located. |
| ResourceType | string | Yes | Set the value to InternetProbing. This queries the trends of Internet performance monitoring. |
| MetricName | string | Yes | The metric for which you want to query trends. Set the value to rtt. This indicates the round-trip time (RT) of the probe. |
| Dimensions | object[] | Yes | The filter conditions. |
| -Name | string | Yes | The filter condition. Valid values: - Country: The country where the probe is located. - Province: The province where the probe is located. - Isp: The ISP of the probe. Note: You must configure at least one of these parameters. |
| -Value | string | Yes | The value of the filter condition. Examples: - Country: China - Province: Zhejiang - Isp: Alibaba Note: The country and province names must start with an uppercase letter. The ISP parameter must be the same as the display name in the console. |
Response parameters
| Name | Type | Description |
| RequestId | string | The request ID. |
| Data | object | The object that contains the trend data of cloud network metrics. |
| Metrics | array | A collection of metric trend data. |
| -TimeStamp | long | The timestamp in milliseconds. |
| -Value | double | The value of the metric specified by the MetricName request parameter. |
| Unit | String | The unit of Value. |
Cross-region private network performance monitoring scenario
Note:
-
If the query time range is longer than 5 days, one data entry is returned per day.
-
If the query time range is longer than 1 day and up to 5 days, one data entry is returned per hour.
-
If the query time range is 1 day or shorter, one data entry is returned every 5 minutes.
Request parameters
| Name | Type | Required | Description |
| RegionNo | string | Yes | The Alibaba Cloud region. |
| ResourceType | string | Yes | Set the value to IntranetProbing. This queries the trends of cross-zone performance monitoring. |
| MetricName | string | Yes | The metric for which you want to query trends. Set the value to rtt. This indicates the RT of the probe. |
| Dimensions | object[] | Yes | The filter conditions. |
| -Name | string | Yes | The filter condition. Valid values: - SourceZone: The source zone of the probe. This parameter is required. - DestinationZone: The destination zone of the probe. This parameter is required. |
| -Value | string | Yes | The value of the filter condition. Examples: - SourceZone: cn-hangzhou-j - DestinationZone: cn-hangzhou-k |
Response parameters
| Name | Type | Description |
| RequestId | string | The request ID. |
| Data | object | The object that contains the trend data of cloud network metrics. |
| Metrics | array | A collection of metric trend data. |
| -TimeStamp | long | The timestamp in milliseconds. |
| -Value | double | The value of the metric specified by the MetricName request parameter. |
| Unit | String | The unit of Value. |
Cross-region private network performance monitoring scenario
Note
-
If the query time range exceeds 5 days, one data entry is returned per day.
-
If the query time range exceeds 1 day, one data entry is returned per hour.
-
If the query time range is less than 1 day, one data entry is returned every 5 minutes.
Request parameters
| Name | Type | Required | Description |
| RegionNo | string | Yes | The Alibaba Cloud region. |
| ResourceType | string | Yes | Set the value to IntranetProbing. This queries the ranking of cross-region performance monitoring. |
| Direction | string | Yes | The probe direction. Valid values: - in: The probe destination is the region specified by RegionNo. - out: The probe source is the region specified by RegionNo. |
| MetricName | string | Yes | The metric for which you want to query trends. Set the value to rtt. This indicates the RT of the probe. |
| Dimensions | object[] | No | The filter conditions. |
| -Name | string | No | The filter condition. Set the value to DestinationRegionNo to specify the destination region of the probe. |
| -Value | string | No | The ID of the destination region. Example: DestinationRegionNo: cn-shenzhen |
Response parameters
| Name | Type | Description |
| RequestId | string | The request ID. |
| Data | object | The object that contains the trend data of cloud network metrics. |
| Metrics | array | A collection of metric trend data. |
| -TimeStamp | long | The timestamp in milliseconds. |
| -Value | double | The value of the metric specified by the MetricName request parameter. |
| Unit | String | The unit of Value. |
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
nis:GetNisNetworkMetrics |
none |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionNo |
string |
Yes |
The region ID. |
cn-shenzhen |
| ResourceType |
string |
Yes |
The type of Alibaba Cloud network resource used for traffic forwarding. Valid values:
|
AccessInternetIPV4 |
| MetricName |
string |
Yes |
The metric name. Valid values:
Note
If no RT data is returned for the specified time range, it is because the connection is a persistent connection and no new connection was established during this period. |
bps |
| Dimensions |
array<object> |
Yes |
A collection of query parameters for the business metric. For more information about the parameters for each scenario, see GetNisNetworkMetrics. |
bps |
|
object |
No |
The query parameters for the business metric. |
||
| Name |
string |
No |
The name of the filter condition. |
instanceId |
| Value |
string |
No |
The value of the filter condition. |
eip-sample* |
| BeginTime |
integer |
No |
The beginning of the time range to query. This is a UNIX timestamp in milliseconds. If you do not specify this parameter, data from the last hour is queried by default. The earliest start time you can specify is 7 days ago. |
1638239092000 |
| EndTime |
integer |
No |
The end of the time range to query. This is a UNIX timestamp in milliseconds. If you do not specify this parameter, data from the last hour is queried by default. If you specify only BeginTime, the system queries data within one hour after the specified BeginTime. The time range between the start time and the end time cannot exceed 24 hours. |
1684373700099 |
| ScanBy |
string |
No |
The sorting method. Default value: TimestampAscending. Valid values:
|
TimestampAscending |
| UseCrossAccount |
boolean |
No |
Specifies whether to use the multi-account access mode. This parameter is reserved and not supported. |
false |
| AccountIds |
array |
No |
The IDs of RAM users that you want to explicitly specify. |
|
|
string |
No |
A list of member account IDs. |
118639953821**** |
|
| StepMinutes |
integer |
No |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
RpcResponse<ArrayList<PublicFlowLogMetricModel>> |
||
| RequestId |
string |
The request ID. |
D5E98683-355B-5867-8D3D-A24755F6895B |
| Data |
object |
The object that contains the trend data of cloud network metrics. |
|
| Unit |
string |
The unit of the metric. |
Bits/Second |
| Metrics |
array<object> |
A collection of metric trend data. |
|
|
object |
The metric trend data at a specific point in time. |
||
| TimeStamp |
integer |
The timestamp of the data entry in milliseconds. |
1690684091100 |
| Value |
number |
The metric value. |
88 |
Examples
Success response
JSON format
{
"RequestId": "D5E98683-355B-5867-8D3D-A24755F6895B",
"Data": {
"Unit": "Bits/Second",
"Metrics": [
{
"TimeStamp": 1690684091100,
"Value": 88
}
]
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | IllegalParam.BeginTimeAndEndTime | It only supports querying data for up to 24 hours: %s. | The time range that you can query must be no longer than 24 hours. |
| 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. | 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.Dimensions | The specified Dimensions(%s) is illegal. | The specified Dimensions parameter is illegal. |
| 400 | IllegalParam.Dimensions.Direction | The specified Dimensions.Direction(%s) is illegal. | The specified Dimensions.Direction parameter is illegal. |
| 400 | IllegalParam.Dimensions.InstanceId | The specified Dimensions.InstanceId(%s) is illegal. | The specified Dimensions.InstanceId parameter is illegal. |
| 400 | IllegalParam.MetricName | The specified MetricName(%s) is illegal. | The specified MetricName parameter is illegal. |
| 400 | IllegalParam.ResourceType | The specified resourceType (%s) is invalid. | The value of ResourceType is invalid. |
| 400 | IllegalParam.Dimensions.DestinationZone | The specified parameter Dimensions.DestinationZone (%s) is illegal. | |
| 400 | IllegalParam.Dimensions.SourceZone | The specified parameter Dimensions.SourceZone(%s) is illegal. | |
| 400 | IllegalParam.IP | The specified IP address (%s) is invalid. | The specified IP address (%s) is invalid. |
| 400 | IllegalParam.RegionNo | The specified parameter RegionNo(%s) is illegal. | The specified argument RegionNo(%s) is illegal. |
| 400 | IllegalParam.Dimensions.InspectionTaskId | The specified argument Dimensions.InspectionTaskId(%s) is illegal. | The specified argument Dimensions.InspectionTaskId(%s) is illegal. |
| 400 | IllegalParam.Dimensions.DestinationRegionNo | The specified parameter Dimensions.DestinationRegionNo(%s) is illegal. | The specified Dimensions.DestinationRegionNo(%s) parameter is illegal. |
| 400 | IllegalParam.StepMinutes | The specified StepMinutes parameter value is illegal, only %s minutes of data precision is supported. | The specified StepMinutes parameter value is illegal, only %s minutes of data precision is supported. |
| 400 | IllegalParam.MaxTimeScope | The query time range exceeds the limit. You can query up to %s days of data. | The query time range exceeds the limit. You can query up to% s days of data. |
| 400 | IllegalParam.StepMinutesAndTime | In the current query time range, data precision of only %s minutes is supported to ensure performance. | In the current query time range, data precision of only %s minutes is supported to ensure performance. |
| 400 | UnsupportedRegion | This feature is not supported in the current region. | |
| 404 | ResourceNotFound.InstanceId | The specified InstanceId(%s) does not exist. | The specified InstanceId does not exist. |
| 404 | ResourceNotFound.IpSets | The specified instance does not exist or does not have any acceleration region. | The specified instance does not exist or does not have any acceleration region. |
| 404 | ResourceNotFound.InspectionTaskId | The specified InspectionTaskId(%s) is not found. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.