# StatsEvent properties

## $id <a href="#id" id="id"></a>

The id of the event in the database.

## $type <a href="#type" id="type"></a>

The type of the stats event, matching the name of the class that generated it.

## $subType <a href="#subtype" id="subtype"></a>

The sub-type of the stats event.

## $resolution <a href="#resolution" id="resolution"></a>

The time frame resolution used by this event. One of the available [`STATS_EVENT_TIME_RESOLUTION_?`](/reference/core-classes/statsevent.md#constants) constants.

## $timestamp <a href="#dateadded" id="dateadded"></a>

The timestamp this event was added to the event log.

## $isSecondaryId <a href="#issecondaryid" id="issecondaryid"></a>

Whether this [StatsEvent](/reference/core-classes/statsevent.md) uses secondary id or not.

## $secondary\_id <a href="#secondary_id" id="secondary_id"></a>

The secondary if for this event.

## $isTertiaryId <a href="#istertiaryid" id="istertiaryid"></a>

Whether this [StatsEvent](/reference/core-classes/statsevent.md) uses tertiary id or not.

## $tertiary\_id <a href="#tertiary-id" id="tertiary-id"></a>

The tertiary if for this event.

## $count <a href="#count" id="count"></a>

The number of times this stats event has been triggered during the time frame specified by this event's `resolution` and `timestamp`.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://cherrycake.tin.cat/reference/core-classes/statsevent/statsevent-properties.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
