sensu.toSensuName() function
The sensu.toSensuName()
function is a user-contributed function maintained by
the package author and can
be updated or removed at any time.
The sensu.toSensuName()
function translates a string value to a Sensu name by
replacing non-alphanumeric characters ([a-zA-Z0-9_.-]
) with underscores (_
).
import "contrib/sranka/sensu"
sensu.toSensuName(v: "Example string 1.2?")
// Returns "Example_string_1.2_"
Parameters
v
(Required) String to operate on.
Support and feedback
Thank you for being part of our community! We welcome and encourage your feedback and bug reports for Flux and this documentation. To find support, the following resources are available:
InfluxDB Cloud customers can contact InfluxData Support.