Files
plexjs/docs/sdk/models/operations/getresourcesstatisticsresponse.md
2024-09-08 03:06:14 +00:00

3.6 KiB
Raw Blame History

GetResourcesStatisticsResponse

Example Usage

import { GetResourcesStatisticsResponse } from "@lukehagar/plexjs/sdk/models/operations";

let value: GetResourcesStatisticsResponse = {
    contentType: "<value>",
    statusCode: 523248,
    rawResponse: new Response('{"message": "hello world"}', {
        headers: { "Content-Type": "application/json" },
    }),
    object: {
        mediaContainer: {
            size: 5497,
            statisticsResources: [
                {
                    timespan: 6,
                    at: 1718384427,
                    hostCpuUtilization: 1.276,
                    processCpuUtilization: 0.025,
                    hostMemoryUtilization: 17.026,
                    processMemoryUtilization: 0.493,
                },
            ],
        },
    },
};

Fields

Field Type Required Description
contentType string ✔️ HTTP response content type for this operation
statusCode number ✔️ HTTP response status code for this operation
rawResponse Response ✔️ Raw HTTP response; suitable for custom response parsing
object operations.GetResourcesStatisticsResponseBody Resource Statistics