diff --git a/PowerFGT/Public/log/traffic.ps1 b/PowerFGT/Public/log/traffic.ps1 index 562b1cc74..32a3cb875 100644 --- a/PowerFGT/Public/log/traffic.ps1 +++ b/PowerFGT/Public/log/traffic.ps1 @@ -81,6 +81,9 @@ function Get-FGTLogTraffic { [Parameter (ParameterSetName = "poluuid")] [string]$poluuid, [Parameter (Mandatory = $false)] + [Parameter (ParameterSetName = "duration")] + [int]$duration, + [Parameter (Mandatory = $false)] [ValidateSet('country_id', 'reverse_lookup', IgnoreCase = $false)] [string[]]$extra, [Parameter (Mandatory = $false)] @@ -100,6 +103,7 @@ function Get-FGTLogTraffic { [Parameter (ParameterSetName = "action")] [Parameter (ParameterSetName = "policyid")] [Parameter (ParameterSetName = "poluuid")] + [Parameter (ParameterSetName = "duration")] [Parameter (ParameterSetName = "filter")] [ValidateSet('equal', 'contains')] [string]$filter_type = "equal", @@ -160,6 +164,10 @@ function Get-FGTLogTraffic { $filter_value = $poluuid $filter_attribute = "poluuid" } + "duration" { + $filter_value = [string]$duration + $filter_attribute = "duration" + } default { } }