Odin's Spear
  • Welcome
  • Getting Started
    • Getting the Essentials
    • Create API Object
  • API Coverage
  • Docs
    • API Object
    • Standard Methods
      • Session
        • GET - Session
        • POST - Session Logout
        • POST - Session
        • POST - Switch Session
        • PUT - Change Password
        • PUT - My Password
        • PUT - Password
        • PUT - Session
      • Administrators
        • POST - Service Provider Admin
        • PUT - Service Provider Admin Policies
        • POST - Group Admin Polices Bulk
        • POST - Group Admin
      • Alternate Numbers
        • GET - User Alternate Numbers
      • Authentication
        • GET - User Authentication Service
        • PUT - User Web Authentication Password
        • PUT - User Authentication Service
      • Auto Attendants
        • GET - Auto Attendants
        • POST - Auto Attendant
        • GET - Auto Attendant
        • GET - Auto Attendant User
        • POST - Auto Attendant Remove User
        • PUT - Auto Attendant
        • DELETE - Auto Attendant
        • GET - Auto Attendant Submenus
        • POST - Auto Attendant Submenu
        • GET - Auto Attendant Submenu Usage
        • PUT - Auto Attendant Submenu
        • PUT - Auto Attendant Status
        • DELETE - Auto Attendant Submenu
      • Call Centers
        • GET - Group Call Center
        • PUT - Group Call Center
        • GET - Group Call Centers
        • PUT - Group Call Center Agents
        • PUT - Group Call Center Agents Levels
        • GET - Group Call Center Bounced Calls
        • PUT - Group Call Center Bounced Call
        • PUT - Group Call Center DNIS Instance
        • GET - Group Call Center Forced Forwarding
        • PUT - Group Call Center Forced Forwarding
        • GET - Group Call Center Overflow
        • PUT - Group Call Center Overflow
        • GET - Group Call Center Stranded Calls
        • GET - Group Call Center Stranded Calls Unavailable
        • PUT - Group Call Center Status
        • PUT - Group Call Center Stranded Calls
        • PUT - Group Call Center Stranded Calls Unavailable
        • GET - User Call Center
        • PUT - User Call Center
        • PUT - User Call Center Agent Sign Out
        • PUT - User Call Center Agents Update
        • PUT - User Call Center Supervised Agents
      • Call Forwarding Always
        • GET - Bulk Call Forwarding Always
        • GET - User Call Forwarding Always
      • Call Forwarding Busy
        • GET - Bulk Call Forwarding Busy
        • GET - User Call Forwarding Busy
      • Call Forwarding No Answer
        • GET - Bulk User Call Forwarding No Answer
        • GET - User Call Forwarding No Answer
      • Call Forwarding Not Reachable
        • GET - Bulk User Call Forwarding Not Reachable
        • GET - User Call Forwarding Not Reachable
      • Call Forwarding Selective
        • GET - User Call Forwarding Selective
        • GET - User Call Forwarding Selective Criteria
        • GET - User Call Forwarding Selective Criterias
      • Call Pickup
        • GET - Call Pickup Avilable User
        • GET - Call Pickup Group User
        • GET - Call Pickup Groups
        • GET - Call Pickup Group
        • POST - Call Pickup Group
        • PUT - Call Pickup Group
        • DELETE - Call Pickup Group
      • Call Processing Policies
        • PUT - User Call Processing Policy
      • Call Records
        • GET - User Stats
      • Devices
        • POST - Group Device
        • PUT - Group Devices
        • PUT - Group Device File
        • PUT - Group Device Tag
        • PUT - Group Device Type File
        • PUT - Group Device Tags Profile
        • PUT - Group Device Type Tag
        • PUT - Service Provider Device
        • PUT - Service Provider Device File
        • PUT - Service Provider Device Tag
        • PUT - Service Provider Device Type Tag
        • PUT - System Devices
        • PUT - System Device File
        • PUT - System Device Tag
      • DNs
        • GET - Group DNs
        • POST - Group DNs
        • DELETE - Group DNs
        • PUT - Group DNs Activate
        • POST - Group DNs Assign Bulk
        • GET - Group DN Details
        • GET - Group DN Search
        • POST - Group DNs Unassign Bulk
        • GET - Service Provider DNs
        • POST - Service Provider DNs
        • GET - Service Provider DN Search
        • DELETE - Service Provider DNs
        • GET - System DNs
        • GET - System DN Search
        • GET - System DN Summary
        • GET - System DN Utilisation
      • Do Not Disturb
        • GET - User Do Not Disturb
        • PUT - User Do Not Disturb
      • Emergency Zones
        • POST - Group Emergency Zones
        • PUT - Group Emergency Zones
      • Extensions
        • GET - Extensions
        • PUT - Extensions
      • Groups
        • GET - Group Information
        • POST - Create Group
        • PUT - Update Group
        • DELETE - Delete Group
        • GET - Service Provider Groups
      • Hunt Groups
        • GET - Group Hunt Groups
        • GET - Group Hunt Group
        • POST - Group Hunt Group
        • PUT - Group Hunt Group
        • DELETE - Group Hunt Group
        • GET - Group Hunt Groups Available Users
        • PUT - Group Hunt Groups Status
        • GET - Group Hunt Group User
        • PUT - Group Hunt Group Weighted Call Distribution
        • POST - Group Hunt Groups Remove User
      • Password Generate
        • GET - Password Generate
        • GET - Passwords Generate
        • GET - Passcode Generate
        • GET - Passcodes Generate
        • GET - SIP Password Generate
        • GET - SIP Passwords Generate
      • Registration
        • GET - User Registration
        • GET - Bulk User Registration
      • Reports
        • GET - User Report
      • Schedules
        • GET - Group Schedules
        • GET - Group Events
      • Service Providers
        • GET - Service Provider
        • GET - Service Providers
      • Services
        • GET - Group Services
        • GET - Group Services Assigned
        • GET - User-Services
        • PUT - User Services
        • GET - User Services Assigned
        • GET - User Service Settings
        • PUT - User Service Settings
      • Shared Call Appearance
        • GET - User Shared Call Appearance
        • GET - User Shared Call Appearance Bulk
        • GET - User Shared Call Appearance Endpoint
        • PUT - User Shared Call Appearance
        • PUT - User Shared Call Appearance Endpoint
        • POST - User Shared Call Appearance Endpoint
        • DELETE - User Shared Call Appearance Endpoint
      • Trunk Groups
        • GET - Group Trunk Group
        • GET - Group Trunk Groups
        • GET - Group Trunk Groups Call Capacity
        • GET - Service Provider Call Capacity Report
        • GET - Group Trunk Available Hosted Users
        • GET - Group Trunk Group Users
        • GET - Group Trunk Available Hosted Users
        • GET - Service Providers Trunk Call Capacity Report Show
        • POST - Group Trunk Group
        • PUT - Group Trunk Groups Call Capacity
        • PUT - Group Trunk Group
        • PUT - Service Provider Trunk Group Call Capacity
        • DELETE - Group Trunk Group
      • User
        • GET - User By ID
        • GET - Users
        • GET - Group User Audit
        • GET - User Audit
        • GET - User Password
        • PUT - User ID
        • PUT - User SIP Contacts
        • POST - User
        • PUT - User
        • DELETE - User
        • PUT - User ID
        • PUT - Users Bulk
        • PUT - User Group ID Update
        • GET - User Login Info
        • GET - User Portal Passcode
        • PUT - User Portal Passcode
        • POST - User Reset
      • Voice Messaging
        • GET - Group Voice Messaging
        • GET - Group Voice Messaging Portal
        • GET - User Voice Messaging Advanced
        • GET - User Voice Messaging Bulk
        • GET - User Voice Messaging Greetings
        • GET - User Voice Messaging Message Details
        • GET - User Voice Messaging Message Download
        • GET - User Voice Messaging Messages
        • GET - User Voice Messaging User Distribution List
        • GET - User Voice Messaging User Distribution Lists
        • GET - User Voice Messaging Voice Portal
        • GET - User Voice Messaging
        • PUT - Group Voice Messaging
        • PUT - Group Voice Messaging Portal
        • PUT - User Voice Messaging Bulk
        • PUT - User Voice Messaging Greetings
        • PUT - User Voice Messaging Messages Read
        • PUT - User Voice Messaging Messages Unread
        • PUT - User Voice Messaging User Distribution List
        • PUT - User Voice Messaging Voice Portal
        • PUT - User Voice Messaging
        • DELETE - User Voice Messaging Messages
    • Advanced Features
      • Scripter
        • Find Alias
        • User Association
        • Group Audit
        • Move Numbers
        • Remove Numbers
        • Bulk Password Reset
        • Service Provider Trunking Capacity
        • Webex Builder
        • Locate Free Extension
        • User Registration
        • VM Auto Login
      • Reporter
        • Call Flow
          • Making Sense of The Call Flow
          • Graphviz
        • Group Users Call Statistics
        • User Registration Report
    • Utils
      • Config Manager
        • Template Configs
          • Auto Attendant
          • Call Center
          • Device
          • Group
          • Hunt Group
          • Service Provider
          • Trunk Group
          • User
      • Checkers
      • Constants
      • Formatters
      • Parsers
    • Logging
  • Powered By Odin's Spear
    • AA, CC, HG Audit
    • Bulk Build Group Admins
    • Bulk Build Service Provider Admins
    • Service Pack Audit
    • VM Bulk Passcode Set CSV
  • 14IP
    • Custom Logger
  • Development
  • Troubleshooting & FAQ
    • Frequently Asked Questions
    • Common Issues
      • Graphviz Troubleshooting
  • Bugs and Issues
  • Contact
Powered by GitBook
On this page
  • Example Output
  • Parameters
  • Return
  • How To Use:
  • Terminal Output

Was this helpful?

  1. Docs
  2. Advanced Features
  3. Reporter

Group Users Call Statistics

PreviousGraphvizNextUser Registration Report

Last updated 2 months ago

Was this helpful?

Generates CSV file detailing all users in a single groups outgoing and incoming call statistics for a specified time range.

Data is only guaranteed for 3 months, if your requesting over 3 months all data may not be saved and output should be reviewed. This is an Odin limitation.

This feature can take a good amount of time to complete depending on the size of your group. For example a group containing 3000 users will take around an hour to complete.

This is being worked on and we hope to speed it up for you soon! Thank you.

We have found that customers like to review how busy their users are and identify any that are not in use so they are lower their bill. This report identifies exactly that showing all users call statistics over a maximum guaranteed period of 3 months. If a user has not made a call in that time this can be easily spotted as the row will consist of only 0's (See example out below).

Example Output

Output Example

Parameters

  • service_provider_id (str): Service Provider/ Enterprise where group is hosted.

  • group_id (str): Target Group you would like to know user statistics for.

  • start_date (str): Start date of desired time period. Date must follow format 'YYYY-MM-DD'

  • end_date (str, optional): End date of desired time period. Date must follow format 'YYYY-MM-DD'. If this date is the same as Start date you do not need this parameter. Defaults to None.

  • start_time (type, optional): Start time of desired time period. Time must follow formate 'HH:MM:SS'. If you do not need to filter by time and want the whole day leave this parameter. Defaults to "00:00:00". MAX Request is 3 months.

  • end_time (type, optional): End time of desired time period. Time must follow formate 'HH:MM:SS'. If you do not need to filter by time and want the whole day leave this parameter. Defaults to "23:59:59". MAX Request is 3 months.

  • time_zone (str, optional): A specified time you would like to see call records in.

Return

  • None: This will generate a CSV file with the report in the folder 'os_reports'. Check this folder once script has completed.

The script makes use of the following methods:

api.users.get_users()
api.reports.get_users_stats()
api.users.get_user_services()

How To Use:

This method requires keyword arguments i.e. group_id="group_id"

# Whole day in date range
assistant.group_users_call_statistics(
    service_provider_id="serviceProviderID",
    group_id="groupID",
    start_date="11-04-2024",
    end_date="14-06-2024",
)

# Specific time during day and in EST timezone
assistant.group_users_call_statistics(
    service_provider_id="serviceProviderID",
    group_id="groupID",
    start_date="11-04-2024",
    end_date="14-06-2024",
    start_time = "09:00:00",
    end_time: str = "17:00:00",
    time_zone: str = "EST"
)

Terminal Output

Start.
Fetching list of users in GroupID.
Fetching individual stats for each user. This may take several minutes.: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 90/90 [01:34<00:00,  1.04s/it]
Formatting individual stats for each user.: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 90/90 [00:00<00:00, 42144.40it/s]

End.