[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7BW4MMHWE4S02ADT14EYWBQ":3,"skill-same:01M7BW4MMHWE4S02ADT14EYWBQ":181},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":30,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M7BW4MMHWE4S02ADT14EYWBQ","dt-dql-essentials",null,"Core DQL syntax, pitfalls, query patterns, and query optimization. Load to write, build, fix, or OPTIMIZE a DQL query — prevents syntax errors and makes queries faster, more efficient, and cheaper (less data scanned = lower query consumption\u002Fcost per run). Covers fetch commands, data models, field namespaces, time alignment, entity\u002Fsmartscape patterns, metric discovery, and performance\u002Fcost optimization (filter early, bucket filters, short time ranges, field selection, sampling, cardinality). Trigger: \"write\u002Fbuild\u002Ffix a DQL query\", \"DQL syntax\", \"query logs\u002Fspans\u002Fmetrics\", \"create a timeseries\", \"optimize my DQL\", \"make my query faster\u002Fcheaper\", \"reduce DQL cost\u002Fconsumption\u002Fscanned data\", \"keep DQL cost under control\". Do NOT use to explain an existing query or answer product questions. For MONITORING a tenant's ACTUAL query consumption\u002Fbilling (how much queries cost, who scanned most, cost trends) use dt-platform-costs — this tunes the query text, not billing data.","CognitionAI\u002Fdevin-marketplace","CognitionAI","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F163493330?v=4","01M7BVSRD98NC4FG8T3EZS6V5M","Cognition","01M7BVSRDX111C2XPWJ0E6MY26",29,"Apache-2.0","https:\u002F\u002Fgithub.com\u002FCognitionAI\u002Fdevin-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fdynatrace\u002Fskills\u002Fdt-dql-essentials\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: dt-dql-essentials\ndescription: \"Core DQL syntax, pitfalls, query patterns, and query optimization. Load to write, build, fix, or OPTIMIZE a DQL query — prevents syntax errors and makes queries faster, more efficient, and cheaper (less data scanned = lower query consumption\u002Fcost per run). Covers fetch commands, data models, field namespaces, time alignment, entity\u002Fsmartscape patterns, metric discovery, and performance\u002Fcost optimization (filter early, bucket filters, short time ranges, field selection, sampling, cardinality). Trigger: \\\"write\u002Fbuild\u002Ffix a DQL query\\\", \\\"DQL syntax\\\", \\\"query logs\u002Fspans\u002Fmetrics\\\", \\\"create a timeseries\\\", \\\"optimize my DQL\\\", \\\"make my query faster\u002Fcheaper\\\", \\\"reduce DQL cost\u002Fconsumption\u002Fscanned data\\\", \\\"keep DQL cost under control\\\". Do NOT use to explain an existing query or answer product questions. For MONITORING a tenant's ACTUAL query consumption\u002Fbilling (how much queries cost, who scanned most, cost trends) use dt-platform-costs — this tunes the query text, not billing data.\"\nlicense: Apache-2.0\n---\n\n# DQL Essentials Skill\n\nDQL is a pipeline-based query language. Queries chain commands with `|` to filter, transform, and aggregate data. DQL has unique syntax that differs from SQL — load this skill before writing any DQL query.\n\n______________________________________________________________________\n\n## When to Load References\n\nBefore working on specific tasks, load the relevant reference:\n\n| Task                                                                          | Required Reading                                                                             |\n| ----------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- |\n| Discovering data | [references\u002Fdiscovery.md](references\u002Fdiscovery.md) |   \n| Field names, namespaces, data models, stability levels, query patterns        | [references\u002Fsemantic-dictionary.md](references\u002Fsemantic-dictionary.md)                       |\n| Query optimization — make a query faster \u002F more efficient \u002F cheaper, reduce consumption & scanned data (filter early, bucket filters, time ranges, field selection, sampling, cardinality) | [references\u002Foptimization.md](references\u002Foptimization.md)                                     |\n| Smartscape topology navigation for discovering relationships between entities | [references\u002Fsmartscape-topology-navigation.md](references\u002Fsmartscape-topology-navigation.md) |\n| `summarize` and `makeTimeseries` patterns (bucketing, calendar months)        | [references\u002Fsummarization.md](references\u002Fsummarization.md)                                   |\n| Array and timeseries manipulation (`arrayFilter`, `collectArray`, iterative)  | [references\u002Fiterative-expressions.md](references\u002Fiterative-expressions.md)                   |\n| Conditional logic (`if\u002Felse` chains), `coalesce`, string\u002Fdate helpers         | [references\u002Fuseful-expressions.md](references\u002Fuseful-expressions.md)                         |\n| `in` operator (subquery), full `@` time alignment unit table                  | [references\u002Foperators.md](references\u002Foperators.md)                                           |\n| `matchesValue`, `matchesPhrase`, `matchesPattern`, `in()` — string pattern matching, regex, array matching, wildcards, case sensitivity | [references\u002Fstring-matching.md](references\u002Fstring-matching.md)                               |\n\n______________________________________________________________________\n\n## DQL Reference Index\n\nUse this index to route from a function group (e.g. time functions, conversions) to its detailed spec, or from a function name to its spec file.\n\n| Description | Items |\n|-------------|-------|\n| [Data Types](references\u002Fdql\u002Fdql-data-types.md) | `array`, `binary`, `boolean`, `double`, `duration`, `long`, `record`, `string`, `timeframe`, `timestamp`, `uid` |\n| [Parameter Value Types](references\u002Fdql\u002Fdql-parameter-value-types.md) | `bucket`, `dataObject`, `dplPattern`, `entityAttribute`, `entitySelector`, `entityType`, `enum`, `executionBlock`, `expressionTimeseriesAggregation`, `expressionWithConstantValue`, `expressionWithFieldAccess`, `fieldPattern`, `filePattern`, `identifierForAnyField`, `identifierForEdgeType`, `identifierForFieldOnRootLevel`, `identifierForNodeType`, `joinCondition`, `jsonPath`, `metricKey`, `metricTimeseriesAggregation`, `namelessDplPattern`, `nonEmptyExecutionBlock`, `prefix`, `primitiveValue`, `simpleIdentifier`, `tabularFileExisting`, `tabularFileNew`, `url` |\n| [Commands](references\u002Fdql\u002Fdql-commands.md) | `append`, `data`, `dedup`, `describe`, `expand`, `fetch`, `fields`, `fieldsAdd`, `fieldsFlatten`, `fieldsKeep`, `fieldsRemove`, `fieldsRename`, `fieldsSnapshot`, `fieldsSummary`, `filter`, `filterOut`, `join`, `joinNested`, `limit`, `load`, `lookup`, `makeTimeseries`, `metrics`, `parse`, `search`, `smartscapeEdges`, `smartscapeNodes`, `sort`, `summarize`, `timeseries`, `traverse` |\n| [Functions — Aggregation](references\u002Fdql\u002Fdql-functions-aggregation.md) | `avg`, `collectArray`, `collectDistinct`, `correlation`, `count`, `countDistinct`, `countDistinctApprox`, `countDistinctExact`, `countIf`, `max`, `median`, `min`, `percentRank`, `percentile`, `percentileFromSamples`, `percentiles`, `stddev`, `sum`, `takeAny`, `takeFirst`, `takeLast`, `takeMax`, `takeMin`, `variance` |\n| [Functions — Array](references\u002Fdql\u002Fdql-functions-array.md) | `arrayAvg`, `arrayConcat`, `arrayCumulativeSum`, `arrayDelta`, `arrayDiff`, `arrayDistinct`, `arrayFirst`, `arrayFlatten`, `arrayIndexOf`, `arrayLast`, `arrayLastIndexOf`, `arrayMax`, `arrayMedian`, `arrayMin`, `arrayMovingAvg`, `arrayMovingMax`, `arrayMovingMin`, `arrayMovingSum`, `arrayPercentile`, `arrayRemoveNulls`, `arrayReverse`, `arraySize`, `arraySlice`, `arraySort`, `arraySum`, `arrayToString`, `vectorCosineDistance`, `vectorInnerProductDistance`, `vectorL1Distance`, `vectorL2Distance` |\n| [Functions — Bitwise](references\u002Fdql\u002Fdql-functions-bitwise.md) | `bitwiseAnd`, `bitwiseCountOnes`, `bitwiseNot`, `bitwiseOr`, `bitwiseShiftLeft`, `bitwiseShiftRight`, `bitwiseXor` |\n| [Functions — Boolean](references\u002Fdql\u002Fdql-functions-boolean.md) | `exists`, `in`, `isFalseOrNull`, `isNotNull`, `isNull`, `isTrueOrNull`, `isUid128`, `isUid64`, `isUuid` |\n| [Functions — Cast](references\u002Fdql\u002Fdql-functions-cast.md) | `asArray`, `asBinary`, `asBoolean`, `asDouble`, `asDuration`, `asIp`, `asLong`, `asNumber`, `asRecord`, `asSmartscapeId`, `asString`, `asTimeframe`, `asTimestamp`, `asUid` |\n| [Functions — Constant](references\u002Fdql\u002Fdql-functions-constant.md) | `e`, `pi` |\n| [Functions — Conversion](references\u002Fdql\u002Fdql-functions-conversion.md) | `toArray`, `toBoolean`, `toDouble`, `toDuration`, `toIp`, `toLong`, `toSmartscapeId`, `toString`, `toTimeframe`, `toTimestamp`, `toUid`, `toVariant` |\n| [Functions — Create](references\u002Fdql\u002Fdql-functions-create.md) | `array`, `duration`, `ip`, `record`, `smartscapeId`, `timeframe`, `timestamp`, `timestampFromUnixMillis`, `timestampFromUnixNanos`, `timestampFromUnixSeconds`, `uid128`, `uid64`, `uuid` |\n| [Functions — Cryptographic](references\u002Fdql\u002Fdql-functions-cryptographic.md) | `hashCrc32`, `hashMd5`, `hashSha1`, `hashSha256`, `hashSha512`, `hashXxHash32`, `hashXxHash64` |\n| [Functions — Entities](references\u002Fdql\u002Fdql-functions-entities.md) | `classicEntitySelector`, `entityAttr`, `entityName` |\n| [Functions — Time series aggregation for expressions](references\u002Fdql\u002Fdql-functions-expression-timeseries.md) | `avg`, `count`, `countDistinct`, `countDistinctApprox`, `countDistinctExact`, `countIf`, `end`, `max`, `median`, `min`, `percentRank`, `percentile`, `percentileFromSamples`, `start`, `sum` |\n| [Functions — Flow](references\u002Fdql\u002Fdql-functions-flow.md) | `coalesce`, `if` |\n| [Functions — General](references\u002Fdql\u002Fdql-functions-general.md) | `jsonField`, `jsonPath`, `lookup`, `parse`, `parseAll`, `type` |\n| [Functions — Get](references\u002Fdql\u002Fdql-functions-get.md) | `arrayElement`, `getEnd`, `getHighBits`, `getLowBits`, `getStart` |\n| [Functions — Iterative](references\u002Fdql\u002Fdql-functions-iterative.md) | `iAny`, `iCollectArray`, `iIndex` |\n| [Functions — Mathematical](references\u002Fdql\u002Fdql-functions-mathematical.md) | `abs`, `acos`, `asin`, `atan`, `atan2`, `bin`, `cbrt`, `ceil`, `cos`, `cosh`, `degreeToRadian`, `exp`, `floor`, `hexStringToNumber`, `hypotenuse`, `log`, `log10`, `log1p`, `numberToHexString`, `power`, `radianToDegree`, `random`, `range`, `round`, `signum`, `sin`, `sinh`, `sqrt`, `tan`, `tanh` |\n| [Functions — Network](references\u002Fdql\u002Fdql-functions-network.md) | `ipIn`, `ipIsLinkLocal`, `ipIsLoopback`, `ipIsPrivate`, `ipIsPublic`, `ipMask`, `isIp`, `isIpV4`, `isIpV6` |\n| [Functions — Smartscape](references\u002Fdql\u002Fdql-functions-smartscape.md) | `getNodeField`, `getNodeName` |\n| [Functions — String](references\u002Fdql\u002Fdql-functions-string.md) | `concat`, `contains`, `decodeBase16ToBinary`, `decodeBase16ToString`, `decodeBase64ToBinary`, `decodeBase64ToString`, `decodeUrl`, `encodeBase16`, `encodeBase64`, `encodeUrl`, `endsWith`, `escape`, `getCharacter`, `indexOf`, `lastIndexOf`, `levenshteinDistance`, `like`, `lower`, `matchesPattern`, `matchesPhrase`, `matchesRegex`, `matchesValue`, `punctuation`, `replacePattern`, `replaceString`, `splitByPattern`, `splitString`, `startsWith`, `stringLength`, `substring`, `trim`, `unescape`, `unescapeHtml`, `upper` |\n| [Functions — Time](references\u002Fdql\u002Fdql-functions-time.md) | `formatTimestamp`, `getDayOfMonth`, `getDayOfWeek`, `getDayOfYear`, `getHour`, `getMinute`, `getMonth`, `getSecond`, `getWeekOfYear`, `getYear`, `now`, `unixMillisFromTimestamp`, `unixNanosFromTimestamp`, `unixSecondsFromTimestamp` |\n| [Functions — Time series aggregation for metrics](references\u002Fdql\u002Fdql-functions-timeseries.md) | `avg`, `count`, `countDistinct`, `end`, `max`, `median`, `min`, `percentRank`, `percentile`, `start`, `sum` |\n\n______________________________________________________________________\n\n## Syntax Pitfalls\n\n| ❌ Wrong | ✅ Right | Issue |\n| --- | --- | --- |\n| `filter field in [\"a\", \"b\"]` | `filter in(field, {\"a\", \"b\"})` | `[` and `]` wrap sub-queries in DQL but do not wrap **static** array literals. Use `{}` or `array()` for static values. |\n| `filter: { in(field, [sub-query]) }` (e.g. in `timeseries filter:`) | `filter: { field in [sub-query] }` | `in()` does not accept execution blocks as arguments. When the right-hand side is a sub-query (execution block), use the `in` operator: `field in [execution block]`. |\n| `by: severity, status` | `by: {severity, status}` | List of fields must be grouped by curly braces in `by:` clauses (`summarize`, `makeTimeseries`, etc.). |\n| `contains(toLowercase(field), \"err\")` | `contains(field, \"err\", false)` | Don't wrap in `lower()` for case-insensitive matching. `contains()` has a built-in third positional `caseSensitive` parameter (default `true`). |\n| `filter name == \"*serv*9*\"` | `filter matchesValue(name, \"*serv*\") and matchesValue(name, \"*9*\")` | `==` does not support wildcards. `matchesValue()` supports `*` wildcards but only at the beginning and\u002For end of the pattern—split mid-string wildcard intent into multiple calls combined with `and`. |\n| `matchesValue(field, \"prod\")` on string field | `contains(field, \"prod\")` | Without wildcards, `matchesValue()` performs an exact (case-insensitive) match — it will not find `\"production\"`. Use `contains()` for substring matching (or `matchesValue(field, \"*prod*\")` for wildcard matching). |\n| `iAny(matchesValue(arr[], \"x\") OR matchesValue(arr[], \"y\"))` | `matchesValue(arr, {\"x\", \"y\"})` | `matchesValue` accepts an array field in the first param and an array literal `{}` in the second — no `iAny` or `[]` needed. The same applies when consolidating multiple `contains(f, x) OR contains(f, y)` on the same field: use `matchesValue(f, {\"*x*\", \"*y*\"})`. |\n| `iAny(matchesPhrase(arr[], \"phrase\"))` | `matchesPhrase(arr, \"phrase\")` | `matchesPhrase` iterates array fields natively — drop `iAny(` and `[]`. Note: the **second** parameter must be a static string; `matchesPhrase(f, array(\"a\",\"b\")[])` is a runtime error. |\n| `contains(field, \"pip\")` on a short or common token | `matchesPhrase(field, \"pip\")` | `contains` is a pure substring match — `\"pip\"` also fires on `\"pipenv\"`, `\"gripping\"`. `matchesPhrase` tokenizes the string and matches whole words only, giving fewer false positives. |\n| `iAny(in(lower(arr[]), array(\"a\", \"b\")))` | `matchesValue(arr, {\"a\", \"b\"}, caseSensitive: false)` | `matchesValue` is case-insensitive by default — no `lower()`, `in()`, or `iAny` wrapper needed. `caseSensitive: false` shown explicitly here only to mirror the intent of the `lower()` it replaces. |\n| `iAny(f1[] == \"a\" AND f2[] == \"b\")` iterating two separate arrays | `in(f1, \"a\") AND in(f2, \"b\")` | Multi-array `iAny` is **pairwise**, not a cross-product: element `i` of `f1[]` is tested against element `i` of `f2[]`. If the arrays differ in length the result is `null`. Use independent `in()` checks instead. See [references\u002Fiterative-expressions.md](references\u002Fiterative-expressions.md). |\n| `toLowercase(field)` | `lower(field)` | The function is `lower()`, not `toLowercase()`. Only type-casting functions use the `to` prefix (`toString()`, `toLong()`, etc.). |\n| `arrayAvg(field[])` or `arraySum(field[])` | `arrayAvg(field)` or `field[]` | `field[]` = element-wise iterative expression (array→array); `arrayAvg(field)` = collapse to scalar (array→single value). Never mix both — `arrayAvg(field[])` is semantically wrong. |\n| `my_field` after `lookup` or `join` | `lookup.my_field` \u002F `right.my_field` | `lookup` prefixes added fields with `lookup.` by default (configurable via `prefix:`). `join` prefixes right-side fields with `right.`. |\n| `substring(field, 0, 200)` | `substring(field, from: 0, to: 200)` | The first parameter (expression) is positional, but `from:` and `to:` are named optional parameters and must include their names. |\n| `filter host = \"A\"` | `filter host == \"A\"` | DQL uses `==` for equality comparison, not `=`. Single `=` is assignment (e.g., in `fieldsAdd`, summarize aliases). |\n| `fetch logs, from: toTimestamp('2026-01-01')` | `fetch logs, from: -24h` | `from:` \u002F `to:` accept duration literals (e.g., `-24h`, `-7d`) or `now()` expressions — not `toTimestamp()`. For absolute ranges use `timeframe: \"start\u002Fend\"` (ISO 8601). |\n| `filter log.level == \"ERROR\"` | `filter loglevel == \"ERROR\"` | Log severity field is `loglevel` (no dot) — `log.level` does not exist. |\n| `sort count() desc` | `` sort `count()` desc `` | Fields with special characters (like parentheses) must be wrapped in backticks. |\n| `length(field)` | `stringLength(field)` | DQL string length function is `stringLength` — there is no `length()`. |\n| `metrics dt.host.cpu.usage` | `timeseries avg(dt.host.cpu.usage)` | `metrics` loads metric metadata, not values — use `timeseries` for data. |\n| `join [...], on:{left.a.b == right.a.b}` | `` join [...], on:{left[`a.b`] == right[`a.b`]} `` | Dotted field names in join\u002Flookup conditions require bracket notation with backticks. |\n| `fieldsSummary` (no arguments) | `fieldsSummary field1, field2` | `fieldsSummary` requires at least one field parameter. |\n| `timeseries` with `percentile`\u002F`median`\u002F`percentRank` — no results | Add `rollup: avg` (or `min`\u002F`max`\u002F`sum`) to the `timeseries` command | These three functions **require `rollup:`** on gauge\u002Fcount metrics — without it the query silently returns empty. |\n| `summarize p95 = percentile(duration, 95, rollup: avg)` | `summarize p95 = percentile(duration, 95)` | `rollup:` is a **`timeseries`-only** parameter. The same-named aggregations in `summarize` over logs\u002Fspans\u002Fevents reject it with `UNKNOWN_PARAMETER_DEFINED`. Only add `rollup:` when aggregating a *metric* inside `timeseries`. |\n| `filter array.contains(field, \"v\")` or `arrayContains(field, \"v\")` | `filter in(field, {\"v\"})` | Neither function exists in DQL — both are hallucinated from Python\u002FJava\u002FSQL. `in()` already matches **array-typed** fields natively (e.g. `k8s.namespace.name` on `dt.davis.problems`): it returns true if any element of the needle matches any haystack element. See [references\u002Fiterative-expressions.md](references\u002Fiterative-expressions.md). |\n| `filter k8s.namespace.name == \"ns\"` where the field is array-typed | `filter in(k8s.namespace.name, {\"ns\"})` | `==` against an array-typed field matches **nothing** — it returns zero rows with no error, which reads as \"no data\" rather than a mistake. `k8s.*` fields are arrays on `dt.davis.problems`. Use `in()` for exact membership, or `matchesValue(field, {...})`. |\n| `parseJson(field)` or `extractJsonField(field, jsonPath: \"$.x\")` | `parse field, \"JSON:parsed\"` then `parsed[x]` | Neither function exists. JSON embedded in a string field is unpacked with the `parse` command and the `JSON` DPL matcher, then accessed with bracket notation. |\n| `filter hour(timestamp) == 4` \u002F `minute(timestamp)` | `filter getHour(timestamp) == 4` \u002F `getMinute(timestamp)` | There are no `hour()`\u002F`minute()` functions. The `get*` family returns **numbers**, so numeric comparison and ranges work. Do not substitute `formatTimestamp(timestamp, format: \"HH\")` — that returns a *string*, so `== 4` silently matches nothing. |\n| `fields fromRelationships, toRelationships, containerImageTag` on `dt.entity.*` | `describe dt.entity.\u003Ctype>` first, then select real fields | Classic entity objects do **not** expose the Entities REST API's attribute names. Field names must be discovered with `describe \u003CdataObject>`, not guessed from API payloads. |\n| `by: {bin(timestamp, 1h)}` then `` sort `bin(timestamp,1h)` `` | `by: {t = bin(timestamp, 1h)}` then `sort t` | DQL normalizes the auto-generated group-key name to `bin(timestamp, 1h)` — with a space after the comma, regardless of how the expression was written. A backticked reference that omits the space raises `FIELD_DOES_NOT_EXIST`. Always alias group keys. |\n| `fetch spans \\| ... by: {bin(timestamp, 1h)}` | `fetch spans \\| ... by: {t = bin(start_time, 1h)}` | `spans` has no `timestamp` field — its time fields are `start_time` and `end_time`. Referencing `timestamp` either errors or yields nulls depending on position. |\n| `` lookup [...], fields: {`dotted.name`} `` | `lookup [...], fields: {dotted.name}` | Do not backtick field names inside the `fields:` parameter of `lookup` — causes PARSE_ERROR. |\n| `data record(key: \"val\")` | `data record(key = \"val\")` | `record()` uses `=` for named fields, not `:` — `:` is for command parameters like `rollup:`. |\n| `getNodeField(dt.smartscape.host, \"tags\")[\"tag.key\"]` | `getNodeField(dt.smartscape.host, \"tags\")[tag.key]` | In this tag-map access pattern, bracket keys must use unquoted identifier syntax; quoted keys cause a parse error. |\n| `by: {dt.entity.host}` or `dt.entity.*` | `by: {dt.smartscape.host}` or `dt.smartscape.*` | `dt.entity.*` is **deprecated** — always use `dt.smartscape.*` in new queries. |\n\n______________________________________________________________________\n\n## Fetch Command → Data Model\n\nDQL queries start with `fetch \u003Cdata_object>` or `timeseries`. There is **no `fetch dt.metric`** — metrics use `timeseries`.\n\n| Fetch Command | Data Model | Key Fields \u002F Notes |\n|---------------|------------|--------------------|\n| `fetch spans` | Distributed tracing | `span.*`, `service.*`, `http.*`, `db.*`, `code.*`, `exception.*` |\n| `fetch logs` | Log events | `log.*`, `k8s.*`, `host.*` — message body is `content`, severity is `loglevel` (NOT `log.level`) |\n| `fetch events` | DAVIS \u002F infra events | `event.*`, `dt.smartscape.*` |\n| `fetch bizevents` | Business events | `event.*`, custom fields |\n| `fetch security.events` | Security events | `vulnerability.*`, `event.*` |\n| `fetch user.sessions` | RUM sessions | `dt.rum.*`, `browser.*`, `geo.*` |\n| `fetch user.events` | RUM individual events | page views, clicks, requests, errors |\n| `fetch user.replays` | Session replay recordings | |\n| `fetch application.snapshots` | Application snapshots | |\n| `fetch dt.davis.events` | Davis-detected events | |\n| `fetch dt.davis.problems` | Davis-detected problems | |\n| `timeseries avg(metric.key)` | Metrics | NOT `fetch` — hyphenated keys need backticks: `` timeseries sum(`my.metric-name`) `` |\n| `smartscapeNodes \"HOST\"` | Topology | NOT `fetch` — types: `HOST`, `SERVICE`, `K8S_CLUSTER`, etc. |\n\n`dt.entity.*` is deprecated — use `dt.smartscape.*` and `smartscapeNodes` for new queries.\n\nDiscover all available data objects: `fetch dt.system.data_objects | fields name, display_name, type`\n\n→ [references\u002Fsemantic-dictionary.md](references\u002Fsemantic-dictionary.md) for full field namespaces\n\n______________________________________________________________________\n\n## `samplingRatio` Parameter\n\n`fetch` supports a `samplingRatio:` parameter to reduce the volume of data read — useful for improving query performance on large datasets.\n\n```dql\nfetch spans, samplingRatio:100   \u002F\u002F reads ~1% of data\n```\n\n**Allowed values:** depend on the concrete data object and range from `1`, `10`, `100`, `1000`, `10000` to `100000`, the highest level only available for `logs` and `spans`.\n\n\nSampling is **hierarchical** for `spans`, `user.events` and `user.sessions`: a record included at a higher ratio (e.g. `100`) is guaranteed to also appear at lower ratios (e.g. `10`, `1`), but not vice versa. This means results at different ratios are  subsets of each other. All other non-metric data objects are sampled independently per record, so results at different ratios are not subsets.\n\nThe actual ratio applied is accessible via the `dt.system.sampling_ratio` field. Use it to extrapolate sampled counts back to true totals:\n\n```dql\nfetch logs, samplingRatio:10\n| summarize count_extrapolated = sum(dt.system.sampling_ratio)\n```\n______________________________________________________________________\n\n## Timeseries Aggregation Functions\n\nThe `timeseries` command supports only these aggregation functions:\n\n| Function | Description |\n|----------|-------------|\n| `sum` | Sum of metric data points per time slot |\n| `avg` | Average of metric data points per time slot |\n| `min` | Minimum of metric data points per time slot |\n| `max` | Maximum of metric data points per time slot |\n| `count` | Count of metric data points per time slot |\n| `percentile(metric, N)` | Nth percentile per time slot. **Requires `rollup:`** — see below. |\n| `median(metric)` | 50th percentile per time slot (= `percentile(metric, 50)`). **Requires `rollup:`**. |\n| `percentRank(metric, value)` | Percentile rank of a value per time slot. **Requires `rollup:`**. |\n| `countDistinct(metric)` | Approximate distinct count per time slot (cardinality metrics only; does NOT accept `rollup:`). |\n\nHelpers (use alongside an aggregation): `start()`, `end()`.\n\n**Not supported by `timeseries`:** `countIf`, `collectArray`, `stddev`, `variance`, `takeAny`, `takeFirst`, `takeLast` — use `summarize` or `makeTimeseries`.\n\n### The `rollup:` parameter\n\nMetrics are pre-aggregated at ingest time. `rollup:` controls how raw data points are combined per time slot. Required for `percentile`, `median`, `percentRank` — without it the query silently returns no results. `avg`\u002F`min`\u002F`max`\u002F`sum`\u002F`count` work without `rollup:`.\n\n`rollup:` is a **`timeseries`-only** parameter — it belongs to metric aggregations and nothing else. The identically-named aggregation functions available in `summarize` over event data (logs, spans, events) do **not** accept it: `summarize p95 = percentile(duration, 95, rollup: avg)` fails with `UNKNOWN_PARAMETER_DEFINED`. In `summarize`, use `percentile(field, N)` with no `rollup:`.\n\nSingle aggregation — `rollup:` at command level. Multiple aggregations in `{}` — `rollup:` must go **inside each function call** (command-level `rollup:` causes `UNKNOWN_PARAMETER_DEFINED`):\n\n```dql\ntimeseries p90 = percentile(dt.process.handles.file_descriptors_percent_used, 90), rollup: avg\n```\n\n```dql\ntimeseries {\n  p90 = percentile(dt.process.handles.file_descriptors_percent_used, 90, rollup: avg),\n  med = median(dt.process.handles.file_descriptors_percent_used, rollup: avg),\n  avg_val = avg(dt.process.handles.file_descriptors_percent_used)\n}, by: {dt.smartscape.host}\n```\n\nValues: `avg` (gauges), `min`, `max`, `sum` (counters), `total`.\n\n### Timeseries-to-scalar conversion\n\nThere are two ways to collapse a timeseries to a scalar. Prefer the `scalar:true` parameter when you only need the single aggregated value — it is more efficient because no array is materialized. Fall back to array functions when you need both the full series and a derived scalar in the same query.\n\n**Preferred: `scalar:true` on the aggregation function**\n\nPass `scalar:true` to any timeseries aggregation function. The result field contains a single value instead of an array, and no intermediate array is allocated:\n\n```dql\ntimeseries avg_cpu = avg(dt.host.cpu.usage, scalar:true), by:{dt.smartscape.host}\n```\n\n```dql\ntimeseries {\n  avg_cpu = avg(dt.host.cpu.usage, scalar:true),\n  max_cpu = max(dt.host.cpu.usage, scalar:true)\n}, by:{dt.smartscape.host}\n```\n\n**Fallback: array functions in `fieldsAdd`**\n\nWhen you need the full time series array alongside a derived scalar, use array functions in a subsequent `| fieldsAdd`:\n\n| Function | Description |\n|----------|-------------|\n| `arrayAvg(arr)` | Average of all values in the array |\n| `arraySum(arr)` | Sum of all values |\n| `arrayMin(arr)` | Minimum value |\n| `arrayMax(arr)` | Maximum value |\n| `arrayMedian(arr)` | Median value |\n| `arrayPercentile(arr, N)` | Nth percentile (0–100) |\n| `arrayLast(arr)` | Last non-null value (latest data point) |\n| `arrayFirst(arr)` | First non-null value (earliest data point) |\n\n```dql\ntimeseries cpu = avg(dt.host.cpu.usage), by:{dt.smartscape.host}\n| fieldsAdd avg_cpu = arrayAvg(cpu), max_cpu = arrayMax(cpu)\n```\n\n______________________________________________________________________\n\n## Time Alignment (@-operator)\n\nThe `@` operator aligns timestamps to a boundary — agents often get this wrong.\n\n| Expression   | Meaning                                                     |\n| ------------ | ----------------------------------------------------------- |\n| `now()@h`    | Current time, aligned to the hour boundary                  |\n| `now()@d`    | Midnight today                                              |\n| `now()@w1`   | Monday this week                                            |\n| `now()-2h@h` | 2 hours ago, aligned to the hour (offset first, then align) |\n\n**Rules:**\n\n- Order: offset before alignment — `now()-2h@h`, not `now()@h-2h`\n- No space between `@` and the unit — `now()@h` not `now() @h`\n- `m` = minutes, `M` = months — do not confuse them\n\n→ [references\u002Fdql\u002Fdql-functions-timeseries.md](references\u002Fdql\u002Fdql-functions-timeseries.md) for the full list of `timeseries` aggregations and `rollup:` rules\n→ [references\u002Fdql\u002Fdql-functions-array.md](references\u002Fdql\u002Fdql-functions-array.md) for `arrayAvg` \u002F `arrayMax` \u002F `arrayPercentile` \u002F … spec\n\n______________________________________________________________________\n\n## Entity & Smartscape Patterns\n\nEntity fields are scoped per type — `entity.id` does not exist. Use `smartscapeNodes` for topology queries.\n\n| Entity      | ID field in data             | `smartscapeNodes` type |\n| ----------- | ---------------------------- | ---------------------- |\n| Host        | `dt.smartscape.host`         | `\"HOST\"`               |\n| Service     | `dt.smartscape.service`      | `\"SERVICE\"`            |\n| Process     | `dt.smartscape.process`      | `\"PROCESS\"`            |\n| K8s cluster | `dt.smartscape.k8s_cluster`  | `\"K8S_CLUSTER\"`        |\n\nUse `toSmartscapeId()` for ID conversion from strings (required!).\n\n→ [references\u002Fsmartscape-topology-navigation.md](references\u002Fsmartscape-topology-navigation.md)\n\n______________________________________________________________________\n\n## makeTimeseries Command\n\n`makeTimeseries` builds a time-bucketed series from event data (logs, spans, bizevents). Unlike `timeseries` (which queries pre-ingested metrics), `makeTimeseries` aggregates data in a pipeline.\n\n**Do not pipe `timeseries` directly into `makeTimeseries`** — it fails with `INVALID_IMPLICIT_TIME_DEFAULT`. To re-aggregate metric data, use `start()` + expand (see [references\u002Fsummarization.md](references\u002Fsummarization.md)).\n\n```dql\nfetch logs\n| makeTimeseries\n    total = count(),\n    errors = countIf(loglevel == \"ERROR\"),\n    interval: 5m,\n    by: {k8s.cluster.name}\n| fieldsAdd error_rate = errors[] * 100.0 \u002F total[]\n```\n\nKey parameters: `interval:`, `by:{}`, `from:`\u002F`to:`, `bins:`, `time:` (timestamp field), `spread:` (for `count`\u002F`countIf` only), `nonempty:`.\n\n→ [references\u002Fsummarization.md](references\u002Fsummarization.md) for full `makeTimeseries` patterns and `summarize` bucketing\n→ [references\u002Fiterative-expressions.md](references\u002Fiterative-expressions.md) for timeseries array manipulation\n\n______________________________________________________________________\n\n## String Matching Functions\n\nDQL has four main functions for string and array pattern matching. See [references\u002Fstring-matching.md](references\u002Fstring-matching.md) for the full guide and quick-reference table.\n\n- **`matchesValue(field, {\"pattern*\", \"*other*\"})`** — wildcard matching (`*` at start\u002Fend). Accepts an array field in the first param and an array literal `{}` in the second — no `iAny` or `[]` needed. Case-insensitive by default (`caseSensitive: true` to enforce case-sensitive matching). Replaces `contains()` + `iAny` chains and `lower()` workarounds.\n- **`matchesPhrase(field, \"token\")`** — tokenizes the string and matches whole words, unlike `contains()` which is a bare substring match. First param accepts an array field natively; second param must be a **static string** (array unwrapping causes a runtime error).\n- **`in(field, array(\"a\", \"b\"))`** — set membership. Both params accept arrays, making it an overlap\u002Fintersection check.\n\n______________________________________________________________________\n\n## Chained Lookup Pattern\n\n\nEach `lookup` command without a `fields` parameter **removes all existing fields starting with the prefix (default: `lookup.`)** before adding new ones. When chaining multiple lookups, use `fields` parameter or custom prefixes to preserve the result:\n\n**Option 1 (default)**: the desired fields are known.\n```dql\nfetch bizevents\n\u002F\u002F Step 1: First lookup — enrich orders with product info\n| lookup [fetch bizevents\n    | filter event.type == \"product_catalog\"\n    | fields product_id, category],\n  sourceField: product_id, lookupField: product_id, fields: {product_id, product_category = category}\n\n\u002F\u002F Step 2: Second lookup — specify fields with a different name\n| lookup [fetch bizevents\n    | filter event.type == \"warehouse_stock\"\n    | fields category, warehouse_region],\n  sourceField: product_category, lookupField: category, fields: {warehouse_region, warehouse_category = category}\n\n```\nAll 4 lookup fields product_id, product_category, warehouse_region, and warehouse_category are available.\nWithout the `fields:{...}` parameter, the fields would be prefixed with `lookup.` and the second lookup command would delete the fields added by the first lookup.\n\n**Option 2**: keep all fields from the lookup.\n```dql\nfetch bizevents\n\u002F\u002F Step 1: First lookup — enrich orders with product info\n| lookup [fetch bizevents\n    | filter event.type == \"product_catalog\"\n    | fields product_id, category],\n  sourceField: product_id, lookupField: product_id, prefix: \"product.\"\n\n\u002F\u002F Step 2: Second lookup — specify fields with a different prefix\n| lookup [fetch bizevents\n    | filter event.type == \"warehouse_stock\"\n    | fields category, warehouse_region],\n  sourceField: product_category, lookupField: category, prefix: \"warehouse.\"\n\n```\nThe new fields are: `product.product_id`, `product.category`, `warehouse.category`, `warehouse.warehouse_region`.\nAll fields starting with `product.` or `warehouse.` are removed from the original source.\nWithout the dedicated `prefix`, both `lookup` commands would use the same prefix (`lookup.`) and the second `lookup` drops the first lookup's results — producing empty fields.\n\n______________________________________________________________________\n\n## makeTimeseries Command\n\n`makeTimeseries` builds a time-bucketed series from event data (logs, spans, bizevents). Unlike `timeseries` (which queries pre-ingested metrics), `makeTimeseries` aggregates data in a pipeline.\n\n**Do not pipe `timeseries` directly into `makeTimeseries`** — it fails with `INVALID_IMPLICIT_TIME_DEFAULT`. To re-aggregate metric data, use `start()` + expand (see [references\u002Fsummarization.md](references\u002Fsummarization.md)).\n\n```dql\nfetch logs\n| makeTimeseries\n    {total = count(),\n    errors = countIf(loglevel == \"ERROR\")},\n    interval: 5m,\n    by: {k8s.cluster.name}\n| fieldsAdd error_rate = errors[] * 100.0 \u002F total[]\n```\n\nKey parameters: `interval:`, `by:{}`, `from:`\u002F`to:`, `bins:`, `time:` (timestamp field), `spread:` (for `count`\u002F`countIf` only), `nonempty:`. → [references\u002Fdql\u002Fdql-commands.md](references\u002Fdql\u002Fdql-commands.md) for full spec.\n\nEntity existence timeline using `spread:`:\n\n```dql\nsmartscapeNodes \"HOST\"\n| makeTimeseries concurrently_existing_hosts = count(), spread: lifetime\n```\n\n→ [references\u002Fiterative-expressions.md](references\u002Fiterative-expressions.md) for timeseries array manipulation\n\n______________________________________________________________________\n\n## Timeframe Specification\n\nAccess to data requires specification of a timeframe.\nIt can be specified in the UI, as REST API parameters, or in a DQL query explicitly using a pair of parameters: `from:` and `to:` (if one is omitted it defaults to `now()`), or alternatively using a single `timeframe:` parameter.\nTimeframe can be expressed using absolute values or relative expressions vs. current time. The time alignment operator (`@`) can be used to round timestamps to time unit boundaries — see [references\u002Foperators.md](references\u002Foperators.md) for full details.\n\n### Examples\n\n```dql-snippet\nfrom:now()-1h@h, to:now()@h     \u002F\u002F last complete hour\n```\n```dql-snippet\nfrom:now()-1d@d, to:now()@d     \u002F\u002F yesterday complete\n```\n```dql-snippet\nfrom:now()@M                    \u002F\u002F this month so far, till now\n```\n```dql-snippet\nfrom:now()-2h@h                 \u002F\u002F go back 2 hours, then align to hour boundary\n```\n\nSee [references\u002Foperators.md](references\u002Foperators.md) for the full `@` alignment-unit table (including `m` vs. `M`, week-day variants `w1`–`w7`, and factor rules like `@3h`).\n\n### Absolute timestamps\n\nUse ISO 8601 format:\n\n```dql-snippet\nfrom:\"2024-01-15T08:00:00Z\", to:\"2024-01-15T09:00:00Z\"\n```\n\n______________________________________________________________________\n\n## Modifying Time\n\n### Key concepts\n\n- DQL has 3 specialized types related to time:\n    - **timestamp** — internally kept as number of nanoseconds since epoch, but exposed as date\u002Ftime in a particular timezone\n    - **timeframe** — a pair of 2 timestamps (start and end)\n    - **duration** — internally kept as number of nanoseconds, but exposed as duration scaled to a reasonable factor (e.g. ms, minutes, days)\n\n### Rules\n\n- Subtracting timestamps yields a duration: `timestamp - timestamp → duration`\n- Duration divided by duration yields a double: e.g. `2h \u002F 1m` = `120.0`\n- Scalar times duration yields a duration: e.g. `no_of_h * 1h → duration`\n- For extraction of time elements (hours, days of month, etc):\n    - ✅ Use [time functions](references\u002Fdql\u002Fdql-functions-time.md). They support calendar and time zones properly including DST.\n    - ❌ Avoid using `formatTimestamp` for extracting time components.\n    - ❌ Avoid converting timestamps and durations to double\u002Flong and using division, modulo, and constants expressing time units as nanoseconds.\n\n## References\n\n- **[references\u002Fuseful-expressions.md](references\u002Fuseful-expressions.md)** — Useful expressions in DQL\n- **[references\u002Fsemantic-dictionary.md](references\u002Fsemantic-dictionary.md)** — Dynatrace Semantic Dictionary: field namespaces, data models, stability levels, query patterns, and best practices\n- **[references\u002Fsummarization.md](references\u002Fsummarization.md)** — Various applications of summarize and makeTimeseries commands\n- **[references\u002Fiterative-expressions.md](references\u002Fiterative-expressions.md)** — Array and timeseries manipulation (creation, modifications, use in filters) using DQL\n- **[references\u002Fsmartscape-topology-navigation.md](references\u002Fsmartscape-topology-navigation.md)** — Smartscape topology navigation syntax and patterns\n- **[references\u002Foptimization.md](references\u002Foptimization.md)** — DQL query optimization: making queries faster, more efficient, and cheaper to run (lower consumption \u002F scanned data per execution) — filter placement, bucket filters, time ranges, field selection, sampling, cardinality, and performance best practices\n- **[references\u002Foperators.md](references\u002Foperators.md)** — `in` operator (subquery syntax) and full `@` time alignment unit reference\n- **[references\u002Fdiscovery.md](references\u002Fdiscovery.md)** - Discovering data  \n","# DQL Essentials Skill\n\nDQL is a pipeline-based query language. Queries chain commands with `|` to filter, transform, and aggregate data. DQL has unique syntax that differs from SQL — load this skill before writing any DQL query.\n\n______________________________________________________________________\n\n## When to Load References\n\nBefore working on specific tasks, load the relevant reference:\n\n| Task                                                                          | Required Reading                                                                             |\n| ----------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- |\n| Discovering data | [references\u002Fdiscovery.md](references\u002Fdiscovery.md) |   \n| Field names, namespaces, data models, stability levels, query patterns        | [references\u002Fsemantic-dictionary.md](references\u002Fsemantic-dictionary.md)                       |\n| Query optimization — make a query faster \u002F more efficient \u002F cheaper, reduce consumption & scanned data (filter early, bucket filters, time ranges, field selection, sampling, cardinality) | [references\u002Foptimization.md](references\u002Foptimization.md)                                     |\n| Smartscape topology navigation for discovering relationships between entities | [references\u002Fsmartscape-topology-navigation.md](references\u002Fsmartscape-topology-navigation.md) |\n| `summarize` and `makeTimeseries` patterns (bucketing, calendar months)        | [references\u002Fsummarization.md](references\u002Fsummarization.md)                                   |\n| Array and timeseries manipulation (`arrayFilter`, `collectArray`, iterative)  | [references\u002Fiterative-expressions.md](references\u002Fiterative-expressions.md)                   |\n| Conditional logic (`if\u002Felse` chains), `coalesce`, string\u002Fdate helpers         | [references\u002Fuseful-expressions.md](references\u002Fuseful-expressions.md)                         |\n| `in` operator (subquery), full `@` time alignment unit table                  | [references\u002Foperators.md](references\u002Foperators.md)                                           |\n| `matchesValue`, `matchesPhrase`, `matchesPattern`, `in()` — string pattern matching, regex, array matching, wildcards, case sensitivity | [references\u002Fstring-matching.md](references\u002Fstring-matching.md)                               |\n\n______________________________________________________________________\n\n## DQL Reference Index\n\nUse this index to route from a function group (e.g. time functions, conversions) to its detailed spec, or from a function name to its spec file.\n\n| Description | Items |\n|-------------|-------|\n| [Data Types](references\u002Fdql\u002Fdql-data-types.md) | `array`, `binary`, `boolean`, `double`, `duration`, `long`, `record`, `string`, `timeframe`, `timestamp`, `uid` |\n| [Parameter Value Types](references\u002Fdql\u002Fdql-parameter-value-types.md) | `bucket`, `dataObject`, `dplPattern`, `entityAttribute`, `entitySelector`, `entityType`, `enum`, `executionBlock`, `expressionTimeseriesAggregation`, `expressionWithConstantValue`, `expressionWithFieldAccess`, `fieldPattern`, `filePattern`, `identifierForAnyField`, `identifierForEdgeType`, `identifierForFieldOnRootLevel`, `identifierForNodeType`, `joinCondition`, `jsonPath`, `metricKey`, `metricTimeseriesAggregation`, `namelessDplPattern`, `nonEmptyExecutionBlock`, `prefix`, `primitiveValue`, `simpleIdentifier`, `tabularFileExisting`, `tabularFileNew`, `url` |\n| [Commands](references\u002Fdql\u002Fdql-commands.md) | `append`, `data`, `dedup`, `describe`, `expand`, `fetch`, `fields`, `fieldsAdd`, `fieldsFlatten`, `fieldsKeep`, `fieldsRemove`, `fieldsRename`, `fieldsSnapshot`, `fieldsSummary`, `filter`, `filterOut`, `join`, `joinNested`, `limit`, `load`, `lookup`, `makeTimeseries`, `metrics`, `parse`, `search`, `smartscapeEdges`, `smartscapeNodes`, `sort`, `summarize`, `timeseries`, `traverse` |\n| [Functions — Aggregation](references\u002Fdql\u002Fdql-functions-aggregation.md) | `avg`, `collectArray`, `collectDistinct`, `correlation`, `count`, `countDistinct`, `countDistinctApprox`, `countDistinctExact`, `countIf`, `max`, `median`, `min`, `percentRank`, `percentile`, `percentileFromSamples`, `percentiles`, `stddev`, `sum`, `takeAny`, `takeFirst`, `takeLast`, `takeMax`, `takeMin`, `variance` |\n| [Functions — Array](references\u002Fdql\u002Fdql-functions-array.md) | `arrayAvg`, `arrayConcat`, `arrayCumulativeSum`, `arrayDelta`, `arrayDiff`, `arrayDistinct`, `arrayFirst`, `arrayFlatten`, `arrayIndexOf`, `arrayLast`, `arrayLastIndexOf`, `arrayMax`, `arrayMedian`, `arrayMin`, `arrayMovingAvg`, `arrayMovingMax`, `arrayMovingMin`, `arrayMovingSum`, `arrayPercentile`, `arrayRemoveNulls`, `arrayReverse`, `arraySize`, `arraySlice`, `arraySort`, `arraySum`, `arrayToString`, `vectorCosineDistance`, `vectorInnerProductDistance`, `vectorL1Distance`, `vectorL2Distance` |\n| [Functions — Bitwise](references\u002Fdql\u002Fdql-functions-bitwise.md) | `bitwiseAnd`, `bitwiseCountOnes`, `bitwiseNot`, `bitwiseOr`, `bitwiseShiftLeft`, `bitwiseShiftRight`, `bitwiseXor` |\n| [Functions — Boolean](references\u002Fdql\u002Fdql-functions-boolean.md) | `exists`, `in`, `isFalseOrNull`, `isNotNull`, `isNull`, `isTrueOrNull`, `isUid128`, `isUid64`, `isUuid` |\n| [Functions — Cast](references\u002Fdql\u002Fdql-functions-cast.md) | `asArray`, `asBinary`, `asBoolean`, `asDouble`, `asDuration`, `asIp`, `asLong`, `asNumber`, `asRecord`, `asSmartscapeId`, `asString`, `asTimeframe`, `asTimestamp`, `asUid` |\n| [Functions — Constant](references\u002Fdql\u002Fdql-functions-constant.md) | `e`, `pi` |\n| [Functions — Conversion](references\u002Fdql\u002Fdql-functions-conversion.md) | `toArray`, `toBoolean`, `toDouble`, `toDuration`, `toIp`, `toLong`, `toSmartscapeId`, `toString`, `toTimeframe`, `toTimestamp`, `toUid`, `toVariant` |\n| [Functions — Create](references\u002Fdql\u002Fdql-functions-create.md) | `array`, `duration`, `ip`, `record`, `smartscapeId`, `timeframe`, `timestamp`, `timestampFromUnixMillis`, `timestampFromUnixNanos`, `timestampFromUnixSeconds`, `uid128`, `uid64`, `uuid` |\n| [Functions — Cryptographic](references\u002Fdql\u002Fdql-functions-cryptographic.md) | `hashCrc32`, `hashMd5`, `hashSha1`, `hashSha256`, `hashSha512`, `hashXxHash32`, `hashXxHash64` |\n| [Functions — Entities](references\u002Fdql\u002Fdql-functions-entities.md) | `classicEntitySelector`, `entityAttr`, `entityName` |\n| [Functions — Time series aggregation for expressions](references\u002Fdql\u002Fdql-functions-expression-timeseries.md) | `avg`, `count`, `countDistinct`, `countDistinctApprox`, `countDistinctExact`, `countIf`, `end`, `max`, `median`, `min`, `percentRank`, `percentile`, `percentileFromSamples`, `start`, `sum` |\n| [Functions — Flow](references\u002Fdql\u002Fdql-functions-flow.md) | `coalesce`, `if` |\n| [Functions — General](references\u002Fdql\u002Fdql-functions-general.md) | `jsonField`, `jsonPath`, `lookup`, `parse`, `parseAll`, `type` |\n| [Functions — Get](references\u002Fdql\u002Fdql-functions-get.md) | `arrayElement`, `getEnd`, `getHighBits`, `getLowBits`, `getStart` |\n| [Functions — Iterative](references\u002Fdql\u002Fdql-functions-iterative.md) | `iAny`, `iCollectArray`, `iIndex` |\n| [Functions — Mathematical](references\u002Fdql\u002Fdql-functions-mathematical.md) | `abs`, `acos`, `asin`, `atan`, `atan2`, `bin`, `cbrt`, `ceil`, `cos`, `cosh`, `degreeToRadian`, `exp`, `floor`, `hexStringToNumber`, `hypotenuse`, `log`, `log10`, `log1p`, `numberToHexString`, `power`, `radianToDegree`, `random`, `range`, `round`, `signum`, `sin`, `sinh`, `sqrt`, `tan`, `tanh` |\n| [Functions — Network](references\u002Fdql\u002Fdql-functions-network.md) | `ipIn`, `ipIsLinkLocal`, `ipIsLoopback`, `ipIsPrivate`, `ipIsPublic`, `ipMask`, `isIp`, `isIpV4`, `isIpV6` |\n| [Functions — Smartscape](references\u002Fdql\u002Fdql-functions-smartscape.md) | `getNodeField`, `getNodeName` |\n| [Functions — String](references\u002Fdql\u002Fdql-functions-string.md) | `concat`, `contains`, `decodeBase16ToBinary`, `decodeBase16ToString`, `decodeBase64ToBinary`, `decodeBase64ToString`, `decodeUrl`, `encodeBase16`, `encodeBase64`, `encodeUrl`, `endsWith`, `escape`, `getCharacter`, `indexOf`, `lastIndexOf`, `levenshteinDistance`, `like`, `lower`, `matchesPattern`, `matchesPhrase`, `matchesRegex`, `matchesValue`, `punctuation`, `replacePattern`, `replaceString`, `splitByPattern`, `splitString`, `startsWith`, `stringLength`, `substring`, `trim`, `unescape`, `unescapeHtml`, `upper` |\n| [Functions — Time](references\u002Fdql\u002Fdql-functions-time.md) | `formatTimestamp`, `getDayOfMonth`, `getDayOfWeek`, `getDayOfYear`, `getHour`, `getMinute`, `getMonth`, `getSecond`, `getWeekOfYear`, `getYear`, `now`, `unixMillisFromTimestamp`, `unixNanosFromTimestamp`, `unixSecondsFromTimestamp` |\n| [Functions — Time series aggregation for metrics](references\u002Fdql\u002Fdql-functions-timeseries.md) | `avg`, `count`, `countDistinct`, `end`, `max`, `median`, `min`, `percentRank`, `percentile`, `start`, `sum` |\n\n______________________________________________________________________\n\n## Syntax Pitfalls\n\n| ❌ Wrong | ✅ Right | Issue |\n| --- | --- | --- |\n| `filter field in [\"a\", \"b\"]` | `filter in(field, {\"a\", \"b\"})` | `[` and `]` wrap sub-queries in DQL but do not wrap **static** array literals. Use `{}` or `array()` for static values. |\n| `filter: { in(field, [sub-query]) }` (e.g. in `timeseries filter:`) | `filter: { field in [sub-query] }` | `in()` does not accept execution blocks as arguments. When the right-hand side is a sub-query (execution block), use the `in` operator: `field in [execution block]`. |\n| `by: severity, status` | `by: {severity, status}` | List of fields must be grouped by curly braces in `by:` clauses (`summarize`, `makeTimeseries`, etc.). |\n| `contains(toLowercase(field), \"err\")` | `contains(field, \"err\", false)` | Don't wrap in `lower()` for case-insensitive matching. `contains()` has a built-in third positional `caseSensitive` parameter (default `true`). |\n| `filter name == \"*serv*9*\"` | `filter matchesValue(name, \"*serv*\") and matchesValue(name, \"*9*\")` | `==` does not support wildcards. `matchesValue()` supports `*` wildcards but only at the beginning and\u002For end of the pattern—split mid-string wildcard intent into multiple calls combined with `and`. |\n| `matchesValue(field, \"prod\")` on string field | `contains(field, \"prod\")` | Without wildcards, `matchesValue()` performs an exact (case-insensitive) match — it will not find `\"production\"`. Use `contains()` for substring matching (or `matchesValue(field, \"*prod*\")` for wildcard matching). |\n| `iAny(matchesValue(arr[], \"x\") OR matchesValue(arr[], \"y\"))` | `matchesValue(arr, {\"x\", \"y\"})` | `matchesValue` accepts an array field in the first param and an array literal `{}` in the second — no `iAny` or `[]` needed. The same applies when consolidating multiple `contains(f, x) OR contains(f, y)` on the same field: use `matchesValue(f, {\"*x*\", \"*y*\"})`. |\n| `iAny(matchesPhrase(arr[], \"phrase\"))` | `matchesPhrase(arr, \"phrase\")` | `matchesPhrase` iterates array fields natively — drop `iAny(` and `[]`. Note: the **second** parameter must be a static string; `matchesPhrase(f, array(\"a\",\"b\")[])` is a runtime error. |\n| `contains(field, \"pip\")` on a short or common token | `matchesPhrase(field, \"pip\")` | `contains` is a pure substring match — `\"pip\"` also fires on `\"pipenv\"`, `\"gripping\"`. `matchesPhrase` tokenizes the string and matches whole words only, giving fewer false positives. |\n| `iAny(in(lower(arr[]), array(\"a\", \"b\")))` | `matchesValue(arr, {\"a\", \"b\"}, caseSensitive: false)` | `matchesValue` is case-insensitive by default — no `lower()`, `in()`, or `iAny` wrapper needed. `caseSensitive: false` shown explicitly here only to mirror the intent of the `lower()` it replaces. |\n| `iAny(f1[] == \"a\" AND f2[] == \"b\")` iterating two separate arrays | `in(f1, \"a\") AND in(f2, \"b\")` | Multi-array `iAny` is **pairwise**, not a cross-product: element `i` of `f1[]` is tested against element `i` of `f2[]`. If the arrays differ in length the result is `null`. Use independent `in()` checks instead. See [references\u002Fiterative-expressions.md](references\u002Fiterative-expressions.md). |\n| `toLowercase(field)` | `lower(field)` | The function is `lower()`, not `toLowercase()`. Only type-casting functions use the `to` prefix (`toString()`, `toLong()`, etc.). |\n| `arrayAvg(field[])` or `arraySum(field[])` | `arrayAvg(field)` or `field[]` | `field[]` = element-wise iterative expression (array→array); `arrayAvg(field)` = collapse to scalar (array→single value). Never mix both — `arrayAvg(field[])` is semantically wrong. |\n| `my_field` after `lookup` or `join` | `lookup.my_field` \u002F `right.my_field` | `lookup` prefixes added fields with `lookup.` by default (configurable via `prefix:`). `join` prefixes right-side fields with `right.`. |\n| `substring(field, 0, 200)` | `substring(field, from: 0, to: 200)` | The first parameter (expression) is positional, but `from:` and `to:` are named optional parameters and must include their names. |\n| `filter host = \"A\"` | `filter host == \"A\"` | DQL uses `==` for equality comparison, not `=`. Single `=` is assignment (e.g., in `fieldsAdd`, summarize aliases). |\n| `fetch logs, from: toTimestamp('2026-01-01')` | `fetch logs, from: -24h` | `from:` \u002F `to:` accept duration literals (e.g., `-24h`, `-7d`) or `now()` expressions — not `toTimestamp()`. For absolute ranges use `timeframe: \"start\u002Fend\"` (ISO 8601). |\n| `filter log.level == \"ERROR\"` | `filter loglevel == \"ERROR\"` | Log severity field is `loglevel` (no dot) — `log.level` does not exist. |\n| `sort count() desc` | `` sort `count()` desc `` | Fields with special characters (like parentheses) must be wrapped in backticks. |\n| `length(field)` | `stringLength(field)` | DQL string length function is `stringLength` — there is no `length()`. |\n| `metrics dt.host.cpu.usage` | `timeseries avg(dt.host.cpu.usage)` | `metrics` loads metric metadata, not values — use `timeseries` for data. |\n| `join [...], on:{left.a.b == right.a.b}` | `` join [...], on:{left[`a.b`] == right[`a.b`]} `` | Dotted field names in join\u002Flookup conditions require bracket notation with backticks. |\n| `fieldsSummary` (no arguments) | `fieldsSummary field1, field2` | `fieldsSummary` requires at least one field parameter. |\n| `timeseries` with `percentile`\u002F`median`\u002F`percentRank` — no results | Add `rollup: avg` (or `min`\u002F`max`\u002F`sum`) to the `timeseries` command | These three functions **require `rollup:`** on gauge\u002Fcount metrics — without it the query silently returns empty. |\n| `summarize p95 = percentile(duration, 95, rollup: avg)` | `summarize p95 = percentile(duration, 95)` | `rollup:` is a **`timeseries`-only** parameter. The same-named aggregations in `summarize` over logs\u002Fspans\u002Fevents reject it with `UNKNOWN_PARAMETER_DEFINED`. Only add `rollup:` when aggregating a *metric* inside `timeseries`. |\n| `filter array.contains(field, \"v\")` or `arrayContains(field, \"v\")` | `filter in(field, {\"v\"})` | Neither function exists in DQL — both are hallucinated from Python\u002FJava\u002FSQL. `in()` already matches **array-typed** fields natively (e.g. `k8s.namespace.name` on `dt.davis.problems`): it returns true if any element of the needle matches any haystack element. See [references\u002Fiterative-expressions.md](references\u002Fiterative-expressions.md). |\n| `filter k8s.namespace.name == \"ns\"` where the field is array-typed | `filter in(k8s.namespace.name, {\"ns\"})` | `==` against an array-typed field matches **nothing** — it returns zero rows with no error, which reads as \"no data\" rather than a mistake. `k8s.*` fields are arrays on `dt.davis.problems`. Use `in()` for exact membership, or `matchesValue(field, {...})`. |\n| `parseJson(field)` or `extractJsonField(field, jsonPath: \"$.x\")` | `parse field, \"JSON:parsed\"` then `parsed[x]` | Neither function exists. JSON embedded in a string field is unpacked with the `parse` command and the `JSON` DPL matcher, then accessed with bracket notation. |\n| `filter hour(timestamp) == 4` \u002F `minute(timestamp)` | `filter getHour(timestamp) == 4` \u002F `getMinute(timestamp)` | There are no `hour()`\u002F`minute()` functions. The `get*` family returns **numbers**, so numeric comparison and ranges work. Do not substitute `formatTimestamp(timestamp, format: \"HH\")` — that returns a *string*, so `== 4` silently matches nothing. |\n| `fields fromRelationships, toRelationships, containerImageTag` on `dt.entity.*` | `describe dt.entity.\u003Ctype>` first, then select real fields | Classic entity objects do **not** expose the Entities REST API's attribute names. Field names must be discovered with `describe \u003CdataObject>`, not guessed from API payloads. |\n| `by: {bin(timestamp, 1h)}` then `` sort `bin(timestamp,1h)` `` | `by: {t = bin(timestamp, 1h)}` then `sort t` | DQL normalizes the auto-generated group-key name to `bin(timestamp, 1h)` — with a space after the comma, regardless of how the expression was written. A backticked reference that omits the space raises `FIELD_DOES_NOT_EXIST`. Always alias group keys. |\n| `fetch spans \\| ... by: {bin(timestamp, 1h)}` | `fetch spans \\| ... by: {t = bin(start_time, 1h)}` | `spans` has no `timestamp` field — its time fields are `start_time` and `end_time`. Referencing `timestamp` either errors or yields nulls depending on position. |\n| `` lookup [...], fields: {`dotted.name`} `` | `lookup [...], fields: {dotted.name}` | Do not backtick field names inside the `fields:` parameter of `lookup` — causes PARSE_ERROR. |\n| `data record(key: \"val\")` | `data record(key = \"val\")` | `record()` uses `=` for named fields, not `:` — `:` is for command parameters like `rollup:`. |\n| `getNodeField(dt.smartscape.host, \"tags\")[\"tag.key\"]` | `getNodeField(dt.smartscape.host, \"tags\")[tag.key]` | In this tag-map access pattern, bracket keys must use unquoted identifier syntax; quoted keys cause a parse error. |\n| `by: {dt.entity.host}` or `dt.entity.*` | `by: {dt.smartscape.host}` or `dt.smartscape.*` | `dt.entity.*` is **deprecated** — always use `dt.smartscape.*` in new queries. |\n\n______________________________________________________________________\n\n## Fetch Command → Data Model\n\nDQL queries start with `fetch \u003Cdata_object>` or `timeseries`. There is **no `fetch dt.metric`** — metrics use `timeseries`.\n\n| Fetch Command | Data Model | Key Fields \u002F Notes |\n|---------------|------------|--------------------|\n| `fetch spans` | Distributed tracing | `span.*`, `service.*`, `http.*`, `db.*`, `code.*`, `exception.*` |\n| `fetch logs` | Log events | `log.*`, `k8s.*`, `host.*` — message body is `content`, severity is `loglevel` (NOT `log.level`) |\n| `fetch events` | DAVIS \u002F infra events | `event.*`, `dt.smartscape.*` |\n| `fetch bizevents` | Business events | `event.*`, custom fields |\n| `fetch security.events` | Security events | `vulnerability.*`, `event.*` |\n| `fetch user.sessions` | RUM sessions | `dt.rum.*`, `browser.*`, `geo.*` |\n| `fetch user.events` | RUM individual events | page views, clicks, requests, errors |\n| `fetch user.replays` | Session replay recordings | |\n| `fetch application.snapshots` | Application snapshots | |\n| `fetch dt.davis.events` | Davis-detected events | |\n| `fetch dt.davis.problems` | Davis-detected problems | |\n| `timeseries avg(metric.key)` | Metrics | NOT `fetch` — hyphenated keys need backticks: `` timeseries sum(`my.metric-name`) `` |\n| `smartscapeNodes \"HOST\"` | Topology | NOT `fetch` — types: `HOST`, `SERVICE`, `K8S_CLUSTER`, etc. |\n\n`dt.entity.*` is deprecated — use `dt.smartscape.*` and `smartscapeNodes` for new queries.\n\nDiscover all available data objects: `fetch dt.system.data_objects | fields name, display_name, type`\n\n→ [references\u002Fsemantic-dictionary.md](references\u002Fsemantic-dictionary.md) for full field namespaces\n\n______________________________________________________________________\n\n## `samplingRatio` Parameter\n\n`fetch` supports a `samplingRatio:` parameter to reduce the volume of data read — useful for improving query performance on large datasets.\n\n```dql\nfetch spans, samplingRatio:100   \u002F\u002F reads ~1% of data\n```\n\n**Allowed values:** depend on the concrete data object and range from `1`, `10`, `100`, `1000`, `10000` to `100000`, the highest level only available for `logs` and `spans`.\n\n\nSampling is **hierarchical** for `spans`, `user.events` and `user.sessions`: a record included at a higher ratio (e.g. `100`) is guaranteed to also appear at lower ratios (e.g. `10`, `1`), but not vice versa. This means results at different ratios are  subsets of each other. All other non-metric data objects are sampled independently per record, so results at different ratios are not subsets.\n\nThe actual ratio applied is accessible via the `dt.system.sampling_ratio` field. Use it to extrapolate sampled counts back to true totals:\n\n```dql\nfetch logs, samplingRatio:10\n| summarize count_extrapolated = sum(dt.system.sampling_ratio)\n```\n______________________________________________________________________\n\n## Timeseries Aggregation Functions\n\nThe `timeseries` command supports only these aggregation functions:\n\n| Function | Description |\n|----------|-------------|\n| `sum` | Sum of metric data points per time slot |\n| `avg` | Average of metric data points per time slot |\n| `min` | Minimum of metric data points per time slot |\n| `max` | Maximum of metric data points per time slot |\n| `count` | Count of metric data points per time slot |\n| `percentile(metric, N)` | Nth percentile per time slot. **Requires `rollup:`** — see below. |\n| `median(metric)` | 50th percentile per time slot (= `percentile(metric, 50)`). **Requires `rollup:`**. |\n| `percentRank(metric, value)` | Percentile rank of a value per time slot. **Requires `rollup:`**. |\n| `countDistinct(metric)` | Approximate distinct count per time slot (cardinality metrics only; does NOT accept `rollup:`). |\n\nHelpers (use alongside an aggregation): `start()`, `end()`.\n\n**Not supported by `timeseries`:** `countIf`, `collectArray`, `stddev`, `variance`, `takeAny`, `takeFirst`, `takeLast` — use `summarize` or `makeTimeseries`.\n\n### The `rollup:` parameter\n\nMetrics are pre-aggregated at ingest time. `rollup:` controls how raw data points are combined per time slot. Required for `percentile`, `median`, `percentRank` — without it the query silently returns no results. `avg`\u002F`min`\u002F`max`\u002F`sum`\u002F`count` work without `rollup:`.\n\n`rollup:` is a **`timeseries`-only** parameter — it belongs to metric aggregations and nothing else. The identically-named aggregation functions available in `summarize` over event data (logs, spans, events) do **not** accept it: `summarize p95 = percentile(duration, 95, rollup: avg)` fails with `UNKNOWN_PARAMETER_DEFINED`. In `summarize`, use `percentile(field, N)` with no `rollup:`.\n\nSingle aggregation — `rollup:` at command level. Multiple aggregations in `{}` — `rollup:` must go **inside each function call** (command-level `rollup:` causes `UNKNOWN_PARAMETER_DEFINED`):\n\n```dql\ntimeseries p90 = percentile(dt.process.handles.file_descriptors_percent_used, 90), rollup: avg\n```\n\n```dql\ntimeseries {\n  p90 = percentile(dt.process.handles.file_descriptors_percent_used, 90, rollup: avg),\n  med = median(dt.process.handles.file_descriptors_percent_used, rollup: avg),\n  avg_val = avg(dt.process.handles.file_descriptors_percent_used)\n}, by: {dt.smartscape.host}\n```\n\nValues: `avg` (gauges), `min`, `max`, `sum` (counters), `total`.\n\n### Timeseries-to-scalar conversion\n\nThere are two ways to collapse a timeseries to a scalar. Prefer the `scalar:true` parameter when you only need the single aggregated value — it is more efficient because no array is materialized. Fall back to array functions when you need both the full series and a derived scalar in the same query.\n\n**Preferred: `scalar:true` on the aggregation function**\n\nPass `scalar:true` to any timeseries aggregation function. The result field contains a single value instead of an array, and no intermediate array is allocated:\n\n```dql\ntimeseries avg_cpu = avg(dt.host.cpu.usage, scalar:true), by:{dt.smartscape.host}\n```\n\n```dql\ntimeseries {\n  avg_cpu = avg(dt.host.cpu.usage, scalar:true),\n  max_cpu = max(dt.host.cpu.usage, scalar:true)\n}, by:{dt.smartscape.host}\n```\n\n**Fallback: array functions in `fieldsAdd`**\n\nWhen you need the full time series array alongside a derived scalar, use array functions in a subsequent `| fieldsAdd`:\n\n| Function | Description |\n|----------|-------------|\n| `arrayAvg(arr)` | Average of all values in the array |\n| `arraySum(arr)` | Sum of all values |\n| `arrayMin(arr)` | Minimum value |\n| `arrayMax(arr)` | Maximum value |\n| `arrayMedian(arr)` | Median value |\n| `arrayPercentile(arr, N)` | Nth percentile (0–100) |\n| `arrayLast(arr)` | Last non-null value (latest data point) |\n| `arrayFirst(arr)` | First non-null value (earliest data point) |\n\n```dql\ntimeseries cpu = avg(dt.host.cpu.usage), by:{dt.smartscape.host}\n| fieldsAdd avg_cpu = arrayAvg(cpu), max_cpu = arrayMax(cpu)\n```\n\n______________________________________________________________________\n\n## Time Alignment (@-operator)\n\nThe `@` operator aligns timestamps to a boundary — agents often get this wrong.\n\n| Expression   | Meaning                                                     |\n| ------------ | ----------------------------------------------------------- |\n| `now()@h`    | Current time, aligned to the hour boundary                  |\n| `now()@d`    | Midnight today                                              |\n| `now()@w1`   | Monday this week                                            |\n| `now()-2h@h` | 2 hours ago, aligned to the hour (offset first, then align) |\n\n**Rules:**\n\n- Order: offset before alignment — `now()-2h@h`, not `now()@h-2h`\n- No space between `@` and the unit — `now()@h` not `now() @h`\n- `m` = minutes, `M` = months — do not confuse them\n\n→ [references\u002Fdql\u002Fdql-functions-timeseries.md](references\u002Fdql\u002Fdql-functions-timeseries.md) for the full list of `timeseries` aggregations and `rollup:` rules\n→ [references\u002Fdql\u002Fdql-functions-array.md](references\u002Fdql\u002Fdql-functions-array.md) for `arrayAvg` \u002F `arrayMax` \u002F `arrayPercentile` \u002F … spec\n\n______________________________________________________________________\n\n## Entity & Smartscape Patterns\n\nEntity fields are scoped per type — `entity.id` does not exist. Use `smartscapeNodes` for topology queries.\n\n| Entity      | ID field in data             | `smartscapeNodes` type |\n| ----------- | ---------------------------- | ---------------------- |\n| Host        | `dt.smartscape.host`         | `\"HOST\"`               |\n| Service     | `dt.smartscape.service`      | `\"SERVICE\"`            |\n| Process     | `dt.smartscape.process`      | `\"PROCESS\"`            |\n| K8s cluster | `dt.smartscape.k8s_cluster`  | `\"K8S_CLUSTER\"`        |\n\nUse `toSmartscapeId()` for ID conversion from strings (required!).\n\n→ [references\u002Fsmartscape-topology-navigation.md](references\u002Fsmartscape-topology-navigation.md)\n\n______________________________________________________________________\n\n## makeTimeseries Command\n\n`makeTimeseries` builds a time-bucketed series from event data (logs, spans, bizevents). Unlike `timeseries` (which queries pre-ingested metrics), `makeTimeseries` aggregates data in a pipeline.\n\n**Do not pipe `timeseries` directly into `makeTimeseries`** — it fails with `INVALID_IMPLICIT_TIME_DEFAULT`. To re-aggregate metric data, use `start()` + expand (see [references\u002Fsummarization.md](references\u002Fsummarization.md)).\n\n```dql\nfetch logs\n| makeTimeseries\n    total = count(),\n    errors = countIf(loglevel == \"ERROR\"),\n    interval: 5m,\n    by: {k8s.cluster.name}\n| fieldsAdd error_rate = errors[] * 100.0 \u002F total[]\n```\n\nKey parameters: `interval:`, `by:{}`, `from:`\u002F`to:`, `bins:`, `time:` (timestamp field), `spread:` (for `count`\u002F`countIf` only), `nonempty:`.\n\n→ [references\u002Fsummarization.md](references\u002Fsummarization.md) for full `makeTimeseries` patterns and `summarize` bucketing\n→ [references\u002Fiterative-expressions.md](references\u002Fiterative-expressions.md) for timeseries array manipulation\n\n______________________________________________________________________\n\n## String Matching Functions\n\nDQL has four main functions for string and array pattern matching. See [references\u002Fstring-matching.md](references\u002Fstring-matching.md) for the full guide and quick-reference table.\n\n- **`matchesValue(field, {\"pattern*\", \"*other*\"})`** — wildcard matching (`*` at start\u002Fend). Accepts an array field in the first param and an array literal `{}` in the second — no `iAny` or `[]` needed. Case-insensitive by default (`caseSensitive: true` to enforce case-sensitive matching). Replaces `contains()` + `iAny` chains and `lower()` workarounds.\n- **`matchesPhrase(field, \"token\")`** — tokenizes the string and matches whole words, unlike `contains()` which is a bare substring match. First param accepts an array field natively; second param must be a **static string** (array unwrapping causes a runtime error).\n- **`in(field, array(\"a\", \"b\"))`** — set membership. Both params accept arrays, making it an overlap\u002Fintersection check.\n\n______________________________________________________________________\n\n## Chained Lookup Pattern\n\n\nEach `lookup` command without a `fields` parameter **removes all existing fields starting with the prefix (default: `lookup.`)** before adding new ones. When chaining multiple lookups, use `fields` parameter or custom prefixes to preserve the result:\n\n**Option 1 (default)**: the desired fields are known.\n```dql\nfetch bizevents\n\u002F\u002F Step 1: First lookup — enrich orders with product info\n| lookup [fetch bizevents\n    | filter event.type == \"product_catalog\"\n    | fields product_id, category],\n  sourceField: product_id, lookupField: product_id, fields: {product_id, product_category = category}\n\n\u002F\u002F Step 2: Second lookup — specify fields with a different name\n| lookup [fetch bizevents\n    | filter event.type == \"warehouse_stock\"\n    | fields category, warehouse_region],\n  sourceField: product_category, lookupField: category, fields: {warehouse_region, warehouse_category = category}\n\n```\nAll 4 lookup fields product_id, product_category, warehouse_region, and warehouse_category are available.\nWithout the `fields:{...}` parameter, the fields would be prefixed with `lookup.` and the second lookup command would delete the fields added by the first lookup.\n\n**Option 2**: keep all fields from the lookup.\n```dql\nfetch bizevents\n\u002F\u002F Step 1: First lookup — enrich orders with product info\n| lookup [fetch bizevents\n    | filter event.type == \"product_catalog\"\n    | fields product_id, category],\n  sourceField: product_id, lookupField: product_id, prefix: \"product.\"\n\n\u002F\u002F Step 2: Second lookup — specify fields with a different prefix\n| lookup [fetch bizevents\n    | filter event.type == \"warehouse_stock\"\n    | fields category, warehouse_region],\n  sourceField: product_category, lookupField: category, prefix: \"warehouse.\"\n\n```\nThe new fields are: `product.product_id`, `product.category`, `warehouse.category`, `warehouse.warehouse_region`.\nAll fields starting with `product.` or `warehouse.` are removed from the original source.\nWithout the dedicated `prefix`, both `lookup` commands would use the same prefix (`lookup.`) and the second `lookup` drops the first lookup's results — producing empty fields.\n\n______________________________________________________________________\n\n## makeTimeseries Command\n\n`makeTimeseries` builds a time-bucketed series from event data (logs, spans, bizevents). Unlike `timeseries` (which queries pre-ingested metrics), `makeTimeseries` aggregates data in a pipeline.\n\n**Do not pipe `timeseries` directly into `makeTimeseries`** — it fails with `INVALID_IMPLICIT_TIME_DEFAULT`. To re-aggregate metric data, use `start()` + expand (see [references\u002Fsummarization.md](references\u002Fsummarization.md)).\n\n```dql\nfetch logs\n| makeTimeseries\n    {total = count(),\n    errors = countIf(loglevel == \"ERROR\")},\n    interval: 5m,\n    by: {k8s.cluster.name}\n| fieldsAdd error_rate = errors[] * 100.0 \u002F total[]\n```\n\nKey parameters: `interval:`, `by:{}`, `from:`\u002F`to:`, `bins:`, `time:` (timestamp field), `spread:` (for `count`\u002F`countIf` only), `nonempty:`. → [references\u002Fdql\u002Fdql-commands.md](references\u002Fdql\u002Fdql-commands.md) for full spec.\n\nEntity existence timeline using `spread:`:\n\n```dql\nsmartscapeNodes \"HOST\"\n| makeTimeseries concurrently_existing_hosts = count(), spread: lifetime\n```\n\n→ [references\u002Fiterative-expressions.md](references\u002Fiterative-expressions.md) for timeseries array manipulation\n\n______________________________________________________________________\n\n## Timeframe Specification\n\nAccess to data requires specification of a timeframe.\nIt can be specified in the UI, as REST API parameters, or in a DQL query explicitly using a pair of parameters: `from:` and `to:` (if one is omitted it defaults to `now()`), or alternatively using a single `timeframe:` parameter.\nTimeframe can be expressed using absolute values or relative expressions vs. current time. The time alignment operator (`@`) can be used to round timestamps to time unit boundaries — see [references\u002Foperators.md](references\u002Foperators.md) for full details.\n\n### Examples\n\n```dql-snippet\nfrom:now()-1h@h, to:now()@h     \u002F\u002F last complete hour\n```\n```dql-snippet\nfrom:now()-1d@d, to:now()@d     \u002F\u002F yesterday complete\n```\n```dql-snippet\nfrom:now()@M                    \u002F\u002F this month so far, till now\n```\n```dql-snippet\nfrom:now()-2h@h                 \u002F\u002F go back 2 hours, then align to hour boundary\n```\n\nSee [references\u002Foperators.md](references\u002Foperators.md) for the full `@` alignment-unit table (including `m` vs. `M`, week-day variants `w1`–`w7`, and factor rules like `@3h`).\n\n### Absolute timestamps\n\nUse ISO 8601 format:\n\n```dql-snippet\nfrom:\"2024-01-15T08:00:00Z\", to:\"2024-01-15T09:00:00Z\"\n```\n\n______________________________________________________________________\n\n## Modifying Time\n\n### Key concepts\n\n- DQL has 3 specialized types related to time:\n    - **timestamp** — internally kept as number of nanoseconds since epoch, but exposed as date\u002Ftime in a particular timezone\n    - **timeframe** — a pair of 2 timestamps (start and end)\n    - **duration** — internally kept as number of nanoseconds, but exposed as duration scaled to a reasonable factor (e.g. ms, minutes, days)\n\n### Rules\n\n- Subtracting timestamps yields a duration: `timestamp - timestamp → duration`\n- Duration divided by duration yields a double: e.g. `2h \u002F 1m` = `120.0`\n- Scalar times duration yields a duration: e.g. `no_of_h * 1h → duration`\n- For extraction of time elements (hours, days of month, etc):\n    - ✅ Use [time functions](references\u002Fdql\u002Fdql-functions-time.md). They support calendar and time zones properly including DST.\n    - ❌ Avoid using `formatTimestamp` for extracting time components.\n    - ❌ Avoid converting timestamps and durations to double\u002Flong and using division, modulo, and constants expressing time units as nanoseconds.\n\n## References\n\n- **[references\u002Fuseful-expressions.md](references\u002Fuseful-expressions.md)** — Useful expressions in DQL\n- **[references\u002Fsemantic-dictionary.md](references\u002Fsemantic-dictionary.md)** — Dynatrace Semantic Dictionary: field namespaces, data models, stability levels, query patterns, and best practices\n- **[references\u002Fsummarization.md](references\u002Fsummarization.md)** — Various applications of summarize and makeTimeseries commands\n- **[references\u002Fiterative-expressions.md](references\u002Fiterative-expressions.md)** — Array and timeseries manipulation (creation, modifications, use in filters) using DQL\n- **[references\u002Fsmartscape-topology-navigation.md](references\u002Fsmartscape-topology-navigation.md)** — Smartscape topology navigation syntax and patterns\n- **[references\u002Foptimization.md](references\u002Foptimization.md)** — DQL query optimization: making queries faster, more efficient, and cheaper to run (lower consumption \u002F scanned data per execution) — filter placement, bucket filters, time ranges, field selection, sampling, cardinality, and performance best practices\n- **[references\u002Foperators.md](references\u002Foperators.md)** — `in` operator (subquery syntax) and full `@` time alignment unit reference\n- **[references\u002Fdiscovery.md](references\u002Fdiscovery.md)** - Discovering data  \n",{"name":5,"license":15,"description":7},"main","9836d94e88404aabb682086405c2aa9cba7657ac","plugins\u002Fdynatrace\u002Fskills\u002Fdt-dql-essentials",156,"https:\u002F\u002Fgithub.com\u002FCognitionAI\u002Fdevin-marketplace","https:\u002F\u002Fgithub.com\u002FCognitionAI","https:\u002F\u002Fcognition.ai\u002F","Makers of Devin, the AI software engineer.","2026-11-13 07:08:23",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add CognitionAI\u002Fdevin-marketplace --skill dt-dql-essentials",{"tool":39,"command":40},"bunx","bunx skills add CognitionAI\u002Fdevin-marketplace --skill dt-dql-essentials",{"tool":42,"command":43},"pnpm","pnpm dlx skills add CognitionAI\u002Fdevin-marketplace --skill dt-dql-essentials","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FCognitionAI\u002Fdevin-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fdynatrace\u002Fskills\u002Fdt-dql-essentials\u002FSKILL.md",true,[47,53,57,61,65,69,73,77,81,85,89,93,97,101,105,109,113,117,121,125,129,133,137,141,145,149,153,157,161,165,169,173,177],{"path":48,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":51,"sourceHtmlUrl":52},"references\u002Fdiscovery.md","REFERENCE","参考文档",2499,"https:\u002F\u002Fgithub.com\u002FCognitionAI\u002Fdevin-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fdynatrace\u002Fskills\u002Fdt-dql-essentials\u002Freferences\u002Fdiscovery.md",{"path":54,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":55,"sourceHtmlUrl":56},"references\u002Fdql\u002Fdql-commands.md",15752,"https:\u002F\u002Fgithub.com\u002FCognitionAI\u002Fdevin-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fdynatrace\u002Fskills\u002Fdt-dql-essentials\u002Freferences\u002Fdql\u002Fdql-commands.md",{"path":58,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":59,"sourceHtmlUrl":60},"references\u002Fdql\u002Fdql-data-types.md",1075,"https:\u002F\u002Fgithub.com\u002FCognitionAI\u002Fdevin-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fdynatrace\u002Fskills\u002Fdt-dql-essentials\u002Freferences\u002Fdql\u002Fdql-data-types.md",{"path":62,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":63,"sourceHtmlUrl":64},"references\u002Fdql\u002Fdql-functions-aggregation.md",8149,"https:\u002F\u002Fgithub.com\u002FCognitionAI\u002Fdevin-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fdynatrace\u002Fskills\u002Fdt-dql-essentials\u002Freferences\u002Fdql\u002Fdql-functions-aggregation.md",{"path":66,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":67,"sourceHtmlUrl":68},"references\u002Fdql\u002Fdql-functions-array.md",8257,"https:\u002F\u002Fgithub.com\u002FCognitionAI\u002Fdevin-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fdynatrace\u002Fskills\u002Fdt-dql-essentials\u002Freferences\u002Fdql\u002Fdql-functions-array.md",{"path":70,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":71,"sourceHtmlUrl":72},"references\u002Fdql\u002Fdql-functions-bitwise.md",2452,"https:\u002F\u002Fgithub.com\u002FCognitionAI\u002Fdevin-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fdynatrace\u002Fskills\u002Fdt-dql-essentials\u002Freferences\u002Fdql\u002Fdql-functions-bitwise.md",{"path":74,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":75,"sourceHtmlUrl":76},"references\u002Fdql\u002Fdql-functions-boolean.md",1868,"https:\u002F\u002Fgithub.com\u002FCognitionAI\u002Fdevin-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fdynatrace\u002Fskills\u002Fdt-dql-essentials\u002Freferences\u002Fdql\u002Fdql-functions-boolean.md",{"path":78,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":79,"sourceHtmlUrl":80},"references\u002Fdql\u002Fdql-functions-cast.md",2770,"https:\u002F\u002Fgithub.com\u002FCognitionAI\u002Fdevin-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fdynatrace\u002Fskills\u002Fdt-dql-essentials\u002Freferences\u002Fdql\u002Fdql-functions-cast.md",{"path":82,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":83,"sourceHtmlUrl":84},"references\u002Fdql\u002Fdql-functions-constant.md",395,"https:\u002F\u002Fgithub.com\u002FCognitionAI\u002Fdevin-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fdynatrace\u002Fskills\u002Fdt-dql-essentials\u002Freferences\u002Fdql\u002Fdql-functions-constant.md",{"path":86,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":87,"sourceHtmlUrl":88},"references\u002Fdql\u002Fdql-functions-conversion.md",3488,"https:\u002F\u002Fgithub.com\u002FCognitionAI\u002Fdevin-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fdynatrace\u002Fskills\u002Fdt-dql-essentials\u002Freferences\u002Fdql\u002Fdql-functions-conversion.md",{"path":90,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":91,"sourceHtmlUrl":92},"references\u002Fdql\u002Fdql-functions-create.md",3922,"https:\u002F\u002Fgithub.com\u002FCognitionAI\u002Fdevin-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fdynatrace\u002Fskills\u002Fdt-dql-essentials\u002Freferences\u002Fdql\u002Fdql-functions-create.md",{"path":94,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":95,"sourceHtmlUrl":96},"references\u002Fdql\u002Fdql-functions-cryptographic.md",1561,"https:\u002F\u002Fgithub.com\u002FCognitionAI\u002Fdevin-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fdynatrace\u002Fskills\u002Fdt-dql-essentials\u002Freferences\u002Fdql\u002Fdql-functions-cryptographic.md",{"path":98,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":99,"sourceHtmlUrl":100},"references\u002Fdql\u002Fdql-functions-entities.md",969,"https:\u002F\u002Fgithub.com\u002FCognitionAI\u002Fdevin-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fdynatrace\u002Fskills\u002Fdt-dql-essentials\u002Freferences\u002Fdql\u002Fdql-functions-entities.md",{"path":102,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":103,"sourceHtmlUrl":104},"references\u002Fdql\u002Fdql-functions-expression-timeseries.md",8732,"https:\u002F\u002Fgithub.com\u002FCognitionAI\u002Fdevin-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fdynatrace\u002Fskills\u002Fdt-dql-essentials\u002Freferences\u002Fdql\u002Fdql-functions-expression-timeseries.md",{"path":106,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":107,"sourceHtmlUrl":108},"references\u002Fdql\u002Fdql-functions-flow.md",906,"https:\u002F\u002Fgithub.com\u002FCognitionAI\u002Fdevin-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fdynatrace\u002Fskills\u002Fdt-dql-essentials\u002Freferences\u002Fdql\u002Fdql-functions-flow.md",{"path":110,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":111,"sourceHtmlUrl":112},"references\u002Fdql\u002Fdql-functions-general.md",2658,"https:\u002F\u002Fgithub.com\u002FCognitionAI\u002Fdevin-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fdynatrace\u002Fskills\u002Fdt-dql-essentials\u002Freferences\u002Fdql\u002Fdql-functions-general.md",{"path":114,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":115,"sourceHtmlUrl":116},"references\u002Fdql\u002Fdql-functions-get.md",1289,"https:\u002F\u002Fgithub.com\u002FCognitionAI\u002Fdevin-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fdynatrace\u002Fskills\u002Fdt-dql-essentials\u002Freferences\u002Fdql\u002Fdql-functions-get.md",{"path":118,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":119,"sourceHtmlUrl":120},"references\u002Fdql\u002Fdql-functions-iterative.md",769,"https:\u002F\u002Fgithub.com\u002FCognitionAI\u002Fdevin-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fdynatrace\u002Fskills\u002Fdt-dql-essentials\u002Freferences\u002Fdql\u002Fdql-functions-iterative.md",{"path":122,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":123,"sourceHtmlUrl":124},"references\u002Fdql\u002Fdql-functions-mathematical.md",8274,"https:\u002F\u002Fgithub.com\u002FCognitionAI\u002Fdevin-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fdynatrace\u002Fskills\u002Fdt-dql-essentials\u002Freferences\u002Fdql\u002Fdql-functions-mathematical.md",{"path":126,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":127,"sourceHtmlUrl":128},"references\u002Fdql\u002Fdql-functions-network.md",2851,"https:\u002F\u002Fgithub.com\u002FCognitionAI\u002Fdevin-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fdynatrace\u002Fskills\u002Fdt-dql-essentials\u002Freferences\u002Fdql\u002Fdql-functions-network.md",{"path":130,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":131,"sourceHtmlUrl":132},"references\u002Fdql\u002Fdql-functions-smartscape.md",710,"https:\u002F\u002Fgithub.com\u002FCognitionAI\u002Fdevin-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fdynatrace\u002Fskills\u002Fdt-dql-essentials\u002Freferences\u002Fdql\u002Fdql-functions-smartscape.md",{"path":134,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":135,"sourceHtmlUrl":136},"references\u002Fdql\u002Fdql-functions-string.md",12773,"https:\u002F\u002Fgithub.com\u002FCognitionAI\u002Fdevin-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fdynatrace\u002Fskills\u002Fdt-dql-essentials\u002Freferences\u002Fdql\u002Fdql-functions-string.md",{"path":138,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":139,"sourceHtmlUrl":140},"references\u002Fdql\u002Fdql-functions-time.md",4473,"https:\u002F\u002Fgithub.com\u002FCognitionAI\u002Fdevin-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fdynatrace\u002Fskills\u002Fdt-dql-essentials\u002Freferences\u002Fdql\u002Fdql-functions-time.md",{"path":142,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":143,"sourceHtmlUrl":144},"references\u002Fdql\u002Fdql-functions-timeseries.md",6911,"https:\u002F\u002Fgithub.com\u002FCognitionAI\u002Fdevin-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fdynatrace\u002Fskills\u002Fdt-dql-essentials\u002Freferences\u002Fdql\u002Fdql-functions-timeseries.md",{"path":146,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":147,"sourceHtmlUrl":148},"references\u002Fdql\u002Fdql-parameter-value-types.md",3291,"https:\u002F\u002Fgithub.com\u002FCognitionAI\u002Fdevin-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fdynatrace\u002Fskills\u002Fdt-dql-essentials\u002Freferences\u002Fdql\u002Fdql-parameter-value-types.md",{"path":150,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":151,"sourceHtmlUrl":152},"references\u002Fiterative-expressions.md",13394,"https:\u002F\u002Fgithub.com\u002FCognitionAI\u002Fdevin-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fdynatrace\u002Fskills\u002Fdt-dql-essentials\u002Freferences\u002Fiterative-expressions.md",{"path":154,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":155,"sourceHtmlUrl":156},"references\u002Foperators.md",5844,"https:\u002F\u002Fgithub.com\u002FCognitionAI\u002Fdevin-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fdynatrace\u002Fskills\u002Fdt-dql-essentials\u002Freferences\u002Foperators.md",{"path":158,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":159,"sourceHtmlUrl":160},"references\u002Foptimization.md",18866,"https:\u002F\u002Fgithub.com\u002FCognitionAI\u002Fdevin-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fdynatrace\u002Fskills\u002Fdt-dql-essentials\u002Freferences\u002Foptimization.md",{"path":162,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":163,"sourceHtmlUrl":164},"references\u002Fsemantic-dictionary.md",11163,"https:\u002F\u002Fgithub.com\u002FCognitionAI\u002Fdevin-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fdynatrace\u002Fskills\u002Fdt-dql-essentials\u002Freferences\u002Fsemantic-dictionary.md",{"path":166,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":167,"sourceHtmlUrl":168},"references\u002Fsmartscape-topology-navigation.md",20058,"https:\u002F\u002Fgithub.com\u002FCognitionAI\u002Fdevin-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fdynatrace\u002Fskills\u002Fdt-dql-essentials\u002Freferences\u002Fsmartscape-topology-navigation.md",{"path":170,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":171,"sourceHtmlUrl":172},"references\u002Fstring-matching.md",6298,"https:\u002F\u002Fgithub.com\u002FCognitionAI\u002Fdevin-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fdynatrace\u002Fskills\u002Fdt-dql-essentials\u002Freferences\u002Fstring-matching.md",{"path":174,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":175,"sourceHtmlUrl":176},"references\u002Fsummarization.md",8798,"https:\u002F\u002Fgithub.com\u002FCognitionAI\u002Fdevin-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fdynatrace\u002Fskills\u002Fdt-dql-essentials\u002Freferences\u002Fsummarization.md",{"path":178,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":179,"sourceHtmlUrl":180},"references\u002Fuseful-expressions.md",691,"https:\u002F\u002Fgithub.com\u002FCognitionAI\u002Fdevin-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fdynatrace\u002Fskills\u002Fdt-dql-essentials\u002Freferences\u002Fuseful-expressions.md",[182,189,196,202,209,216],{"skillNo":183,"name":184,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":185,"licenseFileUrl":6,"sourceHtmlUrl":186,"categories":187,"keywords":188,"publishedAt":19},"01M7BYC4AJGM98P2G9JH7QS24Z","business-data","MIT","https:\u002F\u002Fgithub.com\u002FCognitionAI\u002Fdevin-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fwindsor-ai\u002Fskills\u002Fbusiness-data\u002FSKILL.md",[],[],{"skillNo":190,"name":191,"nameZh":6,"description":192,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":185,"licenseFileUrl":6,"sourceHtmlUrl":193,"categories":194,"keywords":195,"publishedAt":19},"01M7BYBZ0CD4CBCPZHRZ551BNK","workflow","Creates durable, resumable workflows using Vercel's Workflow SDK. Use when building workflows that need to survive restarts, pause for external events, retry on failure, or coordinate multi-step operations over time. Triggers on mentions of \"workflow\", \"durable functions\", \"resumable\", \"workflow sdk\", \"queue\", \"event\", \"push\", \"subscribe\", or step-based orchestration.","https:\u002F\u002Fgithub.com\u002FCognitionAI\u002Fdevin-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fvercel\u002Fskills\u002Fworkflow\u002Fupstream\u002FSKILL.md",[],[],{"skillNo":197,"name":191,"nameZh":6,"description":198,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":185,"licenseFileUrl":6,"sourceHtmlUrl":199,"categories":200,"keywords":201,"publishedAt":19},"01M7BYB1XSZHKHD8JZTQJ62JN0","Vercel Workflow SDK expert guidance. Use when building durable workflows, long-running tasks, API routes or agents that need pause\u002Fresume, retries, step-based execution, or crash-safe orchestration with Vercel Workflow.","https:\u002F\u002Fgithub.com\u002FCognitionAI\u002Fdevin-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fvercel\u002Fskills\u002Fworkflow\u002FSKILL.md",[],[],{"skillNo":203,"name":204,"nameZh":6,"description":205,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":185,"licenseFileUrl":6,"sourceHtmlUrl":206,"categories":207,"keywords":208,"publishedAt":19},"01M7BYASGMK935J33E21N5WTW0","verification","Full-story verification — infers what the user is building, then verifies the complete flow end-to-end: browser → API → data → response. Triggers on dev server start and 'why isn't this working' signals.","https:\u002F\u002Fgithub.com\u002FCognitionAI\u002Fdevin-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fvercel\u002Fskills\u002Fverification\u002FSKILL.md",[],[],{"skillNo":210,"name":211,"nameZh":6,"description":212,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":185,"licenseFileUrl":6,"sourceHtmlUrl":213,"categories":214,"keywords":215,"publishedAt":19},"01M7BY9WJERKSKEH9HK6E71GW2","vercel-storage","Vercel storage expert guidance — Blob, Global Config (formerly Edge Config), and Marketplace storage (Neon Postgres, Upstash Redis). Use when choosing, configuring, or using data storage with Vercel applications.","https:\u002F\u002Fgithub.com\u002FCognitionAI\u002Fdevin-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fvercel\u002Fskills\u002Fvercel-storage\u002FSKILL.md",[],[],{"skillNo":217,"name":218,"nameZh":6,"description":219,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":185,"licenseFileUrl":6,"sourceHtmlUrl":220,"categories":221,"keywords":222,"publishedAt":19},"01M7BY9N034894YV2J9DCRZHYS","vercel-services","Configure and troubleshoot Vercel Services for multiple frontends and backends in one project. Use when composing a polyglot or multi-service application on one Vercel deployment; defining the `services` key, service-targeted rewrites, or service bindings in `vercel.json`; or running all services with `vercel dev`.","https:\u002F\u002Fgithub.com\u002FCognitionAI\u002Fdevin-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fvercel\u002Fskills\u002Fvercel-services\u002FSKILL.md",[],[]]