콘텐츠로 이동

비로그 텍스트 데이터 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 실제 사용자 모니터링(RUM)
security 보안
network 네트워크
backup_log 백업 로그
profiling 프로파일링
rum_metric RUM 메트릭
network_metric 네트워크 메트릭
tracing_metric 분산 추적 메트릭
billing 청구
dialtest 신서틱 테스트
execution_log 실행 로그
llm 대규모 언어 모델
agent_monitor 에이전트 모니터링
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"
} 

문서 평가

이 페이지가 도움이 되었나요?