Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
create a datadog time board from a screen board
#!/usr/bin/env bash
# dd_api_key=
# dd_app_key=
# screen_id=
curl -sX GET "${screen_id}?api_key=${dd_api_key}&application_key=${dd_app_key}" \
| jq '{
title: .board_title,
description: .board_title,
template_variables: .template_variables,
graphs: [.widgets[] | {title: .title_text, definition: .tile_def}]
}' \
| curl -sX POST -H "Content-type: application/json" -d @- \
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment