License events provide feature-level consumption information, allowing you to monitor license usage and track usage against license limits.

Consumption reported

Event triggered when usage is reported for a license.

Payload

object
  • id string

    Unique identifier of the event.

  • time string

    Timestamp of when the event is emitted.

  • type string
    Required

    The event type identifier.

  • source string

    The source of the event. Always set to the fixed value qlik.com/licenses by the publisher.

  • specversion string

    CloudEvents spec version.

    Can be one of: "1.0"

  • datacontenttype string

    The content type of the event payload.

  • authtype string

    The type of principal that triggered the event.

  • authclaims string

    JSON string representing claims of the principal.

  • tracestate string

    A comma-delimited list of key-value pairs.

  • traceparent string

    Contains a version, trace ID, span ID, and trace options.

  • data object
    Required
    Show data properties
    • unit string

      The usage unit.

    • featureId string
      Required

      The feature identifier.

    • periodEnd string

      End of the current usage period, if specified.

    • periodType string

      The reset period type (e.g. month).

      Can be one of: "day""week""month""year"

    • usageLimit number
      Required

      The total amount of the feature resource available for the current period.

    • featureName string

      The feature display name.

    • isSoftLimit boolean
      Required

      Whether the limit is a soft limit. Soft limits are not enforced.

    • periodStart string

      Start of the current usage period, if specified.

    • currentUsage number
      Required

      Current consumption of the feature resource.

    • currentChange number
      Required

      Change in usage since last measurement.

    • hasUnlimitedUsage boolean
      Required

      Whether there is unlimited availability of the feature resource for the current period. If true, usageLimit is null and usageUsedPercentage is 0.

    • usageUsedPercentage number
      Required

      Percentage of the feature resource consumed. Relative to usageLimit, can go above 100.

  • tenantid string
    Required

    Unique identifier of the tenant related to the event.

com.qlik.core.license.consumption.reported

Example payload of the "Consumption reported" event

{
"id": "string",
"time": "2018-10-30T07:06:22Z",
"type": "com.qlik.core.license.consumption.reported",
"source": "string",
"specversion": "1.0",
"datacontenttype": "application/json",
"authtype": "string",
"authclaims": "string",
"tracestate": "string",
"traceparent": "string",
"data": {
"unit": "string",
"featureId": "string",
"periodEnd": "2018-10-30T07:06:22Z",
"periodType": "day",
"usageLimit": 42,
"featureName": "string",
"isSoftLimit": true,
"periodStart": "2018-10-30T07:06:22Z",
"currentUsage": 42,
"currentChange": 42,
"hasUnlimitedUsage": true,
"usageUsedPercentage": 42
},
"tenantid": "string"
}