summaryrefslogtreecommitdiffstats
path: root/doc/markdown/configuration/metrics.md
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-03-19 11:22:36 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-03-19 11:22:36 +0000
commitb252d06f3ad200480255adb0beb3bf215cf030e4 (patch)
tree5b621ad594c6929b1a9b0ae251ae56abea163364 /doc/markdown/configuration/metrics.md
parent99b18d6183aa16afa94154fc4c953fe8c1853eca (diff)
downloadrspamd-b252d06f3ad200480255adb0beb3bf215cf030e4.tar.gz
rspamd-b252d06f3ad200480255adb0beb3bf215cf030e4.zip
[Doc] Use UCL highlighter instead of nginx
Diffstat (limited to 'doc/markdown/configuration/metrics.md')
-rw-r--r--doc/markdown/configuration/metrics.md10
1 files changed, 5 insertions, 5 deletions
diff --git a/doc/markdown/configuration/metrics.md b/doc/markdown/configuration/metrics.md
index 88a6d7c07..639c6f08e 100644
--- a/doc/markdown/configuration/metrics.md
+++ b/doc/markdown/configuration/metrics.md
@@ -37,7 +37,7 @@ configuration defines merely the `default` metric.
Each metric is defined by a `metric` object in rspamd configuration. This object has one
mandatory attribute - `name` which defines the name of this metric:
-~~~nginx
+~~~ucl
metric {
# Define default metric
name = "default";
@@ -72,7 +72,7 @@ The content of this section is separated to the two main parts: symbols and acti
Actions section is an object of all actions defined by this metric. If some actions are skipped,
they won't be ever suggested by rspamd. Actions section looks as following:
-~~~nginx
+~~~ucl
metric {
...
actions {
@@ -96,7 +96,7 @@ Symbols are defined by an object with the following properties:
So far, the symbol definition looks like this one:
-~~~nginx
+~~~ucl
symbol {
name = "RWL_SPAMHAUS_WL_IND";
weight = -0.7;
@@ -114,7 +114,7 @@ Symbols can be grouped to specify their common functionality. For example, one m
which could be useful, for instance if some specific group should not unconditionally send a message
to `spam` class. Here is an example of such a functionality:
-~~~nginx
+~~~ucl
metric {
name = default; # This is mandatory option
@@ -136,4 +136,4 @@ metric {
}
}
}
-~~~ \ No newline at end of file
+~~~