Xem thông tin quy trình
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Phần này cung cấp thông tin tổng quan về các phương thức Apps Script API mà bạn có thể dùng để liệt kê các quy trình của tập lệnh.
Tổng quan về phương thức API |
Liệt kê các quy trình của bạn |
processes.list
Kết quả: Trả về một mảng các đối tượng
Process , mỗi đối tượng chứa siêu dữ liệu cho một quy trình mà bạn đã chạy. Thông tin này bao gồm loại quy trình, trạng thái, thời gian bắt đầu và thời lượng.
Lựa chọn: Bạn có thể xác định và cung cấp một đối tượng
ListUserProcessFilter để lọc danh sách quy trình. Chỉ những quy trình khớp với tất cả các điều kiện lọc mới được trả về.
|
Liệt kê các quy trình của dự án |
processes.listScriptProcesses
Kết quả: Trả về một mảng gồm các đối tượng
Process , mỗi đối tượng chứa siêu dữ liệu cho một lần chạy quy trình từ một dự án tập lệnh được chỉ định. Thông tin này bao gồm loại quy trình, trạng thái, thời gian bắt đầu và thời lượng.
Lựa chọn: Bạn có thể xác định và cung cấp một đối tượng
ListScriptProcessesFilter để lọc danh sách quy trình. Chỉ những quy trình khớp với tất cả các điều kiện lọc mới được trả về.
|
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-08-31 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-08-31 UTC."],[[["\u003cp\u003eThe Apps Script API provides methods to list and manage script processes, including details like process type, status, and duration.\u003c/p\u003e\n"],["\u003cp\u003eYou can retrieve a list of your processes or filter them based on specific criteria using \u003ccode\u003eprocesses.list\u003c/code\u003e and providing a \u003ccode\u003eListUserProcessFilter\u003c/code\u003e object.\u003c/p\u003e\n"],["\u003cp\u003eSimilarly, you can retrieve processes associated with a particular script project using \u003ccode\u003eprocesses.listScriptProcesses\u003c/code\u003e and filtering them with a \u003ccode\u003eListScriptProcessesFilter\u003c/code\u003e object.\u003c/p\u003e\n"]]],[],null,["# Viewing Process Information\n\nThis section provides an overview of the Apps Script API methods you can use\nto list your script [processes](/apps-script/api/concepts/processes).\n\n| **API method overview** ||\n|--------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| **List your processes** | [processes.list](/apps-script/api/reference/rest/v1/processes/list) **Results** : Returns an array of [`Process`](/apps-script/api/reference/rest/v1/processes#Process) objects, each containing the metadata for a process you have run. This information includes the process type, status, start time, and duration. **Options** : You can define and provide a [`ListUserProcessFilter`](/apps-script/api/reference/rest/v1/processes/list#ListUserProcessesFilter) object to filter the process list. Only processes which match all of the filter conditions are returned. |\n| **List a project's processes** | [processes.listScriptProcesses](/apps-script/api/reference/rest/v1/processes/listScriptProcesses) **Results** : Returns an array of [`Process`](/apps-script/api/reference/rest/v1/processes#Process) objects, each containing the metadata for a process run from a specifed script project. This information includes the process type, status, start time, and duration. **Options** : You can define and provide a [`ListScriptProcessesFilter`](/apps-script/api/reference/rest/v1/processes/listScriptProcesses#ListScriptProcessesFilter) object to filter the process list. Only processes which match all of the filter conditions are returned. |"]]