feat: add agentic traffic endpoints to fetch PG data | LLMO-4000#2178
Merged
feat: add agentic traffic endpoints to fetch PG data | LLMO-4000#2178
Conversation
This commit introduces a new controller for handling agentic traffic data, including KPIs, trends, and various filters. The following endpoints have been added: - GET /sites/:siteId/agentic-traffic/kpis - GET /sites/:siteId/agentic-traffic/kpis-trend - GET /sites/:siteId/agentic-traffic/by-region - GET /sites/:siteId/agentic-traffic/by-category - GET /sites/:siteId/agentic-traffic/by-page-type - GET /sites/:siteId/agentic-traffic/by-status - GET /sites/:siteId/agentic-traffic/by-user-agent - GET /sites/:siteId/agentic-traffic/by-url - GET /sites/:siteId/agentic-traffic/filter-dimensions - GET /sites/:siteId/agentic-traffic/weeks - GET /sites/:siteId/agentic-traffic/movers Additionally, a new test suite has been added to ensure the functionality of these endpoints. The implementation includes access validation and error handling for improved robustness.
|
This PR will trigger a minor release when merged. |
This commit expands the agentic traffic API by adding several new endpoints for site-scoped data retrieval. The following endpoints have been introduced: - GET /sites/:siteId/agentic-traffic/kpis - GET /sites/:siteId/agentic-traffic/kpis-trend - GET /sites/:siteId/agentic-traffic/by-region - GET /sites/:siteId/agentic-traffic/by-category - GET /sites/:siteId/agentic-traffic/by-page-type - GET /sites/:siteId/agentic-traffic/by-status - GET /sites/:siteId/agentic-traffic/by-user-agent - GET /sites/:siteId/agentic-traffic/by-url - GET /sites/:siteId/agentic-traffic/filter-dimensions - GET /sites/:siteId/agentic-traffic/weeks - GET /sites/:siteId/agentic-traffic/movers These endpoints are intended for UI use and are not yet required for server-to-server interactions.
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
vivesing
approved these changes
Apr 14, 2026
solaris007
pushed a commit
that referenced
this pull request
Apr 14, 2026
# [1.437.0](v1.436.12...v1.437.0) (2026-04-14) ### Features * add agentic traffic endpoints to fetch PG data | LLMO-4000 ([#2178](#2178)) ([32ca5e0](32ca5e0))
Member
|
🎉 This PR is included in version 1.437.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Introduces a new llmo-agentic-traffic controller with 11 site-scoped GET endpoints that query mysticat-data-service via PostgREST, powering the new Postgres-backed Agentic Traffic dashboard.
/filter-dimensions (parallel distinct-value queries) and /weeks (min/max date → ISO week list)
New routes:
GET /sites/:siteId/agentic-traffic/kpis
GET /sites/:siteId/agentic-traffic/kpis-trend
GET /sites/:siteId/agentic-traffic/by-region
GET /sites/:siteId/agentic-traffic/by-category
GET /sites/:siteId/agentic-traffic/by-page-type
GET /sites/:siteId/agentic-traffic/by-status
GET /sites/:siteId/agentic-traffic/by-user-agent
GET /sites/:siteId/agentic-traffic/by-url
GET /sites/:siteId/agentic-traffic/filter-dimensions
GET /sites/:siteId/agentic-traffic/weeks
GET /sites/:siteId/agentic-traffic/movers
Please ensure your pull request adheres to the following guidelines:
describe here the problem you're solving.
If the PR is changing the API specification:
yet. Ideally, return a 501 status code with a message explaining the feature is not implemented yet.
If the PR is changing the API implementation or an entity exposed through the API:
If the PR is introducing a new audit type:
Related Issues
LLMO-4000