I have created the entities and checks using Rackspace Cloud Monitoring APIs now I need to run/test the checks so I can feed the values every 60 seconds or so in our existing monitoring system and can trigger alert or mainly report on the data.
I am able to use via command line utility raxmon-checks-test and raxmon-checks-test-existing but I could not find a direct way of doing this using pyrax module. May be this can be done using requests instance of pyrax.cloudmonitoring but I couldn't find any good examples. Any help will be highly appreciated.
The equivalent to
raxmon-checks-test
is to usecreate_check
and pass intest_only=True
. At this time there is no direct equivalent toraxmon-checks-test-existing
Here is the docstring provided in the
create_check
method:The docs for
create_check
can be found at https://github.com/rackspace/pyrax/blob/master/docs/cloud_monitoring.md#create-the-check although they are currently lacking information abouttest_only
.