Skip to content

Commit

Permalink
Merge pull request #13055 from nimrodshn/Reports_20161014_095631
Browse files Browse the repository at this point in the history
Adding new report and widgets
  • Loading branch information
gtanzillo authored Feb 10, 2017
2 parents ac4545d + 7409890 commit a883256
Show file tree
Hide file tree
Showing 16 changed files with 318 additions and 3 deletions.
17 changes: 17 additions & 0 deletions product/dashboard/widgets/chart_number_of_nodes_per_cpu_cores.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
description: Number of Nodes per CPU Cores Chart
title: Number of Nodes per CPU Cores Chart
content_type: chart
options: {}
visibility:
:roles:
- _ALL_
user_id:
resource_name: Number of Nodes per CPU Cores
resource_type: MiqReport
miq_schedule_options:
:run_at:
:interval:
:value: "1"
:unit: daily
enabled: true
read_only: true
17 changes: 17 additions & 0 deletions product/dashboard/widgets/chart_pods_per_ready.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
description: Pods per Ready Status Chart
title: Pods per Ready Status Chart
content_type: chart
options:
visibility:
:roles:
- _ALL_
user_id:
resource_name: Pods per Ready Status
resource_type: MiqReport
miq_schedule_options:
:run_at:
:interval:
:value: "1"
:unit: daily
enabled: true
read_only: false
22 changes: 22 additions & 0 deletions product/dashboard/widgets/nodes_by_cpu_capacity.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
description: Nodes by Capacity
title: Nodes by Capacity
content_type: report
options:
:row_count: 10
:col_order:
- name
- computer_system.hardware.cpu_total_cores
- computer_system.hardware.memory_mb
visibility:
:roles:
- _ALL_
user_id:
resource_name: Nodes By Capacity
resource_type: MiqReport
miq_schedule_options:
:run_at:
:interval:
:value: "1"
:unit: daily
enabled: true
read_only: true
21 changes: 21 additions & 0 deletions product/dashboard/widgets/nodes_by_cpu_usage.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
description: Nodes By CPU Usage
title: Nodes By CPU Usage
content_type: report
options:
:row_count: 10
:col_order:
- name
- max_cpu_usage_rate_average_avg_over_time_period
visibility:
:roles:
- _ALL_
user_id:
resource_name: Nodes By CPU Usage
resource_type: MiqReport
miq_schedule_options:
:run_at:
:interval:
:value: "1"
:unit: daily
enabled: true
read_only: true
21 changes: 21 additions & 0 deletions product/dashboard/widgets/nodes_by_memory_usage.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
description: Nodes By Memory Usage
title: Nodes By Memory Usage
content_type: report
options:
:row_count: 10
:col_order:
- name
- max_mem_usage_absolute_average_avg_over_time_period
visibility:
:roles:
- _ALL_
user_id:
resource_name: Nodes By Memory Usage
resource_type: MiqReport
miq_schedule_options:
:run_at:
:interval:
:value: "1"
:unit: daily
enabled: true
read_only: true
21 changes: 21 additions & 0 deletions product/dashboard/widgets/pods_per_ready.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
description: Pods per Ready Status
title: Pods per Ready Status
content_type: report
options:
:row_count: 10
:col_order:
- name
- ready_condition_status
visibility:
:roles:
- _ALL_
user_id:
resource_name: Pods per Ready Status
resource_type: MiqReport
miq_schedule_options:
:run_at:
:interval:
:value: "1"
:unit: daily
enabled: true
read_only: true
21 changes: 21 additions & 0 deletions product/dashboard/widgets/projects_by_cpu_usage.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
description: Projects By CPU Usage
title: Projects By CPU Usage
content_type: report
options:
:row_count: 10
:col_order:
- name
- max_cpu_usage_rate_average_avg_over_time_period
visibility:
:roles:
- _ALL_
user_id:
resource_name: Projects By CPU Usage
resource_type: MiqReport
miq_schedule_options:
:run_at:
:interval:
:value: "1"
:unit: daily
enabled: true
read_only: true
21 changes: 21 additions & 0 deletions product/dashboard/widgets/projects_by_memory_usage.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
description: Projects By Memory Usage
title: Projects By Memory Usage
content_type: report
options:
:row_count: 10
:col_order:
- name
- max_mem_usage_absolute_average_avg_over_time_period
visibility:
:roles:
- _ALL_
user_id:
resource_name: Projects By Memory Usage
resource_type: MiqReport
miq_schedule_options:
:run_at:
:interval:
:value: "1"
:unit: daily
enabled: true
read_only: true
21 changes: 21 additions & 0 deletions product/dashboard/widgets/projects_by_number_of_containers.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
description: Projects by Number of Containers
title: Projects by Number of Containers
content_type: report
options:
:row_count: 10
:col_order:
- name
- containers_count
visibility:
:roles:
- _ALL_
user_id:
resource_name: Projects by Number of Containers
resource_type: MiqReport
miq_schedule_options:
:run_at:
:interval:
:value: "1"
:unit: daily
enabled: true
read_only: true
21 changes: 21 additions & 0 deletions product/dashboard/widgets/projects_by_number_of_pods.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
description: Projects by Number of Pods
title: Projects by Number of Pods
content_type: report
options:
:row_count: 10
:col_order:
- name
- groups_count
visibility:
:roles:
- _ALL_
user_id:
resource_name: Projects by Number of Pods
resource_type: MiqReport
miq_schedule_options:
:run_at:
:interval:
:value: "1"
:unit: daily
enabled: true
read_only: true
22 changes: 22 additions & 0 deletions product/dashboard/widgets/recently_discovered_pods.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
description: Recently Discovered Pods
title: Recently Discovered Pods
content_type: report
options:
:row_count: 10
:col_order:
- name
- ready_condition_status
- ems_created_on
visibility:
:roles:
- _ALL_
user_id:
resource_id: 198
resource_type: MiqReport
miq_schedule_options:
:run_at:
:interval:
:value: "1"
:unit: daily
enabled: true
read_only: true
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ col_order:
- name
- computer_system.hardware.cpu_total_cores
headers:
- Number of Nodes per CPU Cores
- Name
- Hardware Number of CPU Cores
conditions:
order: Descending
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
---
title: Projects by Number of Containers
rpt_group: Custom
rpt_type: Custom
priority:
db: ContainerProject
cols:
- name
- containers_count
include: {}
col_order:
- name
- containers_count
headers:
- Project Name
- Containers Count
conditions:
order: Descending
sortby:
- containers_count
group:
graph:
dims:
filename:
file_mtime:
categories: []
timeline:
template_type: report
where_clause:
db_options: {}
generate_cols:
generate_rows:
col_formats:
-
-
tz:
time_profile_id:
display_filter:
col_options: {}
rpt_options:
:pdf:
:page_size: us-letter
:queue_timeout:
menu_name: Projects by Number of Containers
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
---
title: Pods per Ready Status
rpt_group: Configuration Management - Containers
rpt_type: Default
priority: 60
db: ContainerGroup
cols:
- name
- ready_condition_status
include: {}
col_order:
- name
- ready_condition_status
headers:
- "# Pods per Ready Status"
- Ready Condition Status
conditions:
order: Ascending
sortby:
- ready_condition_status
group:
graph:
:type: PieThreed
:count: 10
:other: true
dims: 1
filename: 170_Configuration Management - Containers/060_Container Groups per Ready Status.yaml
categories: []
timeline:
template_type: report
where_clause:
db_options: {}
generate_cols:
generate_rows:
col_formats:
-
-
tz:
time_profile_id:
display_filter:
col_options: {}
rpt_options:
:pdf:
:page_size: us-letter
:queue_timeout:
menu_name: Pods per Ready Status
2 changes: 1 addition & 1 deletion spec/models/miq_report/seeding_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
describe MiqReport do
context "Seeding" do
include_examples(".seed called multiple times", 141)
include_examples(".seed called multiple times", 142)
end
end
2 changes: 1 addition & 1 deletion spec/models/miq_widget_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
describe MiqWidget do
include_examples(".seed called multiple times", 10)
include_examples(".seed called multiple times", 21)

before(:each) do
EvmSpecHelper.local_miq_server
Expand Down

0 comments on commit a883256

Please sign in to comment.