forked from ManageIQ/manageiq
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request ManageIQ#11904 from zeari/vim_performance_container
Add option for container performance reports
- Loading branch information
Showing
6 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
class ContainerGroupPerformance < MetricRollup | ||
default_scope { where "resource_type = 'ContainerGroup' and resource_id IS NOT NULL" } | ||
|
||
belongs_to :container_group, :foreign_key => :resource_id, :class_name => ContainerGroup.name | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
class ContainerNodePerformance < MetricRollup | ||
default_scope { where "resource_type = 'ContainerNode' and resource_id IS NOT NULL" } | ||
|
||
belongs_to :container_node, :foreign_key => :resource_id, :class_name => ContainerNode.name | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
class ContainerPerformance < MetricRollup | ||
default_scope { where "resource_type = 'Container' and resource_id IS NOT NULL" } | ||
|
||
belongs_to :container_node, :foreign_key => :resource_id, :class_name => Container.name | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
class ContainerProjectPerformance < MetricRollup | ||
default_scope { where "resource_type = 'ContainerProject' and resource_id IS NOT NULL" } | ||
|
||
belongs_to :container_node, :foreign_key => :resource_id, :class_name => ContainerProject.name | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters