> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# PFEventsEventContents

> PFEventsEventContents data model.

PFEventsEventContents data model.

## Syntax

```cpp theme={null}
typedef struct PFEventsEventContents {  
    PFStringDictionaryEntry const* customTags;  
    uint32_t customTagsCount;  
    PFEntityKey const* entity;  
    const char* eventNamespace;  
    const char* name;  
    const char* originalId;  
    time_t const* originalTimestamp;  
    PFJsonObject payload;  
    const char* payloadJSON;  
} PFEventsEventContents;  
```

### Members

**`customTags`**   PFStringDictionaryEntry const\*<br />*may be nullptr*

(Optional) The optional custom tags associated with the event (e.g. build number, external trace identifiers, etc.). Before an event is written, this collection and the base request custom tags will be merged, but not overridden. This enables the caller to specify static tags and per event tags.

**`customTagsCount`**   uint32\_t

Count of customTags

**`entity`**   PFEntityKey const\*<br />*may be nullptr*

(Optional) Entity associated with the event. If null, the event will apply to the calling entity.

**`eventNamespace`**   const char\*<br />*is null-terminated*

The namespace in which the event is defined. Allowed namespaces can vary by API.

**`name`**   const char\*<br />*is null-terminated*

The name of this event.

**`originalId`**   const char\*<br />*is null-terminated*

(Optional) The original unique identifier associated with this event before it was posted to PlayFab. The value might differ from the EventId value, which is assigned when the event is received by the server.

**`originalTimestamp`**   time\_t const\*<br />*may be nullptr*

(Optional) The time (in UTC) associated with this event when it occurred. If specified, this value is stored in the OriginalTimestamp property of the PlayStream event.

**`payload`**   PFJsonObject

(Optional) Arbitrary data associated with the event. Only one of Payload or PayloadJSON is allowed.

**`payloadJSON`**   const char\*<br />*is null-terminated*

(Optional) Arbitrary data associated with the event, represented as a JSON serialized string. Only one of Payload or PayloadJSON is allowed.

## Requirements

**Header:** PFEventsTypes.h

## See also

[PFEventsTypes members](/services/playfab/api-references/c/pfeventstypes/pfeventstypes_members)
