Commit Graph

18 Commits

Author SHA1 Message Date
Laszlo Hegedus f3c609885d Clean up client.py
Extract methods and rename some variables to make the code cleaner.
Use parameter max_buffer_size in the initialization of connection.

Change-Id: Idc537816692adf64eb6b77ea02ca1e507cf2588b
2017-01-12 21:57:06 +00:00
Jenkins de18acea42 Merge "Clean up connection.py" 2017-01-12 07:07:06 +00:00
Laszlo Hegedus a840291036 Clean up connection.py
Extract complex logic from report function.
Remove unused variables.

Change-Id: I6b1f2a189a5f519df34086b67d1d61c20e86d584
2017-01-09 10:33:01 +01:00
Laszlo Hegedus 13c7e0880f Clean up counter.py
Extract duplicate code.

Change-Id: I145eec64cf3d5c508e8b37a4b78e78bd95a8137c
2017-01-09 07:33:57 +00:00
Jenkins 8c4c92a852 Merge "Make monasca-statsd PEP8 compatible" 2017-01-05 09:28:23 +00:00
Laszlo Hegedus 9a3d00fb3f Extract common update functions
Resolve the duplication of update_dimensions and update_name functions.

Change-Id: I781177dcb23a98178154d663e00a2e48c3445e1a
2017-01-05 07:15:26 +00:00
Tomasz Trębski d123c80f49 Make monasca-statsd PEP8 compatible
Following change ensures that monasca-statsd
is fully compatible to PEP8.

Change-Id: I15e1be38b62ab029675b8e0aac2784a0ff3f9f56
2016-12-12 10:50:58 +01:00
Jenkins 7780447c2a Merge "Add python3 support" 2016-12-12 09:02:11 +00:00
Craig Bryant fb2ceec89e Clean up the licensing
License is now Apache + the original DataDog license,
i.e., dual licensing

Add the DataDog license and copyright to all files that have
the Apache license

Added that code was forked from Datadog's dogstatsd-python to
README.md

Change-Id: I90f1de2aad9f69316bf2cf44a00849d785c2bc64
2016-11-04 14:01:11 -06:00
Chuck Short c8266ad9e9 Add python3 support
Add support for python3 using the six library.

Change-Id: I90851ddf5a98ca05c494a49e4063e1bd233cccee
Signed-off-by: Chuck Short <chuck.short@canonical.com>
2016-11-03 14:50:11 -04:00
Cao Xuan Hoang f3f0f7eb9e Clean imports in code
This patch set modifies lines which are importing objects
instead of modules. As per openstack import guide lines, user should
import modules in a file not objects.

http://docs.openstack.org/developer/hacking/#imports

Change-Id: If90022aa967e9cd898b6ff97da9643102c2c8150
2016-11-01 14:27:13 +07:00
Joe Keen 614a6b5068 Allow easy configuration of host/port settings
The monascastatsd client allowed the host and port to be set but only if you
constructed a Connection object yourself.  This allows you just to specify
host and port when constructing the client object.

Change-Id: Ib49e261b915c07bf8f7036164f1e4814d80ecc1f
2016-10-20 14:54:03 -06:00
Joe Keen c4bbfa665d Remove reference to removed metric types
Removing references to histogram and set types.

Converting timer data from histogram type to gauge.

Enabling tox jobs because I was depending on them to tell me if I screwed
something up.

Change-Id: If9fbbf655baca67e7f205e4493c0929ac90d386a
2016-08-03 07:21:36 -06:00
Laszlo Hegedus 60c57319a0 Make imports python 3 compatible
Changed the relative imports to absolute imports.

https://www.python.org/dev/peps/pep-0404/#imports

Change-Id: I8837b247537f5969725427fe616e4a8b86204b27
Closes-Bug: #1586985
2016-06-04 18:12:31 +02:00
Michael James Hoppal 256eb97e03 Add in HPE Copyrights
Change-Id: I85db3a2e4e3550cbed90a9cd1875b3ebbdbe699f
2016-01-27 12:57:08 -07:00
Michael James Hoppal 5bc7d8f310 Add HP Copyright
Change-Id: I3b20def5a46cf9b61392b00049d5caa73e3e4e46
2015-08-19 10:41:08 -06:00
gary-hessler f9eba6c7cf Refactored statsd code to be modular
The monasca-statsd package was in one monolithic class in
a single file.  Made it more modular and broke it into classes
for the different metrics types, connection and added a Client
class for easy management.

Change-Id: If4f204f656cc8f8603b5e96e0e734983b3aadcd6
2014-11-18 15:23:30 -07:00
gary-hessler c7dfeb7e75 Adding python client for statsd messages
Change-Id: I720707609331a637e1f148ac6e0b2e2c594c0d9a
2014-09-23 07:55:58 -06:00