func Ref(ref string) Option {
	return func(graphite *Graphite) {
		graphite.Builder.RefID = ref
	}
}
Ref sets the reference ID for this query.
package graphite
import "github.com/grafana-tools/sdk"
type Option func(target *Graphite)
type Graphite struct {
	Builder *sdk.Target
}
func New(query string, options ...Option) *Graphite {
	graphite := &Graphite{
		Builder: &sdk.Target{
			Target: query,
		},
	}
	for _, opt := range options {
		opt(graphite)
	}
	return graphite
}