Monday, March 28, 2011

How-to transfer override parameters from the unit monitor to diagnostic task

  • There is a display unit based on Microsoft.Windows.TimedScript.PropertyBagProvider.
  • There is a diagnostic TASK tied to the unit monitor, based on Microsoft.Windows.ScriptProbeAction
  • It is necessary to pass the values of override parameters in the diagnostic task

So here we go:

  • Modify the script monitor, so that it returns the value of its parameters

Call oBag.AddValue("Minimal Table Size", nTableSize)

Call oBag.AddValue("Minimal Fragment Size", nFragmentSize)


  • After that, modify the default values diagnostic task follows

<TableSize>$Data/StateChange/DataItem/Context/DataItem/Property[@Name='Minimal Table Size']$TableSize>

<FragmentSize>$Data/StateChange/DataItem/Context/DataItem/Property[@Name='Minimal Fragment Size']$FragmentSize>

We all got those values of override parameters monitor for which there has been a change state

Also you can read greate post about DataItem from motitor context

No comments:

Post a Comment