File tree Expand file tree Collapse file tree
samples/manage/sql-assessment-api/notebooks/CustomizationSamples Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- {
1+ {
22 "schemaVersion" : " 1.0" ,
33 "name" : " CmdShell check" ,
44 "version" : " 1.0.0" ,
1414 },
1515 "displayName" : " CmdShell probe" ,
1616 "description" : " This is an example of cmdshell probe type. " ,
17- "message" : " Empty list " ,
17+ "message" : " File @{stdout.name} has size @{stdout.size} and it's bigger than threshold = @{threshold} bytes " ,
1818 "level" : " Warning" ,
19- "condition" : " @stdout" ,
19+ "threshold" : 1024 ,
20+ "condition" : {
21+ "lt" : [
22+ " @stdout.size" ,
23+ " @threshold"
24+ ]
25+ },
2026 "probes" : [
21- " ListOfDirectoryFilesAndSubdirectories"
27+ {
28+ "id" : " ListOfDirectoryFiles" ,
29+ "transform" : {
30+ "type" : " parse" ,
31+ "map" : {
32+ "stdout" : " /^(?<date>\\ d\\ d/\\ d\\ d/\\ d\\ d\\ d\\ d)\\ s+(?<time>\\ d\\ d:\\ d\\ d\\ s(AM|PM))\\ s+(?<size>[0-9.,]+)\\ s+(?<name>.+)$/ix"
33+ }
34+ }
35+ }
2236 ]
23- },
24- {
25- "id" : [" DefaultRuleset" ],
26- "itemType" : " override" ,
27- "enabled" : false
2837 }
2938 ],
3039 "probes" : {
31- "ListOfDirectoryFilesAndSubdirectories " : [
40+ "ListOfDirectoryFiles " : [
3241 {
3342 "type" : " CmdShell" ,
3443 "target" : {
4352 }
4453 ]
4554 }
46- }
55+ }
You can’t perform that action at this time.
0 commit comments