跳转至

获取非日志文本数据 Schema 信息



GET /api/v1/metric_info/text_data/schema

概述

根据 namespace 获取非日志文本数据的 schema 信息(字段结构与时序数据一致,但 field 不包含 tags 字段)

Query 请求参数

参数名 类型 必选 说明
namespace string Y 命名空间,用于区分 LLM、链路、RUM 等非日志文本数据类型
允许为空: False

参数补充说明

通过 show_xxxx_field('*') 函数获取非日志文本数据的 schema 信息,xxxxnamespace 映射得到。

支持的 namespace 如下:

namespace 中文说明
object 对象数据
object_history 对象历史
custom_object 自定义对象
custom_object_history 自定义对象历史
keyevent 事件
audit_event 审计事件
unrecovered_event 未恢复事件
tracing 链路
rum 用户访问监测
security 安全
network 网络
backup_log 备份日志
profiling 性能剖析
rum_metric RUM 指标
network_metric 网络指标
tracing_metric 链路指标
billing 计费
dialtest 拨测
execution_log 执行日志
llm 大语言模型
errorhub 错误追踪

请求例子

curl -k 'https://openapi.guance.com/api/v1/metric_info/text_data/schema?namespace=llm' \
-H 'DF-API-KEY: <DF-API-KEY>' \
--compressed

响应

{
    "code": 200,
    "content": {
        "declaration": {
            "business": "",
            "organization": "663dbba102482200070bbb02"
        },
        "fields": [
            {
                "description": "",
                "name": "output_tokens",
                "type": "text",
                "value_type": "long"
            },
            {
                "description": "",
                "name": "create_time",
                "type": "text",
                "value_type": "long"
            },
            {
                "description": "",
                "name": "llm_provider",
                "type": "text",
                "value_type": "keyword"
            },
            {
                "description": "",
                "name": "ttft",
                "type": "text",
                "value_type": "long"
            },
            {
                "description": "",
                "name": "metadata",
                "type": "text",
                "value_type": "keyword"
            }
        ],
        "namespace": "llm"
    },
    "errorCode": "",
    "message": "",
    "success": true,
    "traceId": "69ba6c7800000000411c4a258db89fbe"
} 

文档评价

文档内容是否对您有帮助? ×