刪除遙測目的地
DELETE/v1/organizations/telemetry_destinations/{destination_id}
Requires
anthropic-beta: telemetry-destinations-2026-08-11. How to send beta headers刪除目的地及其工作區清單。
API 會停止將 span 傳送至該目的地。其所涵蓋工作區的 span 仍會傳送至涵蓋這些工作區的其他目的地。已刪除的目的地無法讀取、列出或還原。
請參閱 OpenTelemetry 匯出指南,進一步了解如何管理目的地。
Parameters
Returns
刪除遙測目的地
<?php
require_once dirname(__DIR__) . '/vendor/autoload.php';
use Anthropic\Client;
use Anthropic\Beta\AnthropicBeta;
$client = new Client(apiKey: 'my-anthropic-api-key');
$betaDeletedTelemetryDestination = $client
->beta
->organization
->telemetryDestinations
->delete(
'destination_id', betas: [AnthropicBeta::MESSAGE_BATCHES_2024_09_24]
);
var_dump($betaDeletedTelemetryDestination);Response 200
{
"id": "id",
"type": "telemetry_destination_deleted"
}Returns Examples
Response 200
{
"id": "id",
"type": "telemetry_destination_deleted"
}