protected override void ProcessRecordInternal() { TriggerCondition triggerCondition = new TriggerCondition(thresholdOperator: ThresholdOperator, threshold: Threshold, metricTrigger: MetricTrigger); triggerCondition.Validate(); WriteObject(new PSScheduledQueryRuleTriggerCondition(triggerCondition)); }