)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":1669,"name":"Julien Danjou","display_name":"jd","email":"julien@danjou.info","username":"jdanjou"},"change_message_id":"cba9f2fe119e0173bb52051cd9c7acaebb0f82a0","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     Hanxi_Liu \u003chanxi.liu@easystack.cn\u003e"},{"line_number":5,"context_line":"CommitDate: 2017-06-17 00:27:47 +0800"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Doc: guide for operating resouce type"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"this is an instruction to operate recource type:"},{"line_number":10,"context_line":"- add/remove attributes of a resource type"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"7f231b9d_48fbe4bf","line":7,"range":{"start_line":7,"start_character":25,"end_line":7,"end_character":32},"updated":"2017-06-19 08:50:30.000000000","message":"resource","commit_id":"76bdf717c68e40af6dcc628ad508b08a6e8c3f6d"},{"author":{"_account_id":22752,"name":"Hanxi Liu","email":"apolloliuhx@gmail.com","username":"Hanxi_Liu"},"change_message_id":"87c29790b2612bbbbd7ca5a1f3be7208e27445e8","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     Hanxi_Liu \u003chanxi.liu@easystack.cn\u003e"},{"line_number":5,"context_line":"CommitDate: 2017-06-17 00:27:47 +0800"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Doc: guide for operating resouce type"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"this is an instruction to operate recource type:"},{"line_number":10,"context_line":"- add/remove attributes of a resource type"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"7f231b9d_0334addc","line":7,"range":{"start_line":7,"start_character":25,"end_line":7,"end_character":32},"in_reply_to":"7f231b9d_48fbe4bf","updated":"2017-06-19 09:05:51.000000000","message":"Done","commit_id":"76bdf717c68e40af6dcc628ad508b08a6e8c3f6d"},{"author":{"_account_id":1669,"name":"Julien Danjou","display_name":"jd","email":"julien@danjou.info","username":"jdanjou"},"change_message_id":"cba9f2fe119e0173bb52051cd9c7acaebb0f82a0","unresolved":false,"context_lines":[{"line_number":8,"context_line":""},{"line_number":9,"context_line":"this is an instruction to operate recource type:"},{"line_number":10,"context_line":"- add/remove attributes of a resource type"},{"line_number":11,"context_line":"- add a resouce tpye"},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Change-Id: If2dbe55151e2799502d3ad1a49a9af4ad9e86f94"},{"line_number":14,"context_line":"Closes-Bug: #1696571"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"7f231b9d_28f668d8","line":11,"range":{"start_line":11,"start_character":8,"end_line":11,"end_character":15},"updated":"2017-06-19 08:50:30.000000000","message":"resource","commit_id":"76bdf717c68e40af6dcc628ad508b08a6e8c3f6d"},{"author":{"_account_id":22752,"name":"Hanxi Liu","email":"apolloliuhx@gmail.com","username":"Hanxi_Liu"},"change_message_id":"87c29790b2612bbbbd7ca5a1f3be7208e27445e8","unresolved":false,"context_lines":[{"line_number":8,"context_line":""},{"line_number":9,"context_line":"this is an instruction to operate recource type:"},{"line_number":10,"context_line":"- add/remove attributes of a resource type"},{"line_number":11,"context_line":"- add a resouce tpye"},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Change-Id: If2dbe55151e2799502d3ad1a49a9af4ad9e86f94"},{"line_number":14,"context_line":"Closes-Bug: #1696571"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"7f231b9d_e32e518a","line":11,"range":{"start_line":11,"start_character":8,"end_line":11,"end_character":15},"in_reply_to":"7f231b9d_28f668d8","updated":"2017-06-19 09:05:51.000000000","message":"Done","commit_id":"76bdf717c68e40af6dcc628ad508b08a6e8c3f6d"}],"doc/source/new_resource_types.rst":[{"author":{"_account_id":6537,"name":"gordon chung","email":"gord@live.ca","username":"chungg"},"change_message_id":"4c50cca15442821687ad7cf5fa133c82a600e085","unresolved":false,"context_lines":[{"line_number":16,"context_line":".. _add_new_resource_types:"},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":19,"context_line":" New Resource Types"},{"line_number":20,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"Ceilometer makes it availble to create new resource types or update attributes of a resource-type"}],"source_content_type":"text/x-rst","patch_set":1,"id":"7f231b9d_9e0621ce","line":19,"range":{"start_line":19,"start_character":1,"end_line":19,"end_character":19},"updated":"2017-06-15 13:19:36.000000000","message":"i think we should have a top level title for \"Ceilometer+Gnocchi Integration\"\n\nand have this as a second level \"Managing Resource Types\"","commit_id":"b9cb0c14319e7ad9289fdba4338ead390a3be842"},{"author":{"_account_id":22752,"name":"Hanxi Liu","email":"apolloliuhx@gmail.com","username":"Hanxi_Liu"},"change_message_id":"7f5bd95d363021ef5df6edb2b88c47301554b85b","unresolved":false,"context_lines":[{"line_number":16,"context_line":".. _add_new_resource_types:"},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":19,"context_line":" New Resource Types"},{"line_number":20,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"Ceilometer makes it availble to create new resource types or update attributes of a resource-type"}],"source_content_type":"text/x-rst","patch_set":1,"id":"7f231b9d_9416fd48","line":19,"range":{"start_line":19,"start_character":1,"end_line":19,"end_character":19},"in_reply_to":"7f231b9d_9e0621ce","updated":"2017-06-15 15:34:50.000000000","message":"Done","commit_id":"b9cb0c14319e7ad9289fdba4338ead390a3be842"},{"author":{"_account_id":6537,"name":"gordon chung","email":"gord@live.ca","username":"chungg"},"change_message_id":"4c50cca15442821687ad7cf5fa133c82a600e085","unresolved":false,"context_lines":[{"line_number":18,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":19,"context_line":" New Resource Types"},{"line_number":20,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"Ceilometer makes it availble to create new resource types or update attributes of a resource-type"},{"line_number":23,"context_line":"from other external components for Gnocchi. Before starting doing that, this guide is the one that"},{"line_number":24,"context_line":"you need follow."}],"source_content_type":"text/x-rst","patch_set":1,"id":"7f231b9d_beb2fd47","line":21,"updated":"2017-06-15 13:19:36.000000000","message":"you should add a warning. \n\ncustom modification may result in conflicts with upstream upgrades. if not intended to be merged with upstream, it\u0027s advisable to directly create resource-types via gnocchi api.","commit_id":"b9cb0c14319e7ad9289fdba4338ead390a3be842"},{"author":{"_account_id":22752,"name":"Hanxi Liu","email":"apolloliuhx@gmail.com","username":"Hanxi_Liu"},"change_message_id":"7f5bd95d363021ef5df6edb2b88c47301554b85b","unresolved":false,"context_lines":[{"line_number":18,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":19,"context_line":" New Resource Types"},{"line_number":20,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"Ceilometer makes it availble to create new resource types or update attributes of a resource-type"},{"line_number":23,"context_line":"from other external components for Gnocchi. Before starting doing that, this guide is the one that"},{"line_number":24,"context_line":"you need follow."}],"source_content_type":"text/x-rst","patch_set":1,"id":"7f231b9d_d4da3576","line":21,"in_reply_to":"7f231b9d_beb2fd47","updated":"2017-06-15 15:34:50.000000000","message":"Done","commit_id":"b9cb0c14319e7ad9289fdba4338ead390a3be842"},{"author":{"_account_id":6537,"name":"gordon chung","email":"gord@live.ca","username":"chungg"},"change_message_id":"4c50cca15442821687ad7cf5fa133c82a600e085","unresolved":false,"context_lines":[{"line_number":19,"context_line":" New Resource Types"},{"line_number":20,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"Ceilometer makes it availble to create new resource types or update attributes of a resource-type"},{"line_number":23,"context_line":"from other external components for Gnocchi. Before starting doing that, this guide is the one that"},{"line_number":24,"context_line":"you need follow."},{"line_number":25,"context_line":""},{"line_number":26,"context_line":".. _resource_types:"},{"line_number":27,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"7f231b9d_7e346593","line":24,"range":{"start_line":22,"start_character":0,"end_line":24,"end_character":16},"updated":"2017-06-15 13:19:36.000000000","message":"Resource types in Gnocchi are managed by Ceilometer. The following describes how to add or update Gnocchi to support new Ceilometer data.","commit_id":"b9cb0c14319e7ad9289fdba4338ead390a3be842"},{"author":{"_account_id":22752,"name":"Hanxi Liu","email":"apolloliuhx@gmail.com","username":"Hanxi_Liu"},"change_message_id":"7f5bd95d363021ef5df6edb2b88c47301554b85b","unresolved":false,"context_lines":[{"line_number":19,"context_line":" New Resource Types"},{"line_number":20,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"Ceilometer makes it availble to create new resource types or update attributes of a resource-type"},{"line_number":23,"context_line":"from other external components for Gnocchi. Before starting doing that, this guide is the one that"},{"line_number":24,"context_line":"you need follow."},{"line_number":25,"context_line":""},{"line_number":26,"context_line":".. _resource_types:"},{"line_number":27,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"7f231b9d_f4dd3170","line":24,"range":{"start_line":22,"start_character":0,"end_line":24,"end_character":16},"in_reply_to":"7f231b9d_7e346593","updated":"2017-06-15 15:34:50.000000000","message":"Done","commit_id":"b9cb0c14319e7ad9289fdba4338ead390a3be842"},{"author":{"_account_id":6537,"name":"gordon chung","email":"gord@live.ca","username":"chungg"},"change_message_id":"4c50cca15442821687ad7cf5fa133c82a600e085","unresolved":false,"context_lines":[{"line_number":26,"context_line":".. _resource_types:"},{"line_number":27,"context_line":""},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"Either add/remove attributes of a resource-type or create a new resource-type is allowed. Whichever"},{"line_number":30,"context_line":"operation you choose, the first section must be changed is `resources_update_operations`_."},{"line_number":31,"context_line":""},{"line_number":32,"context_line":".. _resources_update_operations: https://github.com/openstack/ceilometer/blob/master/ceilometer/gnocchi_client.py#L104"},{"line_number":33,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"7f231b9d_9e8bc11d","line":30,"range":{"start_line":29,"start_character":89,"end_line":30,"end_character":89},"updated":"2017-06-15 13:19:36.000000000","message":"The modification or creation of Gnocchi resource type definitions are managed here_.","commit_id":"b9cb0c14319e7ad9289fdba4338ead390a3be842"},{"author":{"_account_id":22752,"name":"Hanxi Liu","email":"apolloliuhx@gmail.com","username":"Hanxi_Liu"},"change_message_id":"7f5bd95d363021ef5df6edb2b88c47301554b85b","unresolved":false,"context_lines":[{"line_number":26,"context_line":".. _resource_types:"},{"line_number":27,"context_line":""},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"Either add/remove attributes of a resource-type or create a new resource-type is allowed. Whichever"},{"line_number":30,"context_line":"operation you choose, the first section must be changed is `resources_update_operations`_."},{"line_number":31,"context_line":""},{"line_number":32,"context_line":".. _resources_update_operations: https://github.com/openstack/ceilometer/blob/master/ceilometer/gnocchi_client.py#L104"},{"line_number":33,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"7f231b9d_14f54ded","line":30,"range":{"start_line":29,"start_character":89,"end_line":30,"end_character":89},"in_reply_to":"7f231b9d_9e8bc11d","updated":"2017-06-15 15:34:50.000000000","message":"Done","commit_id":"b9cb0c14319e7ad9289fdba4338ead390a3be842"},{"author":{"_account_id":6537,"name":"gordon chung","email":"gord@live.ca","username":"chungg"},"change_message_id":"4c50cca15442821687ad7cf5fa133c82a600e085","unresolved":false,"context_lines":[{"line_number":29,"context_line":"Either add/remove attributes of a resource-type or create a new resource-type is allowed. Whichever"},{"line_number":30,"context_line":"operation you choose, the first section must be changed is `resources_update_operations`_."},{"line_number":31,"context_line":""},{"line_number":32,"context_line":".. _resources_update_operations: https://github.com/openstack/ceilometer/blob/master/ceilometer/gnocchi_client.py#L104"},{"line_number":33,"context_line":""},{"line_number":34,"context_line":"There are three update operation examples."},{"line_number":35,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"7f231b9d_7ed90555","line":32,"range":{"start_line":32,"start_character":33,"end_line":32,"end_character":118},"updated":"2017-06-15 13:19:36.000000000","message":"this link will always change based on code. maybe just reference the file.","commit_id":"b9cb0c14319e7ad9289fdba4338ead390a3be842"},{"author":{"_account_id":22752,"name":"Hanxi Liu","email":"apolloliuhx@gmail.com","username":"Hanxi_Liu"},"change_message_id":"7f5bd95d363021ef5df6edb2b88c47301554b85b","unresolved":false,"context_lines":[{"line_number":29,"context_line":"Either add/remove attributes of a resource-type or create a new resource-type is allowed. Whichever"},{"line_number":30,"context_line":"operation you choose, the first section must be changed is `resources_update_operations`_."},{"line_number":31,"context_line":""},{"line_number":32,"context_line":".. _resources_update_operations: https://github.com/openstack/ceilometer/blob/master/ceilometer/gnocchi_client.py#L104"},{"line_number":33,"context_line":""},{"line_number":34,"context_line":"There are three update operation examples."},{"line_number":35,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"7f231b9d_d4f6b5d7","line":32,"range":{"start_line":32,"start_character":33,"end_line":32,"end_character":118},"in_reply_to":"7f231b9d_7ed90555","updated":"2017-06-15 15:34:50.000000000","message":"Done","commit_id":"b9cb0c14319e7ad9289fdba4338ead390a3be842"},{"author":{"_account_id":6537,"name":"gordon chung","email":"gord@live.ca","username":"chungg"},"change_message_id":"4c50cca15442821687ad7cf5fa133c82a600e085","unresolved":false,"context_lines":[{"line_number":31,"context_line":""},{"line_number":32,"context_line":".. _resources_update_operations: https://github.com/openstack/ceilometer/blob/master/ceilometer/gnocchi_client.py#L104"},{"line_number":33,"context_line":""},{"line_number":34,"context_line":"There are three update operation examples."},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"1. Add `flavor_name` attribute to `instance` resource:"},{"line_number":37,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"7f231b9d_1ea451a5","line":34,"range":{"start_line":34,"start_character":0,"end_line":34,"end_character":40},"updated":"2017-06-15 13:19:36.000000000","message":"The following operations are supported:","commit_id":"b9cb0c14319e7ad9289fdba4338ead390a3be842"},{"author":{"_account_id":22752,"name":"Hanxi Liu","email":"apolloliuhx@gmail.com","username":"Hanxi_Liu"},"change_message_id":"7f5bd95d363021ef5df6edb2b88c47301554b85b","unresolved":false,"context_lines":[{"line_number":31,"context_line":""},{"line_number":32,"context_line":".. _resources_update_operations: https://github.com/openstack/ceilometer/blob/master/ceilometer/gnocchi_client.py#L104"},{"line_number":33,"context_line":""},{"line_number":34,"context_line":"There are three update operation examples."},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"1. Add `flavor_name` attribute to `instance` resource:"},{"line_number":37,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"7f231b9d_142aed2a","line":34,"range":{"start_line":34,"start_character":0,"end_line":34,"end_character":40},"in_reply_to":"7f231b9d_1ea451a5","updated":"2017-06-15 15:34:50.000000000","message":"Done","commit_id":"b9cb0c14319e7ad9289fdba4338ead390a3be842"},{"author":{"_account_id":6537,"name":"gordon chung","email":"gord@live.ca","username":"chungg"},"change_message_id":"4c50cca15442821687ad7cf5fa133c82a600e085","unresolved":false,"context_lines":[{"line_number":33,"context_line":""},{"line_number":34,"context_line":"There are three update operation examples."},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"1. Add `flavor_name` attribute to `instance` resource:"},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"    {\"desc\": \"add flavor_name to instance\","},{"line_number":39,"context_line":"     \"type\": \"update_attribute_type\","}],"source_content_type":"text/x-rst","patch_set":1,"id":"7f231b9d_bebf9da8","line":36,"range":{"start_line":36,"start_character":3,"end_line":36,"end_character":53},"updated":"2017-06-15 13:19:36.000000000","message":"Adding a new attribute to a resource type. the following adds `flavor_name` attribute to an existing `instance` resource.","commit_id":"b9cb0c14319e7ad9289fdba4338ead390a3be842"},{"author":{"_account_id":22752,"name":"Hanxi Liu","email":"apolloliuhx@gmail.com","username":"Hanxi_Liu"},"change_message_id":"7f5bd95d363021ef5df6edb2b88c47301554b85b","unresolved":false,"context_lines":[{"line_number":33,"context_line":""},{"line_number":34,"context_line":"There are three update operation examples."},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"1. Add `flavor_name` attribute to `instance` resource:"},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"    {\"desc\": \"add flavor_name to instance\","},{"line_number":39,"context_line":"     \"type\": \"update_attribute_type\","}],"source_content_type":"text/x-rst","patch_set":1,"id":"7f231b9d_f4e77111","line":36,"range":{"start_line":36,"start_character":3,"end_line":36,"end_character":53},"in_reply_to":"7f231b9d_bebf9da8","updated":"2017-06-15 15:34:50.000000000","message":"Done","commit_id":"b9cb0c14319e7ad9289fdba4338ead390a3be842"},{"author":{"_account_id":6537,"name":"gordon chung","email":"gord@live.ca","username":"chungg"},"change_message_id":"4c50cca15442821687ad7cf5fa133c82a600e085","unresolved":false,"context_lines":[{"line_number":45,"context_line":"                   \"required\": True, \"options\": {\u0027fill\u0027: \u0027\u0027}}"},{"line_number":46,"context_line":"     }]}"},{"line_number":47,"context_line":""},{"line_number":48,"context_line":"2. Remove `server_group` attribute to `instance` resource:"},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"    {\"desc\": \"remove server_group to instance\","},{"line_number":51,"context_line":"     \"type\": \"update_attribute_type\","},{"line_number":52,"context_line":"     \"resource_type\": \"instance\","},{"line_number":53,"context_line":"     \"data\": [{"},{"line_number":54,"context_line":"         \"op\": \"add\","},{"line_number":55,"context_line":"         \"path\": \"/attributes/server_group\","},{"line_number":56,"context_line":"         \"value\": {\"type\": \"string\", \"min_length\": 0, \"max_length\": 255,"},{"line_number":57,"context_line":"                   \"required\": False, \"options\": {\u0027fill\u0027: \u0027\u0027}}"},{"line_number":58,"context_line":"     }]}"},{"line_number":59,"context_line":""},{"line_number":60,"context_line":"3. Create a new resource type named `nova_compute`:"},{"line_number":61,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"7f231b9d_3ee94db6","line":58,"range":{"start_line":48,"start_character":0,"end_line":58,"end_character":8},"updated":"2017-06-15 13:19:36.000000000","message":"this is wrong. i don\u0027t think it\u0027s removing anything so i\u0027m not sure what you\u0027re trying to show.","commit_id":"b9cb0c14319e7ad9289fdba4338ead390a3be842"},{"author":{"_account_id":22752,"name":"Hanxi Liu","email":"apolloliuhx@gmail.com","username":"Hanxi_Liu"},"change_message_id":"7f5bd95d363021ef5df6edb2b88c47301554b85b","unresolved":false,"context_lines":[{"line_number":45,"context_line":"                   \"required\": True, \"options\": {\u0027fill\u0027: \u0027\u0027}}"},{"line_number":46,"context_line":"     }]}"},{"line_number":47,"context_line":""},{"line_number":48,"context_line":"2. Remove `server_group` attribute to `instance` resource:"},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"    {\"desc\": \"remove server_group to instance\","},{"line_number":51,"context_line":"     \"type\": \"update_attribute_type\","},{"line_number":52,"context_line":"     \"resource_type\": \"instance\","},{"line_number":53,"context_line":"     \"data\": [{"},{"line_number":54,"context_line":"         \"op\": \"add\","},{"line_number":55,"context_line":"         \"path\": \"/attributes/server_group\","},{"line_number":56,"context_line":"         \"value\": {\"type\": \"string\", \"min_length\": 0, \"max_length\": 255,"},{"line_number":57,"context_line":"                   \"required\": False, \"options\": {\u0027fill\u0027: \u0027\u0027}}"},{"line_number":58,"context_line":"     }]}"},{"line_number":59,"context_line":""},{"line_number":60,"context_line":"3. Create a new resource type named `nova_compute`:"},{"line_number":61,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"7f231b9d_d425950a","line":58,"range":{"start_line":48,"start_character":0,"end_line":58,"end_character":8},"in_reply_to":"7f231b9d_3ee94db6","updated":"2017-06-15 15:34:50.000000000","message":"I think it allows remove attributes according to the code[1]. But it won\u0027t occur in theory.\n[1]https://github.com/openstack/ceilometer/blob/master/ceilometer/gnocchi_client.py#L149","commit_id":"b9cb0c14319e7ad9289fdba4338ead390a3be842"},{"author":{"_account_id":22752,"name":"Hanxi Liu","email":"apolloliuhx@gmail.com","username":"Hanxi_Liu"},"change_message_id":"757972473104556368b7a9e757ae15b99490db00","unresolved":false,"context_lines":[{"line_number":45,"context_line":"                   \"required\": True, \"options\": {\u0027fill\u0027: \u0027\u0027}}"},{"line_number":46,"context_line":"     }]}"},{"line_number":47,"context_line":""},{"line_number":48,"context_line":"2. Remove `server_group` attribute to `instance` resource:"},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"    {\"desc\": \"remove server_group to instance\","},{"line_number":51,"context_line":"     \"type\": \"update_attribute_type\","},{"line_number":52,"context_line":"     \"resource_type\": \"instance\","},{"line_number":53,"context_line":"     \"data\": [{"},{"line_number":54,"context_line":"         \"op\": \"add\","},{"line_number":55,"context_line":"         \"path\": \"/attributes/server_group\","},{"line_number":56,"context_line":"         \"value\": {\"type\": \"string\", \"min_length\": 0, \"max_length\": 255,"},{"line_number":57,"context_line":"                   \"required\": False, \"options\": {\u0027fill\u0027: \u0027\u0027}}"},{"line_number":58,"context_line":"     }]}"},{"line_number":59,"context_line":""},{"line_number":60,"context_line":"3. Create a new resource type named `nova_compute`:"},{"line_number":61,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"7f231b9d_ff15e849","line":58,"range":{"start_line":48,"start_character":0,"end_line":58,"end_character":8},"in_reply_to":"7f231b9d_835344e2","updated":"2017-06-16 16:27:20.000000000","message":"Thank you, you explain very detailed. I just worry about whether it is necessary to remove in this way :)","commit_id":"b9cb0c14319e7ad9289fdba4338ead390a3be842"},{"author":{"_account_id":21558,"name":"Matt Wisch","email":"matt.wisch@rackspace.com","username":"wisch"},"change_message_id":"edec61dd6e6f70fcdee12ee693392c5a11eff92c","unresolved":false,"context_lines":[{"line_number":45,"context_line":"                   \"required\": True, \"options\": {\u0027fill\u0027: \u0027\u0027}}"},{"line_number":46,"context_line":"     }]}"},{"line_number":47,"context_line":""},{"line_number":48,"context_line":"2. Remove `server_group` attribute to `instance` resource:"},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"    {\"desc\": \"remove server_group to instance\","},{"line_number":51,"context_line":"     \"type\": \"update_attribute_type\","},{"line_number":52,"context_line":"     \"resource_type\": \"instance\","},{"line_number":53,"context_line":"     \"data\": [{"},{"line_number":54,"context_line":"         \"op\": \"add\","},{"line_number":55,"context_line":"         \"path\": \"/attributes/server_group\","},{"line_number":56,"context_line":"         \"value\": {\"type\": \"string\", \"min_length\": 0, \"max_length\": 255,"},{"line_number":57,"context_line":"                   \"required\": False, \"options\": {\u0027fill\u0027: \u0027\u0027}}"},{"line_number":58,"context_line":"     }]}"},{"line_number":59,"context_line":""},{"line_number":60,"context_line":"3. Create a new resource type named `nova_compute`:"},{"line_number":61,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"7f231b9d_835344e2","line":58,"range":{"start_line":48,"start_character":0,"end_line":58,"end_character":8},"in_reply_to":"7f231b9d_d425950a","updated":"2017-06-16 11:39:30.000000000","message":"You are correct, you can remove attributes but the op in line 54 would need to be \"remove\", and the value key is not needed during an attribute removal, so you could remove lines 56, 57, and the comma at the end of line 55. Also if you are going to include this, change the example description to \"Remove `server_group` attribute from `instance` resource:\"\n\nSearch for \"Attributes can be added or removed\" on the API docs page here: http://gnocchi.xyz/rest.html#resource-types","commit_id":"b9cb0c14319e7ad9289fdba4338ead390a3be842"},{"author":{"_account_id":6537,"name":"gordon chung","email":"gord@live.ca","username":"chungg"},"change_message_id":"4c50cca15442821687ad7cf5fa133c82a600e085","unresolved":false,"context_lines":[{"line_number":57,"context_line":"                   \"required\": False, \"options\": {\u0027fill\u0027: \u0027\u0027}}"},{"line_number":58,"context_line":"     }]}"},{"line_number":59,"context_line":""},{"line_number":60,"context_line":"3. Create a new resource type named `nova_compute`:"},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"    {\"desc\": \"add nova_compute resource type\","},{"line_number":63,"context_line":"     \"type\": \"create_resource_type\","}],"source_content_type":"text/x-rst","patch_set":1,"id":"7f231b9d_1efb3179","line":60,"range":{"start_line":60,"start_character":3,"end_line":60,"end_character":50},"updated":"2017-06-15 13:19:36.000000000","message":"Creating a new resource type. the following creates a new resource type named `nova_compute` with a required attribute `host_name`.","commit_id":"b9cb0c14319e7ad9289fdba4338ead390a3be842"},{"author":{"_account_id":22752,"name":"Hanxi Liu","email":"apolloliuhx@gmail.com","username":"Hanxi_Liu"},"change_message_id":"7f5bd95d363021ef5df6edb2b88c47301554b85b","unresolved":false,"context_lines":[{"line_number":57,"context_line":"                   \"required\": False, \"options\": {\u0027fill\u0027: \u0027\u0027}}"},{"line_number":58,"context_line":"     }]}"},{"line_number":59,"context_line":""},{"line_number":60,"context_line":"3. Create a new resource type named `nova_compute`:"},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"    {\"desc\": \"add nova_compute resource type\","},{"line_number":63,"context_line":"     \"type\": \"create_resource_type\","}],"source_content_type":"text/x-rst","patch_set":1,"id":"7f231b9d_14e9cdb5","line":60,"range":{"start_line":60,"start_character":3,"end_line":60,"end_character":50},"in_reply_to":"7f231b9d_1efb3179","updated":"2017-06-15 15:34:50.000000000","message":"Done","commit_id":"b9cb0c14319e7ad9289fdba4338ead390a3be842"},{"author":{"_account_id":6537,"name":"gordon chung","email":"gord@live.ca","username":"chungg"},"change_message_id":"4c50cca15442821687ad7cf5fa133c82a600e085","unresolved":false,"context_lines":[{"line_number":67,"context_line":"                        \"max_length\": 255, \"required\": True}}"},{"line_number":68,"context_line":"     }]}"},{"line_number":69,"context_line":""},{"line_number":70,"context_line":"Then Add `upgrade_resource_types`_ process responding to the operation you add above. Every process"},{"line_number":71,"context_line":"is a api request to Gnocchi service. Gnocchi will implement every update operation on upgrade."},{"line_number":72,"context_line":""},{"line_number":73,"context_line":".. _upgrade_resource_types: https://github.com/openstack/ceilometer/blob/master/ceilometer/gnocchi_client.py#L133"},{"line_number":74,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"7f231b9d_3ea14d47","line":71,"range":{"start_line":70,"start_character":0,"end_line":71,"end_character":94},"updated":"2017-06-15 13:19:36.000000000","message":".. note::\n\n\nDo not modify the existing change steps when making changes. Each modification requires a new step to be added and for `ceilometer-upgrade --skip-metering-database` to be run to apply the change to Gnocchi.","commit_id":"b9cb0c14319e7ad9289fdba4338ead390a3be842"},{"author":{"_account_id":22752,"name":"Hanxi Liu","email":"apolloliuhx@gmail.com","username":"Hanxi_Liu"},"change_message_id":"7f5bd95d363021ef5df6edb2b88c47301554b85b","unresolved":false,"context_lines":[{"line_number":67,"context_line":"                        \"max_length\": 255, \"required\": True}}"},{"line_number":68,"context_line":"     }]}"},{"line_number":69,"context_line":""},{"line_number":70,"context_line":"Then Add `upgrade_resource_types`_ process responding to the operation you add above. Every process"},{"line_number":71,"context_line":"is a api request to Gnocchi service. Gnocchi will implement every update operation on upgrade."},{"line_number":72,"context_line":""},{"line_number":73,"context_line":".. _upgrade_resource_types: https://github.com/openstack/ceilometer/blob/master/ceilometer/gnocchi_client.py#L133"},{"line_number":74,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"7f231b9d_b4a9f97c","line":71,"range":{"start_line":70,"start_character":0,"end_line":71,"end_character":94},"in_reply_to":"7f231b9d_3ea14d47","updated":"2017-06-15 15:34:50.000000000","message":"Done","commit_id":"b9cb0c14319e7ad9289fdba4338ead390a3be842"},{"author":{"_account_id":6537,"name":"gordon chung","email":"gord@live.ca","username":"chungg"},"change_message_id":"4c50cca15442821687ad7cf5fa133c82a600e085","unresolved":false,"context_lines":[{"line_number":70,"context_line":"Then Add `upgrade_resource_types`_ process responding to the operation you add above. Every process"},{"line_number":71,"context_line":"is a api request to Gnocchi service. Gnocchi will implement every update operation on upgrade."},{"line_number":72,"context_line":""},{"line_number":73,"context_line":".. _upgrade_resource_types: https://github.com/openstack/ceilometer/blob/master/ceilometer/gnocchi_client.py#L133"},{"line_number":74,"context_line":""},{"line_number":75,"context_line":"With accomplishing sections above, don\u0027t forget to add a new resource type or attributes of a resource"},{"line_number":76,"context_line":"type into :the file:`ceilometer/dispatcher/data/gnocchi_resources.yaml`."}],"source_content_type":"text/x-rst","patch_set":1,"id":"7f231b9d_de8ff9ca","line":73,"range":{"start_line":73,"start_character":0,"end_line":73,"end_character":113},"updated":"2017-06-15 13:19:36.000000000","message":"deleete","commit_id":"b9cb0c14319e7ad9289fdba4338ead390a3be842"},{"author":{"_account_id":22752,"name":"Hanxi Liu","email":"apolloliuhx@gmail.com","username":"Hanxi_Liu"},"change_message_id":"7f5bd95d363021ef5df6edb2b88c47301554b85b","unresolved":false,"context_lines":[{"line_number":70,"context_line":"Then Add `upgrade_resource_types`_ process responding to the operation you add above. Every process"},{"line_number":71,"context_line":"is a api request to Gnocchi service. Gnocchi will implement every update operation on upgrade."},{"line_number":72,"context_line":""},{"line_number":73,"context_line":".. _upgrade_resource_types: https://github.com/openstack/ceilometer/blob/master/ceilometer/gnocchi_client.py#L133"},{"line_number":74,"context_line":""},{"line_number":75,"context_line":"With accomplishing sections above, don\u0027t forget to add a new resource type or attributes of a resource"},{"line_number":76,"context_line":"type into :the file:`ceilometer/dispatcher/data/gnocchi_resources.yaml`."}],"source_content_type":"text/x-rst","patch_set":1,"id":"7f231b9d_d4a0f592","line":73,"range":{"start_line":73,"start_character":0,"end_line":73,"end_character":113},"in_reply_to":"7f231b9d_de8ff9ca","updated":"2017-06-15 15:34:50.000000000","message":"Done","commit_id":"b9cb0c14319e7ad9289fdba4338ead390a3be842"},{"author":{"_account_id":1669,"name":"Julien Danjou","display_name":"jd","email":"julien@danjou.info","username":"jdanjou"},"change_message_id":"cba9f2fe119e0173bb52051cd9c7acaebb0f82a0","unresolved":false,"context_lines":[{"line_number":23,"context_line":""},{"line_number":24,"context_line":"    Remember that custom modification may result in conflicts with upstream upgrades."},{"line_number":25,"context_line":"    If not intended to be merged with upstream, it\u0027s advisable to directly create"},{"line_number":26,"context_line":"    resource-types via gnocchi api."},{"line_number":27,"context_line":""},{"line_number":28,"context_line":".. _resource_types:"},{"line_number":29,"context_line":""}],"source_content_type":"text/x-rst","patch_set":3,"id":"7f231b9d_88269c67","line":26,"range":{"start_line":26,"start_character":23,"end_line":26,"end_character":34},"updated":"2017-06-19 08:50:30.000000000","message":"Gnocchi API","commit_id":"76bdf717c68e40af6dcc628ad508b08a6e8c3f6d"},{"author":{"_account_id":22752,"name":"Hanxi Liu","email":"apolloliuhx@gmail.com","username":"Hanxi_Liu"},"change_message_id":"87c29790b2612bbbbd7ca5a1f3be7208e27445e8","unresolved":false,"context_lines":[{"line_number":23,"context_line":""},{"line_number":24,"context_line":"    Remember that custom modification may result in conflicts with upstream upgrades."},{"line_number":25,"context_line":"    If not intended to be merged with upstream, it\u0027s advisable to directly create"},{"line_number":26,"context_line":"    resource-types via gnocchi api."},{"line_number":27,"context_line":""},{"line_number":28,"context_line":".. _resource_types:"},{"line_number":29,"context_line":""}],"source_content_type":"text/x-rst","patch_set":3,"id":"7f231b9d_4862c40b","line":26,"range":{"start_line":26,"start_character":23,"end_line":26,"end_character":34},"in_reply_to":"7f231b9d_88269c67","updated":"2017-06-19 09:05:51.000000000","message":"Done","commit_id":"76bdf717c68e40af6dcc628ad508b08a6e8c3f6d"},{"author":{"_account_id":1669,"name":"Julien Danjou","display_name":"jd","email":"julien@danjou.info","username":"jdanjou"},"change_message_id":"cba9f2fe119e0173bb52051cd9c7acaebb0f82a0","unresolved":false,"context_lines":[{"line_number":31,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"Resource types in Gnocchi are managed by Ceilometer. The following describes how to add"},{"line_number":34,"context_line":"or update Gnocchi resource type to support new Ceilometer data."},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"The modification or creation of Gnocchi resource type definitions are managed"},{"line_number":37,"context_line":":section:`resources_update_operations` of :file:`ceilometer/gnocchi_client.py`."}],"source_content_type":"text/x-rst","patch_set":3,"id":"7f231b9d_081a8c15","line":34,"range":{"start_line":34,"start_character":27,"end_line":34,"end_character":31},"updated":"2017-06-19 08:50:30.000000000","message":"types","commit_id":"76bdf717c68e40af6dcc628ad508b08a6e8c3f6d"},{"author":{"_account_id":22752,"name":"Hanxi Liu","email":"apolloliuhx@gmail.com","username":"Hanxi_Liu"},"change_message_id":"87c29790b2612bbbbd7ca5a1f3be7208e27445e8","unresolved":false,"context_lines":[{"line_number":31,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"Resource types in Gnocchi are managed by Ceilometer. The following describes how to add"},{"line_number":34,"context_line":"or update Gnocchi resource type to support new Ceilometer data."},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"The modification or creation of Gnocchi resource type definitions are managed"},{"line_number":37,"context_line":":section:`resources_update_operations` of :file:`ceilometer/gnocchi_client.py`."}],"source_content_type":"text/x-rst","patch_set":3,"id":"7f231b9d_2310c94d","line":34,"range":{"start_line":34,"start_character":27,"end_line":34,"end_character":31},"in_reply_to":"7f231b9d_081a8c15","updated":"2017-06-19 09:05:51.000000000","message":"Done","commit_id":"76bdf717c68e40af6dcc628ad508b08a6e8c3f6d"},{"author":{"_account_id":6537,"name":"gordon chung","email":"gord@live.ca","username":"chungg"},"change_message_id":"1fe91bc52862334accfabad88617be473388ba6e","unresolved":false,"context_lines":[{"line_number":41,"context_line":"1. Adding a new attribute to a resource type. The following adds `flavor_name` attribute"},{"line_number":42,"context_line":"   to an existing `instance` resource:"},{"line_number":43,"context_line":""},{"line_number":44,"context_line":"    {\"desc\": \"add flavor_name to instance\","},{"line_number":45,"context_line":"     \"type\": \"update_attribute_type\","},{"line_number":46,"context_line":"     \"resource_type\": \"instance\","},{"line_number":47,"context_line":"     \"data\": [{"},{"line_number":48,"context_line":"         \"op\": \"add\","},{"line_number":49,"context_line":"         \"path\": \"/attributes/flavor_name\","},{"line_number":50,"context_line":"         \"value\": {\"type\": \"string\", \"min_length\": 0, \"max_length\": 255,"},{"line_number":51,"context_line":"                   \"required\": True, \"options\": {\u0027fill\u0027: \u0027\u0027}}"},{"line_number":52,"context_line":"     }]}"},{"line_number":53,"context_line":""},{"line_number":54,"context_line":"2. Remove an existing attribute from a resource type. The following removes `server_group`"},{"line_number":55,"context_line":"   attribute from `instance` resource:"}],"source_content_type":"text/x-rst","patch_set":4,"id":"7f231b9d_09104b4d","line":52,"range":{"start_line":44,"start_character":0,"end_line":52,"end_character":8},"updated":"2017-06-19 11:48:22.000000000","message":"can we put this under .. code::","commit_id":"f8a2c1fcade238a677da138d38e0f7b29186477d"},{"author":{"_account_id":22752,"name":"Hanxi Liu","email":"apolloliuhx@gmail.com","username":"Hanxi_Liu"},"change_message_id":"ac13c77e3dca5bc3e26bd74dee8da7ec35277410","unresolved":false,"context_lines":[{"line_number":41,"context_line":"1. Adding a new attribute to a resource type. The following adds `flavor_name` attribute"},{"line_number":42,"context_line":"   to an existing `instance` resource:"},{"line_number":43,"context_line":""},{"line_number":44,"context_line":"    {\"desc\": \"add flavor_name to instance\","},{"line_number":45,"context_line":"     \"type\": \"update_attribute_type\","},{"line_number":46,"context_line":"     \"resource_type\": \"instance\","},{"line_number":47,"context_line":"     \"data\": [{"},{"line_number":48,"context_line":"         \"op\": \"add\","},{"line_number":49,"context_line":"         \"path\": \"/attributes/flavor_name\","},{"line_number":50,"context_line":"         \"value\": {\"type\": \"string\", \"min_length\": 0, \"max_length\": 255,"},{"line_number":51,"context_line":"                   \"required\": True, \"options\": {\u0027fill\u0027: \u0027\u0027}}"},{"line_number":52,"context_line":"     }]}"},{"line_number":53,"context_line":""},{"line_number":54,"context_line":"2. Remove an existing attribute from a resource type. The following removes `server_group`"},{"line_number":55,"context_line":"   attribute from `instance` resource:"}],"source_content_type":"text/x-rst","patch_set":4,"id":"7f231b9d_c9c25353","line":52,"range":{"start_line":44,"start_character":0,"end_line":52,"end_character":8},"in_reply_to":"7f231b9d_09104b4d","updated":"2017-06-19 12:02:03.000000000","message":"Done","commit_id":"f8a2c1fcade238a677da138d38e0f7b29186477d"},{"author":{"_account_id":6537,"name":"gordon chung","email":"gord@live.ca","username":"chungg"},"change_message_id":"1fe91bc52862334accfabad88617be473388ba6e","unresolved":false,"context_lines":[{"line_number":54,"context_line":"2. Remove an existing attribute from a resource type. The following removes `server_group`"},{"line_number":55,"context_line":"   attribute from `instance` resource:"},{"line_number":56,"context_line":""},{"line_number":57,"context_line":"    {\"desc\": \"remove server_group to instance\","},{"line_number":58,"context_line":"     \"type\": \"update_attribute_type\","},{"line_number":59,"context_line":"     \"resource_type\": \"instance\","},{"line_number":60,"context_line":"     \"data\": [{"},{"line_number":61,"context_line":"         \"op\": \"remove\","},{"line_number":62,"context_line":"         \"path\": \"/attributes/server_group\""},{"line_number":63,"context_line":"     }]}"},{"line_number":64,"context_line":""},{"line_number":65,"context_line":"3. Creating a new resource type. The following creates a new resource type named"},{"line_number":66,"context_line":"   `nova_compute` with a required attribute `host_name`:"}],"source_content_type":"text/x-rst","patch_set":4,"id":"7f231b9d_e91aaf6c","line":63,"range":{"start_line":57,"start_character":0,"end_line":63,"end_character":8},"updated":"2017-06-19 11:48:22.000000000","message":"same","commit_id":"f8a2c1fcade238a677da138d38e0f7b29186477d"},{"author":{"_account_id":22752,"name":"Hanxi Liu","email":"apolloliuhx@gmail.com","username":"Hanxi_Liu"},"change_message_id":"ac13c77e3dca5bc3e26bd74dee8da7ec35277410","unresolved":false,"context_lines":[{"line_number":54,"context_line":"2. Remove an existing attribute from a resource type. The following removes `server_group`"},{"line_number":55,"context_line":"   attribute from `instance` resource:"},{"line_number":56,"context_line":""},{"line_number":57,"context_line":"    {\"desc\": \"remove server_group to instance\","},{"line_number":58,"context_line":"     \"type\": \"update_attribute_type\","},{"line_number":59,"context_line":"     \"resource_type\": \"instance\","},{"line_number":60,"context_line":"     \"data\": [{"},{"line_number":61,"context_line":"         \"op\": \"remove\","},{"line_number":62,"context_line":"         \"path\": \"/attributes/server_group\""},{"line_number":63,"context_line":"     }]}"},{"line_number":64,"context_line":""},{"line_number":65,"context_line":"3. Creating a new resource type. The following creates a new resource type named"},{"line_number":66,"context_line":"   `nova_compute` with a required attribute `host_name`:"}],"source_content_type":"text/x-rst","patch_set":4,"id":"7f231b9d_a9a397b1","line":63,"range":{"start_line":57,"start_character":0,"end_line":63,"end_character":8},"in_reply_to":"7f231b9d_e91aaf6c","updated":"2017-06-19 12:02:03.000000000","message":"Done","commit_id":"f8a2c1fcade238a677da138d38e0f7b29186477d"},{"author":{"_account_id":6537,"name":"gordon chung","email":"gord@live.ca","username":"chungg"},"change_message_id":"1fe91bc52862334accfabad88617be473388ba6e","unresolved":false,"context_lines":[{"line_number":65,"context_line":"3. Creating a new resource type. The following creates a new resource type named"},{"line_number":66,"context_line":"   `nova_compute` with a required attribute `host_name`:"},{"line_number":67,"context_line":""},{"line_number":68,"context_line":"    {\"desc\": \"add nova_compute resource type\","},{"line_number":69,"context_line":"     \"type\": \"create_resource_type\","},{"line_number":70,"context_line":"     \"resource_type\": \"nova_compute\","},{"line_number":71,"context_line":"     \"data\": [{"},{"line_number":72,"context_line":"         \"attributes\": {\"host_name\": {\"type\": \"string\", \"min_length\": 0,"},{"line_number":73,"context_line":"                        \"max_length\": 255, \"required\": True}}"},{"line_number":74,"context_line":"     }]}"},{"line_number":75,"context_line":""},{"line_number":76,"context_line":".. note::"},{"line_number":77,"context_line":""}],"source_content_type":"text/x-rst","patch_set":4,"id":"7f231b9d_a92a777b","line":74,"range":{"start_line":68,"start_character":0,"end_line":74,"end_character":8},"updated":"2017-06-19 11:48:22.000000000","message":"same","commit_id":"f8a2c1fcade238a677da138d38e0f7b29186477d"},{"author":{"_account_id":22752,"name":"Hanxi Liu","email":"apolloliuhx@gmail.com","username":"Hanxi_Liu"},"change_message_id":"ac13c77e3dca5bc3e26bd74dee8da7ec35277410","unresolved":false,"context_lines":[{"line_number":65,"context_line":"3. Creating a new resource type. The following creates a new resource type named"},{"line_number":66,"context_line":"   `nova_compute` with a required attribute `host_name`:"},{"line_number":67,"context_line":""},{"line_number":68,"context_line":"    {\"desc\": \"add nova_compute resource type\","},{"line_number":69,"context_line":"     \"type\": \"create_resource_type\","},{"line_number":70,"context_line":"     \"resource_type\": \"nova_compute\","},{"line_number":71,"context_line":"     \"data\": [{"},{"line_number":72,"context_line":"         \"attributes\": {\"host_name\": {\"type\": \"string\", \"min_length\": 0,"},{"line_number":73,"context_line":"                        \"max_length\": 255, \"required\": True}}"},{"line_number":74,"context_line":"     }]}"},{"line_number":75,"context_line":""},{"line_number":76,"context_line":".. note::"},{"line_number":77,"context_line":""}],"source_content_type":"text/x-rst","patch_set":4,"id":"7f231b9d_89a69bc0","line":74,"range":{"start_line":68,"start_character":0,"end_line":74,"end_character":8},"in_reply_to":"7f231b9d_a92a777b","updated":"2017-06-19 12:02:03.000000000","message":"Done","commit_id":"f8a2c1fcade238a677da138d38e0f7b29186477d"}]}
