Uploaded image for project: 'ZABBIX FEATURE REQUESTS'
  1. ZABBIX FEATURE REQUESTS
  2. ZBXNEXT-6276

fmttime() <time_shift> argument should be more flexible

    XMLWordPrintable

    Details

    • Type: Change Request
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 5.2.0beta2
    • Fix Version/s: 5.4.0alpha1, 5.4 (plan)
    • Component/s: Server (S)
    • Labels:
      None
    • Team:
      Team C
    • Sprint:
      Sprint 69 (Oct 2020), Sprint 70 (Nov 2020), Sprint 71 (Dec 2020)
    • Story Points:
      3

      Description

      1. Currently the only way to specify time_shift in fmttime() is to use expressions like -1y, -2M etc. It's not enough if I want to refer to dates like a month before the previous month 5 years ago. Instead of writing fmttime(%B,-62M) I should be able to write: fmttime(%B,-5y-2M) or fmttime(%B,-5y2M).

      2. fmttime() has been introduced to facilitate time formatting in the events for the new trend functions. But there is no way to refer to beginning and/or the end of periods used by trend*() functions. For example, if I calculate trendavg(1M,now/M+1M) I have no way to display end date of now/M+1M in the event name.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dgoloscapov Dmitrijs Goloscapovs
              Reporter:
              Kalimulin Alex Kalimulin
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: