get_protocol_ratio – get the ratio of protocols in traffic for each minute of the specified interval
April 17, 2024
ID 206505
get_protocol_ratio(Auth, client_id, locale_id, resource_id, start, end)
Description: the method displays a ratio of protocols in traffic for each minute of the specified interval.
Input parameters:
client_id (int) – customer ID (integer from 1 to 4 294 967 295).
locale_id (int) – locale ID (10 for English, 77 for Russian).
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,nil) – end of the interval for data output ('YYYY-MM-DD hh:mm:ss', the interval end must not be earlier than the interval start). This can be nil, in which case the current time is used.
Note: The maximum time interval is 1 day.
Output parameters:
point (list) – array of points containing the minute marks corresponding to the displayed protocols and the values for clean traffic.
timestamp (str) – minute corresponding to the displayed protocols.
elements (list) – protocols with values for clean traffic.
protocol (str) – protocol corresponding to the displayed value.
value (str) – percentage of traffic of the protocol within the total traffic of the Protected resource for this minute.