텔레메트리 대상 워크스페이스 제거
DELETE/v1/organizations/telemetry_destinations/{destination_id}/workspaces/{workspace_id}
대상의 워크스페이스 목록에서 워크스페이스 하나를 제거합니다.
include에서는 해당 워크스페이스의 스팬이 대상으로 전송되지 않게 됩니다. exclude에서는 전송이 시작됩니다. 보관된 워크스페이스도 제거할 수 있습니다.
워크스페이스가 목록에 없으면 API가 404를 반환합니다. workspaces.type이 all인 대상에는 목록이 없으므로 API가 400을 반환합니다.
대상의 워크스페이스 선택에 대한 자세한 내용은 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.workspaces.BetaDeletedTelemetryDestinationWorkspace;
import com.anthropic.models.beta.organization.telemetrydestinations.workspaces.WorkspaceRemoveParams;
public final class Main {
private Main() {}
public static void main(String[] args) {
AnthropicClient client = AnthropicOkHttpClient.fromEnv();
WorkspaceRemoveParams params = WorkspaceRemoveParams.builder()
.destinationId("destination_id")
.workspaceId("workspace_id")
.build();
BetaDeletedTelemetryDestinationWorkspace betaDeletedTelemetryDestinationWorkspace = client.beta().organization().telemetryDestinations().workspaces().remove(params);
}
}Response 200
{
"telemetry_destination_id": "telemetry_destination_id",
"type": "telemetry_destination_workspace_deleted",
"workspace_id": "workspace_id"
}Returns Examples
Response 200
{
"telemetry_destination_id": "telemetry_destination_id",
"type": "telemetry_destination_workspace_deleted",
"workspace_id": "workspace_id"
}