Chỉ có đầu ra. Tên tài nguyên của khoá bí mật này. Khoá bí mật này có thể là phần tử con của bất kỳ loại luồng nào. Định dạng: properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
displayName
string
Bắt buộc. Tên hiển thị mà con người đọc được cho khoá bí mật này.
secretValue
string
Chỉ có đầu ra. Giá trị bí mật của Measurement Protocol. Truyền giá trị này đến trường api_secret của API Measurement Protocol khi gửi lượt truy cập đến tài sản mẹ của mã thông báo bí mật này.
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 2025-07-26 UTC."],[[["\u003cp\u003e\u003ccode\u003eCalculatedMetric\u003c/code\u003e resource defines custom metrics with a formula, display name, and unit of measurement.\u003c/p\u003e\n"],["\u003cp\u003eMetrics can be based on standard or restricted data, such as cost or revenue, with access controlled by user roles.\u003c/p\u003e\n"],["\u003cp\u003eFormulas can incorporate basic arithmetic operations and reference other metrics, supporting customization.\u003c/p\u003e\n"],["\u003cp\u003eAPIs are available to manage calculated metrics, including creation, retrieval, updates, and deletion.\u003c/p\u003e\n"],["\u003cp\u003eEach metric has a unique ID (\u003ccode\u003ecalculatedMetricId\u003c/code\u003e) used for referencing in external APIs and integrations.\u003c/p\u003e\n"]]],["MeasurementProtocolSecret is a resource for sending hits to the Measurement Protocol. It contains a `name`, `displayName`, and `secretValue`. The secret value is used in the `api_secret` field when sending hits. Key actions include creating, deleting, retrieving (get), listing, and updating (patch) MeasurementProtocolSecrets. Each secret belongs to a parent property and can be managed using specified methods under `properties.dataStreams.measurementProtocolSecrets`. The json representation shows its fields and types.\n"],null,["# REST Resource: properties.dataStreams.measurementProtocolSecrets\n\n- [Resource: MeasurementProtocolSecret](#MeasurementProtocolSecret)\n - [JSON representation](#MeasurementProtocolSecret.SCHEMA_REPRESENTATION)\n- [Methods](#METHODS_SUMMARY)\n\nResource: MeasurementProtocolSecret\n-----------------------------------\n\nA secret value used for sending hits to Measurement Protocol.\n\n| JSON representation |\n|--------------------------------------------------------------------------|\n| ``` { \"name\": string, \"displayName\": string, \"secretValue\": string } ``` |\n\n| Fields ||\n|---------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `name` | `string` Output only. Resource name of this secret. This secret may be a child of any type of stream. Format: properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} |\n| `displayName` | `string` Required. Human-readable display name for this secret. |\n| `secretValue` | `string` Output only. The measurement protocol secret value. Pass this value to the api_secret field of the Measurement Protocol API when sending hits to this secret's parent property. |\n\n| Methods ------- ||\n|--------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------|\n| ### [create](/analytics/devguides/config/admin/v1/rest/v1alpha/properties.dataStreams.measurementProtocolSecrets/create) | Creates a measurement protocol secret. |\n| ### [delete](/analytics/devguides/config/admin/v1/rest/v1alpha/properties.dataStreams.measurementProtocolSecrets/delete) | Deletes target MeasurementProtocolSecret. |\n| ### [get](/analytics/devguides/config/admin/v1/rest/v1alpha/properties.dataStreams.measurementProtocolSecrets/get) | Lookup for a single MeasurementProtocolSecret. |\n| ### [list](/analytics/devguides/config/admin/v1/rest/v1alpha/properties.dataStreams.measurementProtocolSecrets/list) | Returns child MeasurementProtocolSecrets under the specified parent Property. |\n| ### [patch](/analytics/devguides/config/admin/v1/rest/v1alpha/properties.dataStreams.measurementProtocolSecrets/patch) | Updates a measurement protocol secret. |"]]