The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

FusionInventory::Agent::XML::Query::SimpleMessage a Generic message container

DESCRIPTION

This class provides a mechanism to send generic messages to the server.

my $xmlMsg = FusionInventory::Agent::XML::Query::SimpleMessage->new(
    {
        config => $config,
        logger => $logger,
        target => $target,
        msg    => {
            QUERY => 'DOWNLOAD',
            FOO    => 'foo',
            BAR   => 'my Message',
        },
    }
);
$network->send( { message => $xmlMsg }

The msg parameter only requires the QUERY key to identify the type of message. You can the key you want in the msg structure.