Skip to content

Commit 54f7cb2

Browse files
authored
Adjust description and limit + indentation of example queries
1 parent f0dc7bc commit 54f7cb2

File tree

1 file changed

+21
-16
lines changed

1 file changed

+21
-16
lines changed

src/content/changelog/dns/2025-06-23-account-level-dns-analytics-api.mdx

Lines changed: 21 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,24 +8,29 @@ Authoritative DNS analytics are now available on the **account level** via the [
88

99
This allows users to query DNS analytics across multiple zones in their account, by using the `accounts` filter.
1010

11-
Here is an example to retrieve all DNS queries across all zones in an account that resulted in an `NXDOMAIN` response over a given time frame. Please replace `a30f822fcd7c401984bf85d8f2a5111c` with your actual account ID.
11+
Here is an example to retrieve the most recent DNS queries across all zones in your account that resulted in an `NXDOMAIN` response over a given time frame. Please replace `a30f822fcd7c401984bf85d8f2a5111c` with your actual account ID.
1212

1313
```graphql graphql-api-explorer title="GraphQL example for account-level DNS analytics"
14-
query Viewer {
15-
viewer {
16-
accounts(filter: { accountTag: "a30f822fcd7c401984bf85d8f2a5111c" }) {
17-
dnsAnalyticsAdaptive(
18-
filter: { date_geq: "2025-06-16", responseCode: "NXDOMAIN", date_leq: "2025-06-18" }
19-
orderBy: [datetime_DESC]
20-
) {
21-
zoneTag
22-
queryName
23-
responseCode
24-
queryType
25-
datetime
26-
}
27-
}
28-
}
14+
query GetLatestNXDOMAINResponses {
15+
viewer {
16+
accounts(filter: { accountTag: "a30f822fcd7c401984bf85d8f2a5111c" }) {
17+
dnsAnalyticsAdaptive(
18+
filter: {
19+
date_geq: "2025-06-16",
20+
date_leq: "2025-06-18",
21+
responseCode: "NXDOMAIN"
22+
}
23+
limit: 10000
24+
orderBy: [datetime_DESC]
25+
) {
26+
zoneTag
27+
queryName
28+
responseCode
29+
queryType
30+
datetime
31+
}
32+
}
33+
}
2934
}
3035
```
3136

0 commit comments

Comments
 (0)