Analytics MTTD
curl --request GET \
--url http://{host}:{port}/{basePath}/analytics/mttd \
--header 'Authorization: <api-key>'import requests
url = "http://{host}:{port}/{basePath}/analytics/mttd"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('http://{host}:{port}/{basePath}/analytics/mttd', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "62437",
CURLOPT_URL => "http://{host}:{port}/{basePath}/analytics/mttd",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://{host}:{port}/{basePath}/analytics/mttd"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("http://{host}:{port}/{basePath}/analytics/mttd")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("http://{host}:{port}/{basePath}/analytics/mttd")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"apiVersion": "v1",
"kind": "AnalyticsMTTD",
"metadata": {
"from": "2026-02-19T00:00:00Z",
"to": "2026-03-19T15:00:00Z",
"generatedAt": "2026-03-19T15:05:00Z"
},
"mttd": [
{
"date": "2026-03-19",
"averageSeconds": 32,
"incidentCount": 5
},
{
"date": "2026-03-18",
"averageSeconds": 28,
"incidentCount": 8
},
{
"date": "2026-03-17",
"averageSeconds": 45,
"incidentCount": 3
}
]
}
Analytics
Analytics MTTD
Returns Mean Time To Detect metrics β the time between an event occurring and the system detecting it
GET
/
analytics
/
mttd
Analytics MTTD
curl --request GET \
--url http://{host}:{port}/{basePath}/analytics/mttd \
--header 'Authorization: <api-key>'import requests
url = "http://{host}:{port}/{basePath}/analytics/mttd"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('http://{host}:{port}/{basePath}/analytics/mttd', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "62437",
CURLOPT_URL => "http://{host}:{port}/{basePath}/analytics/mttd",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://{host}:{port}/{basePath}/analytics/mttd"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("http://{host}:{port}/{basePath}/analytics/mttd")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("http://{host}:{port}/{basePath}/analytics/mttd")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"apiVersion": "v1",
"kind": "AnalyticsMTTD",
"metadata": {
"from": "2026-02-19T00:00:00Z",
"to": "2026-03-19T15:00:00Z",
"generatedAt": "2026-03-19T15:05:00Z"
},
"mttd": [
{
"date": "2026-03-19",
"averageSeconds": 32,
"incidentCount": 5
},
{
"date": "2026-03-18",
"averageSeconds": 28,
"incidentCount": 8
},
{
"date": "2026-03-17",
"averageSeconds": 45,
"incidentCount": 3
}
]
}
string
Start date in RFC3339 format (e.g.,
2026-03-01T00:00:00Z)string
End date in RFC3339 format
{
"apiVersion": "v1",
"kind": "AnalyticsMTTD",
"metadata": {
"from": "2026-02-19T00:00:00Z",
"to": "2026-03-19T15:00:00Z",
"generatedAt": "2026-03-19T15:05:00Z"
},
"mttd": [
{
"date": "2026-03-19",
"averageSeconds": 32,
"incidentCount": 5
},
{
"date": "2026-03-18",
"averageSeconds": 28,
"incidentCount": 8
},
{
"date": "2026-03-17",
"averageSeconds": 45,
"incidentCount": 3
}
]
}
Authorizations
Bearer token issued by the operator. Format: Authorization: Bearer <token>.
Query Parameters
Start date (RFC3339).
End date (RFC3339).
βI