mirror of https://github.com/Icinga/icinga2.git
Documentation: Extend Custom Attributes with the boolean type
fixes #9393
This commit is contained in:
parent
ca60591f63
commit
06dbef5bfb
|
@ -152,14 +152,14 @@ In addition to built-in attributes you can define your own attributes:
|
||||||
|
|
||||||
Valid values for custom attributes include:
|
Valid values for custom attributes include:
|
||||||
|
|
||||||
* Strings and numbers
|
* [Strings](19-language-reference.md#string-literals), [numbers](19-language-reference.md#numeric-literals) and [booleans](19-language-reference.md#boolean-literals)
|
||||||
* Arrays and dictionaries
|
* [Arrays](19-language-reference.md#array) and [dictionaries](19-language-reference.md#dictionary)
|
||||||
* Functions
|
* [Functions](3-monitoring-basics.md#custom-attributes-functions)
|
||||||
|
|
||||||
### <a id="custom-attributes-functions"></a> Functions as Custom Attributes
|
### <a id="custom-attributes-functions"></a> Functions as Custom Attributes
|
||||||
|
|
||||||
Icinga 2 lets you specify functions for custom attributes. The special case here
|
Icinga 2 lets you specify [functions](19-language-reference.md#functions) for custom attributes.
|
||||||
is that whenever Icinga 2 needs the value for such a custom attribute it runs
|
The special case here is that whenever Icinga 2 needs the value for such a custom attribute it runs
|
||||||
the function and uses whatever value the function returns:
|
the function and uses whatever value the function returns:
|
||||||
|
|
||||||
object CheckCommand "random-value" {
|
object CheckCommand "random-value" {
|
||||||
|
|
Loading…
Reference in New Issue