mirror of
https://github.com/kyverno/kyverno.git
synced 2025-04-08 18:15:48 +00:00
print metrics for applied policy
Signed-off-by: NoSkillGirl <singhpooja240393@gmail.com>
This commit is contained in:
parent
60a5623b94
commit
d45175f5be
1 changed files with 4 additions and 3 deletions
|
@ -34,12 +34,13 @@ func ProcessMetrics(newStr, e2ePolicyName string, e2eTime time.Time) bool {
|
|||
}
|
||||
}
|
||||
|
||||
fmt.Println("action: ", action)
|
||||
fmt.Println("policyName: ", policyName)
|
||||
fmt.Println("timeInTimeFormat: ", timeInTimeFormat)
|
||||
if policyName == e2ePolicyName {
|
||||
fmt.Println("--------------------------------------------------------")
|
||||
fmt.Println(lineSplitedByNewLine)
|
||||
fmt.Println("action: ", action)
|
||||
fmt.Println("policyName: ", policyName)
|
||||
fmt.Println("timeInTimeFormat: ", timeInTimeFormat)
|
||||
|
||||
diff := e2eTime.Sub(timeInTimeFormat)
|
||||
if diff < 0 {
|
||||
if action == "created" {
|
||||
|
|
Loading…
Add table
Reference in a new issue