Getting Started

Servers

Sites

APIs

Need Help…

Pulse APIs - Logs

The log API can be used to retrieve logging data for a given server. If no date range is specified, the last hour is used as a fallback.

Index - Retrieve All

This API is available via the following url:

/api/v1/logs

It has the following parameters:

key type required example
server_id String yes 8ca1e533-49d5-497a-93f0-1d5ecd79949d
from DateTime no 2019-01-01 09:00
until DateTime no 2019-01-01 10:00

The following is an example response:

{
    "data": [
        {
            "date": "2019-01-01 10:03:24",
            "statistics": {
                "CPU": {
                    "value": 84,
                    "status": "Good"
                },
                "Memory": {
                    "value": 50,
                    "status": "Good"
                }
            }
        },
        {
            "date": "2019-01-01 10:09:24",
            "statistics": {
                "CPU": {
                    "value": 91,
                    "status": "Bad"
                },
                "Memory": {
                    "value": 85,
                    "status": "Good"
                }
            }
        }
    ]
}