Statistics
get_logincount
async
get_logincount(
auth: Annotated[
Auth, Depends(authorize(AuthStrategy.HYBRID))
],
db: Annotated[Session, Depends(get_db)],
org_id: Annotated[str, Path(alias=orgID)],
) -> int
Gets the login count of the past 4 months.
Input:
- db: Database session
Output:
- Count of all logins in the past 4 months
get_statistics
async
get_statistics(
auth: Annotated[
Auth, Depends(authorize(AuthStrategy.HYBRID))
],
db: Annotated[Session, Depends(get_db)],
) -> UsageDataResponseModel
Gets all usage statistics as a list.
Input:
- db: Database session
Output:
- List of all usage statistics
get_statistics_by_org
async
get_statistics_by_org(
auth: Annotated[
Auth, Depends(authorize(AuthStrategy.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.
Input:
- db: Database session
- orgID: organisation ID
Output:
- List of all statistics related to an organisation