nsbeat::Beat method nspost (protected)
<instance of nsbeat::Beat> nspost data
Defined in packages/xowiki/tcl/nsbeat-procs.tcl
- Parameters:
- data (required)
- Testcases:
- No testcase defined.
Source code: set queryHeaders [ns_set create] ns_set update $queryHeaders Host localhost ns_set update $queryHeaders Content-Type "application/json; charset=UTF-8" set d [ns_http run -headers $queryHeaders -method POST -body $data -timeout 10.0 ${:outputLocation}/_bulk] ns_http wait -result R -headers $replyHeaders -status S $h ns_log notice "nsbeat post returned S [dict get $d status] R [dict get $d body]"XQL Not present: Generic, PostgreSQL, Oracle