Microsoft.SystemCenter.PowerManagement.PowerSet.TemplatePower Consumption

Microsoft.SystemCenter.PowerManagement.PowerSet.Template (Template)

This template lets you define a collection of devices (a power set) that consists of one or more power distribution units (PDUs) and all the devices whose power is supplied by these PDUs. Operations Manager can generate reports and graphs on the power consumption of the devices in the power set.

Source Code:

<Template ID="Microsoft.SystemCenter.PowerManagement.PowerSet.Template">
<Configuration>
<IncludeSchemaTypes>
<SchemaType>SC!Microsoft.SystemCenter.GroupPopulationSchema</SchemaType>
</IncludeSchemaTypes>
<xsd:element name="TypeId" type="xsd:string"/>
<xsd:element name="Name" type="xsd:string"/>
<xsd:element name="Description" type="xsd:string"/>
<xsd:element name="LocaleId" type="xsd:string"/>
<xsd:element name="PowerSetCapacity" type="xsd:integer"/>
<xsd:element name="PowerSetBudget" type="xsd:integer"/>
<xsd:element name="PowerSetBudgetPercent" type="xsd:integer"/>
<xsd:element name="UnmonitoredPowerConsumption" type="xsd:integer"/>
<xsd:element name="MemberDeviceGroupInstanceId" type="MonitoringObjectIdListType"/>
</Configuration>
<References>
<Reference ID="System"/>
<Reference ID="Performance"/>
<Reference ID="SC"/>
<Reference ID="SCDW"/>
<Reference ID="Self"/>
</References>
<Implementation>
<TypeDefinitions>
<EntityTypes>
<ClassTypes>
<ClassType ID="$TemplateConfig/TypeId$" Base="$Reference/Self$Microsoft.SystemCenter.PowerManagement.PowerSet" Abstract="false" Accessibility="Public" Hosted="false" Singleton="true"/>
</ClassTypes>
</EntityTypes>
</TypeDefinitions>
<Monitoring>
<Discoveries>
<Discovery ID="$TemplateConfig/TypeId$.PowerSetProperty.Discovery" Enabled="onEssentialMonitoring" Target="$TemplateConfig/TypeId$">
<Category>Discovery</Category>
<DiscoveryTypes>
<DiscoveryClass TypeID="$TemplateConfig/TypeId$">
<Property TypeID="$Reference/Self$Microsoft.SystemCenter.PowerManagement.PowerSet" PropertyID="PowerCapacity"/>
<Property TypeID="$Reference/Self$Microsoft.SystemCenter.PowerManagement.PowerSet" PropertyID="PowerBudget"/>
<Property TypeID="$Reference/Self$Microsoft.SystemCenter.PowerManagement.PowerSet" PropertyID="UnmonitoredPowerConsumption"/>
</DiscoveryClass>
</DiscoveryTypes>
<DataSource ID="PropertyDiscoveryDS" TypeID="$Reference/Self$Microsoft.SystemCenter.PowerManagement.PowerSetProperty.DiscoveryModuleType">
<IntervalSeconds>300</IntervalSeconds>
<ClassId>$MPElement[Name="$TemplateConfig/TypeId$"]$</ClassId>
<PowerSetCapacity>$TemplateConfig/PowerSetCapacity$</PowerSetCapacity>
<PowerSetBudget>$TemplateConfig/PowerSetBudget$</PowerSetBudget>
<UnmonitoredPowerConsumption>$TemplateConfig/UnmonitoredPowerConsumption$</UnmonitoredPowerConsumption>
<PowerSetBudgetPercent>$TemplateConfig/PowerSetBudgetPercent$</PowerSetBudgetPercent>
</DataSource>
</Discovery>
<Discovery ID="$TemplateConfig/TypeId$.PowerSetMemberDeviceGroup.Discovery" Enabled="onEssentialMonitoring" Target="$TemplateConfig/TypeId$">
<Category>Discovery</Category>
<DiscoveryTypes>
<DiscoveryRelationship TypeID="$Reference/Self$Microsoft.SystemCenter.PowerManagement.PowerSetContainsGroup"/>
</DiscoveryTypes>
<DataSource ID="GroupPopulationDS" TypeID="$Reference/SC$Microsoft.SystemCenter.GroupPopulator">
<RuleId>$MPElement$</RuleId>
<GroupInstanceId>$Target/Id$</GroupInstanceId>
<MembershipRules>
<MembershipRule>
<MonitoringClass>$MPElement[Name="$Reference/System$System.Group"]$</MonitoringClass>
<RelationshipClass>$MPElement[Name="$Reference/Self$Microsoft.SystemCenter.PowerManagement.PowerSetContainsGroup"]$</RelationshipClass>
<IncludeList>$TemplateConfig/MemberDeviceGroupInstanceId$</IncludeList>
</MembershipRule>
</MembershipRules>
</DataSource>
</Discovery>
</Discoveries>
</Monitoring>
<LanguagePacks>
<LanguagePack ID="$TemplateConfig/LocaleId$">
<DisplayStrings>
<!-- Template Entity Types -->
<DisplayString ElementID="$TemplateConfig/TypeId$">
<Name>$TemplateConfig/Name$</Name>
<Description>$TemplateConfig/Description$</Description>
</DisplayString>
<!-- Template Monitoring -->
<DisplayString ElementID="$TemplateConfig/TypeId$.PowerSetProperty.Discovery">
<Name>$TemplateConfig/Name$ Power Set Property Discovery</Name>
<Description>It discovers the properties of the power set $TemplateConfig/Name$.</Description>
</DisplayString>
<DisplayString ElementID="$TemplateConfig/TypeId$.PowerSetMemberDeviceGroup.Discovery">
<Name>$TemplateConfig/Name$ Power Managed Device Group Discovery</Name>
<Description>It discovers the group of power managed devices for the power set $TemplateConfig/Name$.</Description>
</DisplayString>
</DisplayStrings>
<KnowledgeArticles>
<KnowledgeArticle ElementID="$TemplateConfig/TypeId$.PowerSetProperty.Discovery">
<MamlContent>
<maml:section>
<maml:title>Summary</maml:title>
<maml:para>This discovery rule sets the properties of the power set as per the setting specified in the power settings wizard.</maml:para>
</maml:section>
</MamlContent>
</KnowledgeArticle>
<KnowledgeArticle ElementID="$TemplateConfig/TypeId$.PowerSetMemberDeviceGroup.Discovery">
<MamlContent>
<maml:section>
<maml:title>Summary</maml:title>
<maml:para>This discovery rule inserts a containment relationship to link the power set to the devices group specified in the power settings wizard.</maml:para>
</maml:section>
</MamlContent>
</KnowledgeArticle>
</KnowledgeArticles>
</LanguagePack>
</LanguagePacks>
</Implementation>
</Template>