New-CustomMonitoringObject
New-CustomMonitoringObject
Creates a custom monitoring object.
Syntax
Parameter Set: FromMonitoringClass
New-CustomMonitoringObject [-MonitoringClass] <MonitoringClass> [-KeyPropertyValuePair] <Pair`2[]> [ <CommonParameters>]
Detailed Description
Creates a custom monitoring object.
Parameters
-KeyPropertyValuePair<Pair`2[]>
Specifies one or more property value pairs. Use New-MonitoringPropertyValuePair to create values for this parameter. To enter multiple values, separate them by using commas.
Aliases |
none |
Required? |
true |
Position? |
2 |
Default Value |
none |
Accept Pipeline Input? |
true (ByValue) |
Accept Wildcard Characters? |
false |
-MonitoringClass<MonitoringClass>
Specifies the monitoring class that the custom monitoring object will be associated with.
Aliases |
none |
Required? |
true |
Position? |
1 |
Default Value |
none |
Accept Pipeline Input? |
true (ByValue) |
Accept Wildcard Characters? |
false |
<CommonParameters>
This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters
Notes
- For more information, type "Get-Help New-CustomMonitoringObject -detailed". For technical information, type "Get-Help New-CustomMonitoringObject -full".
When specifying multiple values for a parameter, use commas to separate the values. For example, "<parameter-name> <value1>, <value2>".