IStatsRepository
in
Table of Contents
- getAllBuildingsStats() : Stats
- Statistics for all Buildings
- getAllRoomsStats() : Stats
- Statistics for all Rooms
- getAllUsersStats() : Stats
- Statistics for all Users
- getBuildingStats() : Stats
- Statistics for specific Building
- getRequestsStats() : Stats
- Statistics of successfull requests on each endpoint of the API
- getRoomStats() : Stats
- Statistics fot specific Room
- getUserStats() : Stats
- Statistics for specific User
- setTimeSpan() : IStatsRepository
- Sets Time span of statistics
Methods
getAllBuildingsStats()
Statistics for all Buildings
public
getAllBuildingsStats(int $addressId) : Stats
Parameters
- $addressId : int
Return values
Stats —getAllRoomsStats()
Statistics for all Rooms
public
getAllRoomsStats() : Stats
Return values
Stats —getAllUsersStats()
Statistics for all Users
public
getAllUsersStats() : Stats
Return values
Stats —getBuildingStats()
Statistics for specific Building
public
getBuildingStats(int $id) : Stats
Parameters
- $id : int
Return values
Stats —getRequestsStats()
Statistics of successfull requests on each endpoint of the API
public
getRequestsStats() : Stats
Return values
Stats —getRoomStats()
Statistics fot specific Room
public
getRoomStats(int $id) : Stats
Parameters
- $id : int
Return values
Stats —getUserStats()
Statistics for specific User
public
getUserStats(int $id) : Stats
Parameters
- $id : int
Return values
Stats —setTimeSpan()
Sets Time span of statistics
public
setTimeSpan([string $from = 'month ago' ][, string $to = 'now' ]) : IStatsRepository
Parameters
- $from : string = 'month ago'
- $to : string = 'now'