Query
query UsageEvents($input: UsageEventsInput!) {
usageEvents(input: $input) {
events {
customer {
additionalMetaData
awsMarketplaceCustomerId
billingCurrency
billingId
billingLinkUrl
coupon {
__typename
}
}
customerId
dimensions
eventName
id
idempotencyKey
}
}
}Variables
{
"input": {
"environmentId": "value"
}
}Response
{
"data": {
"usageEvents": {
"events": [
{
"customer": {
"additionalMetaData": "value",
"awsMarketplaceCustomerId": "string",
"billingCurrency": "AED",
"billingId": "string",
"billingLinkUrl": "string",
"coupon": {
"__typename": "Coupon"
}
},
"customerId": "string",
"dimensions": "value",
"eventName": "string",
"id": "string",
"idempotencyKey": "string"
}
]
}
}
}Queries
usageEvents
Get usage events
QUERY
usageEvents(input: UsageEventsInput!): UsageEventsPreview!Arguments
input
required
Input for usage events
Returns
events
[UsageEvent!]!
A usage event record
Query
query UsageEvents($input: UsageEventsInput!) {
usageEvents(input: $input) {
events {
customer {
additionalMetaData
awsMarketplaceCustomerId
billingCurrency
billingId
billingLinkUrl
coupon {
__typename
}
}
customerId
dimensions
eventName
id
idempotencyKey
}
}
}Variables
{
"input": {
"environmentId": "value"
}
}Response
{
"data": {
"usageEvents": {
"events": [
{
"customer": {
"additionalMetaData": "value",
"awsMarketplaceCustomerId": "string",
"billingCurrency": "AED",
"billingId": "string",
"billingLinkUrl": "string",
"coupon": {
"__typename": "Coupon"
}
},
"customerId": "string",
"dimensions": "value",
"eventName": "string",
"id": "string",
"idempotencyKey": "string"
}
]
}
}
}