Comment on page
Quick start
Integration is very easy, a simple REST command is all that's needed to store your event in our lodatabase.
post
https://api.loghive.app
/v1/event/add
Push Event to LogHive
Here is a example code to send an event to LogHive. You can find various code examples under Code Examples.
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 modified 8mo ago