Files
kubesphere/pkg/simple/client/alerting/options.go
2019-09-17 16:00:54 +08:00

18 lines
283 B
Go

package alerting
type AlertingOptions struct {
Endpoint string
}
func NewAlertingOptions() *AlertingOptions {
return &AlertingOptions{
Endpoint: "",
}
}
func (s *AlertingOptions) ApplyTo(options *AlertingOptions) {
if s.Endpoint != "" {
options.Endpoint = s.Endpoint
}
}