Represents an entry in a data source.
Each Event has:
- A timestamp at which the event occurs.
- One or multiple dimensions.
- Optionally, a group ID that allows clients to group logically related events (for example, all events representing payments transactions done by a user in a day have the same group ID). If a group ID is not provided, an internal one will be generated based on the content and
eventTime
.
NOTE:
- Internally, we discretize time in equal-sized chunks and we assume an event has a 0
TimeseriesPoint.value
in a chunk that does not contain any occurrences of an event in the input. - The number of Events with the same group ID should be limited.
- Group ID cannot be queried.
- Group ID does not correspond to a user ID or the like. If a user ID is of interest to be queried, use a user ID
dimension
instead.
JSON representation |
---|
{
"dimensions": [
{
object ( |
Fields | |
---|---|
dimensions[] |
Event dimensions. |
groupId |
Event group ID. NOTE: JSON encoding should use a string to hold a 64-bit integer value, because a native JSON number holds only 53 binary bits for an integer. |
eventTime |
Event timestamp. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
EventDimension
Represents an event dimension.
JSON representation |
---|
{ "name": string, // Union field |
Fields | |
---|---|
name |
Dimension name. NOTE: |
Union field NOTE: All entries of the dimension |
|
stringVal |
String representation. NOTE: String values are case insensitive. Unicode characters are supported. |
longVal |
Long representation. |
boolVal |
Bool representation. |
doubleVal |
Double representation. |