Statistics
Get Resources Statistics
Server
Media
Butler
Plex
Library
- GETGet Hash Value
- GETGet Recently Added
- GETGet All Libraries
- GETGet library details
- DELDelete library section
- GETGet library items
- GETGet all media of library
- GETRefresh Metadata Of The Library
- GETSearch library
- GETGet Genres of library media
- GETGet Countries of library media
- GETGet Actors of library media
- GETSearch All Libraries
- GETGet Media Metadata
- GETGet Items Children
- GETGet Top Watched Content
- GETGet On Deck
Watchlist
Playlists
Authentication
Sessions
Statistics
Get Resources Statistics
This will return the resources for the server
GET
/
statistics
/
resources
using LukeHagar.PlexAPI.SDK;
using LukeHagar.PlexAPI.SDK.Models.Components;
var sdk = new PlexAPI(accessToken: "<YOUR_API_KEY_HERE>");
var res = await sdk.Statistics.GetResourcesStatisticsAsync(timespan: 4);
// handle response
{
"MediaContainer": {
"size": 5497,
"StatisticsResources": [
{
"timespan": 6,
"at": 1718384427,
"hostCpuUtilization": 1.276,
"processCpuUtilization": 0.025,
"hostMemoryUtilization": 17.026,
"processMemoryUtilization": 0.493
}
]
}
}
Authorizations
Plex Authentication Token
Query Parameters
The timespan to retrieve statistics for the exact meaning of this parameter is not known
Response
200
application/json
Resource Statistics
Example:
5497
Example:
6
Example:
1718384427
Example:
1.276
Example:
0.025
Example:
17.026
Example:
0.493
using LukeHagar.PlexAPI.SDK;
using LukeHagar.PlexAPI.SDK.Models.Components;
var sdk = new PlexAPI(accessToken: "<YOUR_API_KEY_HERE>");
var res = await sdk.Statistics.GetResourcesStatisticsAsync(timespan: 4);
// handle response
{
"MediaContainer": {
"size": 5497,
"StatisticsResources": [
{
"timespan": 6,
"at": 1718384427,
"hostCpuUtilization": 1.276,
"processCpuUtilization": 0.025,
"hostMemoryUtilization": 17.026,
"processMemoryUtilization": 0.493
}
]
}
}