From b1489031130563da9b25c9801e7da8eab800e113 Mon Sep 17 00:00:00 2001 From: Aleksey Kasatkin Date: Wed, 12 Nov 2014 18:25:42 +0200 Subject: [PATCH] Add nodes' manufacturers to statistics snapshot Blueprint: send-anon-usage Change-Id: I161599955e4fdc7523bedf85f320da6242e3d857 --- collector/collector/api/schemas/installation_structure.json | 4 +++- migration/migration/config.py | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/collector/collector/api/schemas/installation_structure.json b/collector/collector/api/schemas/installation_structure.json index 1814a25..b0a065a 100644 --- a/collector/collector/api/schemas/installation_structure.json +++ b/collector/collector/api/schemas/installation_structure.json @@ -58,7 +58,9 @@ "type": "array", "items": {"type": "string"} }, - "status": {"type": "string"} + "status": {"type": "string"}, + "os": {"type": "string"}, + "manufacturer": {"type": "string"} }, "required": ["id", "roles"] } diff --git a/migration/migration/config.py b/migration/migration/config.py index 181b33d..c47ba33 100644 --- a/migration/migration/config.py +++ b/migration/migration/config.py @@ -114,7 +114,8 @@ MAPPING_FUEL = { 'nodes': { 'type': 'nested', 'properties': { - 'id': {'type': 'long'} + 'id': {'type': 'long'}, + 'manufacturer': {'type': 'string'} } }, }