刪除遙測目的地
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"
}