Skip to content

PutEventRequest

Source code in docs_src/capo_appmonetization/types/put_event_request.py
class PutEventRequest(TypedDict, closed=True):
    app_id: "capo_appmonetization.types.app_id.AppId"
    """The ID of the app the event belongs to."""
    client_token: NotRequired["capo_appmonetization.types.client_token.ClientToken"]
    """A unique, case-sensitive identifier to ensure that the operation completes no more than one time. If this token matches a previous request, the service ignores the request but does not return an error."""
    user_id: "capo_appmonetization.types.user_id.UserId"
    """The ID of the end user the event is attributed to. Do not include personally identifiable or otherwise sensitive data in this value."""
    event_type: "capo_appmonetization.types.source_event_type.SourceEventType"
    """The event type. Correlates with the event type of the metrics that aggregate it."""
    quantity: "capo_appmonetization.types.quantity.Quantity"
    """The amount of usage the event represents, as a non-negative decimal string (for example, "1" or "12.5")."""
    timestamp: "capo_appmonetization.types.timestamp.Timestamp"
    """The time the event occurred."""
    properties: NotRequired[
        "capo_appmonetization.types.event_properties.EventProperties"
    ]
    """The key/value properties carried on the event, usable in metric filters and grouping. When a metric sums or takes the max of a property, that property's value must be a plain non-negative decimal (up to 15 digits before the point and 6 after; no sign, exponent, spaces, or commas, for example "1200" or "12.5"), and events that break this are rejected."""
    scope: "capo_appmonetization.types.request_scope.RequestScope"
    """The environment of the app that this operation applies to: the live app or the app's isolated sandbox test environment."""

app_id instance-attribute

app_id: AppId

The ID of the app the event belongs to.

client_token instance-attribute

client_token: NotRequired[ClientToken]

A unique, case-sensitive identifier to ensure that the operation completes no more than one time. If this token matches a previous request, the service ignores the request but does not return an error.

event_type instance-attribute

event_type: SourceEventType

The event type. Correlates with the event type of the metrics that aggregate it.

properties instance-attribute

properties: NotRequired[EventProperties]

The key/value properties carried on the event, usable in metric filters and grouping. When a metric sums or takes the max of a property, that property's value must be a plain non-negative decimal (up to 15 digits before the point and 6 after; no sign, exponent, spaces, or commas, for example "1200" or "12.5"), and events that break this are rejected.

quantity instance-attribute

quantity: Quantity

The amount of usage the event represents, as a non-negative decimal string (for example, "1" or "12.5").

scope instance-attribute

scope: RequestScope

The environment of the app that this operation applies to: the live app or the app's isolated sandbox test environment.

timestamp instance-attribute

timestamp: Timestamp

The time the event occurred.

user_id instance-attribute

user_id: UserId

The ID of the end user the event is attributed to. Do not include personally identifiable or otherwise sensitive data in this value.