刪除遙測目的地
DELETE/v1/organizations/telemetry_destinations/{destination_id}
Requires
anthropic-beta: telemetry-destinations-2026-08-11. Learn how to send beta headers.刪除目的地及其工作區清單。
API 會停止將 span 傳送至該目的地。其所涵蓋工作區的 span 仍會傳送至涵蓋這些工作區的其他目的地。已刪除的目的地無法讀取、列出或還原。
請參閱 OpenTelemetry 匯出指南,進一步了解如何管理目的地。
Parameters
Returns
刪除遙測目的地
import os
from anthropic import Anthropic
client = Anthropic(
api_key=os.environ.get(
"ANTHROPIC_API_KEY"
), # This is the default and can be omitted
)
beta_deleted_telemetry_destination = (
client.beta.organization.telemetry_destinations.delete(
destination_id="destination_id",
)
)
print(beta_deleted_telemetry_destination.id)Response 200
{
"id": "id",
"type": "telemetry_destination_deleted"
}Returns Examples
Response 200
{
"id": "id",
"type": "telemetry_destination_deleted"
}