Probar un destino de telemetría
POST/v1/organizations/telemetry_destinations/{destination_id}/test
Envía un span de prueba, llamado anthropic.test, al destino con sus encabezados registrados, una sola vez y sin reintentos, e informa la respuesta del destino. La respuesta es 200 tanto si el destino respondió con un estado 2xx como si no: su result tiene el tipo success, o el tipo failure y el motivo en error. La configuración, el state y el delivery_health del destino no cambian. También se puede probar un destino deshabilitado. Espera 10 segundos entre pruebas de un mismo destino; una solicitud que llegue antes puede recibir una respuesta con el estado 429.
Parameters
Returns
Probar un destino de telemetría
package com.anthropic.example;
import com.anthropic.client.AnthropicClient;
import com.anthropic.client.okhttp.AnthropicOkHttpClient;
import com.anthropic.models.beta.organization.telemetrydestinations.BetaTelemetryDestinationTestResponse;
import com.anthropic.models.beta.organization.telemetrydestinations.TelemetryDestinationTestParams;
public final class Main {
private Main() {}
public static void main(String[] args) {
AnthropicClient client = AnthropicOkHttpClient.fromEnv();
BetaTelemetryDestinationTestResponse betaTelemetryDestinationTestResponse = client.beta().organization().telemetryDestinations().test("destination_id");
}
}Response 200
{
"result": {
"type": "success"
},
"type": "telemetry_destination_test"
}Returns Examples
Response 200
{
"result": {
"type": "success"
},
"type": "telemetry_destination_test"
}