tencent cloud

APIs

GetMultiFlowStatistic

Download
Modo Foco
Tamanho da Fonte
Última atualização: 2026-05-21 10:26:16

1. API Description

Domain name for API request: mna.intl.tencentcloudapi.com.

Obtain batch device traffic statistics curves

A maximum of 20 requests can be initiated per second for this API.

We recommend you to use API Explorer
Try it
API Explorer provides a range of capabilities, including online call, signature authentication, SDK code generation, and API quick search. It enables you to view the request, response, and auto-generated examples.

2. Input Parameters

The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.

Parameter Name Required Type Description
Action Yes String Common Params. The value used for this API: GetMultiFlowStatistic.
Version Yes String Common Params. The value used for this API: 2021-01-19.
Region No String Common Params. This parameter is not required for this API.
DeviceIds.N Yes Array of String Device id list, up to 10 devices at a time
BeginTime Yes Integer 1659514436
EndTime Yes Integer 1659515000
Type Yes Integer Statistics traffic type (1: uplink traffic, 2: downstream traffic, 3: sum of upstream and downstream)
TimeGranularity Yes Integer Statistical time granularity (1: hourly statistics, 2: daily statistics).
AccessRegion No String Access region. Value ranges from 'MC' to 'AM'. MC=Chinese mainland AP=Asia Pacific EU=Europe AM=Americas. Leave it blank to represent all regions.
GatewayType No Integer Gateway type. 0: public cloud gateway; 1: private gateway. Default is 0 if not specified.

3. Output Parameters

Parameter Name Type Description
FlowDetails Array of FlowDetails Batch device traffic information
RequestId String The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.

4. Example

Example1 Batch device traffic usage

Obtain traffic usage for the specified device list in bulk

Input Example

POST / HTTP/1.1
Host: mna.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: GetMultiFlowStatistic
<Common request parameters>

{
    "DeviceIds": [
        "mna-obzuio2pij",
        "mna-ps9x7eako2"
    ],
    "BeginTime": 1675255591,
    "EndTime": 1675860391,
    "Type": 1,
    "TimeGranularity": 1
}

Output Example

{
    "Response": {
        "FlowDetails": [
            {
                "AvgValue": 26524619322,
                "DeviceId": "mna-obzuio2pij",
                "MaxValue": 44183705788,
                "NetDetails": [
                    {
                        "Current": 421334,
                        "Time": "1675756800"
                    },
                    {
                        "Current": 32279199625,
                        "Time": "1675760400"
                    },
                    {
                        "Current": 44183705788,
                        "Time": "1675771200"
                    },
                    {
                        "Current": 29635150541,
                        "Time": "1675774800"
                    }
                ],
                "TotalValue": 106098477288
            },
            {
                "AvgValue": 31803650050.5,
                "DeviceId": "mna-ps9x7eako2",
                "MaxValue": 50892172491,
                "NetDetails": [
                    {
                        "Current": 22711,
                        "Time": "1675756800"
                    },
                    {
                        "Current": 46732569185,
                        "Time": "1675760400"
                    },
                    {
                        "Current": 29589835815,
                        "Time": "1675771200"
                    },
                    {
                        "Current": 50892172491,
                        "Time": "1675774800"
                    }
                ],
                "TotalValue": 127214600202
            }
        ],
        "RequestId": "ffad4f52-505f-4563-9431-b2ca1b5a887e"
    }
}

5. Developer Resources

SDK

TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.

Command Line Interface

6. Error Code

The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.

Error Code Description
InternalError Internal error.
InternalError.MonitorDataRequestError Monitor data request error.
InvalidParameterValue Parameter value error.

Ajuda e Suporte

Esta página foi útil?

comentários