Name
sn_agent.MIDNotificationHandler
Description
Helper for sending system command notifications to MID Servers
Script
var MIDNotificationHandler = Class.create();
MIDNotificationHandler.prototype = {
initialize: function() {
},
notifyMIDServers: function(source, name, payload) {
var gr = new GlideRecord('ecc_queue');
gr.initialize();
gr.setValue( 'agent', 'mid.server.*' );
gr.setValue( 'source', source );
gr.setValue( 'topic', 'SystemCommand' );
gr.setValue( 'queue', 'output' );
gr.setValue( 'state', 'ready' );
gr.setValue( 'priority', '0' /* Interactive */ );
if (name != undefined)
gr.setValue( 'name', name );
if (payload != undefined)
gr.setValue('payload',payload);
gr.insert();
},
type: 'MIDNotificationHandler'
};
Sys ID
8d3716d8135ec01043f733e2e144b018