Skip to content

Generate CSV Report of Incidents History

Generates a CSV report of an incident history.

Request

HTTP Request

GET /node/api/reports/incident-history/csv

Permissions

objectPermissions

Path parameters

No parameters required.

Request body

The request body is empty.

Response

The response body is an array of incidents history records in the CSV format.

Examples

Request examples

login=<...>
password=<...>
saymon_hostname=<...>
url=https://$saymon_hostname/node/api/reports/incident-history/csv

curl -X GET $url -u $login:$password
const request = require("request");

let login = <...>
let password = <...>
let saymonHostname = <...>
let url = "https://" + saymonHostname + "/node/api/reports/incident-history/csv";

let auth = "Basic " + Buffer.from(login + ":" + password).toString("base64");

let options = {
    method: "GET",
    url: url,
    headers: {
        Authorization: auth
    }
};

request(options, function (error, response, body) {
    if (error) throw new Error(error);
    console.log(body);
});
import requests

login = <...>
password = <...>
saymon_hostname = <...>
url = "https://" + saymon_hostname + "/node/api/reports/incident-history/csv"

response = requests.request("GET", url, auth=(login, password))
print(response.text)

Response example

Registered Time,Occurred Time,Clear Time,Object/Link,Text
01/21/2020, 04:53:37 PM,01/21/2020, 04:53:37 PM,01/21/2020, 04:54:54 PM,"CPU","Down"
01/21/2020, 04:53:37 PM,01/21/2020, 04:53:37 PM,01/21/2020, 04:54:54 PM,"Memory","Down"