HiveMP Event Tracking provides you with a near real-time event streaming and reporting solution that you can use for any purpose. This quickstart will guide you through creating a new event type to report events into, and then sending events from your game or application.
When your event type is first created, it won't have any versions. You need to create a version to send events to it.
You can now send an event to HiveMP Event Tracking:
read -r -d '' _request_body << EOM
{
"test": "My test event data"
}
EOM
curl -s \
-H "X-API-Key: $apiKey" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
--data "$_request_body" \
-X PUT \
"https://event-api.hivemp.com/v1/event/insert"\
"?eventType=MyTestEvent"\
"&eventTypeVersion=MyTestEvent"
You'll receive a value of true
from this endpoint if the event data was ingested into HiveMP Event Tracking successfully. If so, you can then analyse your event data as outlined in Analysing stored events.