本文件已封存並已停止維護。

Diagram Views

更新日期: 2010年7月

適用於: System Center Operations Manager 2007

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.

<NodesPerRow>3</NodesPerRow>

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.

<LevelsToShow>8</LevelsToShow>

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:

  1. Solid

  2. Dot

  3. Dash

  4. DashDot

  5. DashDotDot

<LineStyle>DashDotDot</LineStyle>

Line Color

Color of the line.

<Color Red="6" Green="134" Blue="253" />

Line Width

The width of the line. If no value is provided, the default value of 1 is used.

<LineWidth>2</LineWidth>

Arrow Style

Specifies whether the end of a line uses an arrow.

  • NoAnchor

  • ArrowAnchor

<ArrowStyle>NoAnchor</ArrowStyle>  

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.

<DiagramViewDisplay ShowVirtualGroup="false">

Maximum Number of Children

Maximum number of children of a virtual node.

<MaxNumChild>7</MaxNumChild>

VirtualGroupThreshold

Virtual grouping will be applied if a node has more children than the specified value.

<VirtualGroupThreshold>3</VirtualGroupThreshold>

Minimum Bucket Size

Minimum number of child nodes of a virtual node.

<MinBucketSize>2</MinBucketSize>

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>
顯示: