List metering events
Changed onList ingested events.
Request
- Base URL: http://localhost:8888/api/v3
- URL: http://localhost:8888/api/v3/openmeter/events
- Auth: none declared
Query parameters
Filter events returned in the response.
To filter events by subject add the following query param: filter[subject][eq]=customer-1
{
"customer_id": "01G65Z755AFWAKHE12NY0CQ9FH",
"time": "2023-01-01T01:01:01.001Z",
"ingested_at": "2023-01-01T01:01:01.001Z",
"stored_at": "2023-01-01T01:01:01.001Z"
}The asc suffix is optional as the default sort order is ascending. The desc suffix is used to specify a descending order. Multiple sort attributes may be provided via a comma separated list. JSONPath notation may be used to specify a sub-attribute (eg: 'foo.bar desc').
Sort events returned in the response. Supported sort attributes are:
- time (default)
- ingested_at
- stored_at
When omitted, events are sorted by time desc (most recent first). When a sort field is provided without a suffix, it sorts descending. Append the asc suffix to sort ascending, or the desc suffix to sort descending.
Response
Cursor paginated response.
Example response
{
"data": [
{
"event": {
"id": "5c10fade-1c9e-4d6c-8275-c52c36731d3c",
"source": "service-name",
"specversion": "1.0",
"type": "prompt",
"subject": "customer_key",
"time": "2023-01-01T01:01:01.001Z"
},
"customer": {
"id": "01G65Z755AFWAKHE12NY0CQ9FH"
},
"ingested_at": "2023-01-01T01:01:01.001Z",
"stored_at": "2023-01-01T01:01:02.001Z"
}
],
"meta": {
"page": {
"size": 10
}
}
}Changes
- info
for the
queryrequest parameterfilter, the format of propertycustomer_id/allOf[subschema #1: ULID Field Filter]/anyOf[subschema #2]/oeqwas generalized fromArrayEncoding.commaDelimitedto no format - info
for the
queryrequest parameterfilter, the format of propertyid/allOf[StringFieldFilter]/anyOf[subschema #2]/ocontainswas generalized fromArrayEncoding.commaDelimitedto no format - info
for the
queryrequest parameterfilter, the format of propertyid/allOf[StringFieldFilter]/anyOf[subschema #2]/oeqwas generalized fromArrayEncoding.commaDelimitedto no format - info
for the
queryrequest parameterfilter, the format of propertysource/allOf[StringFieldFilter]/anyOf[subschema #2]/ocontainswas generalized fromArrayEncoding.commaDelimitedto no format - info
for the
queryrequest parameterfilter, the format of propertysource/allOf[StringFieldFilter]/anyOf[subschema #2]/oeqwas generalized fromArrayEncoding.commaDelimitedto no format - info
for the
queryrequest parameterfilter, the format of propertysubject/allOf[StringFieldFilter]/anyOf[subschema #2]/ocontainswas generalized fromArrayEncoding.commaDelimitedto no format - info
for the
queryrequest parameterfilter, the format of propertysubject/allOf[StringFieldFilter]/anyOf[subschema #2]/oeqwas generalized fromArrayEncoding.commaDelimitedto no format - info
for the
queryrequest parameterfilter, the format of propertytype/allOf[StringFieldFilter]/anyOf[subschema #2]/ocontainswas generalized fromArrayEncoding.commaDelimitedto no format - info
for the
queryrequest parameterfilter, the format of propertytype/allOf[StringFieldFilter]/anyOf[subschema #2]/oeqwas generalized fromArrayEncoding.commaDelimitedto no format
- info
- breaking
for the
queryrequest parameterfilter, the format of propertycustomer_id/allOf[subschema #1: ULID Field Filter]/anyOf[subschema #2]/oeqwas specialized from no format toArrayEncoding.commaDelimited - breaking
for the
queryrequest parameterfilter, the format of propertyid/allOf[StringFieldFilter]/anyOf[subschema #2]/ocontainswas specialized from no format toArrayEncoding.commaDelimited - breaking
for the
queryrequest parameterfilter, the format of propertyid/allOf[StringFieldFilter]/anyOf[subschema #2]/oeqwas specialized from no format toArrayEncoding.commaDelimited - breaking
for the
queryrequest parameterfilter, the format of propertysource/allOf[StringFieldFilter]/anyOf[subschema #2]/ocontainswas specialized from no format toArrayEncoding.commaDelimited - breaking
for the
queryrequest parameterfilter, the format of propertysource/allOf[StringFieldFilter]/anyOf[subschema #2]/oeqwas specialized from no format toArrayEncoding.commaDelimited - breaking
for the
queryrequest parameterfilter, the format of propertysubject/allOf[StringFieldFilter]/anyOf[subschema #2]/ocontainswas specialized from no format toArrayEncoding.commaDelimited - breaking
for the
queryrequest parameterfilter, the format of propertysubject/allOf[StringFieldFilter]/anyOf[subschema #2]/oeqwas specialized from no format toArrayEncoding.commaDelimited - breaking
for the
queryrequest parameterfilter, the format of propertytype/allOf[StringFieldFilter]/anyOf[subschema #2]/ocontainswas specialized from no format toArrayEncoding.commaDelimited - breaking
for the
queryrequest parameterfilter, the format of propertytype/allOf[StringFieldFilter]/anyOf[subschema #2]/oeqwas specialized from no format toArrayEncoding.commaDelimited
- breaking