[ZBX-19756] Time shift parameter entry in condition menu for adding triggers is inconsistent for different items Created: 2021 Jul 30  Updated: 2023 Apr 05  Resolved: 2021 Aug 03

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 6.0 (plan)
Fix Version/s: 6.0 (plan)

Type: Problem report Priority: Major
Reporter: Artjoms Rimdjonoks Assignee: Zabbix Development Team
Resolution: Duplicate Votes: 0
Labels: frontend, functions, trigger
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: JPEG File percentile.jpg     JPEG File trendsvg.jpg    
Issue Links:
Duplicate
duplicates ZBXNEXT-6620 Optimize "Condition" popup for operat... Open

 Description   

time period:time shift parameter is used by functions:
percentile (/host/key,time period<:time shift>,percentage)
and
trendavg (/host/key,time period:time shift)

However, the menu box for entering it differs in many ways:
percentile():

trendsavg():

1) First of all, the first says "Period shift/Period" and another says "Time shift/Time" as the name of the entry box.
But this is the same functional parameter! It has the same name in the documentation signature and putting "now-1h" for example - results in the same expression.

2) Secondly, the greyed out default suggestion for percentile() says:

now-h

but for trendsavg()

now/h

neither now/h or now-h are legal entries, so I am not sure what is the point of them
can those be something like now-1h which would be at least an acceptable entry?

3) Thirdly,
trendsavg() does not allow to put 1 for "Last of (T) Time", and requires units like 1h
but percentile() does allow to put 1 for the "Last of (T) Time" and does not require units



 Comments   
Comment by Alexander Vladishev [ 2021 Aug 03 ]

Will be fixed in scope of ZBXNEXT-6620.

Generated at Mon Dec 29 13:20:11 EET 2025 using Jira 10.3.13#10030013-sha1:56dd970ae30ebfeda3a697d25be1f6388b68a422.