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

How to Create a Linked Performance Report

更新日期: 2010年7月

適用於: System Center Operations Manager 2007

The following procedure shows how to create an Availability linked report in the Operations Manager 2007 Authoring console. Before you perform this procedure, you must complete the following prerequisite procedures:

The report that is created in this procedure has the following characteristics:

  • Sets aggregation of the data to Hourly. The data aggregation combo box is not presented to the user.

  • Sets aggregation of the x-axis to Daily by hours. The histogram combo box is not presented to the user.

  • Limits the target objects that may be selected to instances of My Computer Role 1.

  • Creates a single chart with the following series:

     

    Rule Color Type Scale

    Collect Script Performance

    Light Blue

    Line

    1

    Collect WMI Performance

    Light Red

    Line

    .001

  1. In the Authoring console, select Reporting, and then select Linked Reports.

  2. Right-click in the right-side pane, select New, and then select New Linked Report.

  3. In the Choose a unique identifier box, type MyMP.Report.MyPerformanceReport and then click OK.

  4. On the General tab, do the following:

    1. In the Name box, type My Performance Report.

    2. Click the button to the right side of the Base box.

    3. Select Microsoft.SystemCenter.DataWarehouse.Report.Performance and then click OK.

    4. In the Target box, select MyMP.MyComputerRole1.

  1. On the Parameters tab, click Edit in external editor. This starts the external editor.

  2. Copy and paste the following XML code into the external editor. This is the parameter block for the Performance generic report.

    <ParameterBlock columns="6" xmlns="http://schemas.microsoft.com/mom/reporting/2007/ReportParameterSettings">
       <Controls>
          <Control type="Microsoft.SystemCenter.DataWarehouse.Report.ParameterControl.ComboBox" columnSpan="2">
             <ReportParameters>
                <ReportParameter name="DataAggregation">
                   <Prompt>Microsoft.SystemCenter.DataWarehouse.Report.Library!Microsoft.SystemCenter.DataWarehouse.Report.ParameterPrompt.DataAggregation</Prompt>
                </ReportParameter>
             </ReportParameters>
          </Control>
          <Control type="Microsoft.SystemCenter.DataWarehouse.Report.ParameterControl.PerformanceChartObjectPicker" columnSpan="4" rowSpan="3">
             <ReportParameters>
                <ReportParameter name="ObjectList">
                   <Prompt>Microsoft.SystemCenter.DataWarehouse.Report.Library!Microsoft.SystemCenter.DataWarehouse.Report.ParameterPrompt.ObjectList</Prompt>
                </ReportParameter>
                <ReportParameter name="ManagementGroupId" binding="GroupList" />
             </ReportParameters>
          </Control>
          <Control type="Microsoft.SystemCenter.DataWarehouse.Report.ParameterControl.BusinessRelativeDateTimePicker" columnSpan="2">
             <ReportParameters>
                <ReportParameter name="TimeZone" binding="TimeZone">
                      <Prompt>Microsoft.SystemCenter.DataWarehouse.Report.Library!Microsoft.SystemCenter.DataWarehouse.Report.ParameterPrompt.TimeZone</Prompt>
                </ReportParameter>
                <ReportParameter name="TimeZoneName" binding="TimeZoneName" />
                <ReportParameter name="StartDate_BaseType" binding="StartDate_BaseType" />
                <ReportParameter name="StartDate_BaseValue" binding="StartDate_BaseValue">
                   <Prompt>Microsoft.SystemCenter.DataWarehouse.Report.Library!Microsoft.SystemCenter.DataWarehouse.Report.ParameterPrompt.StartDateTime</Prompt>
                </ReportParameter>
                <ReportParameter name="StartDate_OffsetType" binding="StartDate_OffsetType" />
                <ReportParameter name="StartDate_OffsetValue" binding="StartDate_OffsetValue" />
                <ReportParameter name="EndDate_BaseType" binding="EndDate_BaseType" />
                <ReportParameter name="EndDate_BaseValue" binding="EndDate_BaseValue">
                   <Prompt>Microsoft.SystemCenter.DataWarehouse.Report.Library!Microsoft.SystemCenter.DataWarehouse.Report.ParameterPrompt.EndDateTime</Prompt>
                </ReportParameter>
                <ReportParameter name="EndDate_OffsetType" binding="EndDate_OffsetType" />
                <ReportParameter name="EndDate_OffsetValue" binding="EndDate_OffsetValue" />
                <ReportParameter name="TimeType" binding="TimeType" />
                <ReportParameter name="TimeWeekMap" binding="TimeWeekMap" />
             </ReportParameters>
          </Control>
          <Control type="Microsoft.SystemCenter.DataWarehouse.Report.ParameterControl.ComboBox">
             <ReportParameters>
                <ReportParameter name="AggregationType">
                   <Prompt>Microsoft.SystemCenter.DataWarehouse.Report.Library!Microsoft.SystemCenter.DataWarehouse.Report.ParameterPrompt.Histogram</Prompt>
                </ReportParameter>
             </ReportParameters>
          </Control>
          <Control type="Microsoft.SystemCenter.DataWarehouse.Report.ParameterControl.BooleanPicker">
             <ReportParameters>
                <ReportParameter name="Enable3D">
                   <Prompt>Microsoft.SystemCenter.DataWarehouse.Report.Library!Microsoft.SystemCenter.DataWarehouse.Report.ParameterPrompt.Chart3D</Prompt>
                </ReportParameter>
             </ReportParameters>
          </Control>
       </Controls>
    </ParameterBlock>
    
  3. Completely remove the element for both of the Microsoft.SystemCenter.DataWarehouse.Report.ParameterControl.ComboBox controls.

  4. Completely remove the element for the Microsoft.SystemCenter.DataWarehouse.Report.ParameterControl.BooleanPicker control.

  5. Completely remove the element for the Microsoft.SystemCenter.DataWarehouse.Report.ParameterControl.PerformanceChartObjectPicker control and replace it with the following XML code which is for a Linked Performance Object Picker control configured for the desired performance charts:

    <Control type="Microsoft.SystemCenter.DataWarehouse.Report.ParameterControl.LinkedPerformanceChartObjectPicker" columnSpan="4" rowSpan="3">
       <ReportParameters>
          <ReportParameter name="ObjectList">
             <Prompt>Microsoft.SystemCenter.DataWarehouse.Report.Library!Microsoft.SystemCenter.DataWarehouse.Report.ParameterPrompt.ObjectList</Prompt>
          </ReportParameter>
          <ReportParameter name="ManagementGroupId" binding="GroupList" />
       </ReportParameters>
       <Properties>
          <Property name="ValueTemplate">
             <Value><![CDATA[
                <Data>
                   <Chart ObjectJoin="ChartPerObject">
                      <Series>
                         <Rule>$MPElement[Name='MyMP.Rule.CollectScriptPerformance']$</Rule>
                         <Color>255,31,31</Color>
                         <Type>Line</Type>
                         <Scale>1</Scale>
                      </Series>
                      <Series>
                         <Rule>$MPElement[Name='MyMP.Rule.CollectWMIPerformance']$</Rule>
                         <Color>63,63,255</Color>
                         <Type>Line</Type>
                         <Scale>.001</Scale>
                      </Series>
                   </Chart>
                </Data>
             ]]></Value>
          </Property>
          <Property name="ContextObjectBinding">
             <Value>Containment</Value>
          </Property>
          <Property name="TypeFilter">
             <Value>MyApp.MyComputerRole1</Value>
          </Property>
       </Properties>
    </Control>
    
  6. Verify that the final XML code resembles the following:

    <ParameterBlock columns="6" xmlns="http://schemas.microsoft.com/mom/reporting/2007/ReportParameterSettings">
       <Controls>
          <Control type="Microsoft.SystemCenter.DataWarehouse.Report.ParameterControl.LinkedPerformanceChartObjectPicker" columnSpan="4" rowSpan="3">
             <ReportParameters>
                <ReportParameter name="ObjectList">
                   <Prompt>Microsoft.SystemCenter.DataWarehouse.Report.Library!Microsoft.SystemCenter.DataWarehouse.Report.ParameterPrompt.ObjectList</Prompt>
                </ReportParameter>
                <ReportParameter name="ManagementGroupId" binding="GroupList" />
             </ReportParameters>
             <Properties>
                <Property name="ValueTemplate">
                   <Value><![CDATA[
                      <Data>
                         <Chart ObjectJoin="ChartPerObject">
                            <Series>
                               <Rule>$MPElement[Name='MyMP.Rule.CollectScriptPerformance']$</Rule>
                               <Color>255,31,31</Color>
                               <Type>Line</Type>
                               <Scale>1</Scale>
                            </Series>
                            <Series>
                               <Rule>$MPElement[Name='MyMP.Rule.CollectWMIPerformance']$</Rule>
                               <Color>63,63,255</Color>
                               <Type>Line</Type>
                               <Scale>.001</Scale>
                            </Series>
                         </Chart>
                      </Data>
                   ]]></Value>
                </Property>
                <Property name="ContextObjectBinding">
                   <Value>Containment</Value>
                </Property>
                <Property name="TypeFilter">
                   <Value>MyApp.MyComputerRole1</Value>
                </Property>
             </Properties>
          </Control>
          <Control type="Microsoft.SystemCenter.DataWarehouse.Report.ParameterControl.BusinessRelativeDateTimePicker" columnSpan="2">
             <ReportParameters>
                <ReportParameter name="TimeZone" binding="TimeZone">
                      <Prompt>Microsoft.SystemCenter.DataWarehouse.Report.Library!Microsoft.SystemCenter.DataWarehouse.Report.ParameterPrompt.TimeZone</Prompt>
                </ReportParameter>
                <ReportParameter name="TimeZoneName" binding="TimeZoneName" />
                <ReportParameter name="StartDate_BaseType" binding="StartDate_BaseType" />
                <ReportParameter name="StartDate_BaseValue" binding="StartDate_BaseValue">
                   <Prompt>Microsoft.SystemCenter.DataWarehouse.Report.Library!Microsoft.SystemCenter.DataWarehouse.Report.ParameterPrompt.StartDateTime</Prompt>
                </ReportParameter>
                <ReportParameter name="StartDate_OffsetType" binding="StartDate_OffsetType" />
                <ReportParameter name="StartDate_OffsetValue" binding="StartDate_OffsetValue" />
                <ReportParameter name="EndDate_BaseType" binding="EndDate_BaseType" />
                <ReportParameter name="EndDate_BaseValue" binding="EndDate_BaseValue">
                   <Prompt>Microsoft.SystemCenter.DataWarehouse.Report.Library!Microsoft.SystemCenter.DataWarehouse.Report.ParameterPrompt.EndDateTime</Prompt>
                </ReportParameter>
                <ReportParameter name="EndDate_OffsetType" binding="EndDate_OffsetType" />
                <ReportParameter name="EndDate_OffsetValue" binding="EndDate_OffsetValue" />
                <ReportParameter name="TimeType" binding="TimeType" />
                <ReportParameter name="TimeWeekMap" binding="TimeWeekMap" />
             </ReportParameters>
          </Control>
       </Controls>
    </ParameterBlock>
    
  7. Close the external editor and save the XML code back to the Authoring console.

  1. Use steps 2-7 to create each parameter for the table that follows:

     

    Parameter Name Parameter Value

    DataAggregation

    0

    AggregationType

    1

    Enable3D

    False

  2. In the Parameters section of the Parameters tab, click Create, and then click Edit.

  3. In the Name box, type the Parameter Name.

  4. Click Create, and then click Edit.

  5. Clear the existing text and type the Parameter Value, and then click OK.

  6. If the parameter has multiple values, repeat the previous two steps for each value.

  7. Click OK.

  1. On the Options tab, change the Visible option to True.

  2. Click OK.

  3. Select File, and then click Save.

顯示: