func (c *WatcherConfiguration) NewOptions(
	store kv.Store,
	instrumentOpts instrument.Options,
) StagedPlacementWatcherOptions {
	opts := NewStagedPlacementWatcherOptions().
		SetInstrumentOptions(instrumentOpts).
		SetStagedPlacementKey(c.Key).
		SetStagedPlacementStore(store)
	if c.InitWatchTimeout != 0 {
		opts = opts.SetInitWatchTimeout(c.InitWatchTimeout)
	}
	return opts
}
NewOptions creates a placement watcher option.
package placement
import (
	"time"
	"github.com/m3db/m3cluster/kv"
	"github.com/m3db/m3x/instrument"
)
type WatcherConfiguration struct {
	Key string `yaml:"key" validate:"nonzero"`
	InitWatchTimeout time.Duration `yaml:"initWatchTimeout"`
}