Skip to content
On this page

NS1 Observium API Python Library

A python library for interacting with the Observium API: http://docs.observium.org/api/

Installing

$ pip install NsoneObservium

Examples

[see more]http://docs.observium.org/api/#get-endpoints

from NsoneObservium.NsoneObservium import NsoneObservium

observium = NsoneObservium('https://observium01.example.com', 'myuser', 'mypassword', ssl_verify=False)
observium.get_devices({'hostname': "mpr.myrouter"})

observium.get_devices()
observium.get_devices({'device_id': "34"})

observium.get_alerts()
observium.get_alerts({'alert_id': "234"})