How to rise notifications¶
This Part of the Alert Management isn't fully implemented right now
It gets updated in the ongoing weeks.
To raise alerts/notifications in HortiView you can use an azure service bus and a queue, called sensoralerts
, to send messages to, that will raise an alert
Usage of the Service Bus¶
Once you configured the connection to the service bus, it requires the following object:
export type Message = {
farmOrganizationId: string;
deviceId: "62ac8dbc-45bc-407d-9fb4-8efe9747abe0";
farmId: string;
fieldId: string;
blockId: string;
criteriaId: string;
scope: "FarmOrgMembers";
moduleId: string;
description: string;
};
farmid
,fieldId
andblockId
can be received via the Module APIcriteriaId
needs to be a valid GUID of anAlertCriteriaName
that can be accessed via thecommonOptions
module federation propertydescription
will be the message rendered as the notification