mirror of
https://github.com/Microsoft/sql-server-samples.git
synced 2025-12-08 14:58:54 +00:00
Update CustomRuleCLRProbe.json
Fix CLR probe
This commit is contained in:
+4
-4
@@ -5,12 +5,12 @@
|
||||
"probes":{
|
||||
"ManagedCodeRuleProbe": [
|
||||
{
|
||||
"type": "CLR",
|
||||
"type": "External",
|
||||
"target": {
|
||||
"type": "Server"
|
||||
},
|
||||
"implementation": {
|
||||
"class": "TestsProbeLibrary.Probe1",
|
||||
"class": "TestsProbeLibrary.Probe2",
|
||||
"assembly": "C:\\SQLAsmnt\\CustomizationSamples\\TestsProbeLibrary.dll"
|
||||
}
|
||||
}
|
||||
@@ -27,11 +27,11 @@
|
||||
"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: @{QueryResult} > @{threshold}.",
|
||||
"message": "Method from the assembly returned a number greater than the threshold: @{ActualCpuUtilization} > @{threshold}.",
|
||||
"target": { "type": "Server" },
|
||||
"probes": ["ManagedCodeRuleProbe"],
|
||||
"threshold": 83,
|
||||
"condition": { "less": ["@QueryResult", "@threshold"] }
|
||||
"condition": { "less": ["@ActualCpuUtilization", "@threshold"] }
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user