Method: properties.calculatedMetrics.get
Tìm một chỉ số được tính duy nhất.
Yêu cầu HTTP
GET https://analyticsadmin.googleapis.com/v1alpha/{name=properties/*/calculatedMetrics/*}
URL sử dụng cú pháp Chuyển mã gRPC.
Tham số đường dẫn
Tham số |
name |
string
Bắt buộc. Tên của Chỉ số tính toán cần nhận. Định dạng: thuộc tính/{property_id}/CalculateMetrics/{computeMetricId} Ví dụ: thuộc tính/1234/CalculateMetrics/Metric01
|
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
Nếu thành công, nội dung phản hồi sẽ chứa một phiên bản của CalculatedMetric
.
Phạm vi uỷ quyền
Yêu cầu một trong các phạm vi OAuth sau đây:
https://www.googleapis.com/auth/analytics.readonly
https://www.googleapis.com/auth/analytics.edit
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-05-06 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2024-05-06 UTC."],[[["This document outlines how to retrieve a single CalculatedMetric using the Google Analytics Admin API."],["The request involves sending an HTTP GET request to the specified URL with necessary path parameters."],["No request body is needed for the lookup."],["Successful requests will return a CalculatedMetric object in the response body."],["Proper authorization with the specified scopes is required to access this functionality."]]],["This document outlines how to retrieve a single CalculatedMetric using the Google Analytics Admin API. The `GET` request targets a specific URL structure: `https://analyticsadmin.googleapis.com/v1alpha/{name=properties/*/calculatedMetrics/*}`. The `name` path parameter, which contains the property and metric IDs, is mandatory. The request body must be empty. Upon success, the API returns a `CalculatedMetric` instance. Authorization requires either `analytics.readonly` or `analytics.edit` OAuth scopes.\n"]]