メインコンテンツへスキップ
POST
/
agents
/
spans
/
custom-attrs
/
schema
GenAIカスタム属性スキーマ
curl --request POST \
  --url https://api.example.com/agents/spans/custom-attrs/schema \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "project_id": "<string>",
  "limit": 200,
  "offset": 0,
  "query": {
    "$expr": {
      "$and": [
        {
          "$literal": "<string>"
        }
      ]
    }
  },
  "started_after": "2023-11-07T05:31:56Z",
  "started_before": "2023-11-07T05:31:56Z"
}
'
{
  "attributes": [
    {
      "key": "<string>",
      "span_count": 123
    }
  ],
  "has_more": false,
  "limit": 200,
  "offset": 0
}

承認

Authorization
string
header
必須

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

ボディ

application/json

一致した span の型付きカスタム属性キーを検出するためのリクエスト。

project_id
string
必須
limit
integer
デフォルト:200
必須範囲: 1 <= x <= 2000
offset
integer
デフォルト:0
必須範囲: x >= 0
query
Query · object
started_after
string<date-time> | null
started_before
string<date-time> | null

レスポンス

成功レスポンス

スパンのクエリ/グループ化/統計 API で利用可能な型付きカスタム属性キー。

attributes
AgentCustomAttrSchemaItem · object[]
has_more
boolean
デフォルト:false
limit
integer
デフォルト:200
offset
integer
デフォルト:0