跳转到主要内容
POST
创建可观测性目标
此端点需要具有 settings:write 权限的管理 API 密钥。
config 对象只写不可读,并在存储前加密。端点必须使用公共 HTTPS 地址。请参阅 Broadcast,了解每种目标的作用以及它接收的内容。

为每种目标类型设置 config

所有值都是字符串。如果请求缺少必填键,或某个值无法被该目标使用,会返回 400,并在消息中指明该键。 OpenTelemetry 类型还接受 otlp_protocol(http/json 或 http/protobuf)和 otlp_compression(none 或 gzip),除非该供应方只接受其中一个值。webhook 的 headers_json 是一个将标头名称映射到值的 JSON 对象,以字符串形式提供。

授权

Authorization
string
header
必填

Bearer 令牌身份验证

请求体

application/json
name
string
必填
Required string length: 1 - 200
type
enum<string>
必填
可用选项:
arize,
axiom,
bigquery,
braintrust,
clickhouse,
comet_opik,
datadog,
dynatrace,
elastic,
gcs,
grafana_cloud,
honeycomb,
langfuse,
langsmith,
new_relic,
otel_collector,
posthog,
r2,
respan,
s3,
sentry,
snowflake,
wandb_weave,
webhook
config
object
必填
write-only
enabled
boolean
privacy_mode
boolean
sampling_rate
number
必填范围: 0.0001 <= x <= 1
group_join
enum<string>
可用选项:
and,
or
include_generation_metadata
boolean
include_cost_metadata
boolean
include_identity_metadata
boolean
include_request_context
boolean
key_filters
object[]
Maximum array length: 100
rule_groups
object[]
Maximum array length: 10

响应

目标已创建

data
object
必填
最后修改于 2026年11月16日