fix
This commit is contained in:
@@ -21,6 +21,13 @@ type IngestConf struct {
|
||||
RuleRefreshSecs int `yaml:"rule_refresh_secs"`
|
||||
}
|
||||
|
||||
type ResourceEventConf struct {
|
||||
// HMACSecret 用于校验 dc-control 推送签名(X-Event-Signature)。
|
||||
HMACSecret string `yaml:"hmac_secret"`
|
||||
// MaxSkewSecs 允许事件时间与服务端时间的最大偏差(秒)。
|
||||
MaxSkewSecs int `yaml:"max_skew_secs"`
|
||||
}
|
||||
|
||||
type SrvConfig struct {
|
||||
conf.Base `yaml:",inline"`
|
||||
Databases *conf.DBConf `yaml:"Databases"`
|
||||
@@ -31,6 +38,7 @@ type SrvConfig struct {
|
||||
Etcd *conf.EtcdConf `yaml:"Etcd"`
|
||||
AlertForward *AlertForwardConf `yaml:"AlertForward"`
|
||||
Ingest IngestConf `yaml:"Ingest"`
|
||||
ResourceEvent ResourceEventConf `yaml:"ResourceEvent"`
|
||||
}
|
||||
|
||||
func New(srvKey string) {
|
||||
|
||||
Reference in New Issue
Block a user