mirror of
https://github.com/Microsoft/sql-server-samples.git
synced 2025-12-08 14:58:54 +00:00
33 lines
1.1 KiB
JSON
33 lines
1.1 KiB
JSON
{
|
|
"schemaVersion": "1.0",
|
|
"version": "0.1.2",
|
|
"name": "Custom Ruleset 7",
|
|
"probes":{
|
|
"ManagedCodeRuleProbe": [
|
|
{
|
|
"type": "CLR",
|
|
"target": {
|
|
"type": "Server"
|
|
},
|
|
"implementation": {
|
|
"class": "TestsProbeLibrary.Probe1",
|
|
"assembly": "<replace with your path to the dll>\\TestProbeLibrary.Fx.dll"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"rules":[
|
|
{
|
|
"id": "ManagedCodeRule",
|
|
"itemType": "definition",
|
|
"displayName": "Check using 3rd-party assembly",
|
|
"description": "This is an example of a check using an assembly to get required data.",
|
|
"message": "Method from the assembly returned a number greater than the threshold: @{QueryResult} > @{threshold}.",
|
|
"target": { "type": "Server" },
|
|
"probes": ["ManagedCodeRuleProbe"],
|
|
"threshold": 83,
|
|
"condition": { "less": ["@QueryResult", "@threshold"] }
|
|
}
|
|
]
|
|
}
|