License Activity Bucket

A license activity bucket contains aggregated activity for a key, machine code, and time bucket.

License activity buckets are updated asynchronously, so very recent activity may not appear immediately. Each bucket covers a 30-minute UTC interval for a product, key, and normalized machine code. Machine codes are normalized by removing control characters, trimming whitespace, truncating to 256 characters, and uppercasing. Activity without a machine code is grouped under an empty machine code.

Buckets are built from activation refresh states 2010, 2011, 2012, 2013, 2014, 2015 and deactivation states 6010, 6011. LastEventState stores the Web API log state code of the latest event in the bucket. See Web API Log state codes for the general format.

Structure

Parameter Description Remarks
Id A unique identifier of this bucket. An integer
ProductId The id of the product. An integer
KeyId The license key ID. An integer
Key The license key string, if the key still exists. A string
MachineCode The machine code associated with this bucket. A string
BucketStartUtc The start time of the 30-minute activity bucket. Unix timestamp (integer)
RefreshCount The number of activation refresh events in the bucket. An integer. Counts states 2010, 2011, 2012, 2013, 2014, and 2015.
DeactivationCount The number of deactivation events in the bucket. An integer. Counts states 6010 and 6011.
FirstEventUtc The first event time in the bucket. Unix timestamp (integer)
LastEventUtc The last event time in the bucket. Unix timestamp (integer)
LastEventState The state code of the last event in the bucket. An integer. See Web API Log state codes.
GapFromPreviousEventSeconds The gap, in seconds, between the first event in this bucket and the previous event for the same product, key, and machine code when available. An integer or null
;