REST Resource: properties.dataStreams.measurementProtocolSecrets
Resource: MeasurementProtocolSecret
A secret value used for sending hits to Measurement Protocol.
JSON representation |
{
"name": string,
"displayName": string,
"secretValue": string
} |
Fields |
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}
|
displayName |
string
Required. Human-readable display name for this secret.
|
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.
|
Methods |
|
Creates a measurement protocol secret. |
|
Deletes target MeasurementProtocolSecret. |
|
Lookup for a single MeasurementProtocolSecret. |
|
Returns child MeasurementProtocolSecrets under the specified parent Property. |
|
Updates a measurement protocol secret. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-14 UTC.
[null,null,["Last updated 2025-01-14 UTC."],[[["`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"]]