Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(content analytics) fixes #30521 : Allow users to pass down simple Strings to query for Content Analytics data #30811

Conversation

jcastro-dotcms
Copy link
Contributor

@jcastro-dotcms jcastro-dotcms commented Nov 29, 2024

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.
  • For a REST call like this one: {{serverURL}}/api/v1/analytics/content/query/measures/request.count request.totalSessions/dimensions/request.host request.whatAmI request.url/timeDimensions/request.createdAt:day:This 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:
    • Measures: Values are separated by blank spaces: /measures/request.count request.totalSessions
    • Dimensions: Values are separated by blank spaces: /dimensions/request.host request.whatAmI request.url
    • Time Dimensions: Values are separated by colons: /timeDimensions/request.createdAt:day:This month . The second parameter 'day' -- the "granularity" parameter -- is optional.
    • Filters: Values are separated by colons: /filters/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: /order/request.count asc:request.createdAt asc
    • Limit: Value is provided as is: /limit/50
    • Offset: Value is provided as is: /offset/0

…e Strings to query for Content Analytics data
@jcastro-dotcms jcastro-dotcms marked this pull request as ready for review November 29, 2024 20:16
@jcastro-dotcms jcastro-dotcms changed the title Initial code changes feat(content analytics) fixes #30521 : Allow users to pass down simple Strings to query for Content Analytics data Nov 29, 2024
@jdotcms jdotcms enabled auto-merge November 29, 2024 21:01
auto-merge was automatically disabled December 3, 2024 22:06

Pull request was closed

@jcastro-dotcms
Copy link
Contributor Author

Closing PR as the branch name has a single quote in the word doesn't. This is causing some GHAs to fail.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants