pterodactyl / panel

Pterodactyl® is a free, open-source game server management panel built with PHP, React, and Go. Designed with security in mind, Pterodactyl runs all game servers in isolated Docker containers while exposing a beautiful and intuitive UI to end users.
https://pterodactyl.io
Other
6.65k stars 1.68k forks source link

Pterodactyl v1 API - Field for Server Uptime #5021

Closed nkoske closed 6 months ago

nkoske commented 6 months ago

Is there an existing feature request for this?

Describe the feature you would like to see.

i would like to get the information since when a server is running

Describe the solution you'd like.

an implementation into the data of Resource usage, since current_state is there it would be great if there were a field added "uptime" which contains a unix timestamp

Additional context to this request.

current '{ "object": "stats", "attributes": { "current_state": "starting", "is_suspended": false, "resources": { "memory_bytes": 588701696, "cpu_absolute": 0, "disk_bytes": 130156361, "network_rx_bytes": 694220, "network_tx_bytes": 337090 } } }

suggestion { "object": "stats", "attributes": { "current_state": "starting", "uptime":"1709802941", "is_suspended": false, "resources": { "memory_bytes": 588701696, "cpu_absolute": 0, "disk_bytes": 130156361, "network_rx_bytes": 694220, "network_tx_bytes": 337090 } } }

yesBad commented 6 months ago

/resources endpoint for server gives uptime already.

nkoske commented 6 months ago

my fault sorry