Commit Graph

116 Commits

Author SHA1 Message Date
Mitsuo Takaki 0a55b1f513 Bumping the version to reduce the risk of overwriting an existing release 2020-01-29 02:05:32 -08:00
Christian Strobel bd610671fa Added os import (#82) 0.6.5 2020-01-29 02:02:06 -08:00
Mitsuo Takaki 46955addf1 Bumping the version to reduce the risk of overwriting an existing release 2020-01-28 01:43:54 -08:00
mtakaki df2d094dc6 Fixing push status that has been broken since moving to a client (#80)
* Fixing push status that has been broken since moving to a client

* Adding unit test to cover the bug
0.6.4
2020-01-28 01:42:49 -08:00
Mitsuo Takaki 79a9a7f8d6 Bumping the version to reduce the risk of overwriting an existing release 0.6.3 2020-01-19 14:28:50 -08:00
mtakaki b712eda001 Coveralls (#79)
* Trying to fix coveralls and upgrading the packages

* Trying to fix coveralls and upgrading the packages
2020-01-19 14:25:29 -08:00
Mitsuo Takaki e36a4e5429 Bumping the version to reduce the risk of overwriting an existing release 2020-01-18 14:08:05 -08:00
Mitsuo Takaki eeec3a2220 Bumping the version 0.6.2 2020-01-18 14:02:42 -08:00
mtakaki 5be0217c00 #10 - Creating auxiliary client class to generate configuration class (#78)
* #10 - Creating auxiliary client class to generate configuration class based on cachet's component list.

* Updating the python version in codacy to reduce false positives

* Moving some of the cachet operations to the client class to clean up the configuration class and making better constants

* Refactoring status to have proper classes and adding more tests. Refactoring the requests tests to use requests-mock.

* Removing unused imports from test_scheduler

* Adding more tests and the ability to run the client from command line

* Updating README and client arg parsing

* Fixing broken unit tests
2020-01-18 13:55:07 -08:00
mtakaki bcafbd64f7 21 2 (#77)
* 21 - Improving exception when an invalid type is used in the config

* Bumping the version
0.6.1
2020-01-06 07:40:11 -08:00
mtakaki a13a42d51c Multithreading #66 (#76)
* feat(multihreading): each url has it's own thread

* Fixing broken unit tests

* Improving readability when there are multiple URLs registerd and creating new action to upload metrics

* Improving error message when there's no file found

* Bumping the version

Co-authored-by: Alex Berenshtein <aberenshtein@yotpo.com>
0.6.0
2020-01-05 10:25:06 -08:00
Mitsuo Takaki 9a73063a6f Adding a troubleshooting section 2019-10-30 08:03:43 -07:00
Mitsuo Takaki b3e4000cc1 Fixing the version number 0.5 v0.5 2019-10-25 08:12:10 -07:00
Mitsuo Takaki e132f8660b #72 - Adding the ability to control incident status 2019-10-25 08:10:12 -07:00
Mitsuo Takaki 9e5d42f8b8 Fixing broken build, due to updates to the libraries 2019-10-24 21:31:04 -07:00
Mitsuo Takaki cb6f405e82 Updating the instructions on how to run it 2019-10-24 07:35:51 -07:00
mazhead a296cfc1aa Dont update if same (#64)
* Return status as integer

During the first start the if statement on line 237 does not get evaluated correctly and will not "return"
Therefore by any restart the first evaluation triggers a update even if the original status is same.

* Prevent unecessery push

By a case where allowed_fails > 0 and one failure is received the url monitor pushes a unnecessary update as the component state was not changed, resulting in a notification of "component is operational", but in fact the component was still operation before the update.

This creates another api call (get) towards the cachet, but it is a better trade-off to prevent unnecessary notifications for end-users.
2019-04-04 08:44:34 -07:00
mazhead 9569818bb0 Return status as integer (#63)
During the first start the if statement on line 237 does not get evaluated correctly and will not "return"
Therefore by any restart the first evaluation triggers a update even if the original status is same.
2019-04-04 08:39:25 -07:00
mazhead 3af53ce9b6 Add client header option to requests (#61)
* Add header option

* Add header option

* Add unit test for headers

* Add client header

* Remove environ for HEADER

environ does not support dictionaries, so HEADER can't be passed.
2019-03-31 01:18:48 -07:00
Mitsuo Takaki eae51967c4 Fixing the broken test 2019-02-24 22:01:54 -08:00
Patrick Fruh f1e69bf39b Fixed metric latency unit and logging (#49)
* move latency_unit into cachet dictionary

* log actual metric latency_unit

* also update config in readme

* also update config description in readme
2019-02-24 21:59:02 -08:00
Mitsuo Takaki 393aaa0b30 Adding coverage to development dependencies 2019-02-23 21:52:05 -08:00
Mitsuo Takaki 950ef86f33 Trying to integrate codacy and coveralls back into the build, now using circleci 2019-02-23 21:46:16 -08:00
Mitsuo Takaki fbc87b7846 Updating the build badge 2019-02-22 02:19:09 -08:00
mtakaki 10e0141454 Upgrading to python3 (#60)
* Migrating to python 3.7.2, but docker image is not working properly.

Need to continue investigating why it's not properly running.

* Trying to fix the build and fixing logging in the scheduler initialization.

* Trying to fix the build

* Collecting test results

* Fixing the dockerfile

* Updating the development dependencies
2019-02-22 02:17:13 -08:00
Mitsuo Takaki ea4b8ccd4e Trying to fix build 2019-02-03 23:34:54 -08:00
Mitsuo Takaki 200b255e6b Trying to fix build 2019-02-03 23:31:38 -08:00
Mitsuo Takaki 300ac29a24 Trying to fix build 2019-02-03 23:27:09 -08:00
Mitsuo Takaki 609cc57fd9 Trying to fix circleci build 2019-02-03 23:21:30 -08:00
Mitsuo Takaki 36f4ef6cee Trying to fix circleci build 2019-02-03 23:19:20 -08:00
Mitsuo Takaki 8fc0f7c77f Trying to fix circleci build 2019-02-03 23:12:41 -08:00
Mitsuo Takaki 54cfda3177 Upgrading dependencies to fix vulnerabilities 2019-01-19 13:55:05 -08:00
Mitsuo Takaki a9035362b9 Upgrading dependencies to fix vulnerabilities 2019-01-19 13:38:57 -08:00
mtakaki 2c354b0960 Merge pull request #36 from jacekszubert/dont_push_status
Update component status only when it has changed
2018-09-07 00:32:42 -07:00
Mitsuo Takaki 5b6c34741a Fixing circleci configuration 2018-06-27 23:00:05 -07:00
Mitsuo Takaki 29eb92790f Setting up circle-ci, as codeship is currently not supporting builds from forks 2018-06-11 23:31:13 -07:00
mtakaki 1f1bab6398 Merge branch 'master' into dont_push_status 2018-03-20 00:20:33 -07:00
mtakaki 79bb5c5c3a Merge pull request #33 from jacekszubert/allowed_fails
Create incident/update component status only after specified amount
2018-03-19 23:41:49 -07:00
mtakaki 57fc100d49 Merge branch 'master' into allowed_fails 2018-03-19 23:38:52 -07:00
Mitsuo Takaki 5cfef6392e Adding setup.cfg for pypi 2018-03-18 22:47:44 -07:00
Mitsuo Takaki 68a5609abc Bumping up the version to 0.4 2018-03-18 22:36:58 -07:00
mtakaki 028488b503 Merge pull request #44 from mtakaki/mtakaki_manual_testing
Running some manual tests and updating Dockerfile
2018-03-18 22:21:43 -07:00
Mitsuo Takaki 4c336ec714 Running some manual tests and updating Dockerfile 2018-03-18 22:17:29 -07:00
mtakaki 2adb5ca095 Merge pull request #43 from mtakaki/mtakaki_38_latency_ms
#38 - Adding support to milliseconds and different units for latency …
2018-03-18 17:54:18 -07:00
Mitsuo Takaki d3c14e6491 Addressing codacy issues 2018-03-18 17:44:01 -07:00
Mitsuo Takaki 1899e95642 #38 - Adding support to milliseconds and different units for latency and changing http status to a range, instead of a single value. 2018-03-18 16:58:02 -07:00
mtakaki 726f5377b1 Merge pull request #42 from mtakaki/mtakaki_fix_build
Fixing the build and upgrading pytest and pytest-cov to latest
2018-03-18 14:45:51 -07:00
Mitsuo Takaki 9e66736f48 Fixing the build and upgrading pytest and pytest-cov to latest 2018-03-18 14:43:41 -07:00
mtakaki 5e5e74938b Merge branch 'master' into dont_push_status 2017-05-30 22:28:37 -07:00
mtakaki 350d125d26 Merge branch 'master' into allowed_fails 2017-03-12 11:57:32 -07:00