Closed cwjohnston closed 4 years ago
I am going to mention the newly opened #2729 here as well, as in Sensu 1.x we would get questions regarding token substitution fully supporting integers and lists frequently.
Given that we don't have a way of encoding lists for tokens, I don't know if this feature is still valid.
Can we close this?
I think we can close this for now.We're pretty committed to keeping the data model as simple as possible (labels and annotations are always strings). Perhaps we can offer some utilities for dealing with string escaped JSON in the plugin SDK instead? Feel free to open an issue there as needed: https://github.com/sensu-community/sensu-plugin-sdk/issues
Thanks!
In sensu-ruby we currently do not support list (array) values in the various contexts where token substitution is supported. If token substitution is used to insert a list value, the result is a textual (string) representation of the list.
It would be nice if sensu-go could improve on this by supporting list values in a way that passes along the original list instead of a textual representation of the same.
Example:
Client definition:
Check definition:
Check result:
Ideally the check result would look more like
Check result: