![]() |
![]() |
Subject: | zenpacklib: Relationship UI questions |
Author: | Jay Stanley |
Posted: | 2015-08-05 09:13 |
zenpacklib builds out grid columns based on parent relationship and child relationships.
I am wondering:
How can I disable certain columns
On some components, it shows a link to the parent, but the parent of it's parent is empty. How can I fix this
In the 'Display:' drop down, it shows related components. What property can I use to control the label used It seems to use short_label. Can it be something other than the short label
I am thinking a lot of this would have to do with the class property 'relationships'. Does anyone have some simple examples of this
Subject: | An example on how to disable |
Author: | Jay Stanley |
Posted: | 2015-08-06 07:32 |
An example on how to disable certain columns and build custom named relationships:
name: ZenPacks.Secure24.NewNetworkMonitor
class_relationships:
- newNetworkDevice(FooComponent) 1:MC newNetworkComponent(FooDevice)
classes:
DEFAULTS:
base: [zenpacklib.Component]
icon: new_icon.png
newNetworkDevice:
base: [zenpacklib.Device]
relationships:
FooComponent:
grid_display: false
newNetworkComponent:
relationships:
FooDevice:
grid_display: false
the relationships under the device or component specify the relationship on the other end, naming it what you want, instead of the default. A more in depth example would be in the OpenStackInfrastructure ZenPack
< |
Previous Host server Hardware monitoring for esxi server |
Next Zenoss pythonThresholdException error |
> |