How to Create a Linked Availability Report
Applies To: System Center Operations Manager 2007
The following procedure shows how to create a linked Availability report in the Operations Manager 2007 Authoring console. Before you perform this procedure, you must first complete the prerequisite procedure How to Create a Class and create the target class.
The report that is created in this procedure has the following characteristics:
Includes data between the current date and seven days before the current date. The date controls are not presented to the user.
Sets aggregation to hourly. The aggregation combo box is not presented to the user.
Limits the target objects that may be selected to instances of My Computer Role 1.
In the Authoring console, select Reporting, and then select Linked Reports.
Right-click in the right-side pane, select New, and then select New Linked Report.
In the Choose a unique identifier box, type MyMP.MyAvailabilityReport and then click OK.
On the General tab, do the following:
In the Name box, type My Availability Report.
Click the button to the right side of the Base box.
Select Microsoft.SystemCenter.DataWarehouse.Report.Availability and then click OK.
In the Target box, select MyMP.MyComputerRole1.
On the Parameters tab, click Edit in external editor. This starts the external editor.
Copy and paste the following XML code into the external editor. This is the parameter block for the Availability generic report.
<ParameterBlock columns="4" xmlns="https://schemas.microsoft.com/mom/reporting/2007/ReportParameterSettings"> <Controls> <Control type="Microsoft.SystemCenter.DataWarehouse.Report.ParameterControl.ComboBox"> <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.MonitoringObjectXmlPicker" columnSpan="2" rowSpan="2"> <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.CheckedListBox" rowSpan="2"> <ReportParameters> <ReportParameter name="DownTime"> <Prompt>Microsoft.SystemCenter.DataWarehouse.Report.Library!Microsoft.SystemCenter.DataWarehouse.Report.ParameterPrompt.AvailabilityDownTime</Prompt> </ReportParameter> </ReportParameters> </Control> <Control type="Microsoft.SystemCenter.DataWarehouse.Report.ParameterControl.BusinessRelativeDateTimePicker"> <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>
Completely remove the element for the Microsoft.SystemCenter.DataWarehouse.Report.ParameterControl.BusinessRelativeDateTimePicker control.
Completely remove the element for the Microsoft.SystemCenter.DataWarehouse.Report.ParameterControl.ComboBox control.
Add the following XML code to the Microsoft.SystemCenter.DataWarehouse.Report.ParameterControl.MonitoringObjectXmlPicker element after the
</ReportParameters>
line.<Properties> <Property name="ContextObjectBinding"> <Value>Containment</Value> </Property> <Property name="TypeFilter"> <Value>MyMP.MyComputerRole1</Value> </Property> </Properties>
Verify that the final XML code resembles the following:
<ParameterBlock columns="4" xmlns="https://schemas.microsoft.com/mom/reporting/2007/ReportParameterSettings"> <Controls> <Control type="Microsoft.SystemCenter.DataWarehouse.Report.ParameterControl.MonitoringObjectXmlPicker" columnSpan="2" rowSpan="2"> <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="ContextObjectBinding"> <Value>Containment</Value> </Property> <Property name="TypeFilter"> <Value>MyMP.MyComputerRole1</Value> </Property> </Properties> </Control> <Control type="Microsoft.SystemCenter.DataWarehouse.Report.ParameterControl.CheckedListBox" rowSpan="2"> <ReportParameters> <ReportParameter name="DownTime"> <Prompt>Microsoft.SystemCenter.DataWarehouse.Report.Library!Microsoft.SystemCenter.DataWarehouse.Report.ParameterPrompt.AvailabilityDownTime</Prompt> </ReportParameter> </ReportParameters> </Control> </Controls> </ParameterBlock>
Close the external editor and save the XML code back to the Authoring console.
Use steps 2-7 to create each parameter for the table that follows:
Parameter Name Parameter Value StartDate_BaseType
Today
StartDate_BaseValue
01/01/2010 12:00:00 AM
StartDate_OffsetType
Day
StartDate_OffsetValue
-7
EndDate_BaseType
Today
EndDate_BaseValue
01/01/2010 12:00:00 AM
EndDate_OffsetType
None
EndDate_OffsetValue
0
TimeType
Regular
TimeWeekMap
Monday
Tuesday
Wednesday
Thursday
Friday
DataAggregation
0
In the Parameters section of the Parameters tab, click Create, and then click Edit.
In the Name box, type the Parameter Name.
Click Create, and then click Edit.
Clear the existing text and type the Parameter Value, and then click OK.
If the parameter has multiple values, repeat the previous two steps for each value.
Click OK.
On the Options tab, change the Visible option to True.
Click OK.
Select File, and then click Save.
Availability Reports
Common Parameters
Common Report Controls