Skip to content

Commit

Permalink
docs: add section about simple rest calculations
Browse files Browse the repository at this point in the history
  • Loading branch information
sni committed Sep 23, 2024
1 parent 7ef2135 commit 4ab4d9c
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docs/documentation/rest.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,18 @@ Host custom variables are accessible with the _HOST prefix for example like.:
=======


== Calculations

Simple calculations (`+`, `-`, `*`, `/`) can be achieved by using those operators
in the columns selection.

ex.: sum the number of problems for each host

------
%> thruk r '/hosts?columns=name,num_services_crit+num_services_unknown+num_services_warn as num_services_problems'
------


== Functions

=== Transformation Functions
Expand Down

0 comments on commit 4ab4d9c

Please sign in to comment.