Work with Dynatrace notebooks - create, modify, query, and analyze notebook JSON including sections, DQL queries, and visualizations.
71
70%
Does it follow best practices?
Impact
86%
1.22xAverage score across 2 eval scenarios
Passed
No known issues
Fix and improve this skill with Tessl
tessl review fix ./skills/dt-app-notebooks/SKILL.mdDynatrace notebooks are JSON documents stored in the Document Store containing an ordered array of sections — markdown blocks for narrative and dql blocks for DQL queries with visualizations. Sections render top-to-bottom in array order.
When to use: Creating, modifying, querying, or analyzing notebooks.
{
"name": "My Notebook",
"type": "notebook",
"content": {
"version": "7",
"defaultTimeframe": { "from": "now()-2h", "to": "now()" },
"sections": [
{ "id": "1", "type": "markdown", "markdown": "# Title" },
{
"id": "2", "type": "dql", "title": "Query Section", "showInput": true,
"state": {
"input": { "value": "fetch logs | summarize count()" },
"visualization": "table",
"visualizationSettings": { "autoSelectVisualization": true, "chartSettings": {} },
"querySettings": {
"maxResultRecords": 1000, "defaultScanLimitGbytes": 500,
"maxResultMegaBytes": 1, "defaultSamplingRatio": 10, "enableSampling": false
}
}
}
]
}
}markdown, dql. (function exists but is rare.)"1", "2", …); UUIDs are also accepted.content.defaultTimeframe sets the default timeframe; each section can override via section.state.input.timeframe. Hardcoded time filters in DQL are allowed.Optional content properties: defaultSegments.
Carefully follow the workflow described in references/create-update.md.
Key rules:
name before deploying.autoSelectVisualization: true in visualizationSettings unless the user requested a specific visualization type — when false, state.visualization must be set explicitly.dtctl get notebook <id> -o json --plain > notebook.json, modify, then deploy the downloaded file. Never reconstruct JSON from scratch or inject an id manually — both silently overwrite UI edits the user made since last deployment.dtctl apply — validation runs automatically, and the local file is deleted on success.Notebooks support a subset of Dynatrace visualizations:
timeseries/makeTimeseries): lineChart, areaChart, barChart, bandChartsummarize ... by:{field}): categoricalBarChart, pieChart, donutChartsingleValue, meterBar, gaugetable, raw, recordViewhistogram, honeycombchoropleth, dotMap, connectionMap, bubbleMapheatmap, scatterplotRequired field types per visualization: references/sections.md.
| File | When to Load |
|---|---|
| create-update.md | Creating/updating notebooks |
| sections.md | Section types, visualization field requirements, settings |
| analyzing.md | Reading notebooks, extracting queries, purpose identification |
9b399fa
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.