<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/openstack/python-ceilometerclient.git/ceilometerclient/tests/test_utils.py, branch 1.0.10</title>
<subtitle>opendev.org: openstack/python-ceilometerclient.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-ceilometerclient.git/'/>
<entry>
<title>Adds alarm time constraint support to ceilometer CLI</title>
<updated>2014-03-26T08:24:56+00:00</updated>
<author>
<name>Uros Jovanovic</name>
<email>uros.jovanovic@gmail.com</email>
</author>
<published>2014-03-05T18:49:14+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-ceilometerclient.git/commit/?id=7146571b702579fa1367598ab278ca2f8ec1e156'/>
<id>7146571b702579fa1367598ab278ca2f8ec1e156</id>
<content type='text'>
Time constraints can be specified for create and update
families of commands with the following format:

--time-constraint name=constraint1;start='0 11 * * *';duration=300

This switch can be specified multiple times in the case of
multiple time constraints.

With update commands, time constraints are updated by name,
e.g. --time-constraint name=constraint1;duration=500 updates
the constraint 'constraint1' with a new duration 500.

Time constraints can be removed with update commands using the
switch --remove-time-constraint=constraint1,constraint2 .

Example of display outputs:

&gt; ceilometer alarm-list
+--------------------------------------+-------+-------------------+---------+------------+----------------------------+--------------------------------------------------------------+
| Alarm ID                             | Name  | State             | Enabled | Continuous | Alarm condition            | Time constraints                                             |
+--------------------------------------+-------+-------------------+---------+------------+----------------------------+--------------------------------------------------------------+
| 2ead776d-2fc7-47a2-b0bb-0f88dcefa457 | test2 | insufficient data | True    | False      | cpu == 50.0 during 1 x 60s | cons1 at 0 11 * * *  for 300s, cons2 at 0 23 * * *  for 600s |
+--------------------------------------+-------+-------------------+---------+------------+----------------------------+--------------------------------------------------------------+

&gt; ceilometer alarm-show -a
+---------------------------+-----------------------------------------------------------------------+
| Property                  | Value                                                                 |
+---------------------------+-----------------------------------------------------------------------+
| alarm_actions             | []                                                                    |
| alarm_id                  | 2ead776d-2fc7-47a2-b0bb-0f88dcefa457                                  |
| comparison_operator       | eq                                                                    |
| description               | Alarm when cpu is eq a avg of 50.0 over 60 seconds                    |
| enabled                   | True                                                                  |
| evaluation_periods        | 1                                                                     |
| exclude_outliers          | False                                                                 |
| insufficient_data_actions | []                                                                    |
| meter_name                | cpu                                                                   |
| name                      | test2                                                                 |
| ok_actions                | []                                                                    |
| period                    | 60                                                                    |
| project_id                | 962f75ad22c24cbf99d40d7b82718505                                      |
| query                     |                                                                       |
| repeat_actions            | False                                                                 |
| state                     | insufficient data                                                     |
| statistic                 | avg                                                                   |
| threshold                 | 50.0                                                                  |
| time_constraints          | [{name: cons1,                                                        |
|                           |   description: Time constraint at 0 11 * * * lasting for 300 seconds, |
|                           |   start: 0 11 * * *,                                                  |
|                           |   duration: 300},                                                     |
|                           |  {name: cons2,                                                        |
|                           |   description: Time constraint at 0 23 * * * lasting for 600 seconds, |
|                           |   start: 0 23 * * *,                                                  |
|                           |   duration: 600}]                                                     |
| type                      | threshold                                                             |
| user_id                   | 76f335df8e2f4c7e9e8185e26ea85759                                      |
+---------------------------+-----------------------------------------------------------------------+

&gt; ceilometer alarm-history -a 2ead776d-2fc7-47a2-b0bb-0f88dcefa457
+----------+----------------------------+--------------------------------------------------------------------------------+
| Type     | Timestamp                  | Detail                                                                         |
+----------+----------------------------+--------------------------------------------------------------------------------+
| creation | 2014-03-06T07:41:35.362050 | name: test2                                                                    |
|          |                            | description: Alarm when cpu is eq a avg of 50.0 over 60 seconds                |
|          |                            | type: threshold                                                                |
|          |                            | rule: cpu == 50.0 during 1 x 60s                                               |
|          |                            | time_constraints: cons1 at 0 11 * * *  for 300s, cons2 at 0 23 * * *  for 600s |
+----------+----------------------------+--------------------------------------------------------------------------------+

Change-Id: I3953276537b4526e46e5e6d229d6fa154f8ab0fc
Closes-Bug: #1288246
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Time constraints can be specified for create and update
families of commands with the following format:

--time-constraint name=constraint1;start='0 11 * * *';duration=300

This switch can be specified multiple times in the case of
multiple time constraints.

With update commands, time constraints are updated by name,
e.g. --time-constraint name=constraint1;duration=500 updates
the constraint 'constraint1' with a new duration 500.

Time constraints can be removed with update commands using the
switch --remove-time-constraint=constraint1,constraint2 .

Example of display outputs:

&gt; ceilometer alarm-list
+--------------------------------------+-------+-------------------+---------+------------+----------------------------+--------------------------------------------------------------+
| Alarm ID                             | Name  | State             | Enabled | Continuous | Alarm condition            | Time constraints                                             |
+--------------------------------------+-------+-------------------+---------+------------+----------------------------+--------------------------------------------------------------+
| 2ead776d-2fc7-47a2-b0bb-0f88dcefa457 | test2 | insufficient data | True    | False      | cpu == 50.0 during 1 x 60s | cons1 at 0 11 * * *  for 300s, cons2 at 0 23 * * *  for 600s |
+--------------------------------------+-------+-------------------+---------+------------+----------------------------+--------------------------------------------------------------+

&gt; ceilometer alarm-show -a
+---------------------------+-----------------------------------------------------------------------+
| Property                  | Value                                                                 |
+---------------------------+-----------------------------------------------------------------------+
| alarm_actions             | []                                                                    |
| alarm_id                  | 2ead776d-2fc7-47a2-b0bb-0f88dcefa457                                  |
| comparison_operator       | eq                                                                    |
| description               | Alarm when cpu is eq a avg of 50.0 over 60 seconds                    |
| enabled                   | True                                                                  |
| evaluation_periods        | 1                                                                     |
| exclude_outliers          | False                                                                 |
| insufficient_data_actions | []                                                                    |
| meter_name                | cpu                                                                   |
| name                      | test2                                                                 |
| ok_actions                | []                                                                    |
| period                    | 60                                                                    |
| project_id                | 962f75ad22c24cbf99d40d7b82718505                                      |
| query                     |                                                                       |
| repeat_actions            | False                                                                 |
| state                     | insufficient data                                                     |
| statistic                 | avg                                                                   |
| threshold                 | 50.0                                                                  |
| time_constraints          | [{name: cons1,                                                        |
|                           |   description: Time constraint at 0 11 * * * lasting for 300 seconds, |
|                           |   start: 0 11 * * *,                                                  |
|                           |   duration: 300},                                                     |
|                           |  {name: cons2,                                                        |
|                           |   description: Time constraint at 0 23 * * * lasting for 600 seconds, |
|                           |   start: 0 23 * * *,                                                  |
|                           |   duration: 600}]                                                     |
| type                      | threshold                                                             |
| user_id                   | 76f335df8e2f4c7e9e8185e26ea85759                                      |
+---------------------------+-----------------------------------------------------------------------+

&gt; ceilometer alarm-history -a 2ead776d-2fc7-47a2-b0bb-0f88dcefa457
+----------+----------------------------+--------------------------------------------------------------------------------+
| Type     | Timestamp                  | Detail                                                                         |
+----------+----------------------------+--------------------------------------------------------------------------------+
| creation | 2014-03-06T07:41:35.362050 | name: test2                                                                    |
|          |                            | description: Alarm when cpu is eq a avg of 50.0 over 60 seconds                |
|          |                            | type: threshold                                                                |
|          |                            | rule: cpu == 50.0 during 1 x 60s                                               |
|          |                            | time_constraints: cons1 at 0 11 * * *  for 300s, cons2 at 0 23 * * *  for 600s |
+----------+----------------------------+--------------------------------------------------------------------------------+

Change-Id: I3953276537b4526e46e5e6d229d6fa154f8ab0fc
Closes-Bug: #1288246
</pre>
</div>
</content>
</entry>
<entry>
<title>Update client to display data type of traits</title>
<updated>2014-01-24T17:39:05+00:00</updated>
<author>
<name>John Herndon</name>
<email>john.herndon@hp.com</email>
</author>
<published>2014-01-16T16:48:59+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-ceilometerclient.git/commit/?id=deb34163afbb2ac7e00c74613812b3bea413a807'/>
<id>deb34163afbb2ac7e00c74613812b3bea413a807</id>
<content type='text'>
fixes bug 1268032

Change-Id: I47dfd3208fb3f7e5e5e2b33bd9b00c688d8283cd
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
fixes bug 1268032

Change-Id: I47dfd3208fb3f7e5e5e2b33bd9b00c688d8283cd
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix order of sample list</title>
<updated>2013-10-28T00:08:40+00:00</updated>
<author>
<name>fujioka yuuichi</name>
<email>fujioka-yuuichi@zx.mxh.nes.nec.co.jp</email>
</author>
<published>2013-10-28T00:05:57+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-ceilometerclient.git/commit/?id=1b0f94f20580a55bea52ba468bdeeca3dd4552bd'/>
<id>1b0f94f20580a55bea52ba468bdeeca3dd4552bd</id>
<content type='text'>
Samples of "ceilometer sample-list" are sorted by Resource ID and
Volume.
Expected order is Timestamp.

This pache fixes this problem.

Change-Id: I338014e5868b2176a3afd549e13d0dd6118b3ac1
Closes-Bug: #1227495
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Samples of "ceilometer sample-list" are sorted by Resource ID and
Volume.
Expected order is Timestamp.

This pache fixes this problem.

Change-Id: I338014e5868b2176a3afd549e13d0dd6118b3ac1
Closes-Bug: #1227495
</pre>
</div>
</content>
</entry>
<entry>
<title>Import six.StringIO</title>
<updated>2013-10-14T09:15:47+00:00</updated>
<author>
<name>Kui Shi</name>
<email>skuicloud@gmail.com</email>
</author>
<published>2013-10-14T08:52:23+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-ceilometerclient.git/commit/?id=eaae72edc92940b0e46b7d7b955e2bfbe94542c5'/>
<id>eaae72edc92940b0e46b7d7b955e2bfbe94542c5</id>
<content type='text'>
six.StringIO
This is an fake file object for textual data. It is an alias for
StringIO.StringIO in Python 2 and io.StringIO in Python 3.

Partial Implement: blueprint py33-support

Change-Id: I76c05041565614241eea7b7595e4503c88211ee8
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
six.StringIO
This is an fake file object for textual data. It is an alias for
StringIO.StringIO in Python 2 and io.StringIO in Python 3.

Partial Implement: blueprint py33-support

Change-Id: I76c05041565614241eea7b7595e4503c88211ee8
</pre>
</div>
</content>
</entry>
<entry>
<title>Allow to update an alarm partially</title>
<updated>2013-10-01T16:05:17+00:00</updated>
<author>
<name>Mehdi Abaakouk</name>
<email>mehdi.abaakouk@enovance.com</email>
</author>
<published>2013-09-26T07:50:37+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-ceilometerclient.git/commit/?id=66ef360c1480899bcdf6ad7af8f2d581b532c5e6'/>
<id>66ef360c1480899bcdf6ad7af8f2d581b532c5e6</id>
<content type='text'>
The patch allow to only modify a part of an alarm instead of force to
set the full alarm description.

This permit to an application that have been written code around alarm
with ceilometerclient 1.0.4 and ceilometer pre havana-3. To update alarm
without any change with this and ceilometer &gt;= havana-3 (ie: heat).

Fixes bug #1231303

Change-Id: I20250131d05d20bfadbca450dfe6b8237f4b7183
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The patch allow to only modify a part of an alarm instead of force to
set the full alarm description.

This permit to an application that have been written code around alarm
with ceilometerclient 1.0.4 and ceilometer pre havana-3. To update alarm
without any change with this and ceilometer &gt;= havana-3 (ie: heat).

Fixes bug #1231303

Change-Id: I20250131d05d20bfadbca450dfe6b8237f4b7183
</pre>
</div>
</content>
</entry>
<entry>
<title>Help messages: specify which options are required</title>
<updated>2013-09-25T15:24:47+00:00</updated>
<author>
<name>Cyril Roelandt</name>
<email>cyril.roelandt@enovance.com</email>
</author>
<published>2013-09-25T12:49:58+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-ceilometerclient.git/commit/?id=b961738765976e77711d909eec1ecc402fa8a484'/>
<id>b961738765976e77711d909eec1ecc402fa8a484</id>
<content type='text'>
Closes-Bug: #1223283

Change-Id: I080fa73bd45a1f9f442dbcdfa65fdc24e30521da
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Closes-Bug: #1223283

Change-Id: I080fa73bd45a1f9f442dbcdfa65fdc24e30521da
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge "Replace OpenStack LLC with OpenStack Foundation"</title>
<updated>2013-09-23T17:02:55+00:00</updated>
<author>
<name>Jenkins</name>
<email>jenkins@review.openstack.org</email>
</author>
<published>2013-09-23T17:02:55+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-ceilometerclient.git/commit/?id=05e435542b5f42899accad1bbe232139e79cfaff'/>
<id>05e435542b5f42899accad1bbe232139e79cfaff</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Use the new alarm format</title>
<updated>2013-09-20T06:38:50+00:00</updated>
<author>
<name>Mehdi Abaakouk</name>
<email>mehdi.abaakouk@enovance.com</email>
</author>
<published>2013-09-15T20:26:04+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-ceilometerclient.git/commit/?id=3499631b1a32b2125bd89de2e7ce45d9dd19a7c4'/>
<id>3499631b1a32b2125bd89de2e7ce45d9dd19a7c4</id>
<content type='text'>
The change sync the client API with the new alarm type and keep
compatibility with the previous format of the alarm.

It allows to create the new type of alarm: combination alarm.

Implements blueprint alarming-logical-combination

Change-Id: Ie62265023cadc20cf36a0d0b3775f4d984e324cf
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The change sync the client API with the new alarm type and keep
compatibility with the previous format of the alarm.

It allows to create the new type of alarm: combination alarm.

Implements blueprint alarming-logical-combination

Change-Id: Ie62265023cadc20cf36a0d0b3775f4d984e324cf
</pre>
</div>
</content>
</entry>
<entry>
<title>Replace OpenStack LLC with OpenStack Foundation</title>
<updated>2013-09-19T19:58:04+00:00</updated>
<author>
<name>ZhiQiang Fan</name>
<email>aji.zqfan@gmail.com</email>
</author>
<published>2013-09-19T19:14:11+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-ceilometerclient.git/commit/?id=fb1ff39d53826b94c3c04645d972a0a96dc8225a'/>
<id>fb1ff39d53826b94c3c04645d972a0a96dc8225a</id>
<content type='text'>
Change-Id: Ia007da282714d8ee7337fd3b51f6dcc3b64d7ec3
Fixes-Bug: #1214176
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Change-Id: Ia007da282714d8ee7337fd3b51f6dcc3b64d7ec3
Fixes-Bug: #1214176
</pre>
</div>
</content>
</entry>
<entry>
<title>Allow to set matching_metadata with the cli</title>
<updated>2013-07-22T15:42:06+00:00</updated>
<author>
<name>Mehdi Abaakouk</name>
<email>mehdi.abaakouk@enovance.com</email>
</author>
<published>2013-07-16T16:43:35+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-ceilometerclient.git/commit/?id=04cc271da208069e921da252554e839de46442ed'/>
<id>04cc271da208069e921da252554e839de46442ed</id>
<content type='text'>
This change allows to set the matching_metadata of a alarm like this:

 ceilometer alarm-create --matching-metadata 'key=value' \
      --matching-metadata 'key2=value2' --name 'alarm' ...

Fixes bug #1201877

Change-Id: I22bf261b0a9580a06ae107ed45d082171f21fcc4
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This change allows to set the matching_metadata of a alarm like this:

 ceilometer alarm-create --matching-metadata 'key=value' \
      --matching-metadata 'key2=value2' --name 'alarm' ...

Fixes bug #1201877

Change-Id: I22bf261b0a9580a06ae107ed45d082171f21fcc4
</pre>
</div>
</content>
</entry>
</feed>
