Help us improve these docs. Take our quick survey.
curl --request POST \
--url https://api.example.com/calls/stats \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"project_id": "<string>",
"start": "2023-11-07T05:31:56Z",
"end": "2023-11-07T05:31:56Z",
"granularity": 123,
"usage_metrics": [
{
"metric": "input_tokens",
"aggregations": [
"sum"
],
"percentiles": []
}
],
"call_metrics": [
{
"metric": "latency_ms",
"aggregations": [
"sum"
],
"percentiles": []
}
],
"filter": {
"op_names": [
"<string>"
],
"input_refs": [
"<string>"
],
"output_refs": [
"<string>"
],
"parent_ids": [
"<string>"
],
"trace_ids": [
"<string>"
],
"call_ids": [
"<string>"
],
"thread_ids": [
"<string>"
],
"turn_ids": [
"<string>"
],
"trace_roots_only": true,
"wb_user_ids": [
"<string>"
],
"wb_run_ids": [
"<string>"
]
},
"timezone": "UTC"
}
'{
"start": "2023-11-07T05:31:56Z",
"end": "2023-11-07T05:31:56Z",
"granularity": 123,
"timezone": "<string>",
"usage_buckets": [],
"call_buckets": []
}curl --request POST \
--url https://api.example.com/calls/stats \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"project_id": "<string>",
"start": "2023-11-07T05:31:56Z",
"end": "2023-11-07T05:31:56Z",
"granularity": 123,
"usage_metrics": [
{
"metric": "input_tokens",
"aggregations": [
"sum"
],
"percentiles": []
}
],
"call_metrics": [
{
"metric": "latency_ms",
"aggregations": [
"sum"
],
"percentiles": []
}
],
"filter": {
"op_names": [
"<string>"
],
"input_refs": [
"<string>"
],
"output_refs": [
"<string>"
],
"parent_ids": [
"<string>"
],
"trace_ids": [
"<string>"
],
"call_ids": [
"<string>"
],
"thread_ids": [
"<string>"
],
"turn_ids": [
"<string>"
],
"trace_roots_only": true,
"wb_user_ids": [
"<string>"
],
"wb_run_ids": [
"<string>"
]
},
"timezone": "UTC"
}
'{
"start": "2023-11-07T05:31:56Z",
"end": "2023-11-07T05:31:56Z",
"granularity": 123,
"timezone": "<string>",
"usage_buckets": [],
"call_buckets": []
}Documentation Index
Fetch the complete documentation index at: https://wb-21fd5541-john-wbdocs-2044-rename-serverless-products.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
一定期間における集計済みcall統計のリクエスト。
開始時刻(この時刻を含む)(UTC、ISO 8601)。
終了時刻(この時刻は含まない)(UTC、ISO 8601)。省略した場合は現在時刻がデフォルトです。
bucketサイズ(秒単位)(例: 1時間の場合は3600)。省略した場合は、期間に基づいて自動的に選択されます。10,000個を超えるbucketが生成される場合は調整されます。
計算するUsageメトリクス(トークン、コスト)。Timestampとモデルごとにグループ化されます。
Show child attributes
計算するcallレベルのメトリクス(レイテンシ、件数)。Timestampごとにのみグループ化されます。
Show child attributes
Show child attributes
bucketの整列に使用するIANAタイムゾーン(例: 'America/New_York')
正常なレスポンス
時系列のcall統計を含むレスポンス。
解決後の開始時刻(UTC)
解決後の終了時刻(UTC)
使用されたbucketサイズ(秒単位)
bucketの整列に使用されたタイムゾーン
モデルごとのUsageメトリクス。各bucketには 'timestamp'、'model'、および集計済みメトリクス値が含まれます。
callレベルのメトリクス。各bucketには 'timestamp' と集計済みメトリクス値が含まれます。