tencent cloud

All product documents
Tencent Cloud Observability Platform
dataset.get
Last updated: 2025-03-11 19:41:14
dataset.get
Last updated: 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}`);
}

Was this page helpful?
You can also Contact Sales or Submit a Ticket for help.
Yes
No

Feedback

Contact Us

Contact our sales team or business advisors to help your business.

Technical Support

Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

7x24 Phone Support
Hong Kong, China
+852 800 906 020 (Toll Free)
United States
+1 844 606 0804 (Toll Free)
United Kingdom
+44 808 196 4551 (Toll Free)
Canada
+1 888 605 7930 (Toll Free)
Australia
+61 1300 986 386 (Toll Free)
EdgeOne hotline
+852 300 80699
More local hotlines coming soon