In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly introduces how to query the traffic information used by an auxiliary network card in a specified period of time, which has a certain reference value, and friends who need it can refer to it. I hope you will learn a lot after reading this article. Next, let the editor take you to learn about it.
DescribeEniMonitorData
Description
The traffic information of the secondary network card that can be queried includes the number of packets sent and received by the secondary network card, the traffic in and out of the internal network, and the number of packets lost by the secondary network card. When part of the returned information is missing, it may be because the system did not get the corresponding information. For example, when the instance is in the Stopped state or the secondary network card is not mounted to the instance, it is in the Available state. When calling this interface, you need to be aware of:
A maximum of 400 monitoring data is returned at a time, that is, an error is returned if the specified parameter (EndTime-StartTime) / Peroid > 400.
You can query the monitoring information within a maximum of 30 days at a time. If the specified parameter StartTime exceeds 30 days, an error is returned.
Request parameter
Return parameters
Data type EniMonitorDataType
Example
Request example
Https://ecs.aliyuncs.com/?Action=DescribeEniMonitorData&EniId=eni-myENI&InstanceId=myInstance&StartTime=2018-05-21T12:19:00Z&EndTime=2018-05-21T12:22:00Z&
Return the example
XML format
5A03C2BA-3BCE-4A87-8076-7DC1629 4 0 2018-05-21T03:22:00Z 00 eni-myENI 00 0 2018-05-21T03:21:00Z 00 eni-myENI 00 52240 2018-05-21T03:19:00Z 73344 0467 eni-myENI 0 6603 34925 2018-05-21T03:20:00Z 48871 0350 eni-myENI 0 4888
JSON format
{"RequestId": "5A03C2BA-3BCE-4A87-8076-7DC1629", "MonitorData": {"EniMonitorData": [{"PacketTx": 0, "TimeStamp": "2018-05-21T03:22:00Z", "IntranetOut": 0, "DropPacketRx": 0, "IntranetIn": 0, "EniId": "eni-myENI" "DropPacketTx": 0, "PacketRx": 0}, {"PacketTx": 0, "TimeStamp": "2018-05-21T03:21:00Z", "IntranetOut": 0, "DropPacketRx": 0, "IntranetIn": 0, "EniId": "eni-myENI" "DropPacketTx": 0, "PacketRx": 0}, {"PacketTx": 52240, "TimeStamp": "2018-05-21T03:19:00Z", "IntranetOut": 73344, "DropPacketRx": 0, "IntranetIn": 467, "EniId": "eni-myENI" "DropPacketTx": 0, "PacketRx": 6603}, {"PacketTx": 34925, "TimeStamp": "2018-05-21T03:20:00Z", "IntranetOut": 48871, "DropPacketRx": 0, "IntranetIn": 6603, "EniId": "eni-myENI" "DropPacketTx": 0, "PacketRx": 4888}]}}
Error code
The following are the error codes specific to this API. For more error codes, please visit the API error Center.
Thank you for reading this article carefully. I hope it is helpful for everyone to share how to query the traffic information used by an auxiliary network card within a specified period of time. At the same time, I also hope that you can support it and pay attention to the industry information channel. if you encounter problems, look for detailed solutions waiting for you to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.