func (s DsdStatsRuntimeSetting) Set(v interface{}) error {
	var newValue bool
	var err error

	if newValue, err = settings.GetBool(v); err != nil {
		return fmt.Errorf("DsdStatsRuntimeSetting: %v", err)
	}

	if newValue {
		common.DSD.EnableMetricsStats()
	} else {
		common.DSD.DisableMetricsStats()
	}

	config.Datadog.Set("dogstatsd_metrics_stats_enable", newValue)
	return nil
}
// Set changes the value of the runtime setting
Set changes the value of the runtime setting
// Set changes the value of the runtime setting
func (s DsdStatsRuntimeSetting) Set(v interface{}) error {
	var newValue bool
	var err error
	if newValue, err = settings.GetBool(v); err != nil {
		return fmt.Errorf("DsdStatsRuntimeSetting: %v", err)
	}
	if newValue {
		common.DSD.EnableMetricsStats()
	} else {
		common.DSD.DisableMetricsStats()
	}
	config.Datadog.Set("dogstatsd_metrics_stats_enable", newValue)
	return nil
}
func ( s DsdStatsRuntimeSetting ) Set ( v interface { } ) error { var newValue bool var err error if newValue , err = settings . GetBool ( v ) ; err != nil { return fmt . Errorf ( " " , err ) } if newValue { common . DSD . EnableMetricsStats ( ) } else { common . DSD . DisableMetricsStats ( ) } config . Datadog . Set ( " " , newValue ) return nil }
Set changes the value of the runtime setting
Set changes the value of the runtime setting