Quick start

Integration is very easy, a simple REST command is all that's needed to store your event in our lodatabase.

Push Event to LogHive

POST https://api.loghive.app/v1/event/add

Request Body

{
    // Response
}

Here is a example code to send an event to LogHive. You can find various code examples under Code Examples.

Example Code for Python

import requests
import json

url = "https://api.loghive.app/v1/event/add"
headers = {'Content-Type': 'application/json', 'ApiKey': 'YourPersonalApiKey'}
data = { "project": "yourprojectname","group": "yourgroupname","event": "your-event-name", "description": "your-description", "notify": False }
response = requests.post(url, headers=headers, data=json.dumps(data))

print(response.status_code)
if response.status_code != 200:
    print(response.json())

Last updated