Métricas do painel
curl --request GET \
--url https://api.truthlocks.com/v1/risk/dashboard/metrics \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.truthlocks.com/v1/risk/dashboard/metrics', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.truthlocks.com/v1/risk/dashboard/metrics"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.truthlocks.com/v1/risk/dashboard/metrics"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"total_signals": 123,
"high_risk_signals": 123,
"total_decisions": 123,
"open_cases": 123,
"critical_cases": 123,
"quarantined_subjects": 123,
"signals_24h": 123,
"signals_7d": 123,
"avg_risk_score": 123,
"decisions_by_type": {}
}{
"code": "AUTH_REQUIRED",
"message": "Authentication required",
"http_status": 401
}Operações de risco
Ler métricas de visão geral de risco
Métricas do painel
GET
/
v1
/
risk
/
dashboard
/
metrics
Métricas do painel
curl --request GET \
--url https://api.truthlocks.com/v1/risk/dashboard/metrics \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.truthlocks.com/v1/risk/dashboard/metrics', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.truthlocks.com/v1/risk/dashboard/metrics"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.truthlocks.com/v1/risk/dashboard/metrics"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"total_signals": 123,
"high_risk_signals": 123,
"total_decisions": 123,
"open_cases": 123,
"critical_cases": 123,
"quarantined_subjects": 123,
"signals_24h": 123,
"signals_7d": 123,
"avg_risk_score": 123,
"decisions_by_type": {}
}{
"code": "AUTH_REQUIRED",
"message": "Authentication required",
"http_status": 401
}Leia as contagens agregadas do espaço de trabalho e os campos dedicados signals_24h e signals_7d. Este endpoint não implementa um parâmetro de consulta de período geral. As pontuações de risco resumem os sinais registrados em vez de certificar a identidade ou a conformidade legal.

