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

# UsageEvent

> A usage event record



**Kind**: `object`

## Fields

**`customer`**: `Customer`

Customer

---

**`customerId`**: `String!`

Customer id

---

**`dimensions`**: `JSON`

Dimensions associated with the usage event

---

**`eventName`**: `String!`

The name of the usage event

---

**`id`**: `String!`

Unique identifier for the entity

---

**`idempotencyKey`**: `String!`

A key you provide to safely retry the same usage report without double-counting it. Reports with a previously-seen idempotency key are deduplicated for 7 days; after that window a retry is treated as new usage.

---

**`resourceId`**: `String`

The customer resource this usage applies to. Optional — only required if the customer has multiple resources (for example, one subscription per workspace or site) and usage needs to be tracked separately per resource; omit it to report usage at the customer level.

---

**`timestamp`**: `String!`

Timestamp



## Related topics

- [usageEvents](https://docs.stigg.io/graphql-reference/queries/usageEvents.md)
- [Viewing usage events](https://docs.stigg.io/documentation/getting-usage-data-into-stigg/viewing-usage-events.md)
- [Report usage events](https://docs.stigg.io/api-reference/usage/report-usage-events.md)
- [UsageEventsInput](https://docs.stigg.io/graphql-reference/types/UsageEventsInput.md)
- [UsageEventsPreview](https://docs.stigg.io/graphql-reference/types/UsageEventsPreview.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.