0.1.3•Updated 10 days ago
declare namespace Draco {
export interface Event {
/**
* A short name for this type of event.
*
* On the Draco dashboard, you can filter logs by event type. This will be one of those options.
*
* Should not contain any unique identifiers or values that could change per-request, as it will clog up the filters and decouple these types of events.
*
* For dynamic or complex information, pass an `information` property.
*/
type: string
/**
* Dynamic or complex information regarding this event.
*/
information?: string
/**
* The IP address of the user, not the applet or host.
*
* Provide this when possible.
*/
ip_address?: string
}
namespace Event {
interface Request {
cookie_uuid: string
event: Draco.Event['type']
ip_address?: Draco.Event['ip_address']
information?: Draco.Event['information']
}
}
}