-
Notifications
You must be signed in to change notification settings - Fork 467
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(content analytics) fixes #30521 : Allow users to pass down simpl…
…e Strings to query for Content Analytics data (#30847) ### Proposed Changes * This code change allows users to pass down simple Strings to query for Content Analytics data. * Considering the formatting of different values, a special notation must be used to specify certain parameters in the URL path. * You can do a POST REST call using a JSON body like this one: ```json { "measures": "request.count request.totalSessions", "dimensions": "request.host request.whatAmI request.url", "timeDimensions": "request.createdAt:day:Last month", "filters": "request.totalRequest gt 0:request.whatAmI contains PAGE,FILE", "order": "request.count asc:request.createdAt asc", "limit": 5, "offset": 0 } ``` The following must be taken into account when putting a query together: * Measures: Values are separated by blank spaces: `request.count request.totalSessions` * Dimensions: Values are separated by blank spaces: `request.host request.whatAmI request.url` * Time Dimensions: Values are separated by colons: `request.createdAt:day:This month` . The second parameter 'day' -- the "granularity" parameter -- is optional. * Filters: Values are separated by colons: `request.totalRequest gt 0:request.whatAmI contains PAGE,FILE` . In this case, you're filtering by the number of requests, and the type of object being queried: Pages and Files. * Order: Values are separated by colon: `request.count asc:request.createdAt asc` * Limit: Value is provided as is: `50` * Offset: Value is provided as is: `0`
- Loading branch information
1 parent
f274db5
commit 6d24366
Showing
3 changed files
with
56 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters