Method: properties.getPropertyQuotasSnapshot
Nhận tất cả hạn mức cơ sở lưu trú được sắp xếp theo danh mục hạn mức cho một cơ sở lưu trú nhất định. Thao tác này sẽ tính phí 1 hạn mức cơ sở lưu trú trong danh mục có nhiều hạn mức nhất.
Yêu cầu HTTP
GET https://analyticsdata.googleapis.com/v1alpha/{name=properties/*/propertyQuotasSnapshot}
URL sử dụng cú pháp Chuyển mã gRPC.
Tham số đường dẫn
Tham số |
name |
string
Bắt buộc. Hạn mức của tài sản này sẽ được liệt kê trong nội dung phản hồi. Định dạng properties/{property}/propertyQuotasSnapshot
|
Nội dung yêu cầu
Nội dung yêu cầu phải trống.
Nội dung phản hồi
Trạng thái hiện tại của tất cả Hạn mức tài sản được sắp xếp theo danh mục hạn mức.
Nếu thành công, phần nội dung phản hồi sẽ chứa dữ liệu có cấu trúc sau:
Biểu diễn dưới dạng JSON |
{
"name": string,
"corePropertyQuota": {
object (PropertyQuota )
},
"realtimePropertyQuota": {
object (PropertyQuota )
},
"funnelPropertyQuota": {
object (PropertyQuota )
}
} |
Trường |
name |
string
Giá trị nhận dạng. Tên tài nguyên tổng quan nhanh về hạn mức của tài sản.
|
corePropertyQuota |
object (PropertyQuota )
Hạn mức tài sản cho mã thông báo tài sản cốt lõi
|
realtimePropertyQuota |
object (PropertyQuota )
Hạn mức tài sản cho mã thông báo tài sản theo thời gian thực
|
funnelPropertyQuota |
object (PropertyQuota )
Hạn mức tài sản cho mã thông báo tài sản phễu
|
Phạm vi uỷ quyền
Yêu cầu một trong các phạm vi OAuth sau:
https://www.googleapis.com/auth/analytics.readonly
https://www.googleapis.com/auth/analytics
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: 2024-11-22 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2024-11-22 UTC."],[[["Retrieves property quota information for a given Google Analytics 4 property, organized by quota category (core, realtime, funnel)."],["Uses an HTTP GET request with the property ID specified in the URL path."],["Returns a JSON response containing the current state of all property quotas, including their respective remaining tokens."],["Requires authorization with either \"analytics.readonly\" or \"analytics\" scope."],["This action consumes 1 property quota from the category with the most remaining quota upon execution."]]],["This content describes retrieving property quotas via a `GET` request to `https://analyticsdata.googleapis.com/v1alpha/{name=properties/*/propertyQuotasSnapshot}`. The `name` path parameter, specifying the property, is required. The request body must be empty. The response returns a JSON object containing the current state of `core`, `realtime`, and `funnel` property quotas, organized by category, along with a resource name. Authorization requires either the `analytics.readonly` or `analytics` OAuth scope. This operation consumes one quota from the highest-usage quota category.\n"]]