manual:introduction:whatsnew540

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
manual:introduction:whatsnew540 [2021/06/18 07:59]
marinagen fixing a typo
manual:introduction:whatsnew540 [2021/06/21 13:24] (current)
martins-v new syntax for triggers and calculated items (ZBXNEXT-6451)
Line 13: Line 13:
   * The new syntax supports other expressions as parameters   * The new syntax supports other expressions as parameters
   * Item reference is now the first parameter of history functions (as ''​host/​item''​)   * Item reference is now the first parameter of history functions (as ''​host/​item''​)
 +  * Changed syntax for expression macros
  
 The outlined changes can be observed in the following examples: The outlined changes can be observed in the following examples:
Line 23: Line 24:
 |%%sum(last_foreach(/​*/​vfs.fs.size[/,​total]?​[group="​MySQL Servers"​]))%% ​ |%%grpsum["​MySQL Servers","​vfs.fs.size[/,​total]",​last]%% ​ |Aggregate calculation (formerly, aggregate item)  | |%%sum(last_foreach(/​*/​vfs.fs.size[/,​total]?​[group="​MySQL Servers"​]))%% ​ |%%grpsum["​MySQL Servers","​vfs.fs.size[/,​total]",​last]%% ​ |Aggregate calculation (formerly, aggregate item)  |
 |%%avg(last_foreach(/​*/​system.cpu.load?​[group="​Servers A" and group="​Servers B" and group="​Servers C" and (tag="​Service:"​ or tag="​Importance:​High"​)]))%% ​ |Not available/​supported ​ |Aggregation with complex filters ​ | |%%avg(last_foreach(/​*/​system.cpu.load?​[group="​Servers A" and group="​Servers B" and group="​Servers C" and (tag="​Service:"​ or tag="​Importance:​High"​)]))%% ​ |Not available/​supported ​ |Aggregation with complex filters ​ |
 +|%%{{%%?​trendavg(%%//​%%system.cpu.load,​1M:​now/​M-1M)}.fmtnum(2)} ​ |%%{{?​{{%%HOST.HOST}:​​system.cpu.load.trendavg(1M,​now/​M-1M)%%}}%%.fmtnum(2)} ​ |Expression macro  |
  
 All existing expressions will be converted to the new syntax during the upgrade. All existing expressions will be converted to the new syntax during the upgrade.