Skip to main content
POST
创建可观测性目标
此端点需要具有 settings:write 权限的管理 API 密钥。
config 对象仅可写入,存储前会加密。端点必须使用公共 HTTPS 地址。

授权

Authorization
string
header
必填

Bearer 令牌身份验证

请求体

application/json
name
string
必填
Required string length: 1 - 200
type
enum<string>
必填
可用选项:
otel_collector,
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年10月2日