텔레메트리 대상 업데이트
POST/v1/organizations/telemetry_destinations/{destination_id}
텔레메트리 대상의 설정, 상태 또는 포함하는 워크스페이스를 변경합니다.
최소 하나의 필드를 보내세요. 생략된 필드는 저장된 값을 유지합니다. 단, 등록된 헤더는 엔드포인트의 호스트 이름이나 포트가 변경되면 제거됩니다. display_name, traces, traces.endpoint_url, traces.content_mode, traces.max_content_bytes 및 개별 headers 값만 null을 허용합니다.
업데이트가 실행되는 동안 다른 요청이 대상을 변경하면 API는 409 conflict_error를 반환합니다. 대상을 다시 읽은 후 업데이트를 재시도하세요.
대상 변경에 대한 자세한 내용은 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.BetaTelemetryDestination;
import com.anthropic.models.beta.organization.telemetrydestinations.TelemetryDestinationUpdateParams;
public final class Main {
private Main() {}
public static void main(String[] args) {
AnthropicClient client = AnthropicOkHttpClient.fromEnv();
BetaTelemetryDestination betaTelemetryDestination = client.beta().organization().telemetryDestinations().update("destination_id");
}
}Response 200
{
"id": "id",
"created_at": "2019-12-27T18:11:19.117Z",
"delivery_health": {
"last_error": "last_error",
"last_error_at": "2019-12-27T18:11:19.117Z",
"last_success_at": "2019-12-27T18:11:19.117Z"
},
"display_name": "display_name",
"endpoint_url": "endpoint_url",
"header_names": [
"string"
],
"state": {
"type": "enabled"
},
"traces": {
"content_mode": "metadata_only",
"enabled": true,
"endpoint_url": "endpoint_url",
"max_content_bytes": 0
},
"type": "telemetry_destination",
"updated_at": "2019-12-27T18:11:19.117Z",
"workspaces": {
"type": "all"
}
}Returns Examples
Response 200
{
"id": "id",
"created_at": "2019-12-27T18:11:19.117Z",
"delivery_health": {
"last_error": "last_error",
"last_error_at": "2019-12-27T18:11:19.117Z",
"last_success_at": "2019-12-27T18:11:19.117Z"
},
"display_name": "display_name",
"endpoint_url": "endpoint_url",
"header_names": [
"string"
],
"state": {
"type": "enabled"
},
"traces": {
"content_mode": "metadata_only",
"enabled": true,
"endpoint_url": "endpoint_url",
"max_content_bytes": 0
},
"type": "telemetry_destination",
"updated_at": "2019-12-27T18:11:19.117Z",
"workspaces": {
"type": "all"
}
}