MCPcopy Create free account
hub / github.com/minio/mc / String

Method String

cmd/admin-prometheus-generate.go:130–135  ·  view source on GitHub ↗

String colorized prometheus config yaml.

()

Source from the content-addressed store, hash-verified

128
129// String colorized prometheus config yaml.
130func (c PrometheusConfig) String() string {
131 b, e := yaml.Marshal(c)
132 fatalIf(probe.NewError(e), "Unable to generate Prometheus config")
133
134 return console.Colorize("yaml", string(b))
135}
136
137// JSON jsonified prometheus config.
138func (c PrometheusConfig) JSON() string {

Callers

nothing calls this directly

Calls 2

NewErrorFunction · 0.92
fatalIfFunction · 0.85

Tested by

no test coverage detected