Skip to content

Commit 5b2f011

Browse files
committed
Add network monitor stratum max levels dynamic attribute to Server
1 parent 35f62f4 commit 5b2f011

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

lib/softlayer/Server.rb

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,19 @@ class Server < SoftLayer::ModelBase
5353
# Notes about these server (for use by the customer)
5454
sl_attr :notes
5555

56+
##
57+
# The maximum network monitor query/response levels currently supported by the server
58+
#
59+
sl_dynamic_attr :network_monitor_levels do |resource|
60+
resource.should_update? do
61+
@network_monitor_levels == nil
62+
end
63+
64+
resource.to_update do
65+
self.service.getAvailableMonitoring
66+
end
67+
end
68+
5669
##
5770
# A lsst of configured network monitors.
5871
#

0 commit comments

Comments
 (0)