Files
kubesphere/pkg/simple/client/alerting/options.go
2019-09-23 14:30:48 +08:00

23 lines
331 B
Go

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