Field | Type | Description |
userID | string | User UIN. |
appID | string | Account AppID. |
scenarioID | string | Performance testing scenario ID. |
region | string | The region of the performance testing task. |
jobID | string | Performance testing task ID. |
import { metadata } from 'pts';export default function () {// md is an interface object for Metadata.let md = metadata();console.log(md.userID); // 123456console.log(md.appID); // 123456console.log(md.scenarioID); // scenario-xxxxxxxxconsole.log(md.region); // ap-guangzhouconsole.log(md.jobID); // job-xxxxxxxx}