Diagram Views
Applies To: System Center Operations Manager 2007
Note
This topic has been updated in the latest version of the System Center Management Pack Authoring Guide on the TechNet Wiki.
Diagram views provide a visual representation of the state of a particular object and any objects that the object hosts or contains.
Target
All diagram views require a target. Although other views can use any class as a target, the contents of a diagram view are determined by a specific object or singleton class. If an object is used, the GUID of the object is required in the management pack. Since this GUID is not known until the object is discovered, a singleton class such as a distributed application or a group is typically used.
If a diagram view is created in the Operations console, that view will have the GUID of a target object in the view configuration in addition to the target class. If the target class is singleton, this GUID may be removed without affecting the functionality of the view. The GUID should be removed so that the management pack can be transferred between management groups.
Diagram views do not have criteria or a group in addition to the target. The view will include all objects that are contained or hosted by the target object.
Formatting
The formatting of a diagram view is determined by XML code in the management pack that is completely configurable in the
Element | Description | Example |
---|---|---|
Nodes Per Row |
Specifies how many nodes are displayed on a single row if box containment style is used. |
|
Levels to Show |
The number of levels to expand when the view is first opened. If no value is provided, the default value of 2 is used. |
|
Line Style |
The style of the line. If no value is provided, the default value of Solid is used. If another style is required, one of the following values can be used:
|
|
Line Color |
Color of the line. |
|
Line Width |
The width of the line. If no value is provided, the default value of 1 is used. |
|
Arrow Style |
Specifies whether the end of a line uses an arrow.
|
|
Virtually Group |
Specified by ShowVirtualGroup attribute of DiagramViewDisplay node. If the attribute is false, virtual grouping is not used. If it is true or not specified, virtual grouping is used. |
|
Maximum Number of Children |
Maximum number of children of a virtual node. |
|
VirtualGroupThreshold |
Virtual grouping will be applied if a node has more children than the specified value. |
|
Minimum Bucket Size |
Minimum number of child nodes of a virtual node. |
|
The XML code for the Presentation element of a sample diagram view is shown here:
<Presentation>
<DiagramViewCriteria>
<DiagramViewDisplay>
<NodesPerRow>3</NodesPerRow>
<LevelsToShow>4</LevelsToShow>
<ContainmentLine>
<Color />
<SourceArrow IsFilled="false">
<ArrowStyle>NoAnchor</ArrowStyle>
</SourceArrow>
<TargetArrow IsFilled="false">
<ArrowStyle>ArrowAnchor</ArrowStyle>
</TargetArrow>
</ContainmentLine>
<NonContainmentLine>
<Color Red="6" Green="134" Blue="253" />
<SourceArrow IsFilled="false">
<ArrowStyle>NoAnchor</ArrowStyle>
</SourceArrow>
<TargetArrow IsFilled="false">
<ArrowStyle>ArrowAnchor</ArrowStyle>
</TargetArrow>
<LineStyle>DashDotDot</LineStyle>
</NonContainmentLine>
<MinBucketSize>3</MinBucketSize>
<VirtualGroupThreshold>3</VirtualGroupThreshold>
</DiagramViewDisplay>
</DiagramViewCriteria>
</Presentation>