resource_interface_distribution_show – get the distribution of traffic among interfaces of the Sensor for the specified period.

April 17, 2024

ID 207165

resource_interface_distribution_show(Auth, client_id, resource_id, start, end)

Description: the method displays the distribution of traffic between interfaces of the Sensor for the specified period.

Input parameters:

client_id (int) – customer ID (integer from 1 to 4 294 967 295).

resource_id (int) – Protected resource ID (integer from 1 to 4 294 967 295).

start (str) – start of the interval for data output ('YYYY-MM-DD hh:mm:ss').

end (str) – end of the interval for data output ('YYYY-MM-DD hh:mm:ss', the interval end must not be earlier than the interval start).

Note:

The maximum time interval is 1 day.

Output parameters:

interface_name (str) – name of the interface.

percentage (float) – percentage of traffic traversing the interface during the sample interval (calculated according to the incoming bytes and resulting in a number with two decimal digits).

Did you find this article helpful?
What can we do better?
Thank you for your feedback! You're helping us improve.
Thank you for your feedback! You're helping us improve.