Template Examples
The documentation provides examples of template language usage through a series of tables demonstrating different variable types and their expressions. The tables showcase context variables (like startTime and endTime), field variables (such as dayOfWeek), and parameter variables (including repository), along with their corresponding values and how they appear when used in template expressions.
The examples on variables, expressions and results are summarized in the following overview tables.
For more information, see Context Variables:
Variable Name | Value | Expression | Result |
---|---|---|---|
startTime
|
1675668087812
|
Start: {{ startTime }}
|
Start: 1675668087812
|
endTime
|
1675668087813
|
End: {{ endTime }}
|
End: 1675668087813
|
For more information, see Template Field Variables:
Field Name | Value | Expression | Result |
---|---|---|---|
dayOfWeek
|
Monday
|
Day: {{ fields.dayOfWeek }}
|
Day: Monday
|
For more information, see Template Parameter Variables:
Parameter Name | Value | Expression | Result |
---|---|---|---|
repository
|
humio
|
Repository: {{ parameters.repository }}
|
Repository: humio
|