feat(FDSE-3324): add directory and usage modular inputs - #48
Open
Arthur-10-coder wants to merge 1 commit into
Open
feat(FDSE-3324): add directory and usage modular inputs#48Arthur-10-coder wants to merge 1 commit into
Arthur-10-coder wants to merge 1 commit into
Conversation
Implements the official solution approved by Ashley Hoang and Erica Pescio:
- users_directory: GET /api/v2/users snapshot (genesyscloud:directory:users)
- queues_directory: GET /api/v2/routing/queues snapshot (genesyscloud:directory:queues)
- usage_events: POST /api/v2/usage/events/query (genesyscloud:usage:events)
- org_usage: POST /api/v2/usage/aggregates/query/jobs (genesyscloud:usage:organization)
- oauth_client_usage: POST /api/v2/usage/client/{id}/aggregates/query/jobs (genesyscloud:usage:oauth_clients)
The usage inputs replace the deprecated POST /api/v2/usage/query endpoints
scheduled for removal on Oct 16, 2026. Directory inputs use daily snapshots
(86400s interval) to provide lookup-compatible ID-to-name correlation data.
Ref: https://splunk.atlassian.net/browse/FDSE-3324
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.
Summary
users_directory,queues_directory,usage_events,org_usage, andoauth_client_usagePOST /api/v2/usage/queryandPOST /api/v2/oauth/clients/{clientId}/usage/queryendpoints (removal deadline: Oct 16, 2026)Context
Jira: https://splunk.atlassian.net/browse/FDSE-3324
Customer: Hydro One — needs user/queue ID correlation in Splunk dashboards
Approach approved by: @epescio (Erica Pescio), @ahoang (Ashley Hoang)
Changes
globalConfig.jsonpackage/bin/users_directory_helper.pyGET /api/v2/users→ sourcetypegenesyscloud:directory:userspackage/bin/queues_directory_helper.pyGET /api/v2/routing/queues→ sourcetypegenesyscloud:directory:queuespackage/bin/usage_events_helper.pyPOST /api/v2/usage/events/query→ sourcetypegenesyscloud:usage:eventspackage/bin/org_usage_helper.pyPOST /api/v2/usage/aggregates/query/jobs→ sourcetypegenesyscloud:usage:organizationpackage/bin/oauth_client_usage_helper.pyPOST /api/v2/usage/client/{id}/aggregates/query/jobs→ sourcetypegenesyscloud:usage:oauth_clientsTechnical Notes
genesyscloud_client.py)users:readonly,routing:readonly,usage:readonlyFollow-up (separate PR)
| genesysusers,| genesysqueues) will be added togenesys_cloud_app_for_splunk— these live in the App, not the TA, per architectural decision with EricaTest plan
python3 -c "import py_compile; py_compile.compile('file.py', doraise=True)"— all new files pass syntax checkucc-gen build— verify globalConfig.json produces valid output