피드백 페이로드 스키마
curl --request POST \
--url https://api.example.com/feedback/payload_schema \
--header 'Content-Type: application/json' \
--data '
{
"project_id": "<string>",
"start": "2023-11-07T05:31:56Z",
"end": "2023-11-07T05:31:56Z",
"feedback_type": "<string>",
"sample_limit": 2000,
"trigger_ref": "<string>"
}
'import requests
url = "https://api.example.com/feedback/payload_schema"
payload = {
"project_id": "<string>",
"start": "2023-11-07T05:31:56Z",
"end": "2023-11-07T05:31:56Z",
"feedback_type": "<string>",
"sample_limit": 2000,
"trigger_ref": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
project_id: '<string>',
start: '2023-11-07T05:31:56Z',
end: '2023-11-07T05:31:56Z',
feedback_type: '<string>',
sample_limit: 2000,
trigger_ref: '<string>'
})
};
fetch('https://api.example.com/feedback/payload_schema', 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://api.example.com/feedback/payload_schema",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'project_id' => '<string>',
'start' => '2023-11-07T05:31:56Z',
'end' => '2023-11-07T05:31:56Z',
'feedback_type' => '<string>',
'sample_limit' => 2000,
'trigger_ref' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/feedback/payload_schema"
payload := strings.NewReader("{\n \"project_id\": \"<string>\",\n \"start\": \"2023-11-07T05:31:56Z\",\n \"end\": \"2023-11-07T05:31:56Z\",\n \"feedback_type\": \"<string>\",\n \"sample_limit\": 2000,\n \"trigger_ref\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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))
}HttpResponse<String> response = Unirest.post("https://api.example.com/feedback/payload_schema")
.header("Content-Type", "application/json")
.body("{\n \"project_id\": \"<string>\",\n \"start\": \"2023-11-07T05:31:56Z\",\n \"end\": \"2023-11-07T05:31:56Z\",\n \"feedback_type\": \"<string>\",\n \"sample_limit\": 2000,\n \"trigger_ref\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/feedback/payload_schema")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"project_id\": \"<string>\",\n \"start\": \"2023-11-07T05:31:56Z\",\n \"end\": \"2023-11-07T05:31:56Z\",\n \"feedback_type\": \"<string>\",\n \"sample_limit\": 2000,\n \"trigger_ref\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"paths": [
{
"json_path": "<string>",
"value_type": "numeric"
}
]
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}샘플 행에서 피드백 페이로드 스키마(경로 및 유형)를 검색합니다.
POST
/
feedback
/
payload_schema
피드백 페이로드 스키마
curl --request POST \
--url https://api.example.com/feedback/payload_schema \
--header 'Content-Type: application/json' \
--data '
{
"project_id": "<string>",
"start": "2023-11-07T05:31:56Z",
"end": "2023-11-07T05:31:56Z",
"feedback_type": "<string>",
"sample_limit": 2000,
"trigger_ref": "<string>"
}
'import requests
url = "https://api.example.com/feedback/payload_schema"
payload = {
"project_id": "<string>",
"start": "2023-11-07T05:31:56Z",
"end": "2023-11-07T05:31:56Z",
"feedback_type": "<string>",
"sample_limit": 2000,
"trigger_ref": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
project_id: '<string>',
start: '2023-11-07T05:31:56Z',
end: '2023-11-07T05:31:56Z',
feedback_type: '<string>',
sample_limit: 2000,
trigger_ref: '<string>'
})
};
fetch('https://api.example.com/feedback/payload_schema', 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://api.example.com/feedback/payload_schema",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'project_id' => '<string>',
'start' => '2023-11-07T05:31:56Z',
'end' => '2023-11-07T05:31:56Z',
'feedback_type' => '<string>',
'sample_limit' => 2000,
'trigger_ref' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/feedback/payload_schema"
payload := strings.NewReader("{\n \"project_id\": \"<string>\",\n \"start\": \"2023-11-07T05:31:56Z\",\n \"end\": \"2023-11-07T05:31:56Z\",\n \"feedback_type\": \"<string>\",\n \"sample_limit\": 2000,\n \"trigger_ref\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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))
}HttpResponse<String> response = Unirest.post("https://api.example.com/feedback/payload_schema")
.header("Content-Type", "application/json")
.body("{\n \"project_id\": \"<string>\",\n \"start\": \"2023-11-07T05:31:56Z\",\n \"end\": \"2023-11-07T05:31:56Z\",\n \"feedback_type\": \"<string>\",\n \"sample_limit\": 2000,\n \"trigger_ref\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/feedback/payload_schema")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"project_id\": \"<string>\",\n \"start\": \"2023-11-07T05:31:56Z\",\n \"end\": \"2023-11-07T05:31:56Z\",\n \"feedback_type\": \"<string>\",\n \"sample_limit\": 2000,\n \"trigger_ref\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"paths": [
{
"json_path": "<string>",
"value_type": "numeric"
}
]
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}본문
application/json
피드백 페이로드 스키마 탐색 요청입니다.
시작 시간(포함, UTC, ISO 8601)입니다.
종료 시간(미포함, UTC, ISO 8601)입니다. 생략하면 현재 시간이 기본값으로 사용됩니다.
feedback_type으로 필터링합니다.
페이로드 스키마를 탐색할 때 샘플링할 최대 고유 trigger_ref 수입니다. 각 고유 trigger_ref(monitor/source)는 일반적으로 고정된 페이로드 구조를 가지므로, 보통 ref당 페이로드 하나만 샘플링해도 전체 스키마를 확인하기에 충분합니다. 2,000이면 쿼리 속도를 유지하면서 사실상 대부분의 실제 프로젝트를 포괄할 수 있고, 5,000의 하드 상한은 과도한 스캔을 방지합니다.
필수 범위:
1 <= x <= 5000trigger_ref로 필터링합니다(all-versions의 경우 정확히 일치 또는 접두사 일치).
응답
성공 응답
탐색된 피드백 페이로드 경로와 유형을 포함한 응답입니다.
추론된 값 유형이 포함된 탐색된 리프 경로입니다.
Show child attributes
Show child attributes
⌘I