Documentation
¶
Overview ¶
Package sdk is the dt-cli-sdk — a shared library of Dynatrace CLI primitives.
It provides platform-level building blocks that multiple Dynatrace CLIs (dtctl, dtmgd, dtwiz, and others) can share instead of re-implementing:
- urls: Dynatrace environment URL validation and correction
- auth: Token type detection and classification
- httpclient: HTTP client with retry, pagination, and typed errors
- agentmode: AI agent detection and structured JSON envelope
- inventory: environment data-inventory discovery (capability evidence, entity census, buckets) driven through a caller-supplied DQL runner
The SDK is designed to be leaf-shaped: it never imports from the CLI module, has minimal dependencies, and avoids global state.
See https://github.com/Dynatrace/dtctl/tree/main/sdk for details.
Index ¶
Constants ¶
const Version = "0.2.0"
Version is the current version of the dt-cli-sdk.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package agentmode provides AI agent detection and structured JSON output.
|
Package agentmode provides AI agent detection and structured JSON output. |
|
api
|
|
|
apispec
Package apispec discovers and projects the OpenAPI documents a Dynatrace environment publishes about itself.
|
Package apispec discovers and projects the OpenAPI documents a Dynatrace environment publishes about itself. |
|
classicpipelinestranslate
Package classicpipelinestranslate is a thin, read-only SDK client for the OpenPipeline "classic pipelines translation" endpoint, which converts an existing Classic pipeline configuration into an OpenPipeline configuration pipeline (Settings shape).
|
Package classicpipelinestranslate is a thin, read-only SDK client for the OpenPipeline "classic pipelines translation" endpoint, which converts an existing Classic pipeline configuration into an OpenPipeline configuration pipeline (Settings shape). |
|
dqlprocessorverify
Package dqlprocessorverify is a thin, read-only SDK client for the OpenPipeline DQL processor verify endpoint, which validates a DQL processor script against an optional configuration scope.
|
Package dqlprocessorverify is a thin, read-only SDK client for the OpenPipeline DQL processor verify endpoint, which validates a DQL processor script against an optional configuration scope. |
|
matcherlqltodql
Package matcherlqltodql is a thin SDK client for the OpenPipeline LQL-to-DQL translation endpoint.
|
Package matcherlqltodql is a thin SDK client for the OpenPipeline LQL-to-DQL translation endpoint. |
|
matcherverify
Package matcherverify is a thin, read-only SDK client for the OpenPipeline matcher verify endpoint, which validates a DQL matcher expression against an optional configuration scope and stage context.
|
Package matcherverify is a thin, read-only SDK client for the OpenPipeline matcher verify endpoint, which validates a DQL matcher expression against an optional configuration scope and stage context. |
|
previewprocessor
Package previewprocessor is a thin SDK client for the OpenPipeline preview processor endpoint, which executes a processor definition against sample records and returns the matched/modified results.
|
Package previewprocessor is a thin SDK client for the OpenPipeline preview processor endpoint, which executes a processor definition against sample records and returns the matched/modified results. |
|
query
Package query provides a typed client for the Dynatrace DQL Query API (/platform/storage/query/v1/).
|
Package query provides a typed client for the Dynatrace DQL Query API (/platform/storage/query/v1/). |
|
schedulingrule
Package schedulingrule provides access to the Dynatrace Automation Scheduling Rules API.
|
Package schedulingrule provides access to the Dynatrace Automation Scheduling Rules API. |
|
workflow
Package workflow provides access to the Dynatrace Automation Workflow API.
|
Package workflow provides access to the Dynatrace Automation Workflow API. |
|
Package auth provides Dynatrace token type detection and classification.
|
Package auth provides Dynatrace token type detection and classification. |
|
Package httpclient provides an HTTP client for Dynatrace APIs.
|
Package httpclient provides an HTTP client for Dynatrace APIs. |
|
internal
|
|
|
testutil
Package testutil provides SDK-internal test helpers.
|
Package testutil provides SDK-internal test helpers. |
|
Package inventory probes a Dynatrace environment for what data actually exists there: which Grail data objects are fetchable, which buckets and entity types are present, which capabilities (spans, RUM, k8s, cloud integrations, …) are backed by live evidence — and which are absent, with the evidence cited.
|
Package inventory probes a Dynatrace environment for what data actually exists there: which Grail data objects are fetchable, which buckets and entity types are present, which capabilities (spans, RUM, k8s, cloud integrations, …) are backed by live evidence — and which are absent, with the evidence cited. |
|
Package session is the dtctl session layer: everything a Dynatrace CLI tool needs to go from "the user's machine" to "an authenticated client for the right tenant".
|
Package session is the dtctl session layer: everything a Dynatrace CLI tool needs to go from "the user's machine" to "an authenticated client for the right tenant". |
|
Package urls provides Dynatrace environment URL validation and correction.
|
Package urls provides Dynatrace environment URL validation and correction. |