الحصول على نوافذ السرعة
curl --request GET \
--url https://api.truthlocks.com/v1/risk/velocity/{subject_id} \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.truthlocks.com/v1/risk/velocity/{subject_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.truthlocks.com/v1/risk/velocity/{subject_id}"
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/velocity/{subject_id}"
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))
}{
"subject_id": "<string>",
"windows": [
{
"window": "<string>",
"count": 123,
"action": "<string>"
}
]
}{
"code": "AUTH_REQUIRED",
"message": "Authentication required",
"http_status": 401
}تسجيل السرعة
الحصول على نوافذ السرعة
استرداد عدد النوافذ المتدحرجة الحالية ودرجات السرعة لجميع أنواع الإجراءات المتعقبة لموضوع ما.
GET
/
v1
/
risk
/
velocity
/
{subject_id}
الحصول على نوافذ السرعة
curl --request GET \
--url https://api.truthlocks.com/v1/risk/velocity/{subject_id} \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.truthlocks.com/v1/risk/velocity/{subject_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.truthlocks.com/v1/risk/velocity/{subject_id}"
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/velocity/{subject_id}"
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))
}{
"subject_id": "<string>",
"windows": [
{
"window": "<string>",
"count": 123,
"action": "<string>"
}
]
}{
"code": "AUTH_REQUIRED",
"message": "Authentication required",
"http_status": 401
}يعرض نوافذ السرعة الحالية لموضوع عبر جميع أنواع الإجراءات المتتبعة. يتضمن كل نوع إجراء عددًا للنوافذ المتجددة الأربعة (1 دقيقة، 5 دقائق، 1 ساعة، 24 ساعة) ودرجة السرعة المحسوبة.
استخدم نقطة النهاية هذه للتحقق من ملف تعريف السرعة الحالي للموضوع دون تسجيل إجراء جديد. راجع دليل تسجيل السرعة والشذوذ لنموذج التسجيل وأنماط التكامل.
الاستجابة
قائمة أنواع الإجراءات المتتبعة لهذا الموضوع. يتضمن كل إدخال
action_type، windows (مع عدد 1m، 5m، 1h، 24h)، وvelocity_score.
