curl --request POST \
--url https://nd-202-842-353.p2pify.com/788f110831fe13808302bd79796d55e8 \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "1.0",
"method": "uptime",
"params": "<any>",
"id": 1
}'
{
"result": 123,
"error": {},
"id": 123
}
curl --request POST \
--url https://nd-202-842-353.p2pify.com/788f110831fe13808302bd79796d55e8 \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "1.0",
"method": "uptime",
"params": "<any>",
"id": 1
}'
{
"result": 123,
"error": {},
"id": 123
}
uptime
method returns the total uptime of the server in seconds, providing a simple way to monitor how long the server has been running without interruption.
result
— an integer representing the server’s uptime in seconds.error
— an object containing an error message if an error occurred, otherwise null
.id
— an integer representing the ID of the request.uptime
method is useful for monitoring and management purposes, allowing administrators and users to determine how long the server has been operational. This can be particularly useful for assessing system stability and performance over time.The total uptime of the server in seconds
The response is of type object
.
Was this page helpful?