mirror of
https://github.com/Microsoft/sql-server-samples.git
synced 2025-12-08 14:58:54 +00:00
38 lines
1.2 KiB
JSON
38 lines
1.2 KiB
JSON
{
|
|
"schemaVersion": "1.0",
|
|
"version": "0.1.2",
|
|
"name": "Custom Ruleset 7",
|
|
"probes":{
|
|
"ManagedCodeRuleProbe": [
|
|
{
|
|
"type": "External",
|
|
"target": {
|
|
"type": "Server"
|
|
},
|
|
"implementation": {
|
|
"class": "TestsProbeLibrary.Probe2",
|
|
"assembly": "C:\\SQLAsmnt\\CustomizationSamples\\TestsProbeLibrary.dll"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"rules":[
|
|
{
|
|
"id": ["DefaultRuleset"],
|
|
"itemType": "override",
|
|
"enabled": false
|
|
},
|
|
{
|
|
"id": "ManagedCodeRule",
|
|
"itemType": "definition",
|
|
"displayName": "Check uses 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: @{ActualCpuUtilization} > @{threshold}.",
|
|
"target": { "type": "Server" },
|
|
"probes": ["ManagedCodeRuleProbe"],
|
|
"threshold": 83,
|
|
"condition": { "less": ["@ActualCpuUtilization", "@threshold"] }
|
|
}
|
|
]
|
|
}
|