Skip to content

Commit e0d9cfc

Browse files
Update CustomRuleCLRProbe.json
Fix CLR probe
1 parent 7d87b53 commit e0d9cfc

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

samples/manage/sql-assessment-api/notebooks/CustomizationSamples/CustomRuleCLRProbe.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
"probes":{
66
"ManagedCodeRuleProbe": [
77
{
8-
"type": "CLR",
8+
"type": "External",
99
"target": {
1010
"type": "Server"
1111
},
1212
"implementation": {
13-
"class": "TestsProbeLibrary.Probe1",
13+
"class": "TestsProbeLibrary.Probe2",
1414
"assembly": "C:\\SQLAsmnt\\CustomizationSamples\\TestsProbeLibrary.dll"
1515
}
1616
}
@@ -27,11 +27,11 @@
2727
"itemType": "definition",
2828
"displayName": "Check uses 3rd-party assembly",
2929
"description": "This is an example of a check using an assembly to get required data.",
30-
"message": "Method from the assembly returned a number greater than the threshold: @{QueryResult} > @{threshold}.",
30+
"message": "Method from the assembly returned a number greater than the threshold: @{ActualCpuUtilization} > @{threshold}.",
3131
"target": { "type": "Server" },
3232
"probes": ["ManagedCodeRuleProbe"],
3333
"threshold": 83,
34-
"condition": { "less": ["@QueryResult", "@threshold"] }
34+
"condition": { "less": ["@ActualCpuUtilization", "@threshold"] }
3535
}
3636
]
3737
}

0 commit comments

Comments
 (0)