Skip to content

Instantly share code, notes, and snippets.

@lrascao
Created March 31, 2016 16:19
Show Gist options
  • Save lrascao/f57312ff33b799c4c0db56b10e80fe26 to your computer and use it in GitHub Desktop.
Save lrascao/f57312ff33b799c4c0db56b10e80fe26 to your computer and use it in GitHub Desktop.

Revisions

  1. lrascao created this gist Mar 31, 2016.
    12 changes: 12 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,12 @@
    dash_id=xxxx
    api_key=xxx
    app_key=xxx

    # 1. export
    curl -X GET "https://app.datadoghq.com/api/v1/dash/${dash_id}?api_key=${api_key}&application_key=${app_key}" > dash.json

    # 2. edit dash.json
    move "graphs", "title", "description" up one level in the json hierarchy, from being beneath "dash" to being at the same level

    # 3. import
    curl -X POST -H "Content-type: application/json" -d @dash.json "https://app.datadoghq.com/api/v1/dash?api_key=${api_key}&application_key=${app_key}"