Тестирование назначения телеметрии
POST/v1/organizations/telemetry_destinations/{destination_id}/test
Отправить в назначение один тестовый спан с именем anthropic.test с его зарегистрированными заголовками, однократно и без повторных попыток, и сообщить ответ назначения. Ответ имеет код 200 независимо от того, ответило ли назначение статусом 2xx: его result имеет тип success либо тип failure с причиной в error. Конфигурация назначения, state и delivery_health не изменяются. Отключённое назначение также можно протестировать. Выдерживайте 10 секунд между тестами одного назначения; на запрос, поступивший раньше, может быть получен ответ со статусом 429.
Parameters
Returns
Тестирование назначения телеметрии
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"
}