From 481c8104edee778c31ba64220a8b1188a98bdcaa Mon Sep 17 00:00:00 2001 From: Steven Hardy Date: Wed, 13 Mar 2013 11:37:59 +0000 Subject: [PATCH] heat docs : Add heat-watch manpage fixes bug 1153689 Change-Id: I7a4566cb850cf94761c1948fa7ad976e7d4f5446 --- doc/source/conf.py | 3 ++ doc/source/man/heat-watch.rst | 95 +++++++++++++++++++++++++++++++++++ 2 files changed, 98 insertions(+) create mode 100644 doc/source/man/heat-watch.rst diff --git a/doc/source/conf.py b/doc/source/conf.py index beaf2205..0577c31b 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -225,6 +225,9 @@ man_pages = [ ('man/heat-cfn', 'heat-cfn', u'Command line utility to run heat actions over the CloudFormation API', [u'Heat Developers'], 1), + ('man/heat-watch', 'heat-watch', + u'Command line utility to run heat watch actions over the CloudWatch API', + [u'Heat Developers'], 1), ('man/heat-api', 'heat-api', u'REST API service to the heat project.', [u'Heat Developers'], 1), diff --git a/doc/source/man/heat-watch.rst b/doc/source/man/heat-watch.rst new file mode 100644 index 00000000..62885321 --- /dev/null +++ b/doc/source/man/heat-watch.rst @@ -0,0 +1,95 @@ +======== +heat-watch +======== + +.. program:: heat-watch + + +SYNOPSIS +======== + +``heat-watch [OPTIONS] COMMAND [COMMAND_OPTIONS]`` + + +DESCRIPTION +=========== +heat-watch is a command-line utility for heat-api-cloudwatch. +It allows manipulation of the watch alarms and metric data via the heat +cloudwatch API, so this service must be running and accessibe on the host +specified in your boto config (cloudwatch_region_endpoint) + + +CONFIGURATION +============= + +heat-watch uses the boto client library, and expects some configuration files +to exist in your environment, see our wiki for an example configuration file: + +https://wiki.openstack.org/wiki/Heat/Using-Boto + + +COMMANDS +======== + +``describe`` + + Provide detailed information about the specified watch rule, or if no arguments are given all watch rules + +``set-state`` + + Temporarily set the state of a watch rule + +``metric-list`` + + List data-points for a specified metric + +``metric-put-data`` + + Publish data-point for specified metric + + Note the metric must be associated with a CloudWatch Alarm (specified in a heat stack template), publishing arbitrary metric data is not supported. + +``help`` + + Provide help/usage information on each command + + +OPTIONS +======= + +.. cmdoption:: --version + + show program version number and exit + +.. cmdoption:: -h, --help + + show this help message and exit + +.. cmdoption:: -v, --verbose + + Print more verbose output + +.. cmdoption:: -d, --debug + + Print debug output + +.. cmdoption:: -p, --port + + Specify port the heat CW API host listens on. Default: 8003 + + +EXAMPLES +======== + + heat-watch describe + + heat-watch metric-list + + heat-watch metric-put-data HttpFailureAlarm system/linux ServiceFailure Count 1 + + heat-watch set-state HttpFailureAlarm ALARM + + +BUGS +==== +Heat bugs are managed through Launchpad -- 2.45.2