Skip to content

v0.2.2 — Fix SDK endpoint paths and histogram config

Choose a tag to compare

@ancoleman ancoleman released this 07 Apr 19:32
· 4 commits to main since this release

Fixed

  • get_agent_sessions() — was hitting query/users/other/session_list instead of query/users/agent/session_list, returning wrong user type's sessions
  • get_risky_user_count() — was hitting query/agent/risky_user_count (missing users/ prefix) for agent type, causing 400 errors
  • get_user_count_histogram() — was missing required histogram config in request body and using wrong agent endpoint, causing 400 errors
  • get_site_bandwidth() — was missing required histogram config in request body, causing 400 errors for all SDK callers (CLI worked because it added histogram config directly)

Changed

  • get_user_count_histogram() and get_site_bandwidth() now accept an optional interval parameter (default: 30 minutes) for histogram granularity

Install

pip install pan-insights-sdk==0.2.2

Full Changelog: v0.2.1...v0.2.2