View
Applies To: System Center 2012 - Operations Manager, System Center 2012 R2 Operations Manager, System Center 2012 SP1 - Operations Manager
Represents an implementation of view type definition.
Schema Hierarchy
ManagementPack
Presentation
Views
View
Syntax
<View ID=”ViewID” Comment=”Comment” Accessibility=”Public/Internal” Target=”TargetClassID” TypeID=”TypeID” Visible=”True/False”>
<Category>CategoryName</Category>
</View>
Attributes and Elements
The following sections describe attributes, child elements, and the parent element of the View element.
Attributes
Attribute | Description |
---|---|
ID |
Required attribute. Represents the identity of the element. To learn how to identify your element in a management pack, see Element Identity and Namespace Conventions. |
Comment |
Optional attribute. Represents commentary by the management pack author. |
Enabled |
Required attribute. Defines whether or not this workflow is by default enabled or disabled. |
Target |
Required attribute. The ID of the targeted class type. |
TypeID |
Required attribute. Represents the ViewType definition of which the view is an implementation. |
Visible |
Optional attribute. Defines whether or not this view is visible to the user. Default value is true. The user can set the value of this attribute through the console. |
Accessibility Attribute Values
Value | Description |
---|---|
Public |
Indicates that the module type definition is visible to external management packs. |
Internal |
Indicates that the module type definition is not visible to external management packs. |
Child Elements
Element | Description |
---|---|
Required element. Represents the category name of the view. |
Parent Elements
Element | Description |
---|---|
Contains view type implementations in a management pack. |
Text Value
Some ViewType definitions define configuration parameters. The view that implements the view type must supply the parameters in XML format. See the second XML sample in this topic.
Remarks
When you define a view against a targeted ClassType element, the view will display all discovered objects of that class type in the view. The format of the user interface depends on the ViewType definition.
For your view to be displayed in the Operations console, you must define a Folder element to contain it. After defining the Folder element, you then must define a FolderItem element to associate that folder with the view.
A display string for each view should be defined in the display string section of the management pack for at least one language. For more information, see DisplayStrings.
Example
The following sample illustrates the implementation of a view type whose ID is Microsoft.SystemCenter.InventoryViewType
. To view the view type definition, see ViewType. This particular view targets all System.Computer
objects in the system and will display all of them in columnar format in a single view.
Below the view definition are the definitions for the view’s Folder element and the FolderItem element.
<View ID="System.Views.InventoryView" Accessibility="Public" Enabled="true" Target="System!System.Computer" TypeID="SC!Microsoft.SystemCenter.InventoryViewType" Visible="true">
<Category>Operations</Category>
</View>
…
<Folder ID="System.Views.ViewFolder.Root" Accessibility="Public" ParentFolder="SC!Microsoft.SystemCenter.Monitoring.ViewFolder.Root" />
…
<FolderItem ElementID="System.Views.InventoryView" Folder="System.Views.ViewFolder.Root" />
The following sample illustrates the implementation of a view type that can take some configuration parameters that serve as query criteria for alert notifications. The definition of the view type is below the view element.
<View ID="Microsoft_Exchange_Server_Alerts" Accessibility="Public" TypeID="SystemCenterLibrary!Microsoft.SystemCenter.AlertViewType" Target="WindowsLibrary!Microsoft.Windows.Computer" Comment=" ">
<Category>Operations</Category>
<Criteria>
<ResolutionState>
<StateRange Operator="NotEquals">255</StateRange>
</ResolutionState>
</Criteria>
<Target>$MPElement[Name="Microsoft.Exchange.2007.BaseComputerGroup"]$</Target>
</View>
<ViewType ID="Microsoft.SystemCenter.AlertViewType" Accessibility="Public">
<Configuration>
<IncludeSchemaTypes>
<SchemaType>Microsoft.SystemCenter.ViewCriteriaSchema</SchemaType>
<SchemaType>Microsoft.SystemCenter.ViewPresentationSchema</SchemaType>
</IncludeSchemaTypes>
<xsd:element name="Criteria" minOccurs="0">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="SeverityList" minOccurs="0">
<xsd:annotation>
<xsd:documentation>of a specific severity</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:sequence>
<xsd:element name="Severity" maxOccurs="unbounded">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="Success" />
<xsd:enumeration value="Warning" />
<xsd:enumeration value="Error" />
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="PriorityList" minOccurs="0">
<xsd:annotation>
<xsd:documentation>of a specific severity</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:sequence>
<xsd:element name="Priority" maxOccurs="unbounded">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="Low" />
<xsd:enumeration value="Medium" />
<xsd:enumeration value="High" />
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="SourceList" minOccurs="0">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="Source" maxOccurs="unbounded">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="Type">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="Rule" />
<xsd:enumeration value="Monitor" />
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="Id" type="xsd:string" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="CategoryList" minOccurs="0">
<xsd:annotation>
<xsd:documentation>of a specific category</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:sequence>
<xsd:element name="Category" maxOccurs="unbounded">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="Alert" />
<xsd:enumeration value="Discovery" />
<xsd:enumeration value="Event" />
<xsd:enumeration value="Notification" />
<xsd:enumeration value="Operations" />
<xsd:enumeration value="Performance" />
<xsd:enumeration value="Performance Health" />
<xsd:enumeration value="Software and Updates" />
<xsd:enumeration value="State" />
<xsd:enumeration value="System" />
<xsd:enumeration value="Unknown" />
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="ResolutionState" minOccurs="0">
<xsd:annotation>
<xsd:documentation>with a specific resolution state</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:choice>
<xsd:element name="State" type="xsd:unsignedByte" maxOccurs="unbounded" />
<xsd:element name="StateRange">
<xsd:complexType>
<xsd:simpleContent>
<xsd:extension base="xsd:unsignedByte">
<xsd:attribute name="Operator" use="required">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="Equals" />
<xsd:enumeration value="NotEquals" />
<xsd:enumeration value="LessThan" />
<xsd:enumeration value="AtMost" />
<xsd:enumeration value="GreaterThan" />
<xsd:enumeration value="AtLeast" />
</xsd:restriction>
</xsd:simpleType>
</xsd:attribute>
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
<xsd:element name="ResolutionStateList" minOccurs="0">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="ResolutionValue" type="xsd:unsignedInt" maxOccurs="unbounded" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="Name" type="xsd:string" minOccurs="0">
<xsd:annotation>
<xsd:documentation>with a specific name</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="Description" type="xsd:string" minOccurs="0">
<xsd:annotation>
<xsd:documentation>with specified text in the description</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="TimeCreated" type="TimeRangeCriteriaType" minOccurs="0">
<xsd:annotation>
<xsd:documentation>created in specific time period</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="AssignedTo" type="xsd:string" minOccurs="0">
<xsd:annotation>
<xsd:documentation>assigned to a specific person</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="TicketId" type="xsd:string" minOccurs="0" />
<xsd:element name="Class" type="GUIDCriteriaType" minOccurs="0">
<xsd:annotation>
<xsd:documentation>raised by any instance of a specific class</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="Instances" minOccurs="0">
<xsd:annotation>
<xsd:documentation>raised by specific instances</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:sequence>
<xsd:element name="Instance" type="GUIDCriteriaType" maxOccurs="unbounded" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="InstanceName" type="xsd:string" minOccurs="0">
<xsd:annotation>
<xsd:documentation>raised by an instance with a specific name</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="LastModifiedBy" type="xsd:string" minOccurs="0">
<xsd:annotation>
<xsd:documentation>last modified by specific user</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="LastModifiedTime" type="TimeRangeCriteriaType" minOccurs="0">
<xsd:annotation>
<xsd:documentation>modified in specific time period</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="ResolutionStateLastModifiedTime" type="TimeRangeCriteriaType" minOccurs="0">
<xsd:annotation>
<xsd:documentation>modfied in specific time period</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="TimeResolved" type="TimeRangeCriteriaType" minOccurs="0">
<xsd:annotation>
<xsd:documentation>resolved in specific time period</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="ResolvedBy" type="xsd:string" minOccurs="0">
<xsd:annotation>
<xsd:documentation>resolved by specific user</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="TimeAdded" type="TimeRangeCriteriaType" minOccurs="0">
<xsd:annotation>
<xsd:documentation>added to the database in specific time period</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="RuleId" type="GUIDCriteriaType" minOccurs="0">
<xsd:annotation>
<xsd:documentation>generated by a specific rule</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="ID" type="GUIDCriteriaType" minOccurs="0">
<xsd:annotation>
<xsd:documentation>with a specific ID</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="Site" type="xsd:string" minOccurs="0" />
<xsd:element name="CustomField1" type="xsd:string" minOccurs="0">
<xsd:annotation>
<xsd:documentation>with specific text in custom field1</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="CustomField2" type="xsd:string" minOccurs="0">
<xsd:annotation>
<xsd:documentation>with specific text in custom field2</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="CustomField3" type="xsd:string" minOccurs="0">
<xsd:annotation>
<xsd:documentation>with specific text in custom field3</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="CustomField4" type="xsd:string" minOccurs="0">
<xsd:annotation>
<xsd:documentation>with specific text in custom field4</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="CustomField5" type="xsd:string" minOccurs="0">
<xsd:annotation>
<xsd:documentation>with specific text in custom field5</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="CustomField6" type="xsd:string" minOccurs="0">
<xsd:annotation>
<xsd:documentation>with specific text in custom field6</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="CustomField7" type="xsd:string" minOccurs="0">
<xsd:annotation>
<xsd:documentation>with specific text in custom field7</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="CustomField8" type="xsd:string" minOccurs="0">
<xsd:annotation>
<xsd:documentation>with specific text in custom field8</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="CustomField9" type="xsd:string" minOccurs="0">
<xsd:annotation>
<xsd:documentation>with specific text in custom field9</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="CustomField10" type="xsd:string" minOccurs="0">
<xsd:annotation>
<xsd:documentation>with specific text in custom field10</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="Presentation" minOccurs="0">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="ColumnInfo" type="ColumnInfoType" minOccurs="0" maxOccurs="unbounded" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="Target" type="xsd:string" minOccurs="0" maxOccurs="1" />
</Configuration>
<ViewImplementation>
<Assembly>Microsoft.Mom.UI.Components, Culture="", PublicKeyToken="9396306c2be7fcc4", Version="6.0.4900.0"</Assembly>
<Type>Microsoft.EnterpriseManagement.Mom.UI.AlertView</Type>
</ViewImplementation>
</ViewType>