Files
sql-server-samples/samples/manage/sql-assessment-api/docs/Reference/Probes/ExternalProbe.md
T
Aleksei Guzev 22b2374fc4 Update SQL Assessment APi documentation
- Add descriptions for custom rule set concepts
- Addd reference docs for custom rule sets
- Update existing docs for 4-level severity
2022-09-21 21:40:10 +03:00

1.4 KiB

Overview

Type code: External

External probe type allows running external code as probe. This probe can call any external .NET class implementing Microsoft.SqlServer.Management.Assessment.IProbeImplementation interface.

Implementation properties

Implementation part of the probe definition contains the following parameters.

Parameter Required Type Default Description
class Required String The name of the class implementing IProbeImplementation
assembly Optional String SQL Assessment API engine assembly Path to an assembly file containing class. If not specified the engine will look for an internal class with the specified name.

IProbeImplmenetation interface

The IProbeImplementation interface has the following properties. The engine sets their values so the probe implementation could have optional parameters and information about the assessed SQL Server instance or database.

Property Type Description
ServerName string The name of the target server.
TargetName string The name of the assessed instance or the database.
Urn string A string identifier of the target object.
Parameters dictionary A dictionary containing named parameters passed to the probe from the calling check.

After setting all the IProbeImplementation properties the engine calls GetDataAsync method to retrieve all the data.