Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change JSON output to reflect API syntax instead of GUI syntax? #8

Open
omadawn opened this issue Nov 22, 2017 · 0 comments
Open

Change JSON output to reflect API syntax instead of GUI syntax? #8

omadawn opened this issue Nov 22, 2017 · 0 comments

Comments

@omadawn
Copy link
Contributor

omadawn commented Nov 22, 2017

Backups look like the JSON you get if you navigate the GUI and choose 'view JSON' which is missing things that could make the restore process more reliable such as the dashboard: {} element.

Supporting both would of course be ideal.

I.E. a dashboard from the API would look like:
{
"meta": {
"isStarred": false,
"slug": "production-overview"
},
"dashboard": {
"id": 25,
"title": "Production Overview",
"tags": [ "templated" ],
"timezone": "browser",
"rows": [

Instead of:
{
"annotations": {
"list": []
},
"editable": true,
"gnetId": null,
"graphTooltip": 0,
"hideControls": false,
"id": 25,
"links": [],
"refresh": "10s",
"rows": [

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant