Regra de Aparência das Entidades de Aplicativos do Monitoramento de Clientes
Microsoft.SystemCenter.CM.AEM.Internal.DeleteApps (Discovery)
Essa regra permite definir a aparência de aplicativos.
Element properties:
Object Discovery Details:
Member Modules:
Source Code:
<Discovery ID="Microsoft.SystemCenter.CM.AEM.Internal.DeleteApps" Target="AEMLib!Microsoft.SystemCenter.CM.AEM.CrashListener" Enabled="true" ConfirmDelivery="true">
<Category>Discovery</Category>
<DiscoveryTypes>
<DiscoveryClass TypeID="AEMLib!Microsoft.SystemCenter.CM.AEM.Application"/>
</DiscoveryTypes>
<DataSource ID="AemMEDataForDeletionDS1" TypeID="Microsoft.SystemCenter.CM.AEM.Internal.AemMEDataForDeletionDS">
<Days>14</Days>
<Query1>DECLARE @ViewName NVARCHAR(1000), @Query NVARCHAR(1000);SELECT @ViewName = ManagedTypeViewName FROM ManagedType WHERE TypeName = 'Microsoft.SystemCenter.CM.AEM.Application';SET @Query = N'SELECT app.ApplicationName, app.ApplicationVersion FROM ' + @ViewName + ' app JOIN AemCrashCounters acc ON app.BaseManagedEntityId = acc.SourceEntityId WHERE datediff(dd, acc.LastModified, getutcdate()) >=</Query1>
<Query2>AND acc.EntityTypeId = 0';EXEC sp_executesql @Query</Query2>
<ManagedEntity>
<Detailed>
<TimeGenerated UseCurrent="true"/>
<DiscoveryType>Remove</DiscoveryType>
<DiscoverySourceType>Rule</DiscoverySourceType>
<SourceObjectId>$MPElement$</SourceObjectId>
<SourceManagedEntityId>$Target/Id$</SourceManagedEntityId>
<Properties>
<Evaluate If="//Columns/Column[1]">
<Property ID="KeyValuesParamSet">//Columns/Column</Property>
</Evaluate>
</Properties>
<PropertySets/>
<ClassInstances>
<ClassInstance If="//Columns/Column[1]">
<TypeId>$MPElement[Name="AEMLib!Microsoft.SystemCenter.CM.AEM.Application"]$</TypeId>
<Properties>
<Property>
<Name>$MPElement[Name="AEMLib!Microsoft.SystemCenter.CM.AEM.Application"]/ApplicationName$</Name>
<Value>KeyValuesParamSet[0]</Value>
</Property>
<Property>
<Name>$MPElement[Name="AEMLib!Microsoft.SystemCenter.CM.AEM.Application"]/ApplicationVersion$</Name>
<Value>KeyValuesParamSet[1]</Value>
</Property>
</Properties>
</ClassInstance>
</ClassInstances>
<RelationshipInstances/>
</Detailed>
</ManagedEntity>
</DataSource>
</Discovery>