إصدار حدث
curl --request POST \
--url https://api.truthlocks.com/v1/events \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"actor_id": "<string>",
"actor_type": "<string>",
"event_type": "<string>"
}
'const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({actor_id: '<string>', actor_type: '<string>', event_type: '<string>'})
};
fetch('https://api.truthlocks.com/v1/events', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.truthlocks.com/v1/events"
payload = {
"actor_id": "<string>",
"actor_type": "<string>",
"event_type": "<string>"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.truthlocks.com/v1/events"
payload := strings.NewReader("{\n \"actor_id\": \"<string>\",\n \"actor_type\": \"<string>\",\n \"event_type\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"id": "<string>",
"event_type": "<string>",
"agent_id": "<string>",
"resource_id": "<string>",
"severity": "<string>",
"created_at": "2023-11-07T05:31:56Z"
}{
"code": "AUTH_REQUIRED",
"message": "Authentication required",
"http_status": 401
}{
"code": "AUTH_REQUIRED",
"message": "Authentication required",
"http_status": 401
}قابلية المراقبة
إصدار حدث
إصدار حدث قابلية مراقبة الخدمة للتدقيق والتنبيه والمراقبة التشغيلية.
POST
/
v1
/
events
إصدار حدث
curl --request POST \
--url https://api.truthlocks.com/v1/events \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"actor_id": "<string>",
"actor_type": "<string>",
"event_type": "<string>"
}
'const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({actor_id: '<string>', actor_type: '<string>', event_type: '<string>'})
};
fetch('https://api.truthlocks.com/v1/events', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.truthlocks.com/v1/events"
payload = {
"actor_id": "<string>",
"actor_type": "<string>",
"event_type": "<string>"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.truthlocks.com/v1/events"
payload := strings.NewReader("{\n \"actor_id\": \"<string>\",\n \"actor_type\": \"<string>\",\n \"event_type\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"id": "<string>",
"event_type": "<string>",
"agent_id": "<string>",
"resource_id": "<string>",
"severity": "<string>",
"created_at": "2023-11-07T05:31:56Z"
}{
"code": "AUTH_REQUIRED",
"message": "Authentication required",
"http_status": 401
}{
"code": "AUTH_REQUIRED",
"message": "Authentication required",
"http_status": 401
}يُصدر حدث قابلية مراقبة منظم في تدفق أحداث MAIP. توفر الأحداث مسار تدقيق موحد لجميع الإجراءات الهامة عبر خدمة هوية الجهاز — من تسجيل الوكيل ودورة حياة الجلسة إلى حساب الثقة واكتمال التنسيق.
يتم الاحتفاظ بالأحداث مع عزل المستأجر، وفهرستها للاستعلام السريع، ومتاحة لتسليم الويب هوك، وتكامل SIEM، وخط أنابيب تجميع المقاييس.
أنواع الأحداث
يستخدم حقلevent_type مساحة اسم مفصولة بنقاط. أنواع الأحداث التالية مدعومة:
| الفئة | أنواع الأحداث |
|---|---|
| الوكيل | agent.registered، agent.updated، agent.suspended، agent.revoked، agent.restored |
| الجلسة | session.created، session.refreshed، session.expired، session.revoked |
| الثقة | trust.computed، trust.threshold_breach، trust.delegation_offered، trust.delegation_accepted، trust.delegation_expired |
| التنسيق | orchestration.started، orchestration.completed، orchestration.failed، orchestration.timeout |
| مجموعة البيانات | dataset.attested، dataset.lineage_updated |
| النموذج | model.attested، model.lineage_updated |
| حاجز الحماية | guardrail.violation، guardrail.circuit_breaker_opened، guardrail.circuit_breaker_closed |
| الشذوذ | anomaly.reported، anomaly.resolved |
| مفتاح الإيقاف | killswitch.activated |
الاستجابة
الجسم
application/json

