pterowraptyl
    Preparing search index...

    Class ClientServersModule

    Index

    Constructors

    Methods

    • Retrieves the details of a specific server by its identifier.

      Parameters

      Returns Promise<Server>

      • A promise that resolves to the server details.
      const server = await ptero.servers.getServer({ identifier: "server-identifier" }, [IncludeParameters.EGG, IncludeParameters.SUBUSERS]);
      console.log(server);
    • Retrieves the resource usage statistics for a specific server. This includes memory, CPU, disk, and network usage.

      Parameters

      • data: IdentifierRequest

        The request data containing the identifier of the server to retrieve usage statistics for.

      Returns Promise<ServerResources>

      • A promise that resolves to the resource usage statistics of the specified server.
      const usage = await ptero.servers.getUsage({ identifier: "server-identifier" });
      console.log(usage);