< Back

Result

Sun Jan 19, 2020 5:47 pm

NAME Result



SYNOPSIS

Generates a <Result></Result> XML tag for defining a single channel in a custom PRTG Network Monitor EXE/XML

Sensor.





SYNTAX

Result [[-ScriptBlock] <ScriptBlock>] [<CommonParameters>]





DESCRIPTION

The Result tag specifies channels that should be included in the sensor response. Each channel must have a value

and unique name, along with any optional formatting tags that may be used to customize the channel's configuration.



The Result tag must be specified in a sensor response unless the sensor is returning an error. For more

information, see Get-Help Error.





PARAMETERS

-ScriptBlock <ScriptBlock>

A ScriptBlock containing a single channel definition.



Required? false

Position? 0

Default value None

Accept pipeline input? False

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



NOTES









-------------------------- EXAMPLE 1 --------------------------



Prtg {

Result {

Channel "My channel"

Value 1

}

}



Generate a sensor with one channel.



RELATED LINKS

Online Version: https://github.com/lordmilko/PrtgXml/bl ... /Result.md

Prtg

Channel

Value

Error

Text