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

NameTypeDescription

projectName*

String

Project name

groupName*

String

Group name

eventName*

String

Event name / header

description

String

Event description

notify

Boolean

TRUE ... Enable push notification on devices

{
    // 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