From 69a297988422aa64dc936290d02fa046f476260b Mon Sep 17 00:00:00 2001 From: lgalis Date: Thu, 6 Apr 2017 17:44:36 -0400 Subject: [PATCH] Fixes for inventory_root_group model for the External Automation Manager model --- .../automation_manager/inventory.rb | 2 +- .../inventory_root_group.rb | 2 + .../inventory_root_group.rb | 2 + ..._AutomationManager_InventoryRootGroup.yaml | 74 +++++++++++++++++++ 4 files changed, 79 insertions(+), 1 deletion(-) create mode 100644 app/models/manageiq/providers/embedded_automation_manager/inventory_root_group.rb create mode 100644 app/models/manageiq/providers/external_automation_manager/inventory_root_group.rb create mode 100644 product/views/ManageIQ_Providers_AutomationManager_InventoryRootGroup.yaml diff --git a/app/models/manageiq/providers/ansible_tower/automation_manager/inventory.rb b/app/models/manageiq/providers/ansible_tower/automation_manager/inventory.rb index c2328e9bc94..376dc9705b8 100644 --- a/app/models/manageiq/providers/ansible_tower/automation_manager/inventory.rb +++ b/app/models/manageiq/providers/ansible_tower/automation_manager/inventory.rb @@ -1,2 +1,2 @@ -class ManageIQ::Providers::AnsibleTower::AutomationManager::Inventory < ManageIQ::Providers::ExternalAutomationManager::InventoryGroup +class ManageIQ::Providers::AnsibleTower::AutomationManager::Inventory < ManageIQ::Providers::ExternalAutomationManager::InventoryRootGroup end diff --git a/app/models/manageiq/providers/embedded_automation_manager/inventory_root_group.rb b/app/models/manageiq/providers/embedded_automation_manager/inventory_root_group.rb new file mode 100644 index 00000000000..758fd8bed9c --- /dev/null +++ b/app/models/manageiq/providers/embedded_automation_manager/inventory_root_group.rb @@ -0,0 +1,2 @@ +class ManageIQ::Providers::EmbeddedAutomationManager::InventoryRootGroup < ManageIQ::Providers::AutomationManager::InventoryRootGroup +end diff --git a/app/models/manageiq/providers/external_automation_manager/inventory_root_group.rb b/app/models/manageiq/providers/external_automation_manager/inventory_root_group.rb new file mode 100644 index 00000000000..c92c6fe8d08 --- /dev/null +++ b/app/models/manageiq/providers/external_automation_manager/inventory_root_group.rb @@ -0,0 +1,2 @@ +class ManageIQ::Providers::ExternalAutomationManager::InventoryRootGroup < ManageIQ::Providers::AutomationManager::InventoryRootGroup +end diff --git a/product/views/ManageIQ_Providers_AutomationManager_InventoryRootGroup.yaml b/product/views/ManageIQ_Providers_AutomationManager_InventoryRootGroup.yaml new file mode 100644 index 00000000000..689df716c28 --- /dev/null +++ b/product/views/ManageIQ_Providers_AutomationManager_InventoryRootGroup.yaml @@ -0,0 +1,74 @@ +# +# This is an MIQ Report configuration file +# Single value parameters are specified as: +# single_value_parm: value +# Multiple value parameters are specified as: +# multi_value_parm: +# - value 1 +# - value 2 +# + +# Report title +title: InventoryGroup + +# Menu name +name: InventoryGroup + +# Main DB table report is based on +db: ManageIQ::Providers::AutomationManager::InventoryRootGroup + +# Columns to fetch from the main table +cols: +- name +- total_configured_systems + +# Included tables (joined, has_one, has_many) and columns + +# Included tables and columns for query performance + +# Order of columns (from all tables) +col_order: +- name +- total_configured_systems + +# Column titles, in order +headers: +- Name +- Total Configured Systems + +col_formats: +- +- +- +- +- + +# Condition(s) string for the SQL query +conditions: + +# Order string for the SQL query +order: Ascending + +# Columns to sort the report on, in order +sortby: +- name + +# Group rows (y=yes,n=no,c=count) +group: n + +# Graph type +# Bar +# Column +# ColumnThreed +# ParallelThreedColumn +# Pie +# PieThreed +# StackedBar +# StackedColumn +# StackedThreedColumn + +graph: + +# Dimensions of graph (1 or 2) +# Note: specifying 2 for a single dimension graph may not return expected results +dims: