-
Notifications
You must be signed in to change notification settings - Fork 62
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 #35 from pkliczewski/graph_refresh
Graph refresh - target vm
- Loading branch information
Showing
13 changed files
with
1,447 additions
and
148 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
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
32 changes: 20 additions & 12 deletions
32
app/models/manageiq/providers/redhat/inventory/collector/infra_manager.rb
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 |
---|---|---|
@@ -1,33 +1,41 @@ | ||
class ManageIQ::Providers::Redhat::Inventory::Collector::InfraManager < ManageIQ::Providers::Redhat::Inventory::Collector | ||
def clusters | ||
# TODO | ||
end | ||
|
||
def vmpools | ||
# TODO | ||
def ems_clusters | ||
collect_ems_clusters | ||
end | ||
|
||
def networks | ||
# TODO | ||
collect_networks | ||
end | ||
|
||
def storagedomains | ||
# TODO | ||
collect_storagedomains | ||
end | ||
|
||
def datacenters | ||
# TODO | ||
collect_datacenters | ||
end | ||
|
||
def hosts | ||
# TODO | ||
manager.with_provider_connection(VERSION_HASH) do |connection| | ||
connection.system_service.hosts_service.list | ||
end | ||
end | ||
|
||
def host_stats(host) | ||
manager.with_provider_connection(VERSION_HASH) do |connection| | ||
connection.link?(host.statistics) ? connection.follow_link(host.statistics) : host.statistics | ||
end | ||
end | ||
|
||
def vms | ||
# TODO | ||
manager.with_provider_connection(VERSION_HASH) do |connection| | ||
connection.system_service.vms_service.list | ||
end | ||
end | ||
|
||
def templates | ||
# TODO | ||
manager.with_provider_connection(VERSION_HASH) do |connection| | ||
connection.system_service.templates_service.list | ||
end | ||
end | ||
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
Oops, something went wrong.