sensu.toSensuName() function

Flux 0.90.0+

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_"



(Required) String to operate on.

Package author and maintainer

Github: @sranka
InfluxDB Slack: @sranka

Upgrade to InfluxDB Cloud or InfluxDB 2.0!

InfluxDB Cloud and InfluxDB OSS 2.0 ready for production.