diff --git a/agent/pkg/rules/rulesHTTP.go b/agent/pkg/rules/rulesHTTP.go index 1313319e6..4bb92fe6c 100644 --- a/agent/pkg/rules/rulesHTTP.go +++ b/agent/pkg/rules/rulesHTTP.go @@ -111,7 +111,7 @@ func PassedValidationRules(rulesMatched []RulesMatched) (bool, int64, int) { if rule.Matched == false { return false, responseTime, numberOfRulesMatched } else { - if strings.ToLower(rule.Rule.Type) == "responseTime" { + if strings.ToLower(rule.Rule.Type) == "slo" { if rule.Rule.ResponseTime < responseTime || responseTime == -1 { responseTime = rule.Rule.ResponseTime } diff --git a/ui/src/components/EntryDetailed/EntrySections.tsx b/ui/src/components/EntryDetailed/EntrySections.tsx index 88816c596..f364b4a51 100644 --- a/ui/src/components/EntryDetailed/EntrySections.tsx +++ b/ui/src/components/EntryDetailed/EntrySections.tsx @@ -205,7 +205,7 @@ export const EntryTablePolicySection: React.FC = ({titl {arrayToIterate.map(({rule, matched}, index) => { return ( - = latency : true)? "Success" : "Failure"}> + = latency : true)? "Success" : "Failure"}> { <> { @@ -213,8 +213,8 @@ export const EntryTablePolicySection: React.FC = ({titl Key: {rule.Key} } { - rule.Latency !== 0 && - Latency: {rule.Latency} + rule.ResponseTime !== 0 && + Response Time: {rule.ResponseTime} } { rule.Method &&