Claude Platform Docs

Тестирование назначения телеметрии

$client->beta->organization->telemetryDestinations->test(string destinationID, ?list<AnthropicBeta> betas): TelemetryDestinationTestResponse
POST/v1/organizations/telemetry_destinations/{destination_id}/test
Requires anthropic-beta: telemetry-destinations-2026-08-11. How to send beta headers

Отправить в назначение один тестовый спан с именем anthropic.test с его зарегистрированными заголовками, однократно и без повторных попыток, и сообщить ответ назначения. Ответ имеет код 200 независимо от того, ответило ли назначение статусом 2xx: его result имеет тип success либо тип failure с причиной в error. Конфигурация назначения, state и delivery_health не изменяются. Отключённое назначение также можно протестировать. Выдерживайте 10 секунд между тестами одного назначения; на запрос, поступивший раньше, может быть получен ответ со статусом 429.

Parameters
destinationID: string⁠Path parameter

ID of the destination to test (starts with tdst_).

betas?: optional list<AnthropicBeta>⁠Header parameter

This endpoint is in beta: requests must send telemetry-destinations-2026-08-11 in this header.

Returns
class TelemetryDestinationTestResponse { $type = 'telemetry_destination_test'; $result; }
"telemetry_destination_test" type

How the test went: success when the destination answered with a 2xx status, else failure with the reason.

Тестирование назначения телеметрии
<?php

require_once dirname(__DIR__) . '/vendor/autoload.php';

use Anthropic\Client;
use Anthropic\Beta\AnthropicBeta;

$client = new Client(apiKey: 'my-anthropic-api-key');

$betaTelemetryDestinationTestResponse = $client
  ->beta
  ->organization
  ->telemetryDestinations
  ->test('destination_id', betas: [AnthropicBeta::MESSAGE_BATCHES_2024_09_24]);

var_dump($betaTelemetryDestinationTestResponse);
Returns Examples
Response 200
{
  "result": {
    "type": "success"
  },
  "type": "telemetry_destination_test"
}