clean up docs

Change-Id: Ib762e232af114bf1ab5f01c5274219cc6c0302ac
This commit is contained in:
gordon chung 2016-01-08 11:07:37 -05:00 committed by Lianhao Lu
parent b4547dff50
commit cad8107b6a
3 changed files with 17 additions and 9 deletions

View File

@ -13,7 +13,7 @@ To use aodhclient in a project::
>>> from aodhclient.v2 import client
>>> aodh = client.Client(...)
>>> aodh.alarm.list("alarm")
>>> aodh.alarm.list()
Reference
---------
@ -21,7 +21,7 @@ Reference
For more information, see the reference:
.. toctree::
:maxdepth: 2
:maxdepth: 2
ref/v2/index

View File

@ -11,6 +11,13 @@ This is a client for Aodh API. There's :doc:`a Python API
<shell>` (installed as :program:`aodh`). Each implements the entire
Aodh API.
.. warning::
This is a new client to interact with Aodh API. There may be differences
in functionality, syntax, and command line output when compared with the
alarm functionality provided by ceilometerclient.
.. seealso::
You may want to read the `Aodh Developer Guide`__ -- the overview, at

View File

@ -5,7 +5,8 @@ The :program:`aodh` shell utility
.. highlight:: bash
The :program:`aodh` shell utility interacts with Aodh API
from the command line. It supports the entirety of the Aodh API.
from the command line. It supports the entirety of the Aodh API excluding
deprecated combination alarms.
You'll need to provide :program:`aodh` with your OpenStack credentials.
You can do this with the :option:`--os-username`, :option:`--os-password`,
@ -64,14 +65,14 @@ command.
Examples
--------
Create a resource::
Create an alarm::
gnocchi resource create --attribute id:5a301761-f78b-46e2-8900-8b4f6fe6675a --attribute project_id:eba5c38f-c3dd-4d9c-9235-32d430471f94 -n temperature:high instance
aodh alarm create --name alarm1 -m cpu_util --threshold 5
List resources::
List alarms::
gnocchi resource list --type instance
aodh alarm list
Search of resources::
Search for alarms::
gnocchi resource search --query "project_id=5a301761-f78b-46e2-8900-8b4f6fe6675a and type=instance"
aodh alarm search --query "project_id=5a301761-f78b-46e2-8900-8b4f6fe6675a and type=instance"