Usage event

Report Usage Increment

post

Report usage as raw events or state updates.

Args: usage: Report of the usage of a feature. auth_context: The authentication context. organization_manager: The organization manager workspace_manager: The workspace manager

Raises: IllegalOperationError: If the user is not internal.

Authorizations
Body

Model for reporting raw usage of a feature.

In case of consumables the UsageReport allows the Pricing Backend to increment the usage per time-frame by 1.

organization_idstring · uuidRequired

The organization that this usage can be attributed to.

featurestring · enumRequired

The feature whose usage is being reported.

Possible values:
totalintegerRequired

The total amount of entities of this type.

metadataobject · MetadataOptional

Allows attaching additional metadata to events.

Default: {}
Responses
200
Successful Response
application/json
Responseany
post
POST /usage-event HTTP/1.1
Host: 
Authorization: Bearer YOUR_OAUTH2_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 99

{
  "organization_id": "123e4567-e89b-12d3-a456-426614174000",
  "feature": "user",
  "total": 1,
  "metadata": {}
}

No content

Last updated

Was this helpful?