Closed varac closed 5 months ago
Is there already an option to dump the generated dashboard as JSON ? If so it would be great to have this documented, I couldn't find it so far.
You can use Go's json.Marshal() :)
json.Marshal()
builder, err := dashboard.New( "Awesome dashboard", // ... ) if err != nil { // ... } dashboardJSON, err := json.Marshal(builder) if err != nil { // ... }
Is there already an option to dump the generated dashboard as JSON ? If so it would be great to have this documented, I couldn't find it so far.