Commit Graph

14 Commits

Author SHA1 Message Date
Hervé Beraud 8621c54397 Use unittest.mock instead of mock
The mock third party library was needed for mock support in py2
runtimes. Since we now only support py36 and later, we can use the
standard lib unittest.mock module instead.

Change-Id: I8d9549e4653f4df7ec9f34f54f15bf0a18c9d8e2
2020-06-09 01:25:45 +02:00
Andreas Jaeger 55ebdd45b4 Update hacking for Python3
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.

Fix problems found by updated hacking version.

Remove hacking and friends from lower-constraints, they are not needed
there.

Change-Id: I013b73347ed56c8c64a8aff73ec60ea738bc0c76
2020-03-31 21:48:03 +02:00
Tomasz Trębski 05022e1ff8 Extend tox for monasca-statsd
Following commits accomplishes several things:
* unit tests run with ostestr
* coverage calculation
* documentation generated using OS approach & theme
* bandit linting

Change-Id: I6c3b48805c237f0ad95220b90ff66b045c7478fb
2017-01-16 10:06:02 +00: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
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 97a82ab52e Fixing copyright
Change-Id: I6461043fbeee760030bd225bf9cda587548a0294
2016-08-03 15:49:36 -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
Gleb Stepanov be0ba85671 Unused function removed
Change-Id: I3c516d3c262c663c122c94760c99405bc5aab1bf
2016-03-18 17:03:51 +02: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 79e3609be8 Fixing issues in generator, unit tests, and documentation
Change-Id: I2ed96e1592eb1f62fce63d5607831903323b1826

Fixed some pep8 issues

Change-Id: I31cdc81469db4a5ed3684b5d22daa91a56ff7688
2014-10-28 18:08:45 -06:00
gary-hessler c7dfeb7e75 Adding python client for statsd messages
Change-Id: I720707609331a637e1f148ac6e0b2e2c594c0d9a
2014-09-23 07:55:58 -06:00