Python Client for Netuitive Cloud.
Project description
===============================
Netuitive Python Client
===============================
Features
--------
* Create a Netuitive Element with the following data:
* Element Name
* Attributes
* Tags
* Metric Samples
## Usage
```
import netuitive
# Setup the Client
ApiClient = netuitive.Client('<my_api_url>', '<my_api_key>')
# setup the Element
MyElement = netuitive.Element()
# Add an Attribute
MyElement.add_attribute('Language', 'Python')
# Add a Tag
MyElement.add_tag(('Production', 'True')
# Add a Metric Sample
MyElement.add_sample('cpu.idle', 1432832135, 1, host='my_hostname')
# Send the Samples
ApiClient.post(MyElement)
# Remove the samples already sent
MyElement.clear_samples()
```
## Copyright and License
Copyright 2015 Netuitive, Inc. under [the Apache 2.0 license](LICENSE).
History
-------
0.0.5 (2015-06-12)
---------------------
* Element type is now easier to set
0.0.3 (2015-06-01)
---------------------
* Fixes for API URL setting
0.0.2 (2015-05-28)
---------------------
* First release on PyPI.
Netuitive Python Client
===============================
Features
--------
* Create a Netuitive Element with the following data:
* Element Name
* Attributes
* Tags
* Metric Samples
## Usage
```
import netuitive
# Setup the Client
ApiClient = netuitive.Client('<my_api_url>', '<my_api_key>')
# setup the Element
MyElement = netuitive.Element()
# Add an Attribute
MyElement.add_attribute('Language', 'Python')
# Add a Tag
MyElement.add_tag(('Production', 'True')
# Add a Metric Sample
MyElement.add_sample('cpu.idle', 1432832135, 1, host='my_hostname')
# Send the Samples
ApiClient.post(MyElement)
# Remove the samples already sent
MyElement.clear_samples()
```
## Copyright and License
Copyright 2015 Netuitive, Inc. under [the Apache 2.0 license](LICENSE).
History
-------
0.0.5 (2015-06-12)
---------------------
* Element type is now easier to set
0.0.3 (2015-06-01)
---------------------
* Fixes for API URL setting
0.0.2 (2015-05-28)
---------------------
* First release on PyPI.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
netuitive-0.0.5.tar.gz
(15.7 kB
view hashes)
Built Distribution
Close
Hashes for netuitive-0.0.5-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9b3fd1f2fd7c4675861d846afb021d563b671df45033defc6fd2449624805f2e |
|
MD5 | a5a6bbb29b39fdc59928a4300a2bf441 |
|
BLAKE2b-256 | 75dc358cefe9481e5f90790f823d1ff9da552bfe0cec1a86ef1d8fc8a5617023 |