I’ve created a Powershell Script Based Monitor using Silect MP Author so that I will be able to schedule their runtime (e.g. Every Day – Sun – Thu).
Problem is,
That I also need the availability to adjust the interval time (e.g. Every 30 Seconds).
And for some reason, this is not a valid option to combine in the MP Author Wizard.
You can only choose from the 3 following options:
- None
- Daily
- Periodic
Does somebody know what is the Interval Time configured if the Daily option is been chosen?
Furthermore,
While examining the XML file MP Author has created,
I can see that when choosing the Daily options, the following elements have been created:
</Configuration> <OverrideableParameters> <OverrideableParameter ID="TimeoutSeconds" Selector="$Config/TimeoutSeconds$" ParameterType="int" /> <OverrideableParameter ID="DaysOfWeekMask" Selector="$Config/DaysOfWeekMask$" ParameterType="int" /> <OverrideableParameter ID="StartTime" Selector="$Config/StartTime$" ParameterType="string" /> <OverrideableParameter ID="EndTime" Selector="$Config/EndTime$" ParameterType="string" /> </OverrideableParameters> <ModuleImplementation Isolation="Any"> <Composite> <MemberModules> <DataSource ID="Scheduler" TypeID="System!System.Scheduler"> <Scheduler> <WeeklySchedule> <Windows> <Daily> <Start>$Config/StartTime$</Start> <End>$Config/EndTime$</End> <DaysOfWeekMask>$Config/DaysOfWeekMask$</DaysOfWeekMask> </Daily> </Windows> </WeeklySchedule> <ExcludeDates /> </Scheduler> </DataSource>
Can I just add New Element:
<OverrideableParameter ID="IntervalSeconds" Selector="$Config/IntervalSeconds$" ParameterType="int" />
And a New line in the Scheduler: tag for the IntervalSeconds Value?:
<IntervalSeconds>30</IntervalSeconds>