< Back
Register-MonDataSource
Post
NAME Register-MonDataSource
SYNOPSIS
Registers a custom monitoring data source.
SYNTAX
Register-MonDataSource [-Name] <String> [-Description] <String> [-ImportScript] <ScriptBlock> [-ExportScript]
<ScriptBlock> [<CommonParameters>]
DESCRIPTION
Registers a custom monitoring data source.
Data sources are the data backend that manage the data gathered by the checks.
For example, the 'Path' data source that comes with the module (and is the default source) will store the data in
file.
This command makes the actual backend freely extensible.
PARAMETERS
-Name <String>
The name of the source. Must be unique, otherwise the previous data source will be overwritten,
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Description <String>
A description of the data source.
Required? true
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-ImportScript <ScriptBlock>
The scriptblock to execute to read data from the source.
Required? true
Position? 3
Default value
Accept pipeline input? false
Accept wildcard characters? false
-ExportScript <ScriptBlock>
The scriptblock to execute to write data to the source.
Required? true
Position? 4
Default value
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
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Register-MonDataSource -Name 'Path' -Description 'Uses the filesystem as data backend for monitoring data'
-ImportScript $ImportScript -ExportScript $ExportScript
Registers the "Path" data source.
RELATED LINKS
SYNOPSIS
Registers a custom monitoring data source.
SYNTAX
Register-MonDataSource [-Name] <String> [-Description] <String> [-ImportScript] <ScriptBlock> [-ExportScript]
<ScriptBlock> [<CommonParameters>]
DESCRIPTION
Registers a custom monitoring data source.
Data sources are the data backend that manage the data gathered by the checks.
For example, the 'Path' data source that comes with the module (and is the default source) will store the data in
file.
This command makes the actual backend freely extensible.
PARAMETERS
-Name <String>
The name of the source. Must be unique, otherwise the previous data source will be overwritten,
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Description <String>
A description of the data source.
Required? true
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-ImportScript <ScriptBlock>
The scriptblock to execute to read data from the source.
Required? true
Position? 3
Default value
Accept pipeline input? false
Accept wildcard characters? false
-ExportScript <ScriptBlock>
The scriptblock to execute to write data to the source.
Required? true
Position? 4
Default value
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
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Register-MonDataSource -Name 'Path' -Description 'Uses the filesystem as data backend for monitoring data'
-ImportScript $ImportScript -ExportScript $ExportScript
Registers the "Path" data source.
RELATED LINKS