From 7e0b811274e37a88743588bdb9a3dc8283474a67 Mon Sep 17 00:00:00 2001 From: Daniel Jilg Date: Fri, 27 Nov 2026 15:25:44 +0100 Subject: [PATCH 1/3] Add SQL Query API --- docs/api/api-convert-sql-to-tql.md | 50 +++++ docs/api/api-run-query-sql.md | 53 +++++ docs/api/api-run-query.md | 13 +- docs/api/api.json | 1 - docs/articles/articles.json | 1 - docs/basics/basics.json | 1 - docs/ingest/ingest.json | 1 - docs/integrations/integrations.json | 1 - docs/tql/recipes/recipes.json | 1 - docs/tql/tql.json | 1 - zensical.toml | 333 ++++++++++++++-------------- 11 files changed, 276 insertions(+), 180 deletions(-) create mode 100644 docs/api/api-convert-sql-to-tql.md create mode 100644 docs/api/api-run-query-sql.md delete mode 100644 docs/api/api.json delete mode 100644 docs/articles/articles.json delete mode 100644 docs/basics/basics.json delete mode 100644 docs/ingest/ingest.json delete mode 100644 docs/integrations/integrations.json delete mode 100644 docs/tql/recipes/recipes.json delete mode 100644 docs/tql/tql.json diff --git a/docs/api/api-convert-sql-to-tql.md b/docs/api/api-convert-sql-to-tql.md new file mode 100644 index 0000000..e9075cb --- /dev/null +++ b/docs/api/api-convert-sql-to-tql.md @@ -0,0 +1,50 @@ +--- +title: Converting SQL to TQL +tags: Advanced +description: Using the TelemetryDeck API, you can convert an SQL query to a TQL query +--- + +??? warning "Paid plans only" + + API access — including running queries — is available on TelemetryDeck's paid plans. If your organization is on the free plan, upgrade your plan first and you'll be able to generate a personal access token and run queries. + +??? note "Authorization" + + You need a personal access token to authenticate against the TelemetryDeck API. Our article [Getting a Personal Access Token](api-token.md) explains how to generate one from your dashboard. + +Sometimes you start with an SQL query, but want to later convert it to TQL to have a more structured query you can fine-tune. + +## Running the query + +POST your query to the `/api/v4/query/sql/convert` endpoint. The endpoint accepts SQL and returns an equivalent TQL query. + +=== "Request" + + ```json + POST /api/v4/query/sql/convert HTTP/1.1 + Authorization: Bearer tdpat_… + Content-Type: application/json + Host: api.telemetrydeckapi.com + + { + "query": "SELECT \"type\", SUM(\"count\") AS events FROM {{events}} GROUP BY 1 ORDER BY 2 DESC LIMIT 10" + } + ``` + +=== "Response" + + ```json + { + "aggregations": [{ "fieldName": "count", "name": "a0", "type": "longSum" }], + "dimension": { + "dimension": "type", + "outputName": "d0", + "outputType": "STRING", + "type": "default" + }, + "granularity": { "type": "all" }, + "metric": { "metric": "a0", "type": "numeric" }, + "queryType": "topN", + "threshold": 10 + } + ``` diff --git a/docs/api/api-run-query-sql.md b/docs/api/api-run-query-sql.md new file mode 100644 index 0000000..f475f47 --- /dev/null +++ b/docs/api/api-run-query-sql.md @@ -0,0 +1,53 @@ +--- +title: Running SQL Queries +tags: Advanced +description: Using the TelemetryDeck API, you can run an SQL query and retrieve its results +--- + +??? warning "Paid plans only" + + API access — including running queries — is available on TelemetryDeck's paid plans. If your organization is on the free plan, upgrade your plan first and you'll be able to generate a personal access token and run queries. + +??? note "Authorization" + + You need a personal access token to authenticate against the TelemetryDeck API. Our article [Getting a Personal Access Token](api-token.md) explains how to generate one from your dashboard. + +## Running the query + +POST your query to the `/api/v4/query/sql` endpoint. The endpoint runs the query and returns the results in the same response. Please allow up to 2 minutes query execution time for very complicated requests. + +=== "Request" + + ```json + POST /api/v4/query/sql HTTP/1.1 + Authorization: Bearer tdpat_… + Content-Type: application/json + Host: api.telemetrydeckapi.com + + { + "query": "SELECT \"type\", SUM(\"count\") AS events FROM \"com.example\" WHERE __time >= CURRENT_TIMESTAMP - INTERVAL '\''7'\'' DAY GROUP BY 1 ORDER BY 2 DESC LIMIT 10", + "context": {} + } + ``` + +=== "Response" + + ```json + [ + ["type", "events"], + ["STRING", "LONG"], + ["VARCHAR", "BIGINT"], + ["TelemetryDeck.Navigation.pathChanged", 158207], + ["TelemetryDeck.AuditLog.httpRequest", 27962], + ["pageview", 17714], + ["TelemetryDeck.Web.pageLeave", 7348], + ["plans.view", 918], + ["signupCaptchaSuccess", 584], + ["organizationCreated", 530], + ["appCreated", 505], + ["signupCompleted", 418], + ["conversionAction", 126] + ] + ``` + +The response body's exact shape depends on the query type. diff --git a/docs/api/api-run-query.md b/docs/api/api-run-query.md index ff52866..8b48f47 100644 --- a/docs/api/api-run-query.md +++ b/docs/api/api-run-query.md @@ -1,19 +1,16 @@ --- -title: Run Query +title: Running TQL Queries tags: Advanced -testedOn: Query API v4 -description: Using the TelemetryDeck API, you can run a query and retrieve its results -lead: Using the TelemetryDeck API, you can run a query and retrieve its results -order: 2 +description: Using the TelemetryDeck API, you can run a TQL query and retrieve its results --- -!!! warning "Paid plans only" +??? warning "Paid plans only" API access — including running queries — is available on TelemetryDeck's paid plans. If your organization is on the free plan, upgrade your plan first and you'll be able to generate a personal access token and run queries. -## Authorization +??? note "Authorization" -You need a personal access token to authenticate against the TelemetryDeck API. Our article [Getting a Personal Access Token](api-token.md) explains how to generate one from your dashboard. + You need a personal access token to authenticate against the TelemetryDeck API. Our article [Getting a Personal Access Token](api-token.md) explains how to generate one from your dashboard. ## TelemetryDeck Query Language diff --git a/docs/api/api.json b/docs/api/api.json deleted file mode 100644 index 0b98ca0..0000000 --- a/docs/api/api.json +++ /dev/null @@ -1 +0,0 @@ -{ "tags": "api", "categoryOrder": 7 } diff --git a/docs/articles/articles.json b/docs/articles/articles.json deleted file mode 100644 index 541969d..0000000 --- a/docs/articles/articles.json +++ /dev/null @@ -1 +0,0 @@ -{ "tags": "articles", "categoryOrder": 3 } diff --git a/docs/basics/basics.json b/docs/basics/basics.json deleted file mode 100644 index a760877..0000000 --- a/docs/basics/basics.json +++ /dev/null @@ -1 +0,0 @@ -{ "tags": "basics", "categoryOrder": 2 } diff --git a/docs/ingest/ingest.json b/docs/ingest/ingest.json deleted file mode 100644 index 1bf2c48..0000000 --- a/docs/ingest/ingest.json +++ /dev/null @@ -1 +0,0 @@ -{ "tags": "ingest", "categoryOrder": 8 } diff --git a/docs/integrations/integrations.json b/docs/integrations/integrations.json deleted file mode 100644 index cf0d262..0000000 --- a/docs/integrations/integrations.json +++ /dev/null @@ -1 +0,0 @@ -{ "tags": "integrations", "categoryOrder": 4 } diff --git a/docs/tql/recipes/recipes.json b/docs/tql/recipes/recipes.json deleted file mode 100644 index 0fb94c7..0000000 --- a/docs/tql/recipes/recipes.json +++ /dev/null @@ -1 +0,0 @@ -{ "tags": "recipes", "categoryOrder": 6 } diff --git a/docs/tql/tql.json b/docs/tql/tql.json deleted file mode 100644 index d5f21bd..0000000 --- a/docs/tql/tql.json +++ /dev/null @@ -1 +0,0 @@ -{ "tags": "tql", "categoryOrder": 5 } diff --git a/zensical.toml b/zensical.toml index 2e80d31..c9c3d30 100644 --- a/zensical.toml +++ b/zensical.toml @@ -40,179 +40,182 @@ copyright = """ Copyright © 2026 TelemetryDeck GmbH """ -# Zensical supports both implicit navigation and explicitly defined navigation. -# Pages are grouped thematically below; group titles map to TOML inline tables, -# and a value can be either a path (single page) or an array (collapsible group). -# -# Read more: https://zensical.org/docs/setup/navigation/ nav = [ - { "Home" = "https://telemetrydeck.com" }, - { "Quick Start Guide" = [ - "index.md", - { "Account" = "articles/create-an-account.md"}, - { "Namespaces" = "articles/namespaces.md" }, - { "Invite members" = "articles/invite-members-to-organization.md" }, - { "Authentication" = "articles/authentication.md"}, - ]}, - { "SDK" = [ - "sdk/index.md", - { "Official SDKs" = [ - { "Swift" = [ - "sdk/official-sdk/swift/index.md", - { "Processors" = "sdk/official-sdk/swift/swift-processors.md" }, - { "Custom Processors" = "sdk/official-sdk/swift/swift-custom-processors.md" }, - { "User Identification" = "sdk/official-sdk/swift/swift-user-identification.md" }, - { "Migrating from V2" = "sdk/official-sdk/swift/swift-migration-v3.md" }, - ] }, - { "Android (Kotlin)" = "sdk/official-sdk/android-setup.md" }, - { "Flutter" = "sdk/official-sdk/flutter-setup.md" }, - { "JavaScript" = "sdk/official-sdk/javascript-setup.md" }, - { "Web" = "sdk/official-sdk/web-setup.md" }, - { "Objective-C" = "sdk/official-sdk/objective-c-setup.md" }, - ] }, - { "Community SDKs" = [ - { "React" = "sdk/community-sdk/react-setup.md" }, - { "Vue" = "sdk/community-sdk/vue-setup.md" }, - ] }, - { "Guides" = [ - { "Swift Client Reference" = "sdk/guides/telemetry-client.md" }, - { "Update a Swift package" = "sdk/guides/update-package.md" }, - { "TelemetryDeck's Grand Rename" = "sdk/guides/grand-rename.md" }, - ] }, - ] }, - { "Privacy & Compliance" = [ - { "TelemetryDeck Privacy" = [ - { "Anonymization of user data" = "articles/anonymization-how-it-works.md" }, - { "Hosting Solutions at TelemetryDeck" = "articles/hosting-solutions.md" }, - ] }, - { "Apple Privacy" = [ - { "Apple App Privacy" = "articles/apple-app-privacy.md" }, - { "App Privacy Report" = "articles/app-privacy-report.md" }, - { "App Tracking Transparency" = "articles/app-tracking-transparency.md" }, + { "Home" = "https://telemetrydeck.com" }, + { "Quick Start Guide" = [ + "index.md", + { "Account" = "articles/create-an-account.md" }, + { "Namespaces" = "articles/namespaces.md" }, + { "Invite members" = "articles/invite-members-to-organization.md" }, + { "Authentication" = "articles/authentication.md" }, ] }, - ] }, - { "Usage" = [ - { "Analyze data" = [ - { "Dashboard" = [ - { "Overview" = "basics/index.md" }, - { "Custom dashboards" = "articles/create-custom-dashboards.md" }, - { "Insights overview" = "articles/insights.md" }, - { "Notebooks" = "articles/notebooks.md" }, - { "Filters" = "articles/set-up-filters-insights.md" }, - { "System version distribution" = "articles/insights-about-system-version.md" }, - ] }, - { "Analytics" = [ - { "Pirate Metrics (AARRR)" = "basics/pirate-metrics.md" }, - { "Acquisition" = "basics/acquisition.md" }, - { "Activation" = "basics/activation.md" }, - { "Retention" = "basics/retention.md" }, - { "Metrics" = "basics/metrics.md" }, - { "Built-in Presets" = [ - { "Purchases" = "articles/preset-purchases.md" }, - { "Errors" = "articles/preset-errors.md" }, - { "Navigation signals" = "articles/navigation-signals.md" }, - { "Duration signals" = "articles/duration-signals.md" }, + { "SDK" = [ + "sdk/index.md", + { "Official SDKs" = [ + { "Swift" = [ + "sdk/official-sdk/swift/index.md", + { "Processors" = "sdk/official-sdk/swift/swift-processors.md" }, + { "Custom Processors" = "sdk/official-sdk/swift/swift-custom-processors.md" }, + { "User Identification" = "sdk/official-sdk/swift/swift-user-identification.md" }, + { "Migrating from V2" = "sdk/official-sdk/swift/swift-migration-v3.md" }, + ] }, + { "Android (Kotlin)" = "sdk/official-sdk/android-setup.md" }, + { "Flutter" = "sdk/official-sdk/flutter-setup.md" }, + { "JavaScript" = "sdk/official-sdk/javascript-setup.md" }, + { "Web" = "sdk/official-sdk/web-setup.md" }, + { "Objective-C" = "sdk/official-sdk/objective-c-setup.md" }, + ] }, + { "Community SDKs" = [ + { "React" = "sdk/community-sdk/react-setup.md" }, + { "Vue" = "sdk/community-sdk/vue-setup.md" }, + ] }, + { "Guides" = [ + { "Swift Client Reference" = "sdk/guides/telemetry-client.md" }, + { "Update a Swift package" = "sdk/guides/update-package.md" }, + { "TelemetryDeck's Grand Rename" = "sdk/guides/grand-rename.md" }, ] }, - ] }, - { "Integrations" = [ - { "RevenueCat" = "integrations/revenuecat.md" }, - { "Superwall" = "integrations/superwall.md" }, - { "Google Tag Manager" = "integrations/web-setup-google-tag-manager.md" }, - ] }, - ] }, - { "Send data" = [ - { "Dashboard" = [ - { "Test mode" = "articles/test-mode.md" }, - { "Signal type naming" = "articles/signal-type-naming.md" }, - { "Funnel insights" = "articles/how-to-funnel-insights.md" }, - { "Referrers" = "articles/insights-about-referrers.md" }, - ] }, - { "Quick set-up" = [ - { "Daily active users" = "articles/insights-about-daily-users.md" }, - { "Monthly active users" = "articles/insights-about-monthly-users.md" }, - { "Latest version adoption" = "articles/check-if-users-upgrade-to-latest-app-version.md" }, - { "Update behavior analytics" = "articles/update-behavior-analytics.md" }, - ] } - ] } - ] }, - { "TQL" = [ - { "Introduction" = [ - { "Guideline" = "tql/tql-guideline.md " }, - { "TQL Query Reference" = "tql/query-reference.md" }, ] }, - { "Default Parameters" = [ - { "User preference Parameters" = "tql/default-parameters/user-preference-parameters.md" }, - { "SDK Parameters" = "tql/default-parameters/sdk-parameters.md" }, - { "Run Context Parameters" = "tql/default-parameters/run-context-parameters.md" }, - { "Revenue Cat Parameters" = "tql/default-parameters/revenue-cat-parameters.md" }, - { "AARRR Pirate Metrics Parameters" = "tql/default-parameters/aarrr-pirate-metrics-parameters.md" }, - { "Navigation Analytics Parameters" = "tql/default-parameters/navigation-analytics-parameters.md" }, - { "Main Parameters" = "tql/default-parameters/main-parameters.md" }, - { "Device Parameters" = "tql/default-parameters/device-parameters.md" }, - { "Deprecated Parameters" = "tql/default-parameters/deprecated-parameters.md" }, - { "Accessibility Parameters" = "tql/default-parameters/accessibility-parameters.md" }, - { "API Parameters" = "tql/default-parameters/api-parameters.md" }, - { "Reserved Parameters" = "tql/default-parameters/reserved-parameters.md" }, - { "App Info Parameters" = "tql/default-parameters/app-info-parameters.md" }, - { "Country & Region Parameters" = "tql/default-parameters/country-region-parameters.md" }, - { "URL Parameters" = "tql/default-parameters/url-parameters.md" }, - { "User Agent Parameters" = "tql/default-parameters/user-agent-parameters.md" }, + { "Privacy & Compliance" = [ + { "TelemetryDeck Privacy" = [ + { "Anonymization of user data" = "articles/anonymization-how-it-works.md" }, + { "Hosting Solutions at TelemetryDeck" = "articles/hosting-solutions.md" }, + ] }, + { "Apple Privacy" = [ + { "Apple App Privacy" = "articles/apple-app-privacy.md" }, + { "App Privacy Report" = "articles/app-privacy-report.md" }, + { "App Tracking Transparency" = "articles/app-tracking-transparency.md" }, + ] }, ] }, - { "Query Elements" = [ - { "Aggregators" = "tql/query-elements/aggregators.md" }, - { "Base filters" = "tql/query-elements/base-filters.md" }, - { "Context" = "tql/query-elements/query-context.md" }, - { "Data Source" = "tql/query-elements/data-source.md" }, - { "Dimension Spec" = "tql/query-elements/dimension-spec.md" }, - { "Expressions" = "tql/query-elements/expressions.md" }, - { "Extraction Function" = "tql/query-elements/extraction-function.md" }, - { "Filters" = "tql/query-elements/filters.md" }, - { "Granularity" = "tql/query-elements/granularity.md" }, - { "Graphical Display" = "tql/query-elements/graphical-display.md" }, - { "Post-Aggregators" = "tql/query-elements/post-aggregators.md" }, - { "Time Intervals" = "tql/query-elements/time-intervals.md" }, - { "Relative Intervals" = "tql/query-elements/relative-intervals.md" }, - { "Value Formatter" = "tql/query-elements/value-formatter.md" }, - { "Virtual Columns" = "tql/query-elements/virtual-columns.md" }, - ]}, - { "Query Types" = [ - { "Funnel" = "tql/query-types/funnel.md" }, - { "Experiment" = "tql/query-types/experiment.md" }, - { "groupBy" = "tql/query-types/groupBy.md" }, - { "Scan" = "tql/query-types/scan.md" }, - { "Time Boundary" = "tql/query-types/timeBoundary.md" }, - { "Timeseries" = "tql/query-types/timeseries.md" }, - { "topN" = "tql/query-types/topN.md" }, - ]}, - { "Recipes" = [ - { "Averaging numbers" = "tql/recipes/averagaging-numbers.md" }, - { "Listing events" = "tql/recipes/listing-events.md" }, - { "Views per purchase" = "tql/recipes/views-per-purchase-example.md" }, - { "Retention" = "tql/recipes/retention.md" }, + { "Usage" = [ + { "Analyze data" = [ + { "Dashboard" = [ + { "Overview" = "basics/index.md" }, + { "Custom dashboards" = "articles/create-custom-dashboards.md" }, + { "Insights overview" = "articles/insights.md" }, + { "Notebooks" = "articles/notebooks.md" }, + { "Filters" = "articles/set-up-filters-insights.md" }, + { "System version distribution" = "articles/insights-about-system-version.md" }, + ] }, + { "Analytics" = [ + { "Pirate Metrics (AARRR)" = "basics/pirate-metrics.md" }, + { "Acquisition" = "basics/acquisition.md" }, + { "Activation" = "basics/activation.md" }, + { "Retention" = "basics/retention.md" }, + { "Metrics" = "basics/metrics.md" }, + { "Built-in Presets" = [ + { "Purchases" = "articles/preset-purchases.md" }, + { "Errors" = "articles/preset-errors.md" }, + { "Navigation signals" = "articles/navigation-signals.md" }, + { "Duration signals" = "articles/duration-signals.md" }, + ] }, + ] }, + { "Integrations" = [ + { "RevenueCat" = "integrations/revenuecat.md" }, + { "Superwall" = "integrations/superwall.md" }, + { "Google Tag Manager" = "integrations/web-setup-google-tag-manager.md" }, + ] }, + ] }, + { "Send data" = [ + { "Dashboard" = [ + { "Test mode" = "articles/test-mode.md" }, + { "Signal type naming" = "articles/signal-type-naming.md" }, + { "Funnel insights" = "articles/how-to-funnel-insights.md" }, + { "Referrers" = "articles/insights-about-referrers.md" }, + ] }, + { "Quick set-up" = [ + { "Daily active users" = "articles/insights-about-daily-users.md" }, + { "Monthly active users" = "articles/insights-about-monthly-users.md" }, + { "Latest version adoption" = "articles/check-if-users-upgrade-to-latest-app-version.md" }, + { "Update behavior analytics" = "articles/update-behavior-analytics.md" }, + ] }, + ] }, ] }, - ] }, - { "API" = [ - { "Reference" = [ - { "Signals reference" = "api/signals-reference.md" }, - { "Insights reference" = "api/insights-reference.md" }, - { "Run a query" = "api/api-run-query.md" }, - { "Query from insight" = "api/api-query-from-insight.md" }, - { "API tokens" = "api/api-token.md" }, + { "TQL" = [ + { "Introduction" = [ + { "Guideline" = "tql/tql-guideline.md " }, + { "TQL Query Reference" = "tql/query-reference.md" }, + ] }, + { "Default Parameters" = [ + { "User preference Parameters" = "tql/default-parameters/user-preference-parameters.md" }, + { "SDK Parameters" = "tql/default-parameters/sdk-parameters.md" }, + { "Run Context Parameters" = "tql/default-parameters/run-context-parameters.md" }, + { "Revenue Cat Parameters" = "tql/default-parameters/revenue-cat-parameters.md" }, + { "AARRR Pirate Metrics Parameters" = "tql/default-parameters/aarrr-pirate-metrics-parameters.md" }, + { "Navigation Analytics Parameters" = "tql/default-parameters/navigation-analytics-parameters.md" }, + { "Main Parameters" = "tql/default-parameters/main-parameters.md" }, + { "Device Parameters" = "tql/default-parameters/device-parameters.md" }, + { "Deprecated Parameters" = "tql/default-parameters/deprecated-parameters.md" }, + { "Accessibility Parameters" = "tql/default-parameters/accessibility-parameters.md" }, + { "API Parameters" = "tql/default-parameters/api-parameters.md" }, + { "Reserved Parameters" = "tql/default-parameters/reserved-parameters.md" }, + { "App Info Parameters" = "tql/default-parameters/app-info-parameters.md" }, + { "Country & Region Parameters" = "tql/default-parameters/country-region-parameters.md" }, + { "URL Parameters" = "tql/default-parameters/url-parameters.md" }, + { "User Agent Parameters" = "tql/default-parameters/user-agent-parameters.md" }, + ] }, + { "Query Elements" = [ + { "Aggregators" = "tql/query-elements/aggregators.md" }, + { "Base filters" = "tql/query-elements/base-filters.md" }, + { "Context" = "tql/query-elements/query-context.md" }, + { "Data Source" = "tql/query-elements/data-source.md" }, + { "Dimension Spec" = "tql/query-elements/dimension-spec.md" }, + { "Expressions" = "tql/query-elements/expressions.md" }, + { "Extraction Function" = "tql/query-elements/extraction-function.md" }, + { "Filters" = "tql/query-elements/filters.md" }, + { "Granularity" = "tql/query-elements/granularity.md" }, + { "Graphical Display" = "tql/query-elements/graphical-display.md" }, + { "Post-Aggregators" = "tql/query-elements/post-aggregators.md" }, + { "Time Intervals" = "tql/query-elements/time-intervals.md" }, + { "Relative Intervals" = "tql/query-elements/relative-intervals.md" }, + { "Value Formatter" = "tql/query-elements/value-formatter.md" }, + { "Virtual Columns" = "tql/query-elements/virtual-columns.md" }, + ] }, + { "Query Types" = [ + { "Funnel" = "tql/query-types/funnel.md" }, + { "Experiment" = "tql/query-types/experiment.md" }, + { "groupBy" = "tql/query-types/groupBy.md" }, + { "Scan" = "tql/query-types/scan.md" }, + { "Time Boundary" = "tql/query-types/timeBoundary.md" }, + { "Timeseries" = "tql/query-types/timeseries.md" }, + { "topN" = "tql/query-types/topN.md" }, + ] }, + { "Recipes" = [ + { "Averaging numbers" = "tql/recipes/averagaging-numbers.md" }, + { "Listing events" = "tql/recipes/listing-events.md" }, + { "Views per purchase" = "tql/recipes/views-per-purchase-example.md" }, + { "Retention" = "tql/recipes/retention.md" }, + ] }, ] }, - { "Server-side ingest API" = [ - { "Default Parameters" = "ingest/default-parameters.md" }, - { "Ingest API v3" = "ingest/v3.md" }, - { "Ingest API v2" = "ingest/v2.md" }, - { "Ingest API v1" = "ingest/v1.md" }, + { "API" = [ + { "Query API" = [ + { "API tokens" = "api/api-token.md" }, + { "Running TQL queries" = "api/api-run-query.md" }, + { "Running SQL queries" = "api/api-run-query-sql.md" }, + { "Converting SQL to TQL" = "api/api-convert-sql-to-tql.md" }, + { "Query from insight" = "api/api-query-from-insight.md" }, + ] }, + { "Ingest API" = [ + { "Ingest API v3" = "ingest/v3.md" }, + { "Ingest API v2" = "ingest/v2.md" }, + { "Ingest API v1" = "ingest/v1.md" }, + { "Default Parameters" = "ingest/default-parameters.md" }, + ] }, + { "Reference" = [ + { "Events reference" = "api/signals-reference.md" }, + { "Insights reference" = "api/insights-reference.md" }, + ] }, ] }, - ] }, - { "Community" = [ - { "Glossary" = "glossary.md" }, - { "Contribute" = [ - { "Documentation" = "articles/documentation.md"}, + { "Community" = [ + { "Glossary" = "glossary.md" }, + { "Contribute" = [ + { "Documentation" = "articles/documentation.md" }, + ] }, ] }, - ] }, -] +] # Zensical supports both implicit navigation and explicitly defined navigation. +# Pages are grouped thematically below; group titles map to TOML inline tables, +# and a value can be either a path (single page) or an array (collapsible group). +# +# Read more: https://zensical.org/docs/setup/navigation/ # With the "extra_css" option you can add your own CSS styling to customize # your Zensical project according to your needs. You can add any number of @@ -519,7 +522,7 @@ pygments_lang_class = true [project.markdown_extensions.pymdownx.smartsymbols] [project.markdown_extensions.pymdownx.superfences] custom_fences = [ - { name = "mermaid", class = "mermaid", format = "pymdownx.superfences.fence_code_format" } + { name = "mermaid", class = "mermaid", format = "pymdownx.superfences.fence_code_format" }, ] [project.markdown_extensions.pymdownx.tabbed] alternate_style = true From 19e84ce94a5b72215a30309bfe1198ed4fd5b685 Mon Sep 17 00:00:00 2001 From: Daniel Jilg Date: Sat, 28 Nov 2026 12:59:26 +0100 Subject: [PATCH 2/3] Disable proselint.CurlyQuotes and proselint.Hyperbole, both of which were triggered by note boxes --- .vale.ini | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.vale.ini b/.vale.ini index 525b2b6..048c5e5 100644 --- a/.vale.ini +++ b/.vale.ini @@ -12,3 +12,5 @@ BasedOnStyles = Vale, proselint proselint.DateSpacing = NO proselint.DateMidnight = NO proselint.Needless = NO +proselint.Hyperbole = NO +proselint.CurlyQuotes = NO From caaca130ef2f2d910b1f27bfa1718f674dccf592 Mon Sep 17 00:00:00 2001 From: Daniel Jilg Date: Mon, 30 Nov 2026 09:12:45 +0100 Subject: [PATCH 3/3] Remove *very complicated* --- docs/api/api-run-query-sql.md | 2 +- docs/api/api-run-query.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/api/api-run-query-sql.md b/docs/api/api-run-query-sql.md index f475f47..42b89ae 100644 --- a/docs/api/api-run-query-sql.md +++ b/docs/api/api-run-query-sql.md @@ -14,7 +14,7 @@ description: Using the TelemetryDeck API, you can run an SQL query and retrieve ## Running the query -POST your query to the `/api/v4/query/sql` endpoint. The endpoint runs the query and returns the results in the same response. Please allow up to 2 minutes query execution time for very complicated requests. +POST your query to the `/api/v4/query/sql` endpoint. The endpoint runs the query and returns the results in the same response. Please allow up to 2 minutes query execution time for complex requests. === "Request" diff --git a/docs/api/api-run-query.md b/docs/api/api-run-query.md index 8b48f47..f6dd24c 100644 --- a/docs/api/api-run-query.md +++ b/docs/api/api-run-query.md @@ -18,7 +18,7 @@ TelemetryDeck Query Language (TQL) is a JSON-based language for querying time-se ## Running the query -POST your query to the `/api/v4/query/tql` endpoint. The endpoint runs the query and returns the results in the same response. Please allow up to 2 minutes query execution time for very complicated requests. +POST your query to the `/api/v4/query/tql` endpoint. The endpoint runs the query and returns the results in the same response. Please allow up to 2 minutes query execution time for complex requests. Request: