Skip to content

Latest commit

 

History

History
41 lines (34 loc) · 766 Bytes

expandstring.adoc

File metadata and controls

41 lines (34 loc) · 766 Bytes

ExpandString()

Important

Use of this function is not recommended. Please use expandString method of [class-netobj], [class-event] or [class-alarm] instead.

ExpandString(string, object, event) => String

Expand string by replacing macros with their values.

Table 1. Parameters

string

String to expand

object

Object. Optional, required to expand object-related macros

event

Event object. Optional, required to expand event-related macors

Return

Formated string

Example
>>> ExpandString("%v")
3.5.90
>>> ExpandString("%n", $node)
My node name
>>> ExpandString("%N", $node, $event)
SYS_THRESHOLD_REACHED