Get top faulty resources
curl --request GET \
--url https://v1.api.altostrat.io/fault/top_faults \
--header 'Authorization: Bearer <token>'import requests
url = "https://v1.api.altostrat.io/fault/top_faults"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://v1.api.altostrat.io/fault/top_faults', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://v1.api.altostrat.io/fault/top_faults",
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: Bearer <token>"
],
]);
$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 := "https://v1.api.altostrat.io/fault/top_faults"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://v1.api.altostrat.io/fault/top_faults")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://v1.api.altostrat.io/fault/top_faults")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body[
{
"tunnel_name": "Primary link (WAN1)",
"site_id": "site_8a7b6c5d4e3f2g1h",
"count": 42,
"resource_id": "dev_2j4k2l2j3k4l2j3k4",
"faults": [
{
"id": "flt_31pkd1t8FvW7qZv0jG2a9kH5mB1",
"message": "WAN link failover: Primary link (WAN1) is down",
"resolved_at": null,
"created_at": "2025-10-21T12:00:00.000000Z",
"duration": "2 hours, 15 minutes",
"severity": "error",
"type": "wantunnel",
"cause": "Probe failed: Latency exceeded 500ms threshold",
"site_id": "site_8a7b6c5d4e3f2g1h",
"resource_identifier": "dev_2j4k2l2j3k4l2j3k4"
}
]
}
]{
"type": "authentication_error",
"code": "api_key_invalid",
"message": "The provided API key is invalid.",
"doc_url": "https://docs.altostrat.io/errors/api_key_invalid"
}{
"type": "api_error",
"code": "internal_server_error",
"message": "An internal error occurred. Please try again or contact support if the issue persists.",
"doc_url": "https://docs.altostrat.io/errors/internal_server_error"
}Analytics
Get top faulty resources
Retrieves a list of the top 10 most frequently faulting resources over the last 14 days, along with a sample of their most recent fault events. This is useful for identifying problematic areas in your network.
GET
/
fault
/
top_faults
Get top faulty resources
curl --request GET \
--url https://v1.api.altostrat.io/fault/top_faults \
--header 'Authorization: Bearer <token>'import requests
url = "https://v1.api.altostrat.io/fault/top_faults"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://v1.api.altostrat.io/fault/top_faults', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://v1.api.altostrat.io/fault/top_faults",
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: Bearer <token>"
],
]);
$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 := "https://v1.api.altostrat.io/fault/top_faults"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://v1.api.altostrat.io/fault/top_faults")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://v1.api.altostrat.io/fault/top_faults")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body[
{
"tunnel_name": "Primary link (WAN1)",
"site_id": "site_8a7b6c5d4e3f2g1h",
"count": 42,
"resource_id": "dev_2j4k2l2j3k4l2j3k4",
"faults": [
{
"id": "flt_31pkd1t8FvW7qZv0jG2a9kH5mB1",
"message": "WAN link failover: Primary link (WAN1) is down",
"resolved_at": null,
"created_at": "2025-10-21T12:00:00.000000Z",
"duration": "2 hours, 15 minutes",
"severity": "error",
"type": "wantunnel",
"cause": "Probe failed: Latency exceeded 500ms threshold",
"site_id": "site_8a7b6c5d4e3f2g1h",
"resource_identifier": "dev_2j4k2l2j3k4l2j3k4"
}
]
}
]{
"type": "authentication_error",
"code": "api_key_invalid",
"message": "The provided API key is invalid.",
"doc_url": "https://docs.altostrat.io/errors/api_key_invalid"
}{
"type": "api_error",
"code": "internal_server_error",
"message": "An internal error occurred. Please try again or contact support if the issue persists.",
"doc_url": "https://docs.altostrat.io/errors/internal_server_error"
}Authorizations
API requests are authenticated using a JSON Web Token (JWT) provided in the Authorization header.
Response
An array of the top faulty resources.
The display name of the resource, often extracted from the fault message.
Example:
"Primary link (WAN1)"
The identifier of the site this resource belongs to.
Example:
"site_8a7b6c5d4e3f2g1h"
The total number of faults recorded for this resource in the last 14 days.
Example:
42
The unique identifier of the resource.
Example:
"dev_2j4k2l2j3k4l2j3k4"
A sample of recent fault events for this resource.
Show child attributes
Show child attributes
Was this page helpful?
⌘I