Skip to main content

Python Bindings for the TrueSight Pulse REST APIs

Project description

BMC TRUESIGHT PULSE API FOR PYTHON

TrueSight Pulse API for Python provides bindings for the python language

Visit http://boundary.github.io/pulse-api-python for documentation.

[Build Status]

© Copyright 2005-2016 BMC Software, Inc. Use of this software signifies your acceptance of BMC’s Terms of Use, Privacy Policy and Cookie Notice. BMC, BMC Software, the BMC logos, and other BMC marks are trademarks or registered trademarks of BMC Software, Inc. in the U.S. and/or certain other countries.

Installing

$ pip install tspapi

Examples

Create a Metric

import tspapi from datetime import datetime

# The following assumes the following environment variables are set # export TSP_EMAIL=’joe@example.com’ # export TSP_API_TOKEN=<your api token> api = tspapi.API()

api.measurement_create(metric=’MY_METRIC’, source=’MySource’, value=3.14, timestamp=datetime.now())

Create a Measurement

import tspapi

# The following assumes the following environment variables are set # export TSP_EMAIL=’joe@example.com’ # export TSP_API_TOKEN=<your api token> api = tspapi.API()

metric = api.measurement_create(metric=’MY_METRIC’, source=’MySource’, value=3.14)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tspapi-0.3.6.tar.gz (9.1 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page