REST Resource: properties.dataStreams.measurementProtocolSecrets
资源:MeasurementProtocolSecret
用于向 Measurement Protocol 发送命中数据的密钥值。
JSON 表示法 |
{
"name": string,
"displayName": string,
"secretValue": string
} |
字段 |
name |
string
仅限输出。此 Secret 的资源名称。此 Secret 可以是任何类型的串流的子级。Format: properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
|
displayName |
string
必需。此 Secret 的直观易懂的显示名称。
|
secretValue |
string
仅限输出。Measurement Protocol 密钥值。将命中数据发送到此密钥的父级媒体资源时,将此值传递给 Measurement Protocol API 的 api_secret 字段。
|
方法 |
|
创建 Measurement Protocol Secret。 |
|
删除目标 MeasurementProtocolSecret。 |
|
查找单个 MeasurementProtocolSecret。 |
|
返回指定父媒体资源下的子 MeasurementProtocolSecret。 |
|
更新 Measurement Protocol 密钥。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-01-14。
[null,null,["最后更新时间 (UTC):2025-01-14。"],[[["`CalculatedMetric` resource defines custom metrics with a formula, display name, and unit of measurement."],["Metrics can be based on standard or restricted data, such as cost or revenue, with access controlled by user roles."],["Formulas can incorporate basic arithmetic operations and reference other metrics, supporting customization."],["APIs are available to manage calculated metrics, including creation, retrieval, updates, and deletion."],["Each metric has a unique ID (`calculatedMetricId`) used for referencing in external APIs and integrations."]]],["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"]]