Skip to content

Commit

Permalink
Merge pull request #73 from jlongever/redfish/add_power_thermal_pollers
Browse files Browse the repository at this point in the history
Add Redfish Chassis poller graph
  • Loading branch information
jlongever committed Mar 11, 2016
2 parents 1b8c08b + ab8a941 commit 4c84665
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 3 deletions.
35 changes: 35 additions & 0 deletions lib/graphs/create-redfish-poller-graph.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
// Copyright 2016, EMC, Inc.

'use strict';

module.exports = {
friendlyName: 'Create Redfish Pollers',
injectableName: 'Graph.Redfish.Poller.Create',
options: {
defaults: {
nodeId: null,
pollers: [
{
"type": "redfish",
"pollInterval": 10000,
"config": {
"command": "thermal"
}
},
{
"type": "redfish",
"pollInterval": 10000,
"config": {
"command": "power"
}
}
]
}
},
tasks: [
{
label: 'create-redfish-pollers',
taskName: 'Task.Pollers.CreateDefault'
}
]
};
2 changes: 1 addition & 1 deletion lib/graphs/discovery-sku-graph.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ module.exports = {
graphOptions: {}
},
properties: {}
},
}
},
{
label: 'generate-sku',
Expand Down
17 changes: 16 additions & 1 deletion lib/graphs/poller-service-graph.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@ module.exports = {
schedulerOverrides: {
timeout: -1
}
},
'redfish': {
schedulerOverrides: {
timeout: -1
}
}
},
tasks: [
Expand Down Expand Up @@ -128,6 +133,16 @@ module.exports = {
options: {},
properties: {}
}
}
},
{
label: 'redfish',
taskDefinition: {
friendlyName: 'Redfish requester',
injectableName: 'Task.Inline.Redfish',
implementsTask: 'Task.Base.Redfish',
options: {},
properties: {}
}
},
]
};
1 change: 0 additions & 1 deletion lib/graphs/redfish-discovery-graph.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ module.exports = {
injectableName: 'Graph.Redfish.Discovery',
options: {
defaults: {
nodeId: null,
uri: null
}
},
Expand Down

0 comments on commit 4c84665

Please sign in to comment.