遙測目的地
建立遙測目的地
$client->beta->organization->telemetryDestinations->create(string endpointURL, TelemetryDestinationWorkspacesParams workspaces, ?string displayName, ?array<string,string> headers, ?TelemetryDestinationTracesParams traces, ?list<AnthropicBeta> betas): TelemetryDestinationPOST/v1/organizations/telemetry_destinations
Requires
anthropic-beta: telemetry-destinations-2026-08-11. How to send beta headers為組織註冊 OpenTelemetry 目的地。
列出遙測目的地
$client->beta->organization->telemetryDestinations->list(?int limit, ?string page, ?list<string> workspaceIDs, ?list<AnthropicBeta> betas): PageCursor<TelemetryDestination>GET/v1/organizations/telemetry_destinations
Requires
anthropic-beta: telemetry-destinations-2026-08-11. How to send beta headers列出組織的目的地,最新的排在最前面,可選擇僅列出涵蓋指定工作區的目的地。
擷取遙測目的地
$client->beta->organization->telemetryDestinations->retrieve(string destinationID, ?list<AnthropicBeta> betas): TelemetryDestinationGET/v1/organizations/telemetry_destinations/{destination_id}
Requires
anthropic-beta: telemetry-destinations-2026-08-11. How to send beta headers讀取目的地的設定、狀態及最近的傳遞結果。
更新遙測目的地
$client->beta->organization->telemetryDestinations->update(string destinationID, ?string displayName, ?string endpointURL, ?array<string,string> headers, ?TelemetryDestinationStateParams state, ?TelemetryDestinationTracesParams traces, ?TelemetryDestinationWorkspacesParams workspaces, ?list<AnthropicBeta> betas): TelemetryDestinationPOST/v1/organizations/telemetry_destinations/{destination_id}
Requires
anthropic-beta: telemetry-destinations-2026-08-11. How to send beta headers變更遙測目的地的設定、狀態或其涵蓋的工作區。
刪除遙測目的地
$client->beta->organization->telemetryDestinations->delete(string destinationID, ?list<AnthropicBeta> betas): DeletedTelemetryDestinationDELETE/v1/organizations/telemetry_destinations/{destination_id}
Requires
anthropic-beta: telemetry-destinations-2026-08-11. How to send beta headers刪除目的地及其工作區清單。
測試遙測目的地
$client->beta->organization->telemetryDestinations->test(string destinationID, ?list<AnthropicBeta> betas): TelemetryDestinationTestResponsePOST/v1/organizations/telemetry_destinations/{destination_id}/test
Requires
anthropic-beta: telemetry-destinations-2026-08-11. How to send beta headers將一個名為 anthropic.test 的測試 span 連同已註冊的標頭傳送至目的地,僅傳送一次且不重試,並回報目的地的回應。無論目的地是否以 2xx 狀態回應,回應皆為 200:其 result 的類型為 success,或類型為 failure 並在 error 中附上原因。目的地的設定、state 與 delivery_health 不會變更。已停用的目的地也可以測試。對同一目的地的兩次測試之間請等待 10 秒;過早送出的請求可能會收到狀態 429。
Models
遙測目的地工作區
列出遙測目的地工作區
$client->beta->organization->telemetryDestinations->workspaces->list(string destinationID, ?int limit, ?string page, ?list<AnthropicBeta> betas): PageCursor<BetaTelemetryDestinationWorkspace>GET/v1/organizations/telemetry_destinations/{destination_id}/workspaces
Requires
anthropic-beta: telemetry-destinations-2026-08-11. How to send beta headers列出目的地工作區清單中的工作區,最新的項目排在最前面。
新增遙測目的地工作區
$client->beta->organization->telemetryDestinations->workspaces->add(string workspaceID, string destinationID, ?list<AnthropicBeta> betas): BetaTelemetryDestinationWorkspacePOST/v1/organizations/telemetry_destinations/{destination_id}/workspaces/{workspace_id}
Requires
anthropic-beta: telemetry-destinations-2026-08-11. How to send beta headers將一個工作區新增至目的地的工作區清單。
移除遙測目的地工作區
$client->beta->organization->telemetryDestinations->workspaces->remove(string workspaceID, string destinationID, ?list<AnthropicBeta> betas): BetaDeletedTelemetryDestinationWorkspaceDELETE/v1/organizations/telemetry_destinations/{destination_id}/workspaces/{workspace_id}
Requires
anthropic-beta: telemetry-destinations-2026-08-11. How to send beta headers從目的地的工作區清單中移除一個工作區。