删除遥测目标
DELETE/v1/organizations/telemetry_destinations/{destination_id}
删除目标及其工作区列表。
API 将停止向该目标发送 span。其所覆盖工作区的 span 仍会发送到覆盖这些工作区的其他目标。已删除的目标无法被读取、列出或恢复。
请参阅 OpenTelemetry 导出指南,详细了解如何管理目标。
Parameters
Returns
删除遥测目标
package com.anthropic.example;
import com.anthropic.client.AnthropicClient;
import com.anthropic.client.okhttp.AnthropicOkHttpClient;
import com.anthropic.models.beta.organization.telemetrydestinations.BetaDeletedTelemetryDestination;
import com.anthropic.models.beta.organization.telemetrydestinations.TelemetryDestinationDeleteParams;
public final class Main {
private Main() {}
public static void main(String[] args) {
AnthropicClient client = AnthropicOkHttpClient.fromEnv();
BetaDeletedTelemetryDestination betaDeletedTelemetryDestination = client.beta().organization().telemetryDestinations().delete("destination_id");
}
}Response 200
{
"id": "id",
"type": "telemetry_destination_deleted"
}Returns Examples
Response 200
{
"id": "id",
"type": "telemetry_destination_deleted"
}