Files
kubesphere/pkg/simple/client/alerting/options.go
2019-09-25 01:47:46 +08:00

23 lines
365 B
Go

package alerting
type AlertingOptions struct {
Endpoint string `json:"endpoint" yaml:"endpoint"`
}
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
}
}