MCPcopy Create free account
hub / github.com/efficientgo/e2e / SetConfig

Method SetConfig

monitoring/monitoring.go:109–116  ·  view source on GitHub ↗
(config promconfig.Config)

Source from the content-addressed store, hash-verified

107}
108
109func (p *Prometheus) SetConfig(config promconfig.Config) error {
110 b, err := yaml.Marshal(config)
111 if err != nil {
112 return err
113 }
114
115 return p.SetConfigEncoded(b)
116}
117
118type Service struct {
119 p *Prometheus

Callers 1

updateConfigMethod · 0.80

Calls 1

SetConfigEncodedMethod · 0.95

Tested by

no test coverage detected