DataStream is a JSON Structure definition published by Google Analytics, describing 8 properties. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.
{
"$schema": "https://json-structure.org/meta/core/v0/#",
"$id": "https://raw.githubusercontent.com/api-evangelist/google-analytics/refs/heads/main/json-structure/admin-api-data-stream-structure.json",
"name": "DataStream",
"description": "A resource message representing a data stream.",
"type": "object",
"properties": {
"androidAppStreamData": {
"description": "Data specific to Android app streams.",
"properties": {
"firebaseAppId": {
"description": "Output only. ID of the corresponding Android app in Firebase, if any. This ID can change if the Android app is deleted and recreated.",
"readOnly": true,
"type": "string"
},
"packageName": {
"description": "Immutable. The package name for the app being measured. Example: \"com.example.myandroidapp\"",
"type": "string"
}
},
"type": "object"
},
"createTime": {
"description": "Output only. Time when this stream was originally created.",
"readOnly": true,
"type": "datetime"
},
"displayName": {
"description": "Human-readable display name for the Data Stream. Required for web data streams. The max allowed display name length is 255 UTF-16 code units.",
"type": "string"
},
"iosAppStreamData": {
"description": "Data specific to iOS app streams.",
"properties": {
"bundleId": {
"description": "Required. Immutable. The Apple App Store Bundle ID for the app Example: \"com.example.myiosapp\"",
"type": "string"
},
"firebaseAppId": {
"description": "Output only. ID of the corresponding iOS app in Firebase, if any. This ID can change if the iOS app is deleted and recreated.",
"readOnly": true,
"type": "string"
}
},
"type": "object"
},
"name": {
"description": "Output only. Resource name of this Data Stream. Format: properties/{property_id}/dataStreams/{stream_id} Example: \"properties/1000/dataStreams/2000\"",
"readOnly": true,
"type": "string"
},
"type": {
"description": "Required. Immutable. The type of this DataStream resource.",
"enum": [
"DATA_STREAM_TYPE_UNSPECIFIED",
"WEB_DATA_STREAM",
"ANDROID_APP_DATA_STREAM",
"IOS_APP_DATA_STREAM"
],
"type": "string"
},
"updateTime": {
"description": "Output only. Time when stream payload fields were last updated.",
"readOnly": true,
"type": "datetime"
},
"webStreamData": {
"description": "Data specific to web streams.",
"properties": {
"defaultUri": {
"description": "Domain name of the web app being measured, or empty. Example: \"http://www.google.com\", \"https://www.google.com\"",
"type": "string"
},
"firebaseAppId": {
"description": "Output only. ID of the corresponding web app in Firebase, if any. This ID can change if the web app is deleted and recreated.",
"readOnly": true,
"type": "string"
},
"measurementId": {
"description": "Output only. Analytics Measurement ID. Example: \"G-1A2BCD345E\"",
"readOnly": true,
"type": "string"
}
},
"type": "object"
}
}
}