ee.data.setDefaultWorkloadTag
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
ตั้งค่าแท็กภาระงานและตั้งเป็นค่าเริ่มต้นที่จะรีเซ็ตกลับไป
เช่น การเรียกใช้ ee.data.resetWorkloadTag()
จะรีเซ็ตแท็กภาระงานกลับไปเป็นค่าเริ่มต้นที่เลือกไว้ที่นี่ หากต้องการรีเซ็ตค่าเริ่มต้นเป็นไม่มี ให้ส่งสตริงว่างหรือส่งค่าเป็นจริงไปยัง ee.data.resetWorkloadTag(true)
ดังนี้
แท็กภาระงานต้องมีความยาว 1-63 อักขระ โดยขึ้นต้นและลงท้ายด้วยอักขระที่เป็นตัวอักษรและตัวเลขคละกัน ([a-z0-9A-Z]) พร้อมมีขีดกลาง (-), ขีดล่าง (_), จุด
(.) และอักขระที่เป็นตัวอักษรและตัวเลขคละกันอยู่ระหว่าง หรือสตริงว่างเพื่อรีเซ็ตค่าเริ่มต้นเป็นไม่มี
การใช้งาน | การคืนสินค้า |
---|
ee.data.setDefaultWorkloadTag(tag) | |
อาร์กิวเมนต์ | ประเภท | รายละเอียด |
---|
tag | สตริง | |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-26 UTC
[null,null,["อัปเดตล่าสุด 2025-07-26 UTC"],[[["\u003cp\u003eSets the default workload tag used by Earth Engine for tracking and managing API requests.\u003c/p\u003e\n"],["\u003cp\u003eCalling \u003ccode\u003eee.data.resetWorkloadTag()\u003c/code\u003e will revert the workload tag to this default.\u003c/p\u003e\n"],["\u003cp\u003eThe workload tag can be reset to none by providing an empty string or using \u003ccode\u003eee.data.resetWorkloadTag(true)\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eValid workload tags are 1-63 characters long and follow specific formatting rules with alphanumeric start and end, allowing dashes, underscores, dots and alphanumerics in between.\u003c/p\u003e\n"]]],[],null,["# ee.data.setDefaultWorkloadTag\n\n\u003cbr /\u003e\n\nSets the workload tag, and as the default for which to reset back to.\n\n\u003cbr /\u003e\n\nFor example, calling `ee.data.resetWorkloadTag()` will reset the workload tag back to the default chosen here. To reset the default back to none, pass in an empty string or pass in true to `ee.data.resetWorkloadTag(true)`, like so.\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 reset the default back to none.\n\n| Usage | Returns |\n|--------------------------------------|---------|\n| `ee.data.setDefaultWorkloadTag(tag)` | |\n\n| Argument | Type | Details |\n|----------|--------|---------|\n| `tag` | String | |"]]