tencent cloud

Tencent Cloud Observability Platform

dataset.get

PDF
포커스 모드
폰트 크기
마지막 업데이트 시간: 2025-03-11 19:41:14
dataset.get can obtain data values from the parameter file based on the given column names, and it is mainly used in the primary function.
get(key: string): string

Parameters

Parameter
Type
Description
key
string
Column name

Return

Type
Description
string
Data value.

Usage Examples

Obtain data values from the parameter file:
import dataset from 'pts/dataset';

export default function () {
// Obtain the data value from the dataset with the column name 'key1', assuming the value is 'value1'.
const value = dataset.get('key1');
// Output 'key1 => value1'.
console.log(`key1 => ${value}`);
}


도움말 및 지원

문제 해결에 도움이 되었나요?

피드백