Plugins

Covers Engine Plugin SDK 2.0.0 · Interface Plugin SDK 0.2.0

SDK_API::message

Report an ARGUS message using the same arguments and defaults as DCode.

Reports synchronously to the in-memory event path; recording and telemetry are asynchronous. Does not stop tasks, command equipment, or wait for acknowledgement. May allocate and lock. Invalid arguments or host failures throw; a numeric result is not an event ID or durability guarantee.

Declaration

virtual int message(const std::string& title, const std::string& description,
            nlohmann::json channels = nlohmann::json::array(), const std::string& resolution = "",
            int auto_acknowledge = 0,
            double firing_timeout_seconds = 5, const std::string& system = "SOFTWARE",
            const std::string& subsystem = "DCODE") {
            return reportEvent("message", title, description, channels, resolution, auto_acknowledge,
                firing_timeout_seconds, system, subsystem);
        }

Parameters

NameDescription
titleEvent identity within system/subsystem; use distinct titles for distinct modules.
descriptionOperator-facing body text.
channelsFlat series or nested graph groups, including |channel|@1 and >100@1.
resolutionRecommended operator action.
auto_acknowledgeSeconds before visual acknowledgement; zero disables it.
firing_timeout_secondsFinite nonnegative inactivity timeout; defaults to 5. Zero requires stop_event_firing.
systemARGUS system grouping; defaults to SOFTWARE.
subsystemARGUS subsystem grouping; defaults to DCODE, matching DCode.

Returns

Numeric host result, normally 1; not an event ID.

Example

api.message("Device connection", "Device disconnected", {"|temperature|"}, "Check connection", 0, 5);