)]}'
{"ceilometerclient/common/utils.py":[{"author":{"_account_id":1669,"name":"Julien Danjou","display_name":"jd","email":"julien@danjou.info","username":"jdanjou"},"change_message_id":"4df079158e451dbafeb0bcdaaab27825d4a50296","unresolved":false,"context_lines":[{"line_number":30,"context_line":"        if \u0027help\u0027 in kwargs:"},{"line_number":31,"context_line":"            if \u0027default\u0027 in kwargs:"},{"line_number":32,"context_line":"                kwargs[\u0027help\u0027] +\u003d \" Defaults to %s.\" % kwargs[\u0027default\u0027]"},{"line_number":33,"context_line":"            elif \u0027print_default\u0027 in kwargs:"},{"line_number":34,"context_line":"                kwargs[\u0027help\u0027] +\u003d \" Defaults to %s.\" % kwargs[\u0027print_default\u0027]"},{"line_number":35,"context_line":"                del kwargs[\u0027print_default\u0027]"},{"line_number":36,"context_line":"            required \u003d kwargs.get(\u0027required\u0027, False)"}],"source_content_type":"text/x-python","patch_set":6,"id":"AAAAS3%2F%2F%2BAw%3D","line":33,"updated":"2013-09-16 12:28:45.000000000","message":"I don\u0027t understand the purpose of print_default.","commit_id":"1b5e550854b93ab7c0fff20cb27f9ccbf4df0fd8"}],"ceilometerclient/v2/shell.py":[{"author":{"_account_id":7203,"name":"yuuichi fujioka","email":"fujioka.yuuichi@gmail.com","username":"FujiokaYuuichi"},"change_message_id":"27ed3e7d8ec8f145626b63ec5f181d6094ae747a","unresolved":false,"context_lines":[{"line_number":30,"context_line":""},{"line_number":31,"context_line":"@utils.arg(\u0027-q\u0027, \u0027--query\u0027, metavar\u003d\u0027\u003cQUERY\u003e\u0027,"},{"line_number":32,"context_line":"           help\u003d\u0027key[op]value; list.\u0027)"},{"line_number":33,"context_line":"@utils.arg(\u0027-m\u0027, \u0027--meter\u0027, metavar\u003d\u0027\u003cNAME\u003e\u0027,"},{"line_number":34,"context_line":"           help\u003d\u0027Name of meter to show samples for.\u0027)"},{"line_number":35,"context_line":"@utils.arg(\u0027-p\u0027, \u0027--period\u0027, metavar\u003d\u0027\u003cPERIOD\u003e\u0027,"},{"line_number":36,"context_line":"           help\u003d\u0027Period in seconds over which to group samples.\u0027)"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAASn%2F%2FJEU%3D","line":33,"updated":"2013-09-11 08:10:48.000000000","message":"I think \"--meter\" is required.","commit_id":"754b2120c7e1f5dd0864668242c062957c376b29"},{"author":{"_account_id":8122,"name":"Cyril Roelandt","email":"cyril@redhat.com","username":"cyril.roelandt.enovance"},"change_message_id":"a6818d44ed8579d331c95f8b5e6b1c2151e62455","unresolved":false,"context_lines":[{"line_number":30,"context_line":""},{"line_number":31,"context_line":"@utils.arg(\u0027-q\u0027, \u0027--query\u0027, metavar\u003d\u0027\u003cQUERY\u003e\u0027,"},{"line_number":32,"context_line":"           help\u003d\u0027key[op]value; list.\u0027)"},{"line_number":33,"context_line":"@utils.arg(\u0027-m\u0027, \u0027--meter\u0027, metavar\u003d\u0027\u003cNAME\u003e\u0027,"},{"line_number":34,"context_line":"           help\u003d\u0027Name of meter to show samples for.\u0027)"},{"line_number":35,"context_line":"@utils.arg(\u0027-p\u0027, \u0027--period\u0027, metavar\u003d\u0027\u003cPERIOD\u003e\u0027,"},{"line_number":36,"context_line":"           help\u003d\u0027Period in seconds over which to group samples.\u0027)"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAASn%2F%2FI7k%3D","line":33,"in_reply_to":"AAAASn%2F%2FJEU%3D","updated":"2013-09-11 08:58:05.000000000","message":"Indeed","commit_id":"754b2120c7e1f5dd0864668242c062957c376b29"},{"author":{"_account_id":7203,"name":"yuuichi fujioka","email":"fujioka.yuuichi@gmail.com","username":"FujiokaYuuichi"},"change_message_id":"27ed3e7d8ec8f145626b63ec5f181d6094ae747a","unresolved":false,"context_lines":[{"line_number":63,"context_line":"    \u0027\u0027\u0027List the samples for this meters.\u0027\u0027\u0027"},{"line_number":64,"context_line":"    fields \u003d {\u0027meter_name\u0027: args.meter,"},{"line_number":65,"context_line":"              \u0027q\u0027: options.cli_to_array(args.query)}"},{"line_number":66,"context_line":"    if args.meter is None:"},{"line_number":67,"context_line":"        raise exc.CommandError(\u0027Meter name not provided (-m \u003cmeter name\u003e)\u0027)"},{"line_number":68,"context_line":"    try:"},{"line_number":69,"context_line":"        samples \u003d cc.samples.list(**fields)"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAASn%2F%2FJEo%3D","line":66,"updated":"2013-09-11 08:10:48.000000000","message":"Is this check necessary?","commit_id":"754b2120c7e1f5dd0864668242c062957c376b29"},{"author":{"_account_id":8122,"name":"Cyril Roelandt","email":"cyril@redhat.com","username":"cyril.roelandt.enovance"},"change_message_id":"a6818d44ed8579d331c95f8b5e6b1c2151e62455","unresolved":false,"context_lines":[{"line_number":63,"context_line":"    \u0027\u0027\u0027List the samples for this meters.\u0027\u0027\u0027"},{"line_number":64,"context_line":"    fields \u003d {\u0027meter_name\u0027: args.meter,"},{"line_number":65,"context_line":"              \u0027q\u0027: options.cli_to_array(args.query)}"},{"line_number":66,"context_line":"    if args.meter is None:"},{"line_number":67,"context_line":"        raise exc.CommandError(\u0027Meter name not provided (-m \u003cmeter name\u003e)\u0027)"},{"line_number":68,"context_line":"    try:"},{"line_number":69,"context_line":"        samples \u003d cc.samples.list(**fields)"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAASn%2F%2FI7g%3D","line":66,"in_reply_to":"AAAASn%2F%2FJEo%3D","updated":"2013-09-11 08:58:05.000000000","message":"Yeah, I could remove those. Same for other similar comments.","commit_id":"754b2120c7e1f5dd0864668242c062957c376b29"},{"author":{"_account_id":7203,"name":"yuuichi fujioka","email":"fujioka.yuuichi@gmail.com","username":"FujiokaYuuichi"},"change_message_id":"27ed3e7d8ec8f145626b63ec5f181d6094ae747a","unresolved":false,"context_lines":[{"line_number":157,"context_line":"           help\u003d\u0027ID of the alarm to show.\u0027)"},{"line_number":158,"context_line":"def do_alarm_show(cc, args\u003d{}):"},{"line_number":159,"context_line":"    \u0027\u0027\u0027Show an alarm.\u0027\u0027\u0027"},{"line_number":160,"context_line":"    if args.alarm_id is None:"},{"line_number":161,"context_line":"        raise exc.CommandError(\u0027Alarm ID not provided (-a \u003calarm id\u003e)\u0027)"},{"line_number":162,"context_line":"    try:"},{"line_number":163,"context_line":"        alarm \u003d cc.alarms.get(args.alarm_id)"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAASn%2F%2FJEs%3D","line":160,"updated":"2013-09-11 08:10:48.000000000","message":"Is this check necessary?","commit_id":"754b2120c7e1f5dd0864668242c062957c376b29"},{"author":{"_account_id":7203,"name":"yuuichi fujioka","email":"fujioka.yuuichi@gmail.com","username":"FujiokaYuuichi"},"change_message_id":"9d8faf83ca53603c71adca6b911b320e54f29642","unresolved":false,"context_lines":[{"line_number":168,"context_line":""},{"line_number":169,"context_line":""},{"line_number":170,"context_line":"@utils.arg(\u0027--name\u0027, metavar\u003d\u0027\u003cNAME\u003e\u0027,"},{"line_number":171,"context_line":"           help\u003d\u0027Name of the alarm (must be unique per tenant)\u0027)"},{"line_number":172,"context_line":"@utils.arg(\u0027--project-id\u0027, metavar\u003d\u0027\u003cPROJECT_ID\u003e\u0027,"},{"line_number":173,"context_line":"           help\u003d\u0027Tenant to associate with alarm \u0027"},{"line_number":174,"context_line":"                \u0027(only settable by admin users)\u0027)"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAASn%2F%2FJNs%3D","line":171,"updated":"2013-09-11 07:24:13.000000000","message":"I think \"--name\" is required.","commit_id":"754b2120c7e1f5dd0864668242c062957c376b29"},{"author":{"_account_id":8122,"name":"Cyril Roelandt","email":"cyril@redhat.com","username":"cyril.roelandt.enovance"},"change_message_id":"a6818d44ed8579d331c95f8b5e6b1c2151e62455","unresolved":false,"context_lines":[{"line_number":168,"context_line":""},{"line_number":169,"context_line":""},{"line_number":170,"context_line":"@utils.arg(\u0027--name\u0027, metavar\u003d\u0027\u003cNAME\u003e\u0027,"},{"line_number":171,"context_line":"           help\u003d\u0027Name of the alarm (must be unique per tenant)\u0027)"},{"line_number":172,"context_line":"@utils.arg(\u0027--project-id\u0027, metavar\u003d\u0027\u003cPROJECT_ID\u003e\u0027,"},{"line_number":173,"context_line":"           help\u003d\u0027Tenant to associate with alarm \u0027"},{"line_number":174,"context_line":"                \u0027(only settable by admin users)\u0027)"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAASn%2F%2FI7U%3D","line":171,"in_reply_to":"AAAASn%2F%2FJNs%3D","updated":"2013-09-11 08:58:05.000000000","message":"Indeed, missed it, thanks!","commit_id":"754b2120c7e1f5dd0864668242c062957c376b29"},{"author":{"_account_id":7203,"name":"yuuichi fujioka","email":"fujioka.yuuichi@gmail.com","username":"FujiokaYuuichi"},"change_message_id":"27ed3e7d8ec8f145626b63ec5f181d6094ae747a","unresolved":false,"context_lines":[{"line_number":275,"context_line":"           help\u003d\u0027ID of the alarm to show.\u0027)"},{"line_number":276,"context_line":"def do_alarm_delete(cc, args\u003d{}):"},{"line_number":277,"context_line":"    \u0027\u0027\u0027Delete an alarm.\u0027\u0027\u0027"},{"line_number":278,"context_line":"    if args.alarm_id is None:"},{"line_number":279,"context_line":"        raise exc.CommandError(\u0027Alarm ID not provided (-a \u003calarm id\u003e)\u0027)"},{"line_number":280,"context_line":"    try:"},{"line_number":281,"context_line":"        cc.alarms.delete(args.alarm_id)"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAASn%2F%2FJEw%3D","line":278,"updated":"2013-09-11 08:10:48.000000000","message":"Is this check necessary?","commit_id":"754b2120c7e1f5dd0864668242c062957c376b29"},{"author":{"_account_id":7203,"name":"yuuichi fujioka","email":"fujioka.yuuichi@gmail.com","username":"FujiokaYuuichi"},"change_message_id":"27ed3e7d8ec8f145626b63ec5f181d6094ae747a","unresolved":false,"context_lines":[{"line_number":299,"context_line":"           help\u003d\u0027ID of the resource to show.\u0027)"},{"line_number":300,"context_line":"def do_resource_show(cc, args\u003d{}):"},{"line_number":301,"context_line":"    \u0027\u0027\u0027Show the resource.\u0027\u0027\u0027"},{"line_number":302,"context_line":"    if args.resource_id is None:"},{"line_number":303,"context_line":"        raise exc.CommandError(\u0027Resource id not provided (-r \u003cresource id\u003e)\u0027)"},{"line_number":304,"context_line":"    try:"},{"line_number":305,"context_line":"        resource \u003d cc.resources.get(args.resource_id)"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAASn%2F%2FJE4%3D","line":302,"updated":"2013-09-11 08:10:48.000000000","message":"Is this check necessary?","commit_id":"754b2120c7e1f5dd0864668242c062957c376b29"},{"author":{"_account_id":1669,"name":"Julien Danjou","display_name":"jd","email":"julien@danjou.info","username":"jdanjou"},"change_message_id":"5db0444d1df8e7f44933181e0573dcd8237dee32","unresolved":false,"context_lines":[{"line_number":172,"context_line":"@utils.arg(\u0027--description\u0027, metavar\u003d\u0027\u003cDESCRIPTION\u003e\u0027,"},{"line_number":173,"context_line":"           help\u003d\u0027Free text description of the alarm\u0027)"},{"line_number":174,"context_line":"@utils.arg(\u0027--period\u0027, type\u003dint, metavar\u003d\u0027\u003cPERIOD\u003e\u0027,"},{"line_number":175,"context_line":"           default\u003d60,"},{"line_number":176,"context_line":"           help\u003d\u0027Length of each period (seconds) to evaluate over.\u0027)"},{"line_number":177,"context_line":"@utils.arg(\u0027--evaluation-periods\u0027, type\u003dint, metavar\u003d\u0027\u003cCOUNT\u003e\u0027, default\u003d1,"},{"line_number":178,"context_line":"           help\u003d\u0027Number of periods to evaluate over.\u0027)"}],"source_content_type":"text/x-python","patch_set":3,"id":"AAAASn%2F%2FFR0%3D","line":175,"updated":"2013-09-12 10:09:17.000000000","message":"Not sure we should set a default here. The default is rather server side if any, otherwise it should be just make required.","commit_id":"ab18204d32e3400bde0846ad65c92d46a06a05c4"},{"author":{"_account_id":7203,"name":"yuuichi fujioka","email":"fujioka.yuuichi@gmail.com","username":"FujiokaYuuichi"},"change_message_id":"70cccde49edc39056606f531d3932beacd66521f","unresolved":false,"context_lines":[{"line_number":172,"context_line":"@utils.arg(\u0027--description\u0027, metavar\u003d\u0027\u003cDESCRIPTION\u003e\u0027,"},{"line_number":173,"context_line":"           help\u003d\u0027Free text description of the alarm\u0027)"},{"line_number":174,"context_line":"@utils.arg(\u0027--period\u0027, type\u003dint, metavar\u003d\u0027\u003cPERIOD\u003e\u0027,"},{"line_number":175,"context_line":"           required\u003dTrue,"},{"line_number":176,"context_line":"           help\u003d\u0027Length of each period (seconds) to evaluate over.\u0027)"},{"line_number":177,"context_line":"@utils.arg(\u0027--evaluation-periods\u0027, type\u003dint, metavar\u003d\u0027\u003cCOUNT\u003e\u0027, default\u003d1,"},{"line_number":178,"context_line":"           help\u003d\u0027Number of periods to evaluate over.\u0027)"}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAASn%2F%2FCqE%3D","line":175,"updated":"2013-09-13 02:12:22.000000000","message":"I think \"--period\" is not required. Because server has the default value.\n\nBut I think default value should be printed in the help message.\nI think you had better just add a new argument for the help message. this argument will be removed by ceilometerclient.common.utils.arg().\n\ne.g.\nAdd print_default.\n\nshell.py\n\n @utils.arg(\u0027--period\u0027, type\u003dint, metavar\u003d\u0027\u003cPERIOD\u003e\u0027, print_default\u003d60, help\u003d\"...\")    \n def do_alarm_create(....):\n\nutils.py\n\n def arg(*args, **kwargs):\n     def _decorator(func):\n         if \u0027help_default\u0027 in kwargs:\n              kwargs[\u0027help\u0027] +\u003d \" Defaults to %s.\" % kwargs[\u0027print_default\u0027]\n              del kwargs[\u0027print_default\u0027]\n         ....","commit_id":"08e9ce3abcaa50867cd44ab85ba285cfdff117a1"},{"author":{"_account_id":7203,"name":"yuuichi fujioka","email":"fujioka.yuuichi@gmail.com","username":"FujiokaYuuichi"},"change_message_id":"70cccde49edc39056606f531d3932beacd66521f","unresolved":false,"context_lines":[{"line_number":174,"context_line":"@utils.arg(\u0027--period\u0027, type\u003dint, metavar\u003d\u0027\u003cPERIOD\u003e\u0027,"},{"line_number":175,"context_line":"           required\u003dTrue,"},{"line_number":176,"context_line":"           help\u003d\u0027Length of each period (seconds) to evaluate over.\u0027)"},{"line_number":177,"context_line":"@utils.arg(\u0027--evaluation-periods\u0027, type\u003dint, metavar\u003d\u0027\u003cCOUNT\u003e\u0027, default\u003d1,"},{"line_number":178,"context_line":"           help\u003d\u0027Number of periods to evaluate over.\u0027)"},{"line_number":179,"context_line":"@utils.arg(\u0027--state\u0027, metavar\u003d\u0027\u003cSTATE\u003e\u0027,"},{"line_number":180,"context_line":"           help\u003d\u0027State of the alarm, one of: \u0027 + str(ALARM_STATES))"}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAASn%2F%2FCpo%3D","line":177,"updated":"2013-09-13 02:12:22.000000000","message":"ditto","commit_id":"08e9ce3abcaa50867cd44ab85ba285cfdff117a1"},{"author":{"_account_id":7203,"name":"yuuichi fujioka","email":"fujioka.yuuichi@gmail.com","username":"FujiokaYuuichi"},"change_message_id":"70cccde49edc39056606f531d3932beacd66521f","unresolved":false,"context_lines":[{"line_number":227,"context_line":"@utils.arg(\u0027--state\u0027, metavar\u003d\u0027\u003cSTATE\u003e\u0027,"},{"line_number":228,"context_line":"           help\u003d\u0027State of the alarm, one of: \u0027 + str(ALARM_STATES))"},{"line_number":229,"context_line":"@utils.arg(\u0027--enabled\u0027, type\u003dutils.string_to_bool, metavar\u003d\u0027{True|False}\u0027,"},{"line_number":230,"context_line":"           default\u003dTrue, help\u003d\u0027True if alarm evaluation/actioning is enabled\u0027)"},{"line_number":231,"context_line":"@utils.arg(\u0027--meter-name\u0027, metavar\u003d\u0027\u003cMETRIC\u003e\u0027,"},{"line_number":232,"context_line":"           help\u003d\u0027Metric to evaluate against\u0027)"},{"line_number":233,"context_line":"@utils.arg(\u0027--statistic\u0027, metavar\u003d\u0027\u003cSTATISTIC\u003e\u0027,"}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAASn%2F%2FCko%3D","line":230,"updated":"2013-09-13 02:12:22.000000000","message":"ditto","commit_id":"08e9ce3abcaa50867cd44ab85ba285cfdff117a1"},{"author":{"_account_id":6917,"name":"Bartosz Górski","email":"bartosz@codilime.com","username":"bartosz-gorski"},"change_message_id":"aa41ee4d4769c7c4547bef201980f16ee0b77d7f","unresolved":false,"context_lines":[{"line_number":180,"context_line":"@utils.arg(\u0027--enabled\u0027, type\u003dutils.string_to_bool, metavar\u003d\u0027{True|False}\u0027,"},{"line_number":181,"context_line":"           print_default\u003dTrue,"},{"line_number":182,"context_line":"           help\u003d\u0027True if alarm evaluation/actioning is enabled\u0027)"},{"line_number":183,"context_line":"@utils.arg(\u0027--meter-name\u0027, metavar\u003d\u0027\u003cMETRIC\u003e\u0027,"},{"line_number":184,"context_line":"           help\u003d\u0027Metric to evaluate against\u0027)"},{"line_number":185,"context_line":"@utils.arg(\u0027--statistic\u0027, metavar\u003d\u0027\u003cSTATISTIC\u003e\u0027, required\u003dTrue,"},{"line_number":186,"context_line":"           help\u003d\u0027Statistic to evaluate, one of: \u0027 + str(STATISTICS))"}],"source_content_type":"text/x-python","patch_set":5,"id":"AAAASn%2F%2FA%2FA%3D","line":183,"updated":"2013-09-13 14:21:31.000000000","message":"Hi. Maybe I\u0027m wrong but I think this argument is also required. I tested CLI and without it create-alarm fails.","commit_id":"4929bbe1b98e656355e36456b0807e9c20d3e3f5"},{"author":{"_account_id":2813,"name":"Mehdi Abaakouk","email":"sileht@sileht.net","username":"sileht"},"change_message_id":"5b2f7a1fa6c0141dc671b052e392a09587f21a79","unresolved":false,"context_lines":[{"line_number":241,"context_line":"           help\u003d\u0027Number of periods to evaluate over\u0027)"},{"line_number":242,"context_line":"@utils.arg(\u0027--meter-name\u0027, metavar\u003d\u0027\u003cMETRIC\u003e\u0027, required\u003dTrue,"},{"line_number":243,"context_line":"           help\u003d\u0027Metric to evaluate against\u0027)"},{"line_number":244,"context_line":"@utils.arg(\u0027--statistic\u0027, metavar\u003d\u0027\u003cSTATISTIC\u003e\u0027, required\u003dTrue,"},{"line_number":245,"context_line":"           help\u003d\u0027Statistic to evaluate, one of: \u0027 + str(STATISTICS))"},{"line_number":246,"context_line":"@utils.arg(\u0027--comparison-operator\u0027, metavar\u003d\u0027\u003cOPERATOR\u003e\u0027, required\u003dTrue,"},{"line_number":247,"context_line":"           help\u003d\u0027Operator to compare with, one of: \u0027 + str(ALARM_OPERATORS))"}],"source_content_type":"text/x-python","patch_set":9,"id":"AAAAS3%2F%2Fgbc%3D","line":244,"updated":"2013-09-25 15:05:13.000000000","message":"This one is not mandatory, default is avg","commit_id":"e8a07914b51014debf607b91079494fc795b6b31"},{"author":{"_account_id":2813,"name":"Mehdi Abaakouk","email":"sileht@sileht.net","username":"sileht"},"change_message_id":"5b2f7a1fa6c0141dc671b052e392a09587f21a79","unresolved":false,"context_lines":[{"line_number":243,"context_line":"           help\u003d\u0027Metric to evaluate against\u0027)"},{"line_number":244,"context_line":"@utils.arg(\u0027--statistic\u0027, metavar\u003d\u0027\u003cSTATISTIC\u003e\u0027, required\u003dTrue,"},{"line_number":245,"context_line":"           help\u003d\u0027Statistic to evaluate, one of: \u0027 + str(STATISTICS))"},{"line_number":246,"context_line":"@utils.arg(\u0027--comparison-operator\u0027, metavar\u003d\u0027\u003cOPERATOR\u003e\u0027, required\u003dTrue,"},{"line_number":247,"context_line":"           help\u003d\u0027Operator to compare with, one of: \u0027 + str(ALARM_OPERATORS))"},{"line_number":248,"context_line":"@utils.arg(\u0027--threshold\u0027, type\u003dfloat, metavar\u003d\u0027\u003cTHRESHOLD\u003e\u0027, required\u003dTrue,"},{"line_number":249,"context_line":"           help\u003d\u0027Threshold to evaluate against\u0027)"}],"source_content_type":"text/x-python","patch_set":9,"id":"AAAAS3%2F%2FgbY%3D","line":246,"updated":"2013-09-25 15:05:13.000000000","message":"This one is not mandatory, default is eq","commit_id":"e8a07914b51014debf607b91079494fc795b6b31"}]}
