MCPcopy Index your code
hub / github.com/netdata/netdata / MarshalJSON

Method MarshalJSON

src/go/pkg/funcapi/enums.go:64–66  ·  view source on GitHub ↗

MarshalJSON encodes the field type as a UI keyword.

()

Source from the content-addressed store, hash-verified

62
63// MarshalJSON encodes the field type as a UI keyword.
64func (t FieldType) MarshalJSON() ([]byte, error) {
65 return json.Marshal(t.String())
66}
67
68// FieldVisual defines how values are rendered in the UI.
69type FieldVisual uint8

Callers 1

Calls 1

StringMethod · 0.95

Tested by 1