Skip to content
This repository was archived by the owner on Sep 2, 2025. It is now read-only.

Commit 0adb4a5

Browse files
committed
Add formatting to examples
1 parent 5438724 commit 0adb4a5

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

admin/notif-services/splunkplatform.rst

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -246,39 +246,39 @@ Apart from using template variables to customize your payload, you can also use
246246
* ``6``: Critical
247247
* ``empty``: Unknown severity
248248

249-
- | {{{severityDecoder ok='ok' Major='not_ok' default='empty'}}}
249+
- | ``{{{severityDecoder ok='ok' Major='not_ok' default='empty'}}}``
250250
| This example overrides the default return values and customizes them.
251251
252252
* - ``encodeString``
253253
- Escapes quote and newline characters in a string.
254-
- {{{encodeString messageTitle}}}
254+
- ``{{{encodeString messageTitle}}}``
255255

256256
* - ``notEmpty``
257257
- Adds text to a payload only if the value specified is not empty map. This function only works with the ``inputs`` and ``dimensions`` variables.
258258
- | This example only prints if dimensions is not empty: {{#notEmpty dimensions}}
259-
| {{/notEmpty}}
259+
| ``{{/notEmpty}}``
260260
261261
* - ``json``
262262
- Converts a string to a raw JSON value. Use this function to turn text from a detector into a JSON payload that can be evaluated in third-party integrations.
263-
- {{{json dimensions}}}
263+
- ``{{{json dimensions}}}``
264264

265265
* - ``substring``
266266
- Returns a new character sequence that is a subsequence of this sequence. The subsequence starts with the character at the specified index and ends with the character at the second to last index.
267-
- | {{substring var 1}}
268-
| {{substring var 1 3}}
267+
- | ``{{substring var 1}}``
268+
| ``{{substring var 1 3}}``
269269
270270
* - ``abbreviate``
271271
- Truncates a string if it is longer than the specified number of characters. Minimum abbreviation width is 4.
272-
- {{abbreviate long_str 5}}
272+
- ``{{abbreviate long_str 5}}``
273273

274274
* - ``replace``
275275
- Replaces each substring of this string that matches the literal target sequence with the specified literal replacement sequence.
276-
- {{replace abbreviated '...' ''}}
276+
- ``{{replace abbreviated '...' ''}}``
277277

278278
* - ``eq``
279279
- Checks if two elements are equal.
280280
- | ``{{#eq a b}}yes{{else}}no{{/eq}}``
281-
| {{#eq a 2}}yes{{else}}no{{/eq}}
281+
| ``{{#eq a 2}}yes{{else}}no{{/eq}}``
282282
283283

284284

0 commit comments

Comments
 (0)