You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
411 B

package main
import (
var (
period poller.PeriodValue
argument string
func init() {
// Add and parse flags passed to script
flag.Var(&period, "period", "Period to send metric at")
flag.StringVar(&argument, "argument", "STATE_CODE", "Argument Variable name")
func main() {
poller.StartTicker(period.Duration, argument)