ee.data.setWorkloadTag
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
ตั้งค่าแท็กภาระงานที่ใช้ในการติดป้ายกำกับการคำนวณและการส่งออก
แท็กภาระงานต้องมีความยาว 1-63 อักขระ โดยขึ้นต้นและลงท้ายด้วยอักขระที่เป็นตัวอักษรและตัวเลขคละกัน ([a-z0-9A-Z]) พร้อมมีขีดกลาง (-), ขีดล่าง (_), จุด
(.) และอักขระที่เป็นตัวอักษรและตัวเลขคละกันอยู่ระหว่าง หรือสตริงว่างเพื่อล้างแท็กภาระงาน
การใช้งาน | การคืนสินค้า |
---|
ee.data.setWorkloadTag(tag) | |
อาร์กิวเมนต์ | ประเภท | รายละเอียด |
---|
tag | สตริง | |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-26 UTC
[null,null,["อัปเดตล่าสุด 2025-07-26 UTC"],[[["\u003cp\u003eSets a workload tag to label computations and exports for tracking and management purposes.\u003c/p\u003e\n"],["\u003cp\u003eThe tag must adhere to specific length and character restrictions, including alphanumeric start and end, with dashes, underscores, dots, and alphanumerics allowed in between.\u003c/p\u003e\n"],["\u003cp\u003eAn empty string can be used to clear any existing workload tag.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eee.data.setWorkloadTag(tag)\u003c/code\u003e function is utilized to set the desired workload tag.\u003c/p\u003e\n"]]],["The `ee.data.setWorkloadTag(tag)` function sets a workload tag, used for labeling computations and exports. The tag must be a string of 1-63 characters. It must start and end with an alphanumeric character and can include dashes, underscores, and dots in between. Alternatively, an empty string clears the current tag. The function doesn't return any value.\n"],null,["# ee.data.setWorkloadTag\n\n\u003cbr /\u003e\n\nSets the workload tag, used to label computation and exports.\n\n\u003cbr /\u003e\n\nWorkload tag must be 1 - 63 characters, beginning and ending with an alphanumeric character (\\[a-z0-9A-Z\\]) with dashes (-), underscores (_), dots\n\n(.), and alphanumerics between, or an empty string to clear the workload tag.\n\n| Usage | Returns |\n|-------------------------------|---------|\n| `ee.data.setWorkloadTag(tag)` | |\n\n| Argument | Type | Details |\n|----------|--------|---------|\n| `tag` | String | |"]]