Statistics
get_logincount
async
get_logincount(auth: Annotated[Auth, Depends(authorize(HYBRID))], db: Annotated[Session, Depends(get_db)], org_id: Annotated[str, Path(alias=orgID)]) -> int
Gets the login count of the past 4 months.
args:
- db: Database session
returns:
- Count of all logins in the past 4 months
get_statistics
async
get_statistics(auth: Annotated[Auth, Depends(authorize(HYBRID))], db: Annotated[Session, Depends(get_db)]) -> UsageDataResponseModel
Gets all usage statistics as a list.
args:
- db: Database session
returns:
- List of all usage statistics
get_statistics_by_org
async
get_statistics_by_org(auth: Annotated[Auth, Depends(authorize(HYBRID))], db: Annotated[Session, Depends(get_db)], org_id: Annotated[str, Path(alias=orgId)]) -> OrgDataResponseModel
Gets all attrtibute-related statistics by organisation as a list.
args:
- db: Database session
- orgID: organisation ID
returns:
- List of all statistics related to an organisation