Testar um destino de telemetria
POST/v1/organizations/telemetry_destinations/{destination_id}/test
Requires
anthropic-beta: telemetry-destinations-2026-08-11. Learn how to send beta headers.Envia um span de teste, chamado anthropic.test, ao destino com seus cabeçalhos registrados, uma única vez e sem novas tentativas, e relata a resposta do destino. A resposta é 200, quer o destino tenha respondido com um status 2xx ou não: seu result tem o tipo success, ou o tipo failure e o motivo em error. A configuração, o state e o delivery_health do destino não mudam. Um destino desabilitado também pode ser testado. Aguarde 10 segundos entre testes de um mesmo destino; uma solicitação que chegar antes disso pode ser respondida com o status 429.
Parameters
Returns
Testar um destino de telemetria
import os
from anthropic import Anthropic
client = Anthropic(
api_key=os.environ.get(
"ANTHROPIC_API_KEY"
), # This is the default and can be omitted
)
beta_telemetry_destination_test_response = (
client.beta.organization.telemetry_destinations.test(
destination_id="destination_id",
)
)
print(beta_telemetry_destination_test_response.result)Response 200
{
"result": {
"type": "success"
},
"type": "telemetry_destination_test"
}Returns Examples
Response 200
{
"result": {
"type": "success"
},
"type": "telemetry_destination_test"
}