Skip to content

Commit 4f7b503

Browse files
committed
add ability to add/del custom props
1 parent a8f5233 commit 4f7b503

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

lib/zenoss/model/zen_property_manager.rb

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,22 @@ def delete_zen_property(propname)
6464
custom_rest(method) == "None\n"
6565
end
6666

67+
def cust_property_ids
68+
plist_to_array( rest('custPropertyIds') )
69+
end
70+
71+
def get_cust_property(id)
72+
custom_rest("getProperty?id=#{id}").chomp
73+
end
74+
75+
def set_cust_property(id, value)
76+
set_zen_property(id, value)
77+
end
78+
79+
def delete_cust_property(id)
80+
delete_zen_property(id)
81+
end
82+
6783
end # ZenPropertyManager
6884
end # Model
6985
end # Zenoss

0 commit comments

Comments
 (0)