MCPcopy Index your code
hub / github.com/minio/mc / String

Method String

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

String colorized stat config yaml.

()

Source from the content-addressed store, hash-verified

148
149// String colorized stat config yaml.
150func (t StatConfig) String() string {
151 b, e := yaml.Marshal(t)
152 fatalIf(probe.NewError(e), "Unable to generate Prometheus config")
153
154 return console.Colorize("yaml", string(b))
155}
156
157// JSON jsonified stat config.
158func (t StatConfig) JSON() string {

Callers

nothing calls this directly

Calls 2

NewErrorFunction · 0.92
fatalIfFunction · 0.85

Tested by

no test coverage detected