
admin.groupSetTelemetryConfig( config as element(configuration), group-id as xs.unsignedLong, value as String ) as element(configuration)
This function sets the update frequency for configuration changes sent to telemetry, would also be the maximum frequency at which updates will be sent.
const admin = require('/MarkLogic/admin.xqy');
var config = admin.getConfiguration()
var spec = admin.groupSetTelemetryConfig(config,
xdmp.group(),"frequent")
admin.saveConfiguration(spec)
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.